Skip to content

Commit 71a985c

Browse files
authored
fix(bybit): normalize L2_BOOK callback timestamp using timestamp_normalize (#1083)
1 parent d9da0c9 commit 71a985c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cryptofeed/exchanges/bybit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ async def _book(self, msg: dict, timestamp: float, market: str):
402402
if update_type == 'delta':
403403
delta = {BID: data['b'], ASK: data['a']}
404404

405-
await self.book_callback(L2_BOOK, self._l2_book[pair], timestamp, timestamp=int(msg['ts']), raw=msg, delta=delta)
405+
await self.book_callback(L2_BOOK, self._l2_book[pair], timestamp, timestamp=self.timestamp_normalize(int(msg['ts'])), raw=msg, delta=delta)
406406

407407
async def _ticker_open_interest_funding_index(self, msg: dict, timestamp: float, conn: AsyncConnection):
408408
'''

0 commit comments

Comments
 (0)