Skip to content

Commit

Permalink
change for no limit universe
Browse files Browse the repository at this point in the history
  • Loading branch information
PKUJohnson committed Mar 20, 2018
1 parent e86761b commit f2c124f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion vnTrader/uiBasicWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -1336,7 +1336,7 @@ def initUi(self):
# 设置数据键
self.setDataKey('vtSymbol')

self.setSorting(True)
self.setSorting(False)

# 设置监控事件类型
self.setEventType(EVENT_CONTRACT, EVENT_CONTRACT_CLEAR)
Expand Down
8 changes: 8 additions & 0 deletions vnTrader/vtConstant.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,14 @@
EXCHANGE_SHFE = 'SHF' # 上期所
EXCHANGE_CZCE = 'CZC' # 郑商所
EXCHANGE_DCE = 'DCE' # 大商所
EXCHANGE_CSI = 'CSI' # 中证指数
EXCHANGE_HKH = 'HKH' # 沪港通
EXCHANGE_HKS = 'HKS' # 深港通
EXCHANGE_JZ = 'JZ' # 均直
EXCHANGE_SPOT = 'SPOT' # 现货
EXCHANGE_IB = 'IB' # 银行间市场
EXCHANGE_FX = 'FX' # 外汇
EXCHANGE_INE = 'INE' # 能源

EXCHANGE_SGE = 'SGE' # 上金所
EXCHANGE_UNKNOWN = 'UNKNOWN'# 未知交易所
Expand Down

0 comments on commit f2c124f

Please sign in to comment.