mirror of
https://github.com/wassname/catalyst.git
synced 2026-10-29 13:00:42 +08:00
fixed slippage was ignoring order direction.
This commit is contained in:
1 parent
71c1f755b3
commit
518d471a93
1 file changed
+1
-1
@@ -117,7 +117,7 @@ class FixedSlippage(object):
|
||||
txn = create_transaction(
|
||||
event.sid,
|
||||
amount,
|
||||
event.price + self.spread/2.0,
|
||||
event.price + (self.spread/2.0 * direction),
|
||||
event.dt,
|
||||
direction,
|
||||
self.commission
|
||||
|
||||
Reference in new issue
Block a user