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.

How to call

Request format

GET only
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&currency=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&currency=EUR"
Query params

api_token (required) — 24 character API token.

Optional query

currency — fiat currency code from your CurrencyRate.name list (for example EUR).

Responses

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

Endpoint

Bitcoin Historical Price

Returns daily BTC price history as an array of [timestamp, price] pairs.

Endpoint
https://newhedge.io/api/v2/price/historical?api_token=YOUR_TOKEN

Optional conversion: append &currency=EUR. Replace YOUR_TOKEN with your API token.

Sample response
200 Successful response
[
  [
    1778803200000,
    79058.52
  ],
  [
    1778889600000,
    78141.0
  ],
  [
    1778976000000,
    77429.86
  ],
  [
    1779062400000,
    76944.27
  ],
  [
    1779148800000,
    76760.01
  ]
]
Endpoint

Bitcoin Live Price

Returns the latest available BTC price. This endpoint updates every minute.

Endpoint
https://newhedge.io/api/v2/price/live?api_token=YOUR_TOKEN

Optional conversion: append &currency=EUR.

Sample response
200 Successful response
{
  "price": 77461.3
}

With currency=EUR:

{
  "price": 66583.56
}
Errors

Error responses

401

{"error":"Token is required"}, {"error":"Invalid token"}, or {"error":"Monthly API calls limit reached"}.

404

{"error":"Currency not found"} when currency does not match a saved currency code.