Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
timkpaine committed Jul 9, 2019
1 parent e1f47a1 commit a14b652
Show file tree
Hide file tree
Showing 7 changed files with 188 additions and 173 deletions.
3 changes: 3 additions & 0 deletions aat/execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def insufficientFunds(self, req):
instrument=req.instrument,
status=TradeResult.REJECTED,
time=req.time,
strategy=req.strategy,
order_id='')
return resp

Expand All @@ -34,6 +35,7 @@ def backtest(self, req):
instrument=req.instrument,
status=TradeResult.FILLED,
time=req.time,
strategy=req.strategy,
order_id=str(self._backtest_id))
self._backtest_id += 1
return resp
Expand All @@ -47,6 +49,7 @@ def simulation(self, req):
instrument=req.instrument,
status=TradeResult.FILLED,
time=req.time,
strategy=req.strategy,
order_id=str(self._backtest_id))
self._backtest_id += 1
return resp
Expand Down

0 comments on commit a14b652

Please sign in to comment.