From e547b307f648dffb9e82d80504207178384ce5da Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 10 Nov 2022 01:42:48 -0500 Subject: [PATCH] Deflect 1s OHLC loading for `kraken` --- piker/brokers/kraken/feed.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/piker/brokers/kraken/feed.py b/piker/brokers/kraken/feed.py index 992c5e04..62aeefa2 100644 --- a/piker/brokers/kraken/feed.py +++ b/piker/brokers/kraken/feed.py @@ -271,8 +271,12 @@ async def open_history_client( ]: nonlocal queries - if queries > 0: - raise DataUnavailable + if ( + queries > 0 + or timeframe != 60 + ): + raise DataUnavailable( + 'Only a single query for 1m bars supported') count = 0 while count <= 3: