diff --git a/piker/brokers/kucoin.py b/piker/brokers/kucoin.py index 9cbb5a97..2f66d4eb 100755 --- a/piker/brokers/kucoin.py +++ b/piker/brokers/kucoin.py @@ -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())