---
search:
  tags:
    - Market
    - GET
seo:
  description: >-
    Answers the pool's liquidity in price… Reference for the GET
    /v1/pools/{chain}/{protocol}/{variant}/{deployment}/{poolKey}/depth endpoint
    in the INVICTUS API.
sidebar:
  label: Liquidity by price bin.
  badge: GET
title: Liquidity by price bin.
type: openapi-operation
---
Answers the pool's liquidity in price bins around its current price.

`GET /v1/pools/{chain}/{protocol}/{variant}/{deployment}/{poolKey}/depth`

**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
{
  "grid": "ticks",
  "price": "1234.56",
  "bins": [
    {
      "low": "1234.56",
      "high": "1234.56",
      "base": "1500000",
      "quote": "1500000",
      "valueUsd": {
        "status": "exact",
        "value": "1234.56",
        "observedAt": 1793145600
      }
    }
  ],
  "active": 0,
  "asOf": 1793145600
}
```
