mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 08:33:07 +00:00
chore: start downloads in 1m batches
This commit is contained in:
@@ -451,7 +451,7 @@ async def _download_archive_trades(
|
|||||||
connector = aiohttp.TCPConnector(limit=100)
|
connector = aiohttp.TCPConnector(limit=100)
|
||||||
async with aiohttp.ClientSession(connector=connector, trust_env=True) as session:
|
async with aiohttp.ClientSession(connector=connector, trust_env=True) as session:
|
||||||
# the HTTP connections has been throttled by TCPConnector
|
# 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 = [
|
tasks = [
|
||||||
asyncio.create_task(get_daily_trades(symbol, candle_type, date, session))
|
asyncio.create_task(get_daily_trades(symbol, candle_type, date, session))
|
||||||
for date in dates
|
for date in dates
|
||||||
|
|||||||
Reference in New Issue
Block a user