kucoin: raise `DataUnavailable` if we get empty time array at some point?
parent
cfb125beef
commit
ebe351e2ee
|
@ -884,6 +884,11 @@ async def open_history_client(
|
|||
|
||||
times = array['time']
|
||||
|
||||
if not len(times):
|
||||
raise DataUnavailable(
|
||||
f'No more history before {start_dt}?'
|
||||
)
|
||||
|
||||
if end_dt is None:
|
||||
inow = round(time.time())
|
||||
|
||||
|
|
Loading…
Reference in New Issue