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.

KeyError: 'T' in ccxt.bittrex in parse_ohlcv

See original GitHub issue

Calling bittrex_service.fetch_ohlcv("CANN/BTC", "1m") raised KeyError on line:

timestamp = self.parse8601(ohlcv['T'])

where:

{
'Ask': 0.00004935, 
'BaseVolume': 112.58089677, 
'Bid': 0.00004861, 
'Created': '2017-06-06T01:22:35.727', 
'High': 0.00005269, 
'Last': 0.00004854, 
'Low': 0.00004251, 
'MarketName': 'BTC-1ST', 
'OpenBuyOrders': 242, 
'OpenSellOrders': 5837, 
'PrevDay': 0.0000456, 
'TimeStamp': '2017-11-09T11:58:32.357', 
'Volume': 2370437.89533223
}

Note that MarketName is not the same as what was requested. The market dictionary OTOH, does reflect the correct market.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
stonemonkcommented, Nov 9, 2017

I only saw it once and also haven’t been able to reproduce again. I was basically calling that periodically in a loop for data collection, and it just popped up randomly. I’ll run in verbose and in a debugger and see if I can catch it again (and debug)…

0reactions
kroitorcommented, Nov 9, 2017

I would close this for now, if you don’t mind, until we have further development on this issue. Feel free to reopen it or just continue posting if you experience problems with after setting a delay on bittrex. Thx!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Top 5 ccxt Code Examples - Snyk
To help you get started, we've selected a few ccxt examples, based on popular ways it is used in public projects. Secure your...
Read more >
ccxt · PyPI
A JavaScript / Python / PHP library for cryptocurrency trading and e-commerce with support for many bitcoin/ether/altcoin exchange markets and merchant APIs.
Read more >
ccxt - npm
A JavaScript / Python / PHP library for cryptocurrency trading and e-commerce with support for many bitcoin/ether/altcoin exchange markets and merchant APIs.
Read more >
Exchange-specific Notes - Freqtrade
Freqtrade is based on CCXT library that supports over 100 cryptocurrency exchange markets and trading APIs. The complete up-to-date list can be found...
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