[Add] Add trader event type definition

This commit is contained in:
vn.py 2019-01-06 20:14:02 +08:00
parent e32b76d243
commit ad40633fd8

13
vnpy/trader/event.py Normal file
View File

@ -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'