Author

Topic: [IDEA] - Price of BTC at specific point in time (Read 1196 times)

full member
Activity: 588
Merit: 107
CoinCPA.com is moving in this direction.   This post prompted us to accelerate our release of this API.

Here is an example call.  I have changed my API Key, so you'll need to get your own.  Right now the API is free, just sign up for a 30 day account.
Go to 'Account Settings' and then 'Settings' to activate and retrieve your own API Key.

https://coincpa.com/api/get_coin_value_by_date?apikey=AK533c3be6e4bbc5675cd54da2&coincode=BTC&date=2009-01-03¤cy=USD

We support roughly 80 crypto currencies like BTC, IFC, LTC, DOGE, etc.

We have conversions to these fiat currencies:

US Dollar   USD
Euro   EUR
British Pound   GBP
Chinese Yuan Renminbi   CNY
Japanese Yen   JPY
Australian Dollar   AUD
Canadian Dollar   CAD
Swiss Franc     CHF
Singapore Dollar   SGD
Hong Kong Dollar   HKD


The conversions are done using the Forex market information on the date requested so it takes into account not just the USD value of the coin on the date, but the currency conversion ratios for that date as well.

Our data goes back to the beginning of Bitcoin (1/3/2009) for Bitcoin even when the value was 0.00, and most other coins we support go back to the beginning of this year or earlier.  We have another API call (get_capabilities) that will tell you the date at which we have market data for a specific coin.

Our API documentation is here:
https://coincpa.com/api_docs

The documentation for this specific API call is here:
https://coincpa.com/api_docs?api_id=15

You can pass in a date, a crypto-currency code like BTC, LTC, DOGE, IFC, etc., a fiat code like EUR, JPY, CNY, GBP, and we'll give you the value of the coin on the date you entered.

If you want just the value, and not the JSON with success code, message, value, etc, then also tack on '&raw', and CoinCPA will just give you the value.

Please do not abuse this API.  We will turn off API Keys that abuse it.

We may charge for this API in the future, or it may continue to be free, but for now any account holder can get a free API Key and use the API.

If you are an investor with an interest in CoinCPA, please PM me.

If you have historic coin value data that pre-dates ours, please PM me as we would love to provide a more complete history.

If you track more than one or two coins, try us out.  We go way beyond the spreadsheet and track your crypto-currency value in real-time with notifications.

Don't see your favorite coin on our system, come vote - we add coins with community support:
https://coincpa.com/coinvote

We are working on some interesting things, so follow us on Twitter @CoinCPA or on Facebook.

Tron
CoinCPA
https://CoinCPA.com













sr. member
Activity: 350
Merit: 250
★YoBit.Net★ 350+ Coins Exchange & Dice
Something like this? http://fliblog.co.uk/historicaldata.php

so far just USD but it wouldnt be hard to convert to other currencies.

no error checking or anything fancy, just knocked it up in 5 minutes.

WiW
sr. member
Activity: 277
Merit: 250
"The public is stupid, hence the public will pay"
Sitting here with Ron talking about it. This actually arose from the fact that I get my paycheck based on the fiat-average over a span of time. E.g. if my paycheck is 1 dollar / day, and I want to know how much I am to be paid for the last week, I would need to measure the weighted average of the USD exchange rate over the last week multiplied by 7.

I'm expecting the user to input:
Her local currency
Her salary in local currency per day
Beginning and ending dates

The user gets:
Her paycheck in BTC, based on the fiat-average exchange rate of the relevant dates.
legendary
Activity: 1358
Merit: 1003
Ron Gross
I believe this doesn't exist yet: A website (and API) that lets you input a specific date (or date+time), and a currency e.g. USD, and get the historic price at that time.

There are some ways of doing this e.g. via investing.com, but no simple, clean website that is dedicated for this specific task.

Again I'll state the interface - the inputs are:

1. Date
2. Currency

And the output is price of 1 BTC at that time.
No more, no less.

Any takers on implementing the idea?
Jump to: