[Mod] use net position for TapGateway

This commit is contained in:
vn.py 2019-10-12 18:37:41 +08:00
parent 48167ef755
commit cd612e41d8

View File

@ -464,6 +464,7 @@ class TradeApi(ITapTradeAPINotify):
product=Product.FUTURES,
size=commodity_info.size,
pricetick=commodity_info.pricetick,
net_position=True,
gateway_name=self.gateway.gateway_name
)
self.gateway.on_contract(contract)