Prices

Get Current Bitcoin Price

get

Returns the current Bitcoin price in USD along with the timestamp

Responses
200
Successful response
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
}

Get Historical Bitcoin Prices

get

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
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