question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cancellation of orders does not work

See original GitHub issue

Hello, thank you for your work!

Faced a problem that when I try to cancel an order I get the following response from the API: Invalid API-key, IP, or permissions for action.

The API is set up for trading. I just created new keys just in case. I also added my IPs to Trusted IPs. test: true is not set in options. All this does not help, every time it returns the error.

The cancellation function is:

binance.cancel(symbol, orderId, (error, response, symb) => {
  if (error) {
    return console.error(`${symb} cancel error:`, error);
  }

  console.log(`${symb} cancel response:`, response);
});

symbol and orderId are correct, checked using another function to request order status.

I do not know what is not right, so I ask for help.

Thank you.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
sashamorozovcommented, Feb 28, 2018

I’m sorry, guys!!

I forgot about a function that I did not finish to store keys not in the code, but locally. And it somehow activated old keys that were set to read-only mode.

Now everything works perfectly, thanks a lot!

1reaction
jaggedsoftcommented, Feb 28, 2018

Not likely. The ban messages are specific, and most bans are only for a few minutes.

That’s interesting that the error is only happening on things that require trading permissions

Read more comments on GitHub >

github_iconTop Results From Across the Web

Canceled Order: Definition, How It Works, Types - Investopedia
Canceled orders are ones that have been submitted but are no longer in effect. These are mainly limit or stop orders that investors...
Read more >
Cancel Items and Orders - Amazon Customer Service
Go to Your Orders and select Track package, and then Cancel this delivery. If this option is not available, refuse the package or...
Read more >
Not getting option cancel order on amazon - YouTube
Not getting option cancel order on amazon | Here's how to still cancel amazon order. ... Your browser can 't play this video....
Read more >
How to Cancel Amazon Orders - Feedvisor
Canceling Orders That Have Not Been Shipped · Access the Manage Orders section, and go to View Your Orders. · Sellers can browse...
Read more >
Cancellations - Fiverr Help and Education Center
If a seller requests to cancel, the order will be automatically canceled if your buyer doesn't respond within 48 hours. Sellers: Before contacting...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found