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.

Warning: TypeError: binance.order is not a function

See original GitHub issue

Title

  • help

Short Description:

  • Warning: TypeError: binance.order is not a function

Platform:

  • linux

node version:

  • v10.4.0

Long descrption

  • UnhandledPromiseRejectionWarning: TypeError: binance.order is not a function

code

orderId = binance.order(side, symbol, Q, price, {type:'LIMIT'}, (error, response) => {
  if (response="{}") {
  console.log(chalk.bgRed(symbol + " : " + side + "ERROR ORDER RETURN EMPTY DATA"))
  return;
}  else  {
  console.log("Limit "+side+" response", response);
  console.log("order id: " + response.orderId);
..
}
return response.orderId
})

thank you

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
dmzoneillcommented, Jun 19, 2018

hey, they were some recent changes to constructor.

specifically

const binance = new Binance();

how are you instantiating?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Node.js basic error: Uncaught TypeError: Binance is not a ...
const client = new Binance();. but I get another error saying Binance is not a constructor. This is the function declaration in the...
Read more >
How to Resolve Order Issues - Binance
Issues like the inability to cancel your orders or coins not being credited to your account require further support. Please contact our Customer ......
Read more >
JavaScript & Node.js Tutorials Examples of binance-api-node
Best JavaScript code snippets using binance-api-node(Showing top 15 results out ... return } else { log(logSymbols.warning, chalk.gray("MARKET ORDER NOT YET ...
Read more >
TypeError: binance.options is not a function - Bountysource
Unable to run getting started code, running the code will return message 'TypeError: binance.options is not a function'.
Read more >
A Complete Guide to Winston Logging in Node.js - Better Stack
log file ( warn and error levels in this case). A common need that Winston does not enable by default is the ability...
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