Free INR premium API
Static JSON files with our computed India Crypto Price Index: the premium Indian exchanges (WazirX, CoinDCX, ZebPay) charge for BTC and USDT over the global price converted at USD/INR. No API key, CORS enabled, free for any use under CC BY 4.0.
Endpoints
- https://btcmedia.news/api/v1/inr-premium/latest.json
Latest 15-minute sample: USD/INR, global BTC and USDT in INR, and the premium on each Indian exchange.
- https://btcmedia.news/api/v1/inr-premium/daily.json
Daily (IST) mean, median, min and max premium per exchange, from all samples that day.
- https://btcmedia.news/api/v1/inr-premium/monthly.json
The same statistics by month, as published in the India Crypto Price Index.
Example
fetch('https://btcmedia.news/api/v1/inr-premium/latest.json')
.then((r) => r.json())
.then((d) => console.log(d.avg_btc_premium, d.exchanges)); More downloadable files (BTC/INR daily since 2013, top-50 coin INR history, exchange volume, bitcoin vs gold vs Nifty) are in the BtcMedia data catalog.
Open-source tax maths
Need India crypto tax (30% + cess) and 1% TDS calculations in your own app? Use inr-crypto-tax, our MIT-licensed JavaScript module on GitHub.
Fair use
- Freshness: files are regenerated each time the site is deployed (several times a day); samples are taken every 15 minutes. For a live view use the INR premium tracker.
- Rate: these are cached static files. Please poll no more than once every 15 minutes and cache on your side.
- Attribution: credit "BtcMedia (btcmedia.news)" with a link to this page or the index.
- Method and caveats are on the index page. Not financial advice; no warranty.