Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
m5l14i11 committed Sep 20, 2024
1 parent 0c2a82f commit 025c203
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions core/commands/ohlcv.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
from dataclasses import dataclass, field

from core.events.base import EventMeta
from core.models.entity.bar import Bar
from core.models.symbol import Symbol
from core.models.timeframe import Timeframe

from .base import Command, CommandGroup


@dataclass(frozen=True)
class MarketCommand(Command):
symbol: Symbol
timeframe: Timeframe
meta: EventMeta = field(
default_factory=lambda: EventMeta(priority=2, group=CommandGroup.market),
init=False,
)


@dataclass(frozen=True)
class IngestMarketData(MarketCommand):
bar: Bar

0 comments on commit 025c203

Please sign in to comment.