Get Price by Feed ID

Updated

Fetches the latest price for a specific feed identified by feedId.

Endpoint

GET /prices/{feedId}/latest

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

Authentication

Requires an API key in the Authorization header.

Authorization: <YOUR_API_KEY>

Path Parameters

ParameterTypeRequiredDescription
feedIdstringYesThe ID of the feed to fetch the latest price for

Example Request

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

Response

json
{
  "feedId": "BTCUSD",
  "price": 11838212000000,
  "ts": 1753354298,
  "expo": -8,
  "signature": "042d94c1a7afc22b9ba2c6ad...",
  "recoveryId": 1
}

Response Fields

FieldTypeDescription
feedIdstringThe feed identifier
priceintegerThe latest price value
tsintegerTimestamp (seconds since epoch)
expointegerExponent for price scaling
signaturestringSignature for the price data
recoveryIdintegerRecovery ID for the signature

Errors

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