<p>You can use winkdex.com api, it accepts a unix timestamp as a parameter.
<a href="http://docs.winkdex.com/#price" rel="nofollow noreferrer">http://docs.winkdex.com/#price</a></p>

CC BY-SA 3.0
2017-03-14T18:48:09.170Z
It says that price is "The value of the WinkDex at the requested time in 0.01 USD". What is the value of WinkDex and what does it have anything to do with Bitcoin?
Aqqqq
CC BY-SA 3.0
2017-03-14T20:15:44.883Z
WinkDex is a bitcoin price index. It takes the information from several of the largest bitcoin exchanges and consolidates it into an average price.
presstab
CC BY-SA 3.0
2017-03-15T20:17:31.590Z
The timestamp has an entry like: 2017-03-15T08:05:00Z. Am I correct that Z represent that the time is in UTC? What does the "T" in the middle mean?
Aqqqq
CC BY-SA 3.0
2017-03-16T07:33:55.867Z
@Aqqqq it's the ISO 8601 format. The T seems to act as a delimiter to separate the date and time. There's a whole wikipedia page dedicated to this time format: https://en.wikipedia.org/wiki/ISO_8601 . Z does indicated UTC time.
Abdussamad
CC BY-SA 3.0
2017-03-14T17:29:26.137Z
2017-03-14T17:29:26.137Z
presstab
<p>In addition to the answers already given, the <a href="https://coinmarketcap.com/api/documentation/v1/#operation/getV2CryptocurrencyQuotesHistorical" rel="nofollow noreferrer">CoinMarketCap API endpoint</a> allows you to fetch a whole set of data points at once for a given time range.</p>

CC BY-SA 4.0
2022-12-20T21:32:07.863Z
2022-12-20T21:32:07.863Z
Jivan Pal
<p>I would also like the the result to be precise to hour (or minute).</p>

<p>It is for a java program.</p>

<p>I have looked around, but the service I have found could not satisfy my need:
<a href="http://www.coindesk.com/api/" rel="nofollow noreferrer">http://www.coindesk.com/api/</a>: only precise to date</p>

<p><a href="https://api.coinbase.com/v1/prices/historical?page=1" rel="nofollow noreferrer">https://api.coinbase.com/v1/prices/historical?page=1</a> (from <a href="https://community.coinbase.com/t/past-bitcoin-exchange-rates/1725" rel="nofollow noreferrer">https://community.coinbase.com/t/past-bitcoin-exchange-rates/1725</a>): need to adjust page number to find the desired time (at which one wants the value of exchange rate)</p>

<p><a href="http://api.bitcoincharts.com/v1/csv/" rel="nofollow noreferrer">http://api.bitcoincharts.com/v1/csv/</a>: I am not exactly sure what it does, but it seems that one needs to download different files from this site containing "USD" in the file names, check in all the files before finding the desired time  </p>

<api><exchange-rate>
Is there an API with which I could obtain the exchange rate of bitcoin to dollar some time in the past by giving the desired time as parameter?
Aqqqq
# Is there an API with which I could obtain the exchange rate of bitcoin to dollar some time in the past by giving the desired time as parameter?

(Asked by: username_0 on 2017-03-13)

I would also like the the result to be precise to hour (or minute).

It is for a java program.

I have looked around, but the service I have found could not satisfy my need:
<http://www.coindesk.com/api/>: only precise to date

<https://api.coinbase.com/v1/prices/historical?page=1> (from <https://community.coinbase.com/t/past-bitcoin-exchange-rates/1725>): need to adjust page number to find the desired time (at which one wants the value of exchange rate)

<http://api.bitcoincharts.com/v1/csv/>: I am not exactly sure what it does, but it seems that one needs to download different files from this site containing "USD" in the file names, check in all the files before finding the desired time

**Tags:** api, exchange-rate


---

## 2 answers

### Answer by username_1 on 2017-03-14. Score: 0

You can use winkdex.com api, it accepts a unix timestamp as a parameter.
<http://docs.winkdex.com/#price>

> **Comments:**
> **username_0**: It says that price is "The value of the WinkDex at the requested time in 0.01 USD". What is the value of WinkDex and what does it have anything to do with Bitcoin?  
> **username_1**: WinkDex is a bitcoin price index. It takes the information from several of the largest bitcoin exchanges and consolidates it into an average price.  
> **username_0**: The timestamp has an entry like: 2017-03-15T08:05:00Z. Am I correct that Z represent that the time is in UTC? What does the "T" in the middle mean?  
> **username_2**: @username_0 it's the ISO 8601 format. The T seems to act as a delimiter to separate the date and time. There's a whole wikipedia page dedicated to this time format: https://en.wikipedia.org/wiki/ISO_8601 . Z does indicated UTC time.  

---

### Answer by username_3 on 2022-12-20. Score: 0

In addition to the answers already given, the [CoinMarketCap API endpoint](https://coinmarketcap.com/api/documentation/v1/#operation/getV2CryptocurrencyQuotesHistorical) allows you to fetch a whole set of data points at once for a given time range.


---

