kucoin: raise `DataUnavailable` if we get empty time array at some point?

master
Tyler Goodlet 2023-05-14 15:13:14 -04:00
parent cfb125beef
commit ebe351e2ee
1 changed files with 5 additions and 0 deletions

View File

@ -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())