refactor: improve binance_vision method naming

This commit is contained in:
Matthias
2025-01-26 09:46:47 +01:00
parent aa595ae8cb
commit 8aab8bc528

View File

@@ -200,7 +200,7 @@ def binance_vision_zip_name(symbol: str, timeframe: str, date: date) -> str:
return f"{symbol}-{timeframe}-{date.strftime('%Y-%m-%d')}.zip"
def binance_vision_zip_url(
def binance_vision_ohlcv_zip_url(
asset_type_url_segment: str, symbol: str, timeframe: str, date: date
) -> str:
"""
@@ -238,7 +238,7 @@ async def get_daily_ohlcv(
:return: A dataframe containing columns date,open,high,low,close,volume
"""
url = binance_vision_zip_url(asset_type_url_segment, symbol, timeframe, date)
url = binance_vision_ohlcv_zip_url(asset_type_url_segment, symbol, timeframe, date)
logger.debug(f"download data from binance: {url}")