yasinkuyu / binance-trader

💰 Cryptocurrency Trading Bot for Binance (Experimental)
2.51k stars 826 forks source link

"bl: no such table: orders" & "account has insufficient balance" (all buy, no sell) #177

Closed TonoIdo closed 6 years ago

TonoIdo commented 6 years ago

I download the current trader, run it, and I get the following error: error 1

I thought I would work around it by moving the contents of the '/app' folder out to the main folder, then going into trader.py and changing sys.path.insert(0, './app') from Trading import Trading to sys.path.insert(0, './') from Trading import Trading But then I get this error: error 2

So I move the orders.db file out into the main folder, go into database.py, and change '../db/orders.db') to '../orders.db'.

Then the program runs, but I get bl: no order tables whenever it tries to buy and account has insufficient balance whenever it tries to sell. error 3 On the actual binance account, the buy orders go through fine, but then the program nevers sells. Also I noticed an Orders.db file was created out in the downloads folder, but it then never gets used/edited.

rickdeaconx commented 6 years ago

Try to buy some BNB to do the transactions or disable that feature in Binance account settings

TonoIdo commented 6 years ago

@rickdeaconx Tried both. No effect. I'm pretty sure this is some issue with those file paths and the folders. It's like the program can't access files outside the base folder. So anything in /app or /db is off limits. And consolidating the files into one big folder generates issues.

rickdeaconx commented 6 years ago

Copying the files change R/W permissions?

TonoIdo commented 6 years ago

Just tried Git to clone the repo rather than downloading and extracting a .zip. Now the program runs without me restructuring the files/folders. But I get the same errors. This time with bl: orderid following the insufficient balance whenever it tries to sell (and it still doesn't actually sell): screen shot 2018-01-29 at 6 17 13 pm

rickdeaconx commented 6 years ago

BNB fixed that error for me, sorry.

TonoIdo commented 6 years ago

Wait, wait, I'm an idiot. After the git clone, I forgot to rename orders.sample.db to orders.db. I've done that and the trader finally seems to be running fine with no issues. Praise be to @rickdeaconx! I shall sacrifice a goat in your name