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.

Missing 'date' key in RightBTC fetchTicker response

See original GitHub issue

Python 3.7 Latest CCXT Exchange RightBTC Method fetchTickers

  File "/mnt/c/Users/Ahmed Bodiwala/Desktop/Exchanger/exchanges/jobs.py", line 124, in find_exchange_market_tickers
    ticker = api.fetchTicker(marketId)
  File "/mnt/c/Users/Ahmed Bodiwala/Desktop/Exchanger/lib/python3.7/site-packages/ccxt/rightbtc.py", line 242, in fetch_ticker
    return self.parse_ticker(response['result'], market)
  File "/mnt/c/Users/Ahmed Bodiwala/Desktop/Exchanger/lib/python3.7/site-packages/ccxt/rightbtc.py", line 206, in parse_ticker
    timestamp = ticker['date']
KeyError: 'date'

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
ahmedbodicommented, Jun 12, 2019

yeah thats fine, just something that should be thrown in CCXT

1reaction
ahmedbodicommented, Jun 12, 2019

ahh i see why its doing that

[2019-06-12 03:34:56,204: WARNING/MainProcess] None
[2019-06-12 03:34:56,212: WARNING/MainProcess] Response:
[2019-06-12 03:34:56,215: WARNING/MainProcess] GET
[2019-06-12 03:34:56,215: WARNING/MainProcess] https://www.rightbtc.com/api/public/ticker/GBTETP
[2019-06-12 03:34:56,216: WARNING/MainProcess] 200
[2019-06-12 03:34:56,216: WARNING/MainProcess] {'Date': 'Wed, 12 Jun 2019 02:34:56 GMT', 'Content-Type': 'application/json;charset=UTF-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Server': 'nginx/1.12.2', 'Access-Control-Allow-Headers': 'Origin,X-Requested-With,Content-Type,Accept,token,x-access-token, Cache-Control', 'Access-Control-Allow-Methods': 'GET,POST,PUT,DELETE', 'Access-Control-Allow-Credentials': 'true', 'Client_ip': '77.98.170.221', 'Access-Control-Expose-Headers': 'Client_ip'}
[2019-06-12 03:34:56,217: WARNING/MainProcess] {"status":{"success":1,"message":null},"result":{}}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Does watchTicker/watchTickers return the same structure as ...
My question is if "fetchTickers" -> "watchTickers" returns the same object in Python (Dict) ❓ . With the following keys.
Read more >
Add missing dates to pandas dataframe - Stack Overflow
I take these events, get a count by date and plot them. However, when I plot them, my two series don't always match....
Read more >
Solved: Search for missing dates and values
Here it is,. I have named these 2 tables as A and B. First create a calculated column in the first Table shown...
Read more >
Solved: Show 0 for missing dates - Qlik Community - 1509337
I made adjustments to your OccurenceCount expression and presented an alternative solution using the alt() function. NewTable: Load DateKey. Resident Calendar;
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