[Add] filter for empty query trade/order data
This commit is contained in:
parent
5e31db27b2
commit
238b59f112
@ -454,6 +454,7 @@ class DaFutureApi(FutureApi):
|
||||
"""
|
||||
Callback of order query.
|
||||
"""
|
||||
if data["TreatyCode"]:
|
||||
order = OrderData(
|
||||
symbol=data["TreatyCode"],
|
||||
exchange=EXCHANGE_DA2VT[data["ExchangeCode"]],
|
||||
@ -482,6 +483,7 @@ class DaFutureApi(FutureApi):
|
||||
"""
|
||||
Callback of trade query.
|
||||
"""
|
||||
if data["TreatyCode"]:
|
||||
self.update_trade(data)
|
||||
|
||||
if last:
|
||||
|
Loading…
Reference in New Issue
Block a user