---
search:
  tags:
    - Market
    - GET
seo:
  description: >-
    Estimates how a price range… Reference for the GET
    /v1/pools/{chain}/{protocol}/{variant}/{deployment}/{poolKey}/range-estimate
    endpoint in the INVICTUS API.
sidebar:
  label: A range over past data.
  badge: GET
title: A range over past data.
type: openapi-operation
---
Estimates how a price range would have done over a past window. Always an estimate, never a forecast.

`GET /v1/pools/{chain}/{protocol}/{variant}/{deployment}/{poolKey}/range-estimate`

**Responses**

- `200` — Success.
- `400` — Invalid input; \`errors\` names the fields.
- `404` — Not found, or not yours.
- `429` — Too many requests; \`retryAfterSeconds\` says when to ask again.
- `500` — Server error.
- `503` — Not available yet: the figures it needs are not stored; the problem says why.

Response example, 200:

```json
{
  "low": "1234.56",
  "high": "1234.56",
  "lookbackDays": 1,
  "label": "estimate from past data",
  "inRangePercent": {
    "status": "exact",
    "value": "1234.56",
    "observedAt": 1793145600
  },
  "feeAprPercent": {
    "status": "exact",
    "value": "1234.56",
    "observedAt": 1793145600
  },
  "versusHoldPercent": {
    "status": "exact",
    "value": "1234.56",
    "observedAt": 1793145600
  },
  "asOf": 1793145600
}
```
