<p>CryptoCompare has <a href="https://github.com/rotkehlchenio/rotkehlchen/issues/221" rel="nofollow noreferrer">been known</a> to sometimes present inaccurate data in US dollars when complex conversions happen.</p>

<p>For instance, if during the date you queried the BTC to some other reference coin price oscillated, the Bitcoin to altcoin price may have had <strong>a low price in Satoshis</strong> but the <em>Dollar quote</em> to one of the coins (BTC or the reference altcoin) could've been higher at that particular moment. So the Satoshi price could've been the daily low but the Dollar price could've been a bit higher. Note that in late 2017 there were wild intraday USD price oscillations.</p>

<p>The 2nd data item, where you spotted the bug, happened on 10/06/2017 @ 12:00am (UTC) when Bitcoin prices were at around U$ 4324, which doesn't match anywhere close to the quote you got there. So there's some conversion going on indicated by ...</p>

<pre><code>"ConversionType":{"type":"multiply" ...
</code></pre>

<p>...in the JSON data, which you didn't specify in your question. That applied conversion and its relation to the US dollar are the keys to fixing the bug in your program.</p>

CC BY-SA 4.0
2019-10-12T15:38:11.340Z
2019-10-12T15:48:41.473Z
2019-10-12T15:48:41.473Z
Jose Fonseca
<p>I am trying to use CryptoCompare to get historical daily OHLC data, but the data I get seems to be wrong. For example, the following query (timestamp=1507248000) will give you data where 'open' (66.43 USD) is less than 'low' (68.88 USD):
<a href="https://min-api.cryptocompare.com/data/histoday?fsym=MLN&amp;tsym=USD&amp;limit=1&amp;aggregate=1&amp;toTs=1507248000" rel="nofollow noreferrer">https://min-api.cryptocompare.com/data/histoday?fsym=MLN&amp;tsym=USD&amp;limit=1&amp;aggregate=1&amp;toTs=1507248000</a></p>

<p>Am I missing something or is CryptoCompare really unreliable?</p>

<api><historical-trade-data>
CryptoCompare API gives wrong historical daily OHLC data
Ali Mustafa
# CryptoCompare API gives wrong historical daily OHLC data

(Asked by: username_0 on 2019-10-10)

I am trying to use CryptoCompare to get historical daily OHLC data, but the data I get seems to be wrong. For example, the following query (timestamp=1507248000) will give you data where 'open' (66.43 USD) is less than 'low' (68.88 USD):
<https://min-api.cryptocompare.com/data/histoday?fsym=MLN&tsym=USD&limit=1&aggregate=1&toTs=1507248000>

Am I missing something or is CryptoCompare really unreliable?

**Tags:** api, historical-trade-data


---

## 1 answers

### Answer by username_1 on 2019-10-12. Score: 1

CryptoCompare has [been known](https://github.com/rotkehlchenio/rotkehlchen/issues/221) to sometimes present inaccurate data in US dollars when complex conversions happen.

For instance, if during the date you queried the BTC to some other reference coin price oscillated, the Bitcoin to altcoin price may have had **a low price in Satoshis** but the *Dollar quote* to one of the coins (BTC or the reference altcoin) could've been higher at that particular moment. So the Satoshi price could've been the daily low but the Dollar price could've been a bit higher. Note that in late 2017 there were wild intraday USD price oscillations.

The 2nd data item, where you spotted the bug, happened on 10/06/2017 @ 12:00am (UTC) when Bitcoin prices were at around U$ 4324, which doesn't match anywhere close to the quote you got there. So there's some conversion going on indicated by ...

```
"ConversionType":{"type":"multiply" ...

```

...in the JSON data, which you didn't specify in your question. That applied conversion and its relation to the US dollar are the keys to fixing the bug in your program.


---

