bbgo_origin/python/bbgo/handlers/snapshot.py

13 lines
289 B
Python
Raw Permalink Normal View History

2022-04-20 06:26:53 +00:00
from ..data import Event
from ..enums import EventType
from .handler import Handler
class SnapshotHandler(Handler):
def __call__(self, event: Event) -> None:
if event.event_type != EventType.SNAPSHOT:
return
super(SnapshotHandler, self).__call__(event)