binance-trader
binance-trader copied to clipboard
Buy order filled but never sells and just loops
Here is what happens...
Buy order created id:6958814, q:200.00000000, p:0.00000560 Buy order filled... Try sell... Sell order create id: 6958819 Buy order filled... Try sell... Sell order create id: 6958820 Buy order filled... Try sell... Sell order create id: 6958821 Buy order filled... Try sell... Sell order create id: 6958822 Buy order filled... Try sell... Sell order create id: 6958823 Buy order filled... Try sell... Sell order create id: 6958824 Buy order filled... Try sell...
...and then I have to cancel it before it says "insufficient balance".
Parameters are "trader.py --symbol XXXBTC --profit 0.5 --quantity 200 --amount 0.01 --wait_time 1.5"
I've tried no wait time. I have tried only quantity. I have tried only amount. (during separate times)
Any other ideas or thoughts? Maybe need to change some code around?
Another thing I realised is that, it keeps creating a new sell order in the loop.
Seems like it needs to keep the original order_id
It just trying to sell your order,but the price is going lower.I bet your stop_loss=0, so it will try to sell till "WIN":D if you put stop_loss=5 for insance, it would sell your order at market price if it drops by 5%.
Thanks for responding...
stop_loss = 0 yes
so I changed to 5 with same results. changed to 10 with same results.
Any other ideas?