Skip to content

Commit

Permalink
new event_type
Browse files Browse the repository at this point in the history
  • Loading branch information
Cuizi7 committed Sep 27, 2018
1 parent 437b2a2 commit f1b5c7d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rqalpha/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ class EVENT(Enum):
# 策略被恢复
STRATEGY_HOLD_CANCELLED = 'strategy_hold_canceled'

# 心跳事件,用于触发定时任务
HEARTBEAT = 'heartbeat'


def parse_event(event_str):
return EVENT[event_str.upper()]

0 comments on commit f1b5c7d

Please sign in to comment.