-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mexc watchOrders bug #23231
Comments
If you register listenKey, everything works fine. |
The error occurs because I run 2 private methods at the same time. And this check is passed 2 times => listenKey is received 2 times. Now I will try to delay the launch of watchOrders and some other private method, it should solve my problem.
|
I created a temporary fix for the authenticate method by adding listenKeyProcess. If a listenKey is being obtained, any new requests for it are delayed. Perhaps someone can implement a more elegant solution.
|
@little-bit-time Can you paste code that we can reproduce this locally (please remove any sensitive information)? |
Operating System
debian
Programming Languages
JavaScript
CCXT Version
4.3.68
Description
Hi, help me fix the error.
I have 3 spot orders on mexc. I change the price via a web browser. I receive two messages. The first one is about order cancellation, and the second one is about creating an order with a new price. But in watchOrders() I only see the first message about order exchange.
After analyzing, I found out.
Tell me how to fix it? I suspect that the code is to blame. listenKey is constantly updated, although if you look at the logic of this.authenticate, it should remember and reuse.
Code
The text was updated successfully, but these errors were encountered: