okex fetchOpenOrders fail
See original GitHub issueconst 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:
- Created 6 years ago
- Comments:5 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
works. 👍
@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.