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.

Bittrex: Cannot read property 'quote' of undefined

See original GitHub issue

Hi!

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:closed
  • Created 6 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jvandenaardwegcommented, Jan 13, 2018

Awesome man, it’s working again! Hero 😃

1reaction
kroitorcommented, Jan 13, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

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