From d867fda4979cf1ceee8865d9b6dfdbb9f2c695ea Mon Sep 17 00:00:00 2001 From: msincenselee Date: Sun, 19 Jan 2020 17:01:39 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=A2=9E=E5=BC=BA]=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E7=AD=96=E7=95=A5=E6=8C=81=E4=BB=93=EF=BC=8C=E8=82=A1=E7=A5=A8?= =?UTF-8?q?=E7=AD=89=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnpy/trader/event.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/vnpy/trader/event.py b/vnpy/trader/event.py index dd64d3a9..f698ffa1 100644 --- a/vnpy/trader/event.py +++ b/vnpy/trader/event.py @@ -5,10 +5,25 @@ Event type string used in VN Trader. from vnpy.event import EVENT_TIMER # noqa EVENT_TICK = "eTick." -EVENT_BAR = "eBar." EVENT_TRADE = "eTrade." EVENT_ORDER = "eOrder." EVENT_POSITION = "ePosition." EVENT_ACCOUNT = "eAccount." EVENT_CONTRACT = "eContract." 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' +