> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blockworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Asset Volatility

> Realized volatility of an asset over trailing 30-day, 90-day, one-year and three-year windows. Each series is one asset, keyed by its asset id. Compares risk across assets.

|                  |                                                                                                                |
| ---------------- | -------------------------------------------------------------------------------------------------------------- |
| Access           | Paid                                                                                                           |
| Timeseries model | `asset-volatility`: intervals `1d`, `1w`, series key `id` (Asset ID), series must be named (up to 20 per call) |

## Endpoints

<CardGroup cols={2}>
  <Card title="Batch Get Asset timeseries" icon="arrow-right" href="/api-reference/data-api/assets/timeseries-asset-volatility">
    Up to 20 series in one request, named by Asset ID in `series`.
  </Card>

  <Card title="Get Asset timeseries" icon="arrow-right" href="/api-reference/data-api/assets/timeseries-asset-volatility-by-id">
    One series over a time window, keyed by its Asset ID.
  </Card>
</CardGroup>

## Metrics

4 metrics. Use the `Field` value in `selections`; every point starts with the timestamp and continues in this order.

| Field            | Name           | Type    | Unit | Description                                                         |
| ---------------- | -------------- | ------- | ---- | ------------------------------------------------------------------- |
| `volatility-30d` | Volatility 30D | float64 |      | The average daily price movement of the asset over the last 30 days |
| `volatility-90d` | Volatility 90D | float64 |      | The average daily price movement of the asset over the last 90 days |
| `volatility-1y`  | Volatility 1Y  | float64 |      | The average daily price movement of the asset over the last year    |
| `volatility-3y`  | Volatility 3Y  | float64 |      | The average daily price movement of the asset over the last 3 years |

## Example

```bash curl theme={null}
curl "https://api.blockworks.com/query/timeseries/asset-volatility/1d/1e31218a-e44e-4285-820c-8282ee222035?timeframe=7d&selections=volatility-30d,volatility-90d" \
  -H "X-Blockworks-API-Key: $BLOCKWORKS_API_KEY"
```

See [Get Asset timeseries](/api-reference/data-api/assets/timeseries-asset-volatility-by-id) for the response and the errors.
