Get Prices

Updated

Fetches the latest prices for all available feeds. Supports optional timestamp filtering.

Endpoint

GET /prices

Base URL: https://oracle.chaoslabs.co

Authentication

Requires an API key in the Authorization header.

Authorization: <YOUR_API_KEY>

Parameters

ParameterTypeRequiredDescription
feedIdsstringYesA comma-separated list of feed IDs to fetch prices for
fromTimestampintegerNoReturn only prices updated at or after this timestamp (seconds since epoch)

Example Request

curl -X GET "https://oracle.chaoslabs.co/prices?feedIds=BTCUSD"   -H "Authorization: <YOUR_API_KEY>"

Response

json
{
  "prices": [
    {
      "feedId": "BTCUSD",
      "price": 11844192392238,
      "ts": 1753354607,
      "expo": -8,
      "signature": "f67cf0632ab0c7588ffc4ed775...",
      "recoveryId": 0
    }
  ]
}

Response Fields

FieldTypeDescription
pricesarrayArray of price objects
prices[].feedIdstringThe unique identifier of the feed
prices[].priceintegerThe price value
prices[].tsintegerTimestamp of the price update
prices[].expointegerExponent for price scaling
prices[].signaturestringCryptographic signature
prices[].recoveryIdintegerRecovery ID for the signature

Errors

StatusDescription
401Unauthorized - invalid or missing API key
Was this helpful?