Update crypto_analysis.py
Browse files- crypto_analysis.py +1 -1
crypto_analysis.py
CHANGED
@@ -216,7 +216,7 @@ def get_signals(symbol, start_date, end_date, interval):
|
|
216 |
|
217 |
def process_batch(symbols, start_date, end_date, interval):
|
218 |
results = []
|
219 |
-
with ThreadPoolExecutor(max_workers=
|
220 |
future_to_crypto = {executor.submit(get_signals, symbol, start_date, end_date, interval): symbol for symbol in symbols}
|
221 |
for future in as_completed(future_to_crypto):
|
222 |
symbol = future_to_crypto[future]
|
|
|
216 |
|
217 |
def process_batch(symbols, start_date, end_date, interval):
|
218 |
results = []
|
219 |
+
with ThreadPoolExecutor(max_workers=2) as executor:
|
220 |
future_to_crypto = {executor.submit(get_signals, symbol, start_date, end_date, interval): symbol for symbol in symbols}
|
221 |
for future in as_completed(future_to_crypto):
|
222 |
symbol = future_to_crypto[future]
|