Last updated 23 days ago
Returns the current Bitcoin price in USD along with the timestamp
GET /v3/x/btc/price HTTP/1.1 Host: api.ordnull.site Accept: */*
Successful response
{ "data": { "time": 1, "price_usd": "text" }, "block_height": 1 }
Returns historical Bitcoin prices for a range of blocks starting from a specified block height
The block height to start retrieving prices from
The number of block prices to retrieve
GET /v3/x/btc/price_history HTTP/1.1 Host: api.ordnull.site x-api-Key: YOUR_API_KEY Accept: */*
{ "data": [ { "block_height": 1, "block_time": 1, "price_usd": "text" } ], "block_height": 1 }