⚙️API

Get Quote

get

Get quote for a swap

Query parameters
srcAssetstringRequired

Source asset address

dstAssetstringRequired

Destination asset address

amountstringRequired

Amount to swap

includeSourcesstringOptional

Comma-separated list of sources to include in the quote

excludeSourcesstringOptional

Comma-separated list of sources to exclude from the quote

isFeeInbooleanOptional

Whether the fee is included in the quote

feeInBPSintegerOptional

Fee in basis points (BPS) if the fee is included

feeReceiverstringOptional

Address to receive the fee

slippageintegerOptional

Slippage tolerance in basis points (BPS)

senderstringOptional

Sender address

receiverstringOptional

Receiver address

Responses
200

Quote response

application/json
Responseall of
get
/v1/quote
GET /v1/quote?srcAsset=text&dstAsset=text&amount=text HTTP/1.1
Host: 
Accept: */*
{
  "code": 1,
  "data": {
    "dstAmount": "text",
    "dstAsset": "text",
    "feeAmount": "text",
    "isFeeIn": true,
    "paths": [
      [
        {
          "dstAmount": "text",
          "dstAsset": "text",
          "poolId": "text",
          "source": "text",
          "srcAmount": "text",
          "srcAsset": "text"
        }
      ]
    ],
    "srcAmount": "text",
    "srcAsset": "text",
    "tx": {
      "function": "text",
      "functionArguments": [],
      "typeArguments": [
        "text"
      ]
    }
  },
  "message": "text",
  "requestId": "text"
}

Last updated