Skip to content

Commit 2895c51

Browse files
authored
Fixed max_cycle is NoneType
1 parent 9f4045f commit 2895c51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

triangular_arbitrage/detector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ async def get_exchange_last_prices(exchange_name, ignored_symbols, whitelisted_s
108108
return last_prices
109109

110110

111-
async def run_detection(exchange_name, ignored_symbols=None, whitelisted_symbols=None, max_cycle=None):
111+
async def run_detection(exchange_name, ignored_symbols=None, whitelisted_symbols=None, max_cycle=10):
112112
last_prices = await get_exchange_last_prices(exchange_name, ignored_symbols or [], whitelisted_symbols)
113113
# default is the best opportunity for all cycles
114114
best_opportunity, best_profit = get_best_opportunity(last_prices, max_cycle=max_cycle)

0 commit comments

Comments
 (0)