chrisleekr / binance-trading-bot

Automated Binance trading bot - Trade multiple cryptocurrencies. Buy low/sell high with Grid Trading. Integrated with TradingView technical analysis
MIT License
5k stars 1.09k forks source link

Manually deleted Buy Order Still listed in UI #198

Closed laoistom closed 3 years ago

laoistom commented 3 years ago

Version - Running Version:

v0.0.66 (e634670) Latest Version: v0.0.66

Description

I accidentally added PAXUSDT (Paxos Stable Coin) as a trading pair and the bot triggered a buy order. I removed PAXUSDT from my list of trading pairs but the buy order remained in the UI. I then manually deleted the buy order in Binance but the Order still remained in the Bot UI. I have restarted the docker-compose stack but the PAXUSDT order still remains in the UI.

To Reproduce

  1. Add PAXUSDT as a trading pair
  2. Bot triggers a BUY Order
  3. Remove PAXUSDT from trading Pair List
  4. Manually remove PAXUSDT Buy Order from the Trades tab in Binance
  5. image

Expected Behaviours

Once removed from trading Pair the Bot would have removed the BUY order and cleared the BUY order from the Bot UI

Screenshots

Additional context

chrisleekr commented 3 years ago

Hi @laoistom

If you remove the last buy price, then you are able to remove non-monitoring coins.

It's intended behaviour to prevent accident remove of the last buy price.

Please close the issue if your question is answered.

laoistom commented 3 years ago

I've set the last buy price to 0 and removed the PAXUSDT coin from my trading pairs but the order still shows up on the Bot UI. Do you think a restartof the docker stack would remove it?

image

chrisleekr commented 3 years ago

Simply put the symbol back to the monitoring coin list and wait for few seconds. It will refresh the open orders and the remove button will appear. After that, you can remove the symbol from the monitoring list. If it appears again, just remove it.

laoistom commented 3 years ago

Ok I've done that and almost immediately it placed a buy order. I've changed the last buy price to 0 and have been waiting now about 10 minutes but I don't see a remove button.

Where should it show up, under the buy order itself or somewhere else in the UI?

chrisleekr commented 3 years ago

@laoistom

Ok I've done that and almost immediately it placed a buy order.

Change your setting or disable buy.

Where should it show up, under the buy order itself or somewhere else in the UI?

image

laoistom commented 3 years ago

Ok. I'll try again but I'm not getting that option. Leave it woth me

chrisleekr commented 3 years ago

@laoistom that is very strange.

So you don't have open orders and no last buy price, but the remove button is not showing? Are you able to take a video of that behaviour?

laoistom commented 3 years ago

Yeah sure. I've tried to attach the video here but it won't upload. Have you any way I can send it over

laoistom commented 3 years ago

I added PAXUSDT again and disabled the buy and sell options on the coin directly and now I'm getting the remove option. Thanks for helping out. This issue can now be closed.

image

laoistom commented 3 years ago

Issue resolved after I added PAXUSDT back to my monitored coin pairs and then disabling the Buy and Sell signal on the coin itself. After a few seconds the remove button appeared and I was abl to remove it from the UI.