Skip to content

Commit

Permalink
Fix for #176. Bot buying more than MAX_COINS (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
amitman3 authored Jun 6, 2021
1 parent eda6beb commit 8392f54
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Binance Detect Moonings.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@ def wait_for_price():
exnumber = 0

for excoin in externals:
if excoin not in volatile_coins and excoin not in coins_bought and (len(coins_bought) + exnumber) < MAX_COINS:
if excoin not in volatile_coins and excoin not in coins_bought and \
(len(coins_bought) + exnumber + len(volatile_coins)) < MAX_COINS:
volatile_coins[excoin] = 1
exnumber +=1
print(f'External signal received on {excoin}, calculating volume in {PAIR_WITH}')
Expand Down

0 comments on commit 8392f54

Please sign in to comment.