From 09d99964e53425fe6baa0c5e8e9b5a2e7f6f8766 Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Wed, 10 Jul 2019 17:07:01 +0800 Subject: [PATCH] [Fix]ctp cancel order needs correct ExchangeID --- vnpy/gateway/ctp/ctp_gateway.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vnpy/gateway/ctp/ctp_gateway.py b/vnpy/gateway/ctp/ctp_gateway.py index 2b3eb8c7..30f048dd 100644 --- a/vnpy/gateway/ctp/ctp_gateway.py +++ b/vnpy/gateway/ctp/ctp_gateway.py @@ -761,7 +761,7 @@ class CtpTdApi(TdApi): ctp_req = { "InstrumentID": req.symbol, - "Exchange": req.exchange, + "ExchangeID": req.exchange.value, "OrderRef": order_ref, "FrontID": int(frontid), "SessionID": int(sessionid),