mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-27 17:25:16 +00:00
13 lines
289 B
Python
13 lines
289 B
Python
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)
|