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/batchCopy code
Open in Cursor
Open in VS Code
Open in v0
Open in Claude
Open in ChatGPT
Base URL: https://oracle.chaoslabs.co
Authentication
Requires an API key in the Authorization header.
Authorization: <YOUR_API_KEY>Copy code
Open in Cursor
Open in VS Code
Open in v0
Open in Claude
Open in ChatGPT
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
feedIds | string | Yes | A 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>"Copy code
Open in Cursor
Open in VS Code
Open in v0
Open in Claude
Open in ChatGPT
Response
{
"prices": [
{
"feedId": "BTCUSD",
"price": 11830872000000,
"expo": -8,
"ts": 1753354105
}
],
"signature": "9cd54324e961def230a066...",
"recoveryId": 1
}Copy code
Open in Cursor
Open in VS Code
Open in v0
Open in Claude
Open in ChatGPT
Response Fields
| Field | Type | Description |
|---|---|---|
prices | array | Array of price objects |
prices[].feedId | integer | The feed identifier |
prices[].price | integer | The latest price value |
prices[].expo | integer | Exponent for price scaling |
prices[].ts | integer | Timestamp (seconds since epoch) |
signature | string | Cryptographic signature for the batch |
recoveryId | integer | Recovery ID associated with the signature |
Errors
| Status | Description |
|---|---|
| 401 | Unauthorized - invalid or missing API key |
Was this helpful?