Bittrex: Cannot read property 'quote' of undefined
See original GitHub issueHi!
Since today i’m getting an error when fetching my order history from Bittrex. It was working great last night, but when I woke up I got an error:
TypeError: Cannot read property 'quote' of undefined
[1] at bittrex.parseOrder (/Users/jordy/Projects/coinaly/node_modules/ccxt/js/bittrex.js:511:35)
[1] at Object.values.map.order (/Users/jordy/Projects/coinaly/node_modules/ccxt/js/base/Exchange.js:763:64)
[1] at Array.map (<anonymous>)
[1] at bittrex.parseOrders (/Users/jordy/Projects/coinaly/node_modules/ccxt/js/base/Exchange.js:763:45)
[1] at bittrex.fetchOrders (/Users/jordy/Projects/coinaly/node_modules/ccxt/js/bittrex.js:579:27)
[1] at <anonymous>
[1] at process._tickCallback (internal/process/next_tick.js:188:7)
I did not change anything code wise during that period, so my guess is Bittrex has changed something in the order response. But i can’t figure out what.
The problem lies here:
/node_modules/ccxt/js/bittrex.js
if (commission) {
fee = {
'cost': parseFloat (order[commission]),
'currency': market['quote'],
};
}
The last market
in the loop is undefined
- OS: Linux & Mac OS X (10.13.2)
- Programming Language version: NodeJS 8.9.3
- CCXT version: 1.10.682 (latest as of writing this issue)
- Exchange: Bittrex
- Method:
exchange.fetchOrders()
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Cannot read property 'Available' of undefined - Gunthy - Forum
Any thoughts? Running the Xmas build on Bittrex. The Bittrex website is playing up a little and not loading pages so possibly an...
Read more >Uncaught TypeError: Cannot read property 'quote' of ...
It made it possible to have an index that was out of range, returning undefined . function getRandomQuote() { return ...
Read more >getting "TypeError: Cannot read property 'quote' of undefined ...
getting "TypeError: Cannot read property 'quote' of undefined" The terminal shows the error at app. js 22:23 (Example) | Treehouse Community.
Read more >Exchanges — ccxt 2.4.71 documentation
Every exchange has a set of properties and methods, most of which you can ... use the default one, set this value to...
Read more >ccxt Documentation - Read the Docs
To let ccxt know of the proxy, you can set the proxy property on your exchange instance. 56. Chapter 5. CORS (Access-Control-Allow-Origin) ...
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 Free
Top 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
Awesome man, it’s working again! Hero 😃
Ok, thanks for reporting! Can you please update to version 1.10.684 and retry again with your usual code? Let us know if it works for you or not, please. Standing by for your reply.