From 62a0451d418a092a63c9d3b598ac448ee23ce221 Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Wed, 10 Jul 2019 10:15:15 +0800 Subject: [PATCH] [Fix]closes #1913 --- vnpy/gateway/ctp/ctp_gateway.py | 1 + 1 file changed, 1 insertion(+) diff --git a/vnpy/gateway/ctp/ctp_gateway.py b/vnpy/gateway/ctp/ctp_gateway.py index c92781b7..2b3eb8c7 100644 --- a/vnpy/gateway/ctp/ctp_gateway.py +++ b/vnpy/gateway/ctp/ctp_gateway.py @@ -716,6 +716,7 @@ class CtpTdApi(TdApi): ctp_req = { "InstrumentID": req.symbol, + "ExchangeID": req.exchange.value, "LimitPrice": req.price, "VolumeTotalOriginal": int(req.volume), "OrderPriceType": ORDERTYPE_VT2CTP.get(req.type, ""),