[Fix] add filter for duplicate ib contract update
This commit is contained in:
parent
61bf6bb81e
commit
b66e2a9dd2
@ -509,8 +509,8 @@ class IbApi(EWrapper):
|
||||
gateway_name=self.gateway_name,
|
||||
)
|
||||
|
||||
if contract.vt_symbol not in self.contracts:
|
||||
self.gateway.on_contract(contract)
|
||||
|
||||
self.contracts[contract.vt_symbol] = contract
|
||||
|
||||
def execDetails(
|
||||
|
Loading…
Reference in New Issue
Block a user