This commit is contained in:
msincenselee 2019-06-21 23:27:40 +08:00
parent 28152c2852
commit 6db1b12611
3 changed files with 9 additions and 1 deletions

View File

@ -5,5 +5,5 @@ from .chinese import text, constant
# 是否要使用英文
from vnpy.trader.vtGlobal import globalSetting
if globalSetting['language'] == 'english':
if globalSetting.get('language',None) == 'english':
from vnpy.trader.language.english import text, constant

View File

@ -53,6 +53,10 @@ OPTION_PUT = u'看跌期权'
# 交易所类型
EXCHANGE_SSE = 'SSE' # 上交所
EXCHANGE_SZSE = 'SZSE' # 深交所
EXCHANGE_XSHG = 'XSHG' # 上交所(股票使用)
EXCHANGE_XSHE = 'XSHE' # 深交所(股票使用)
EXCHANGE_CFFEX = 'CFFEX' # 中金所
EXCHANGE_SHFE = 'SHFE' # 上期所
EXCHANGE_CZCE = 'CZCE' # 郑商所

View File

@ -54,6 +54,10 @@ OPTION_PUT = u'put'
# 交易所类型
EXCHANGE_SSE = 'SSE' # 上交所
EXCHANGE_SZSE = 'SZSE' # 深交所
EXCHANGE_XSHG = 'XSHG' # 上交所(股票使用)
EXCHANGE_XSHE = 'XSHE' # 深交所(股票使用)
EXCHANGE_CFFEX = 'CFFEX' # 中金所
EXCHANGE_SHFE = 'SHFE' # 上期所
EXCHANGE_CZCE = 'CZCE' # 郑商所