yasinkuyu / binance-trader

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

mass-buy glitch #152

Closed kfiresmith closed 6 years ago

kfiresmith commented 6 years ago

Once again we have the problem of "no sell, only buy buy buy". I started a bot thread with the following: python2 trader.py --stop_loss 0 --symbol XVGETH --quantity 150 --profit 0.6 After running for a few minutes it wigged out completely and created no less than 15 limit buys in a span of about 15 seconds.

When this happened, it threw the following string of messages:

bl: no such table: orders
price:0.00009351 buyp:0.00009387 sellp:0.00009442-bid:0.00009386 ask:0.00009418 spread:0.34
price:0.00009351 buyp:0.00009387 sellp:0.00009442-bid:0.00009386 ask:0.00009417 spread:0.33
price:0.00009351 buyp:0.00009387 sellp:0.00009442-bid:0.00009386 ask:0.00009417 spread:0.33
price:0.00009351 buyp:0.00009354 sellp:0.00009409-bid:0.00009353 ask:0.00009417 spread:0.68
price:0.00009353 buyp:0.00009354 sellp:0.00009409-bid:0.00009353 ask:0.00009415 spread:0.66
bl: no such table: orders
price:0.00009353 buyp:0.00009355 sellp:0.00009410-bid:0.00009354 ask:0.00009415 spread:0.65
bl: no such table: orders
bl: no such table: orders
price:0.00009353 buyp:0.00009356 sellp:0.00009411-bid:0.00009355 ask:0.00009414 spread:0.63
bl: no such table: orders
price:0.00009353 buyp:0.00009357 sellp:0.00009412-bid:0.00009356 ask:0.00009414 spread:0.62
price:0.00009353 buyp:0.00009357 sellp:0.00009412-bid:0.00009356 ask:0.00009413 spread:0.61
bl: no such table: orders
bl: no such table: orders

image

Jagermeister56 commented 6 years ago

in binance-trader/db mv orders.sample.db orders.db

WeSpeakCrypto commented 6 years ago

^ Don't forget that part

kfiresmith commented 6 years ago

Yikes! Thanks @Jagermeister56, @WeSpeakCrypto !