From fce7055c62ed569687217ff9f729e40452deaa41 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 15 Sep 2022 14:06:39 -0400 Subject: [PATCH] Make `binance` history api accept a timeframe --- piker/brokers/binance.py | 1 + 1 file changed, 1 insertion(+) diff --git a/piker/brokers/binance.py b/piker/brokers/binance.py index 68c7238e..1e0f6cc4 100644 --- a/piker/brokers/binance.py +++ b/piker/brokers/binance.py @@ -388,6 +388,7 @@ async def open_history_client( async with open_cached_client('binance') as client: async def get_ohlc( + timeframe: float, end_dt: Optional[datetime] = None, start_dt: Optional[datetime] = None,