---
search:
  tags:
    - Market
    - GET
seo:
  description: >-
    Quotes what a swap would do now… Reference for the GET
    /v1/pools/{chain}/{protocol}/{variant}/{deployment}/{poolKey}/swap-quote
    endpoint in the INVICTUS API.
sidebar:
  label: What a swap would do now.
  badge: GET
title: What a swap would do now.
type: openapi-operation
---
Quotes what a swap would do now across the asked sources, the best taken. A quote is never signed; confirming an operation quotes again.

`GET /v1/pools/{chain}/{protocol}/{variant}/{deployment}/{poolKey}/swap-quote`

**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
{
  "pays": {
    "token": {
      "chain": "base",
      "address": "string",
      "symbol": "string",
      "name": "string",
      "logo": "string",
      "decimals": 0
    },
    "units": "1500000",
    "valueUsd": {
      "status": "exact",
      "value": "1234.56",
      "observedAt": 1793145600
    }
  },
  "receives": {
    "token": {
      "chain": "base",
      "address": "string",
      "symbol": "string",
      "name": "string",
      "logo": "string",
      "decimals": 0
    },
    "units": "1500000",
    "valueUsd": {
      "status": "exact",
      "value": "1234.56",
      "observedAt": 1793145600
    }
  },
  "minimum": "1500000",
  "price": "1234.56",
  "priceImpactPercent": {
    "status": "exact",
    "value": "1234.56",
    "observedAt": 1793145600
  },
  "routes": 1,
  "savedUsd": {
    "status": "exact",
    "value": "1234.56",
    "observedAt": 1793145600
  },
  "route": {
    "source": "pool",
    "hops": [
      {
        "protocol": "string",
        "variant": "string",
        "from": "string",
        "to": "string",
        "sharePercent": "1234.56"
      }
    ],
    "compared": [
      {
        "source": "pool",
        "receives": "1500000",
        "feePercent": "1234.56"
      }
    ]
  },
  "slippagePercent": "1234.56",
  "slippageAuto": true,
  "category": "pegged",
  "unverified": [
    "pays"
  ],
  "fees": {
    "networkUsd": {
      "status": "exact",
      "value": "1234.56",
      "observedAt": 1793145600
    },
    "swapFeePercent": "1234.56",
    "swapFeeUsd": {
      "status": "exact",
      "value": "1234.56",
      "observedAt": 1793145600
    },
    "swapFeeSymbol": "string"
  },
  "warnings": [
    "string"
  ],
  "expiresAt": 1793145600,
  "asOf": 1793145600
}
```
