Get Prices
Updated
Fetches the latest prices for all available feeds. Supports optional timestamp filtering.
Endpoint
GET /pricesCopy 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 |
fromTimestamp | integer | No | Return 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>"Copy code
Open in Cursor
Open in VS Code
Open in v0
Open in Claude
Open in ChatGPT
Response
{
"prices": [
{
"feedId": "BTCUSD",
"price": 11844192392238,
"ts": 1753354607,
"expo": -8,
"signature": "f67cf0632ab0c7588ffc4ed775...",
"recoveryId": 0
}
]
}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 | string | The unique identifier of the feed |
prices[].price | integer | The price value |
prices[].ts | integer | Timestamp of the price update |
prices[].expo | integer | Exponent for price scaling |
prices[].signature | string | Cryptographic signature |
prices[].recoveryId | integer | Recovery ID for the signature |
Errors
| Status | Description |
|---|---|
| 401 | Unauthorized - invalid or missing API key |
Was this helpful?