index_price
Get aggregated index price data for an asset. Index prices are calculated across multiple exchanges and serve as a reference/benchmark price. Useful for fair value estimation and premium calculations.
Usage hints:
- Use as reference price when comparing individual exchange prices
- Combine with ticker to measure exchange-specific price deviation from index
REST endpoint
GET /api/v1/index-price — see REST reference.
Parameters
| Name | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
asset | string | yes | Asset | "..." | |
from | string | no | now - 1 month | Specifies from (default: now - 1 month) | "now - 1 month" |
to | string | no | now | Specifies to (default: now) | "now" |
interval | string | no | 5m | interval (default: 5m) | "5m" |
Example invocation
JSON-RPC tools/call payload:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "index_price",
"arguments": {
"asset": "...",
"from": "now - 1 month",
"to": "now",
"interval": "5m"
}
}
}