From b10726fa40ed9f9594ffc42648a3e0b8e3490e0c Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Thu, 7 Mar 2019 13:46:02 +0800 Subject: [PATCH] [Fix]Close #1442 --- vnpy/gateway/ctp/ctp_gateway.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vnpy/gateway/ctp/ctp_gateway.py b/vnpy/gateway/ctp/ctp_gateway.py index 7c21c624..38b62650 100644 --- a/vnpy/gateway/ctp/ctp_gateway.py +++ b/vnpy/gateway/ctp/ctp_gateway.py @@ -87,8 +87,8 @@ PRICETYPE_VT2CTP = { OFFSET_VT2CTP = { Offset.OPEN: THOST_FTDC_OF_Open, Offset.CLOSE: THOST_FTDC_OFEN_Close, - Offset.CLOSETODAY: THOST_FTDC_OFEN_CloseYesterday, - Offset.CLOSEYESTERDAY: THOST_FTDC_OFEN_CloseToday, + Offset.CLOSETODAY: THOST_FTDC_OFEN_CloseToday, + Offset.CLOSEYESTERDAY: THOST_FTDC_OFEN_CloseYesterday, } OFFSET_CTP2VT = {v: k for k, v in OFFSET_VT2CTP.items()}