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.

okex fetchOpenOrders fail

See original GitHub issue
const exchange = 'okex'
const base = 'LTC'
const quote = 'BTC'
const symbol = `${base}/${quote}`;

(async () => {
  var ex = util.getExchange(exchange)
  // const openOrders = await ex.fetchOpenOrders(symbol, { status: 'open' })
  const openOrders = await ex.fetchOpenOrders(symbol)
})()
(node:689) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: okex fetchOrders() requires type param or status param for spot market LTC/BTC (0 or "open" for unfilled orders, 1 or "closed" for filled orders)
(node:689) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
86chenjiecommented, Nov 8, 2017

works. 👍

0reactions
kroitorcommented, Nov 8, 2017

@86chenjie looks like a minor leftover again. Sorry for the inconvenience. I have uploaded the fix and tested it on my side, should work as of version 1.10.16 in approx 5 minutes.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ccxt-dev/ccxt - Gitter
and a third perhaps: Okex is giving me this 20006 error which according to this (https://www.okcoin.com/rest_request.html) is "required field missing", but I ...
Read more >
Exchanges — ccxt 2.4.71 documentation
if a request to createOrder() fails with a RequestTimeout the user should: call fetchOrders() , fetchOpenOrders() , fetchClosedOrders() to check if the ...
Read more >
Overview – OKX API guide | OKX technical support
Welcome to the OKX API guide, OKEx technical support. OKX is a leading BTC exchange with highly secure SSL encryption and cold storage...
Read more >
ccxt Documentation - Read the Docs
to ''fetchOpenOrders'' and will compare currently fetched open orders with the orders stored in cache previously.
Read more >
python/ccxt/okex.py - searchcode
/python/ccxt/okex.py ... 355 'An unexpected error occurred': ExchangeError, # {"message": "An unexpected error occurred"} 356 'System error': ExchangeError, ...
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