Skip to content

Commit

Permalink
API: Add slippage and commission models for futures
Browse files Browse the repository at this point in the history
  • Loading branch information
dmichalowicz committed Apr 25, 2017
1 parent 0da8a59 commit dd21346
Show file tree
Hide file tree
Showing 12 changed files with 1,390 additions and 139 deletions.
4 changes: 2 additions & 2 deletions tests/finance/test_blotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
)
from zipline.finance.order import ORDER_STATUS, Order
from zipline.finance.slippage import (
DEFAULT_VOLUME_SLIPPAGE_BAR_LIMIT,
DEFAULT_EQUITY_VOLUME_SLIPPAGE_BAR_LIMIT,
FixedSlippage,
)
from zipline.gens.sim_engine import BAR, SESSION_END
Expand Down Expand Up @@ -292,7 +292,7 @@ def test_order_hold(self):

order_size = 100
expected_filled = int(trade_amt *
DEFAULT_VOLUME_SLIPPAGE_BAR_LIMIT)
DEFAULT_EQUITY_VOLUME_SLIPPAGE_BAR_LIMIT)
expected_open = order_size - expected_filled
expected_status = ORDER_STATUS.OPEN if expected_open else \
ORDER_STATUS.FILLED
Expand Down
Loading

0 comments on commit dd21346

Please sign in to comment.