From cd612e41d88e6f09aa377e40315ea0fb6b1064a5 Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Sat, 12 Oct 2019 18:37:41 +0800 Subject: [PATCH] [Mod] use net position for TapGateway --- vnpy/gateway/tap/tap_gateway.py | 1 + 1 file changed, 1 insertion(+) 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)