For the complete documentation index, see llms.txt. This page is also available as Markdown.

Prices

Get Current Bitcoin Price

get

Returns the current Bitcoin price in USD along with the timestamp

Responses
200

Successful response

application/json
block_heightintegerOptional

Current block height

get/x/btc/price
GET /v3/x/btc/price HTTP/1.1
Host: api.ordnull.site
Accept: */*
{
  "data": {
    "time": 1,
    "price": {
      "usd": "text"
    }
  },
  "block_height": 1
}

Get Historical Bitcoin Prices

get

Returns historical Bitcoin prices for a range of blocks starting from a specified block height

Authorizations
x-api-KeystringRequired
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
block_heightintegerOptional

Current block height

get/x/btc/price_history
GET /v3/x/btc/price_history?start_block_height=1&count=1 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