[Mod] use net position for TapGateway
This commit is contained in:
parent
48167ef755
commit
cd612e41d8
@ -464,6 +464,7 @@ class TradeApi(ITapTradeAPINotify):
|
|||||||
product=Product.FUTURES,
|
product=Product.FUTURES,
|
||||||
size=commodity_info.size,
|
size=commodity_info.size,
|
||||||
pricetick=commodity_info.pricetick,
|
pricetick=commodity_info.pricetick,
|
||||||
|
net_position=True,
|
||||||
gateway_name=self.gateway.gateway_name
|
gateway_name=self.gateway.gateway_name
|
||||||
)
|
)
|
||||||
self.gateway.on_contract(contract)
|
self.gateway.on_contract(contract)
|
||||||
|
Loading…
Reference in New Issue
Block a user