yasinkuyu / binance-trader

💰 Cryptocurrency Trading Bot for Binance (Experimental)
2.49k stars 824 forks source link

UboundLocalError #228

Open chhudson opened 6 years ago

chhudson commented 6 years ago

image

I only have this screenshot...sorry.

OS: Windows 10 Python 3.6

Maathouse commented 6 years ago

I read this as that the bot tries to sell a given balance but that isn't available so it fails to create a sell order. Then you want to check the sell_status variable but since it doesn't exist, it fails.

Generally it means that you want to get a variable (sell_status) before its created. It probably has to do with the message that your balance is insufficient in the first place.

Hope that helps