CyberPunkMetalHead / binance-trading-bot-new-coins

This Binance trading bot detects new coins as soon as they are listed on the Binance exchange and automatically places sell and buy orders. It comes with trailing stop loss and other features. If you like this project please consider donating via Brave.
MIT License
1.46k stars 269 forks source link

Ran execpt block for lot_size. "TypeError: argument of type 'int' is not iterable" #6

Closed Varingon closed 2 years ago

Varingon commented 2 years ago

New coins detected: [{'symbol': 'TRIBEBTC', 'price': '0.00002194'}, {'symbol': 'TRIBEBNB', 'price': '0.00220000'}, {'symbol': 'TRIBEBUSD', 'price': '1.09470000'}, {'symbol': 'TRIBEUSDT', 'price': '1.07700000'}] New coin detected, but TRIBEBTC is currently in portfolio, or pairing is not USDT New coin detected, but TRIBEBNB is currently in portfolio, or pairing is not USDT New coin detected, but TRIBEBUSD is currently in portfolio, or pairing is not USDT Preparing to buy TRIBEUSDT ran exept block for lot_size Traceback (most recent call last): File "main.py", line 194, in main() File "main.py", line 153, in main volume = convert_volume(coin, qty, price) File "/binance/trade_client.py", line 29, in convert_volume if coin not in lot_size: TypeError: argument of type 'int' is not iterable

ghost commented 2 years ago

Yeah, this issue is being caused by line 21 in trade_client.py. It should say something like lot_size = {} not lot_size = 0.

CyberPunkMetalHead commented 2 years ago

fixed :)