yasinkuyu / binance-trader

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

Error when order is partially filled #200

Open Maathouse opened 6 years ago

Maathouse commented 6 years ago

Hi!

I'm getting an error when my order is partially filled. The bot stops after and does not sell it again nor does it cancel the remaining buy-order.

partially filled2

It tried it with (see the bold addition):

elif buy_order['status'] == 'PARTIALLY_FILLED' and buy_order['side'] == "BUY": print ("Buy order partially filled... Wait 1 more second...") if quantity < 0.00105:
self.cancel(symbol, orderId)
print ("Buy order fail (Not filled) Cancel order...")
self.order_id = 0 self.bot_status = "sell"
quantity = self.check_partial_order(symbol, orderId, sell_price)

But it doesn't seem to work, getting an PRICE FILTER error. I've followed a small python course but I'm far from expert.

Any suggestions?

Thanks in advance!

Maathouse