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

different values for same timestamp #10

Open
logicminds opened this issue Sep 15, 2020 · 0 comments
Open

different values for same timestamp #10

logicminds opened this issue Sep 15, 2020 · 0 comments
Assignees
Labels

Comments

@logicminds
Copy link

logicminds commented Sep 15, 2020

Great work on this project. Awesome!

Given a timestamp, I am getting different values which appear to be the current value instead of the historical one. My expectation is that I would get the same value back every time for the given timestamp.

[3] pry(#<Crossbelt::Stats::CryptoRates>)> timestamp
=> 2020-09-14 17:46:03 -0700
[4] pry(#<Crossbelt::Stats::CryptoRates>)> timestamp.to_i
=> 1600130763
[5] pry(#<Crossbelt::Stats::CryptoRates>)> Cryptocompare::PriceHistorical.find(coin, 'USD', 'ts' => timestamp.to_i.to_s)
=> {"ETH"=>{"USD"=>376.85}}
[6] pry(#<Crossbelt::Stats::CryptoRates>)> Cryptocompare::PriceHistorical.find(coin, 'USD', 'ts' => timestamp.to_i)
=> {"ETH"=>{"USD"=>378}}
[7] pry(#<Crossbelt::Stats::CryptoRates>)> Cryptocompare::PriceHistorical.find(coin, 'USD', 'ts' => timestamp.to_i)
=> {"ETH"=>{"USD"=>377.1}}
[8] pry(#<Crossbelt::Stats::CryptoRates>)> 

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

No branches or pull requests

2 participants