From 1171bf8d9354426d3eac914fec9ec7058d583f30 Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Wed, 7 Aug 2019 15:03:17 +0800 Subject: [PATCH] [Mod] convert xtp unknown ticker type to equity product --- vnpy/gateway/xtp/xtp_gateway.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vnpy/gateway/xtp/xtp_gateway.py b/vnpy/gateway/xtp/xtp_gateway.py index 4c3fa492..585a3f42 100644 --- a/vnpy/gateway/xtp/xtp_gateway.py +++ b/vnpy/gateway/xtp/xtp_gateway.py @@ -74,7 +74,8 @@ PRODUCT_XTP2VT = { XTP_TICKER_TYPE.XTP_TICKER_TYPE_INDEX: Product.INDEX, XTP_TICKER_TYPE.XTP_TICKER_TYPE_FUND: Product.FUND, XTP_TICKER_TYPE.XTP_TICKER_TYPE_BOND: Product.BOND, - XTP_TICKER_TYPE.XTP_TICKER_TYPE_OPTION: Product.OPTION + XTP_TICKER_TYPE.XTP_TICKER_TYPE_OPTION: Product.OPTION, + XTP_TICKER_TYPE.XTP_TICKER_TYPE_UNKNOWN: Product.EQUITY, } # DIRECTION_VT2XTP = {