v1

latestOpenAPI 3.1.02026-07-24590534.0 KB

Refresh Instant Swap Quotation

This endpoint is used to refresh an instant swap quotation.

post/users/{user_id}/swap_quotation/{quotation_id}/refresh

Path parameters

user_idstring required

The User ID. Use 'me' if fetching wallets of main authenticated user, use the user_id if fetching for Sub-account linked to the authenticated user

quotation_idstring required

ID of a swap quotation

Request body

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_amountstring

the amount you want to swap.

to_amountstring

the amount you want to swap.

Response

200

statusstring
messagestring

Example response

{
  "status": "success",
  "message": "Successful",
  "data": {
    "id": "jfdja5nm",
    "from_currency": "NGN",
    "to_currency": "SOL",
    "quoted_price": "258578.803258812875",
    "quoted_currency": "NGN",
    "from_amount": "100.0",
    "to_amount": "0.000386",
    "expires_at": "2024-05-18T09:03:17.000Z",
    "created_at": "2024-05-18T09:00:59.000Z",
    "updated_at": "2024-05-18T09:03:02.000Z",
    "user": {
      "id": "23azi7bj",
      "sn": "QDXXIRPXXKS",
      "email": "johnsonoye123@gmail.com",
      "first_name": "Oye",
      "last_name": "Olalekan",
      "display_name": "appstate",
      "created_at": "2021-04-09T09:48:14.000Z",
      "updated_at": "2024-03-12T10:34:34.000Z"
    }
  }
}