This commit is contained in:
vn.py 2019-09-17 22:56:40 +08:00
parent 06797b475f
commit 1053eb2d23

View File

@ -717,6 +717,10 @@ class CtpTdApi(TdApi):
""" """
self.order_ref += 1 self.order_ref += 1
if req.offset not in OFFSET_VT2CTP:
self.gateway.write_log("请选择开平方向")
return ""
ctp_req = { ctp_req = {
"InstrumentID": req.symbol, "InstrumentID": req.symbol,
"ExchangeID": req.exchange.value, "ExchangeID": req.exchange.value,