-
Notifications
You must be signed in to change notification settings - Fork 764
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
Fix orderStatus with orderid #716
Conversation
Hey tried your fix but It's still not working |
Are you sure? It works for me. What kind of error do you get? |
Thanks for your answer, The code:
Binance code:
|
Any help would be appreciated! |
Looks like you didn't remove the line here like in the PR, though it shouldn't really matter. |
Removing it doesnt fix it. What should I do? |
Can you console.log the parameters? |
@hkjersem I finally got it working. I had to fork your repo and install the repo via npm |
Why isn't this merged ? |
@@ -3025,7 +3025,7 @@ let api = function Binance( options = {} ) { | |||
orderStatus: function ( symbol, orderid, callback, flags = {} ) { | |||
let parameters = Object.assign( { symbol: symbol }, flags ); | |||
if (orderid){ | |||
Object.assign( { orderId: orderid }, parameters ) | |||
parameters = Object.assign( { orderId: orderid }, parameters ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The parameters order was wrong, correct order is:
Object.assign( parameters, { orderId: orderid } )
more correct fix #742 |
Any updates? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works
No description provided.