Build decentralized applications, trading platforms, or analytics tools with reliable, secure price data.
All API endpoints require authentication using an API key, passed in the Authorization header. authentication
Environments
The Chaos oracle API is available in two environments:- Staging for testing and development
- Production for live applications.
API Endpoints
- Staging:
https://oracle-staging.chaoslabs.co
- Production:
https://oracle.chaoslabs.co
Key Features
- Real-Time Prices: Fetch prices for multiple feeds using
/prices/batch
. - Historical Data: Access historical prices with
/prices/queryhistory
. - EVM and SVM Support: Retrieve signed data for EVM (
/prices/evm
) or SVM feeds. - Streaming: Stream live updates via
/prices/stream
. - TradingView Integration: Get data for TradingView with
/trading-view/feeds-data
.
Using the API Playground
You can test endpoints directly in this documentation. To get valid results:- Navigate to an endpoint page (for example, Get Latest Prices for a Batch of Feeds).
- Enter the requried parameter(s), in this case
feedIds
(for example,btcusd,ethusd
). - Add your API key to the
Authorization
header. - Click Try It to run the request.
Response Schema
The Chaos oracle API typically returns data in JSON format, but response structures may vary slightly between endpoints. Understanding the schema for each endpoint is important for integrating oracle data into your decentralized application (DApp).Below is the schema for the price data returned from the available endpoints:
Field Descriptions
Field | Type | Description |
---|---|---|
feedId | string | The identifier for the price feed (for example, “ETHUSD”) |
price | integer | The price value, represented as an integer |
ts | integer | Timestamp of the price update in Unix milliseconds |
expo | integer | Exponent for the price value. Actual price = price * (10 ^ expo) |
signature | string | Cryptographic signature for verifying the authenticity of the data |
recoveryId | integer | Additional component of the signature used for verification |