chore: start downloads in 1m batches

This commit is contained in:
Matthias
2025-02-15 15:38:00 +01:00
parent ad96fa0f58
commit 9fbc413d4d

View File

@@ -451,7 +451,7 @@ async def _download_archive_trades(
connector = aiohttp.TCPConnector(limit=100)
async with aiohttp.ClientSession(connector=connector, trust_env=True) as session:
# the HTTP connections has been throttled by TCPConnector
for dates in chunks(list(date_range(start, end)), 5):
for dates in chunks(list(date_range(start, end)), 30):
tasks = [
asyncio.create_task(get_daily_trades(symbol, candle_type, date, session))
for date in dates