Bitcoin Price API
Historical and real-time Bitcoin price endpoints.
Fetch daily historical BTC prices or the latest live price. Add an optional currency query parameter to convert USD values to supported fiat currencies.
Request format
curl -X GET "https://newhedge.io/api/v2/price/historical?api_token=YOUR_TOKEN"
curl -X GET "https://newhedge.io/api/v2/price/historical?api_token=YOUR_TOKEN¤cy=GBP"
curl -X GET "https://newhedge.io/api/v2/price/live?api_token=YOUR_TOKEN"
curl -X GET "https://newhedge.io/api/v2/price/live?api_token=YOUR_TOKEN¤cy=EUR"
api_token (required) — 24 character API token.
currency — fiat currency code from your CurrencyRate.name list (for example EUR).
200 on success, 401 for missing/invalid token or monthly limit reached, 404 when the provided currency is not found.
Available currencies (164)
AED, AFN, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BHD, BIF, BMD, BND, BOB, BRL, BSD, BTN, BWP, BYN, BZD, CAD, CDF, CHF, CLF, CLP, CNY, COP, CRC, CUC, CUP, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ERN, ETB, EUR, FJD, FKP, GBP, GEL, GGP, GHS, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, IMP, INR, IQD, IRR, ISK, JEP, JMD, JOD, JPY, KES, KGS, KHR, KMF, KPW, KRW, KWD, KYD, KZT, LAK, LBP, LKR, LRD, LSL, LTL, LVL, LYD, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MUR, MVR, MWK, MXN, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, OMR, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SDG, SEK, SGD, SHP, SLL, SOS, SRD, STD, SVC, SYP, SZL, THB, TJS, TMT, TND, TOP, TRY, TTD, TWD, TZS, UAH, UGX, UYU, UZS, VES, VND, VUV, WST, XAF, XAG, XAU, XCD, XDR, XOF, XPF, YER, ZAR, ZMW, ZWG, ZWL
Bitcoin Historical Price
Returns daily BTC price history as an array of [timestamp, price] pairs.
https://newhedge.io/api/v2/price/historical?api_token=YOUR_TOKEN
Optional conversion: append ¤cy=EUR. Replace YOUR_TOKEN with your API token.
[
[
1778803200000,
79058.52
],
[
1778889600000,
78141.0
],
[
1778976000000,
77429.86
],
[
1779062400000,
76944.27
],
[
1779148800000,
76760.01
]
]
Bitcoin Live Price
Returns the latest available BTC price. This endpoint updates every minute.
https://newhedge.io/api/v2/price/live?api_token=YOUR_TOKEN
Optional conversion: append ¤cy=EUR.
{
"price": 77461.3
}
With currency=EUR:
{
"price": 66583.56
}
Error responses
{"error":"Token is required"}, {"error":"Invalid token"}, or {"error":"Monthly API calls limit reached"}.
{"error":"Currency not found"} when currency does not match a saved currency code.