> ## 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 Sharpe

> Sharpe ratio 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-adjusted performance across assets.

|                  |                                                                                                            |
| ---------------- | ---------------------------------------------------------------------------------------------------------- |
| Access           | Paid                                                                                                       |
| Timeseries model | `asset-sharpe`: 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-sharpe">
    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-sharpe-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                                         |
| ------------------ | ---------------- | ------- | ---- | --------------------------------------------------- |
| `sharpe-ratio-30d` | Sharpe Ratio 30D | float64 |      | The Sharpe ratio of the asset over the last 30 days |
| `sharpe-ratio-90d` | Sharpe Ratio 90D | float64 |      | The Sharpe ratio of the asset over the last 90 days |
| `sharpe-ratio-1y`  | Sharpe Ratio 1Y  | float64 |      | The Sharpe ratio of the asset over the last year    |
| `sharpe-ratio-3y`  | Sharpe Ratio 3Y  | float64 |      | The Sharpe ratio of the asset over the last 3 years |

## Example

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

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