api – Find out how to fetch BTC value information utilizing Unix timestamp as precisely as doable?

on

|

views

and

comments


I’m attempting to fetch BTC historic information utilizing a unix timestamp. I’m searching for information correct to 1 minutes interval not less than.

Is there an API that present this? Cryptocompare gives this facility however just for day by day costs so virtually all returns might be similar over shorter durations. Is there a approach to make use of ChainLink oracles provided that I should not have the roundIds however solely timestamps.

btc_prices = requests.get("https://min-api.cryptocompare.com/information/pricehistorical",
params={'fsym': "BTC", 'tsyms': "USD", 'ts': ts, 'api_key':'xxxx',}).json()['BTC']['USD']

the place ts is these timestamps [1629927751, 1629928063, 1629928372, 1629928684, 1629928993]

Consequence:

0    48996.44
1    48996.44
2    48996.44
3    48996.44
4    48996.44

Share this
Tags

Must-read

Waymo raises $16bn to gas international robotaxi enlargement | Know-how

Self-driving automobile firm Waymo on Monday stated it raised $16bn in a funding spherical that valued the Alphabet subsidiary at $126bn.Waymo co-chief executives...

Self-driving taxis are coming to London – ought to we be anxious? | Jack Stilgoe

At the top of the nineteenth century, the world’s main cities had an issue. The streets had been flooded with manure, the unintended...

US regulators open inquiry into Waymo self-driving automobile that struck youngster in California | Expertise

The US’s federal transportation regulator stated Thursday it had opened an investigation after a Waymo self-driving car struck a toddler close to an...

Recent articles

More like this

LEAVE A REPLY

Please enter your comment!
Please enter your name here