Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing values in currency historical ticker #3

Open
huofu opened this issue Aug 20, 2018 · 0 comments
Open

Missing values in currency historical ticker #3

huofu opened this issue Aug 20, 2018 · 0 comments

Comments

@huofu
Copy link

huofu commented Aug 20, 2018

I found missing values of the historical ticker, did anyone encounter such problem?

In [99]: temp = cmc.get_ticker_historical('bitcoin')
In [100]: temp.keys()
Out[100]: dict_keys(['price_btc', 'market_cap_by_available_supply', 'volume_usd', 'price_usd'])
In [101]: len(temp['price_usd'])
Out[101]: 1924
In [102]: temp['price_usd'][0]
Out[102]: ['2013-04-29 02:47:21', 135.3]
In [103]: temp['price_usd'][-1]
Out[103]: ['2018-08-20 15:19:19', 6461.89]
In [104]: pd.date_range('2013-04-29', '2018-08-20').size
Out[104]: 1940

Dates with Missing Values
2013-06-04 NaN
2013-11-29 NaN
2014-02-12 NaN
2014-03-29 NaN
2014-05-24 NaN
2014-06-28 NaN
2014-07-04 NaN
2014-07-07 NaN
2014-10-01 NaN
2014-12-12 NaN
2014-12-13 NaN
2015-04-01 NaN
2015-06-13 NaN
2015-09-18 NaN
2016-02-05 NaN
2017-06-27 NaN
2017-07-24 NaN

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant