diff --git a/vnpy/gateway/tap/tap_gateway.py b/vnpy/gateway/tap/tap_gateway.py index c4236e74..be29ebf7 100644 --- a/vnpy/gateway/tap/tap_gateway.py +++ b/vnpy/gateway/tap/tap_gateway.py @@ -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)