1

I need a simple API that provides historical XTZ price against fiat currencies like USD and EUR, or other cryptocurrencies like BTC.

Ideally I just need to compose an HTTP GET request with a date/time and the pair (i.e. XTZ/EUR) and get back the price at that moment in time.

The source of the data should be from a well established exchange (Binance, Coinbase, etc) or an oracle like Chainlink or Harbinger.

2 Answers 2

2

I use the coingecko api, docs found here


Some sample GET requests:
2

You may check the Kline/Candlestick data API from Binance.

So, for example to get the prices since last 24 hours, it will look like: https://api.binance.com/api/v3/klines?symbol=XTZUSDT&interval=1d&limit=1000

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.