Get Prices Batch

Updated

Fetches the latest prices for a large number of feeds in a single request. Returns SVM-compatible signed price data.

Endpoint

GET /prices/batch

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

Example Request

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

Response

json
{
  "prices": [
    {
      "feedId": "BTCUSD",
      "price": 11830872000000,
      "expo": -8,
      "ts": 1753354105
    }
  ],
  "signature": "9cd54324e961def230a066...",
  "recoveryId": 1
}

Response Fields

FieldTypeDescription
pricesarrayArray of price objects
prices[].feedIdintegerThe feed identifier
prices[].priceintegerThe latest price value
prices[].expointegerExponent for price scaling
prices[].tsintegerTimestamp (seconds since epoch)
signaturestringCryptographic signature for the batch
recoveryIdintegerRecovery ID associated with the signature

Errors

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