Skip to content

Commit

Permalink
fix on_order push from websocket
Browse files Browse the repository at this point in the history
  • Loading branch information
lin committed Dec 6, 2020
1 parent b78277a commit 286173e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions howtrader/gateway/binance/binance_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -727,6 +727,8 @@ def on_order(self, packet: dict):
)

order.trade_data = trade_data
else:
order.trade_data = None

self.gateway.on_order(order)

Expand Down
3 changes: 3 additions & 0 deletions howtrader/gateway/binances/binances_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -884,6 +884,9 @@ def on_order(self, packet: dict) -> None:
)
order.trade_data = trade_data

else:
order.trade_data = None

self.gateway.on_order(order)


Expand Down

0 comments on commit 286173e

Please sign in to comment.