Prices
Returns the current Bitcoin price in USD along with the timestamp
Responses
200
Successful response
application/json
429
Rate limit exceeded
application/json
get
GET /v3/x/btc/price HTTP/1.1
Host: api.ordnull.site
Accept: */*
{
"data": {
"time": 1,
"price_usd": "text"
},
"block_height": 1
}
Returns historical Bitcoin prices for a range of blocks starting from a specified block height
Authorizations
Query parameters
start_block_heightintegerRequired
The block height to start retrieving prices from
countinteger · min: 1 · max: 100Required
The number of block prices to retrieve
Responses
200
Successful response
application/json
403
Invalid API Key
application/json
429
Rate limit exceeded
application/json
get
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
}
Last updated