From ad40633fd8a3fecf74513fea6513f97423ed2bc7 Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Sun, 6 Jan 2019 20:14:02 +0800 Subject: [PATCH] [Add] Add trader event type definition --- vnpy/trader/event.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 vnpy/trader/event.py diff --git a/vnpy/trader/event.py b/vnpy/trader/event.py new file mode 100644 index 00000000..c679a971 --- /dev/null +++ b/vnpy/trader/event.py @@ -0,0 +1,13 @@ +""" +Event type string used in VN Trader. +""" + +from vnpy.event import EVENT_TIMER + +EVENT_TICK = 'eTick.' +EVENT_TRADE = 'eTrade.' +EVENT_ORDER = 'eOrder.' +EVENT_POSITION = 'ePosition.' +EVENT_ACCOUNT = 'eAccount.' +EVENT_CONTRACT = 'eContract.' +EVENT_LOG = 'eLog'