Skip to content

Commit

Permalink
Fix event type for order fill
Browse files Browse the repository at this point in the history
  • Loading branch information
ttt733 committed Mar 15, 2019
1 parent 9032bcc commit 674a95d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion algo.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ async def handle_trade_update(conn, channel, data):
partial_fills[symbol] = qty
positions[symbol] += qty
open_orders[symbol] = data.order
elif event == 'filled':
elif event == 'fill':
qty = data.order['filled_qty']
if data.order['side'] == 'sell':
qty = qty * -1
Expand Down

0 comments on commit 674a95d

Please sign in to comment.