[增强] 增加策略持仓,股票等事件

This commit is contained in:
msincenselee 2020-01-19 17:01:39 +08:00
parent fba165f93d
commit d867fda497

View File

@ -5,10 +5,25 @@ Event type string used in VN Trader.
from vnpy.event import EVENT_TIMER # noqa from vnpy.event import EVENT_TIMER # noqa
EVENT_TICK = "eTick." EVENT_TICK = "eTick."
EVENT_BAR = "eBar."
EVENT_TRADE = "eTrade." EVENT_TRADE = "eTrade."
EVENT_ORDER = "eOrder." EVENT_ORDER = "eOrder."
EVENT_POSITION = "ePosition." EVENT_POSITION = "ePosition."
EVENT_ACCOUNT = "eAccount." EVENT_ACCOUNT = "eAccount."
EVENT_CONTRACT = "eContract." EVENT_CONTRACT = "eContract."
EVENT_LOG = "eLog" EVENT_LOG = "eLog"
# 扩展
EVENT_BAR = "eBar."
EVENT_STRATEGY_POS = "eStrategyPos."
# 拓展, 支持股票账号中,历史交成交/历史委托/资金流水
EVENT_HISTORY_TRADE = 'eHistoryTrade.'
EVENT_HISTORY_ORDER = 'eHistoryOrder.'
EVENT_FUNDS_FLOW = 'eFundsFlow.'
# 扩展,支持系统发出得异常事件
EVENT_ERROR = 'eError'
EVENT_WARNING = 'eWarning'
EVENT_CRITICAL = 'eCritical'