Make `binance` history api accept a timeframe

ib_1m_hist
Tyler Goodlet 2022-09-15 14:06:39 -04:00
parent bf7d5e9a71
commit fce7055c62
1 changed files with 1 additions and 0 deletions

View File

@ -388,6 +388,7 @@ async def open_history_client(
async with open_cached_client('binance') as client: async with open_cached_client('binance') as client:
async def get_ohlc( async def get_ohlc(
timeframe: float,
end_dt: Optional[datetime] = None, end_dt: Optional[datetime] = None,
start_dt: Optional[datetime] = None, start_dt: Optional[datetime] = None,