Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion cryptofeed/exchanges/kucoin.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,11 @@ async def _process_l2_book(self, msg: dict, symbol: str, timestamp: float):

self.seq_no[symbol] = data['sequenceEnd']

ts = data['time'] / 1000
if 'time' in data:
ts = data['time'] / 1000
else:
LOG.debug("No timestamp data returned by Kucoin websocket.")
ts = None
delta = {BID: [], ASK: []}
for s, side in (('bids', BID), ('asks', ASK)):
for update in data['changes'][s]:
Expand Down