hummingbot: Mexc - Failed to cancel order appears when partial fills happened

Describe the bug

There is an issue observed with MEXC connector, if the order was partially filled and Humming bot canceled it - then it cannot fetch status update on this order.

Failed to cancel order <order id> error appears in log Error fetching status update for the lost order ... Partially Cancelled

I would appreciate if anyone can fix it. MEXC is growing exchange and connector deserves to be GOLD 😃

Steps to reproduce

  1. connect to MEXC
  2. using pure_market_making create some orders on any paid
  3. wait when one of order will be partially filled and bot will attempt to cancel it
  4. -> here comes the error

Release version

1.21.0

Type of installation

Docker

Attach required files

logs_MM_JOY_test.log

About this issue

  • Original URL
  • State: closed
  • Created 7 months ago
  • Comments: 17 (12 by maintainers)

Most upvoted comments

@rapcmia @fengtality @nikspz I talked with @leetjoy and he wants to fund this bounty. I think that has to be considered as P2 and the solution should include:

  • cancel order method --> Review how the order is processed when sending the cancelation. (specially when having partial fills)
  • evaluate the solution proposed in this PR https://github.com/hummingbot/hummingbot/pull/6584/files for the methods: _is_order_not_found_during_status_update_error _is_order_not_found_during_cancelation_error

Once the connector solution is ready we have to validate it by running a bot for > 1 day without issues

Fix has been deployed to release version 1.23.0

https://hummingbot.org/bounties/sponsors/ Okay, then to validate this as P2 Bounty (50k HBOT) it should be funded with 55k HBOT (50k +10%) or 133USDC (111 USDC +20%) using these wallets: https://hummingbot.org/bounties/sponsors/#foundation-bounty-wallets