bbgo_origin/python/bbgo/handlers/update.py

13 lines
283 B
Python
Raw Normal View History

2022-04-13 10:11:21 +00:00
from ..data import Event
from ..enums import EventType
from .handler import Handler
class UpdateHandler(Handler):
def __call__(self, event: Event) -> None:
if event.event_type != EventType.UPDATE:
return
super(UpdateHandler, self).__call__(event)