Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
m5l14i11 committed Sep 19, 2024
1 parent 672fe9d commit 3c3baa9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
1 change: 1 addition & 0 deletions core/events/ohlcv.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from dataclasses import dataclass, field

from core.models.entity.bar import Bar
from core.models.symbol import Symbol
from core.models.timeframe import Timeframe
Expand Down
6 changes: 1 addition & 5 deletions feed/_historical.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,7 @@ async def _process_batch(self, batch: List[Bar]):

async def _handle_market(self, batch: List[Bar]) -> None:
for bar in batch:
await self.tell(
NewMarketDataReceived(
self.symbol, self.timeframe, bar
)
)
await self.tell(NewMarketDataReceived(self.symbol, self.timeframe, bar))
await asyncio.sleep(0.0001)

async def _outbox(self, batch: List[Bar]) -> None:
Expand Down
6 changes: 1 addition & 5 deletions feed/_realtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,4 @@ async def _process_bars(self, bars: List[Bar]):

logger.info(f"{self.symbol}_{self.timeframe}:{bar}")

await self.tell(
NewMarketDataReceived(
self.symbol, self.timeframe, bar
)
)
await self.tell(NewMarketDataReceived(self.symbol, self.timeframe, bar))

0 comments on commit 3c3baa9

Please sign in to comment.