---
title: "Create Instant swap"
method: POST
path: "/users/{user_id}/swap_quotation"
---

# Create Instant swap

`POST /users/{user_id}/swap_quotation`

This endpoint is used to generate an instant swap quotation. Please note that the instant swap quotation is valid for only 15 seconds. To refresh the swap and obtain a new quotation, you can use the Refresh Instant Swap endpoint. https://docs.quidax.io/reference/refresh-instant-swap

## Path parameters

- `user_id` string, required

## Request body

- object
  - `from_currency` 'btc' | 'ngn' | 'usdt' | 'eth' | 'xaut' | 'usdc' | 'trx' | 'dash' | 'ltc' | 'xrp' | 'sol' | 'qdx' | 'bnb' | 'doge' | 'usat' | 'link' | 'pol' | 'dot' | 'aave' | 'shib' | 'xlm' | 'cake' | 'ada' | 'bch' | 'slp' | 'floki' | 'cfx' | 'pepe' | 'bonk' | 'algo' | 'wif' | 'ton' | 'rndr' | 'xyo' | 'hype' | 'fartcoin' | 'cngn' | 'sui' | 'ghs' | 'lsk' | 'axcnh' | 'xaf' | 'xof' | 'zar' | 'kes' | 'axs' | 'fil' | 'babydoge' | 'one' | 'xtz' | 'sushi' | 'zil' | 'mana' | 'sand' | 'ape' | 'enj' | 'lrc' | 'wld' | 'meme' | 'ordi' | 'ens' | 'arb' | 'myro' | 'magatrump' | 'jup' | 'blur' | 'coq' | 'fet' | 'ai' | 'bob' | 'bome' | 'stx' | 'mog' | 'inj' | 'mnt' | 'beam' | 'mew' | 'gno' | 'waves' | 'trump' | 'pnut' | 'etc' | 'watson' | 'wlfi' | 'usd' | 'nochill' | 'kata' | 'slerf' | 'nos' | 'near' | 'strk' | 'zk' | 's' — the currency you are swapping from
  - `to_currency` 'btc' | 'ngn' | 'usdt' | 'eth' | 'xaut' | 'usdc' | 'trx' | 'dash' | 'ltc' | 'xrp' | 'sol' | 'qdx' | 'bnb' | 'doge' | 'usat' | 'link' | 'pol' | 'dot' | 'aave' | 'shib' | 'xlm' | 'cake' | 'ada' | 'bch' | 'slp' | 'floki' | 'cfx' | 'pepe' | 'bonk' | 'algo' | 'wif' | 'ton' | 'rndr' | 'xyo' | 'hype' | 'fartcoin' | 'cngn' | 'sui' | 'ghs' | 'lsk' | 'axcnh' | 'xaf' | 'xof' | 'zar' | 'kes' | 'axs' | 'fil' | 'babydoge' | 'one' | 'xtz' | 'sushi' | 'zil' | 'mana' | 'sand' | 'ape' | 'enj' | 'lrc' | 'wld' | 'meme' | 'ordi' | 'ens' | 'arb' | 'myro' | 'magatrump' | 'jup' | 'blur' | 'coq' | 'fet' | 'ai' | 'bob' | 'bome' | 'stx' | 'mog' | 'inj' | 'mnt' | 'beam' | 'mew' | 'gno' | 'waves' | 'trump' | 'pnut' | 'etc' | 'watson' | 'wlfi' | 'usd' | 'nochill' | 'kata' | 'slerf' | 'nos' | 'near' | 'strk' | 'zk' | 's' — the currency you are swapping to.
  - `from_amount` string — the amount you want to swap.
  - `to_amount` string — the amount you want to swap.

## Response `200`

200

- object
  - `status` string
  - `message` string
  - `data` object
    - `id` string
    - `confirmed` boolean
    - `from_currency` string
    - `to_currency` string
    - `quoted_price` string
    - `quoted_currency` string
    - `from_amount` string
    - `to_amount` string
    - `expires_at` string
    - `created_at` string
    - `updated_at` string
    - `user` object
      - `id` string
      - `sn` string
      - `email` string
      - `reference` unknown
      - `first_name` string
      - `last_name` string
      - `display_name` string
      - `created_at` string
      - `updated_at` string

## Other responses

- `400` — 400
- `404` — 404

---

[API](https://skmtc.net/quidax/apis/api-3-0.md) · [All operations](https://skmtc.net/quidax/apis/api-3-0/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/quidax/api-3-0/versions/75e2867b5dc0/schema)
