Get Instrument Metrics
GET/metrics/instruments/:instrumentId
Retrieve historical metrics (APY, TVL) for a specific instrument.
Request
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
instrumentId | string | Yes | The instrument identifier |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
days | number | No | Number of days of history to fetch (default: 30) |
Response
Response Fields
| Field | Type | Description |
|---|---|---|
instrumentId | string | The instrument identifier |
metrics | array | Array of metric data points |
Metric Data Point
| Field | Type | Description |
|---|---|---|
timestamp | string | ISO 8601 timestamp |
tvlUsd | number | Total value locked in USD |
apy | number | Total APY percentage |
apyBase | number | Base APY from lending (optional) |
apyReward | number | Reward APY from incentives (optional) |
Get Bulk Instrument Metrics
GET/metrics/bulk
Retrieve historical metrics for multiple instruments in a single request.
Request
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
instrumentIds | string[] | Yes | Array of instrument IDs (pass multiple times) |
days | number | No | Number of days of history to fetch (default: 30) |