🧾Get quotes

post

Get multiple quotes for swapping between two assets

Authorizations
Body
amountstringRequired
amountRawstringOptional
Responses
200

Default Response

application/json
post
/v1/swaps/get-quotes
POST /v1/swaps/get-quotes HTTP/1.1
Host: api.secretkeylabs.io
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 109

{
  "from": {
    "ticker": "840000:2",
    "protocol": "runes"
  },
  "to": {
    "ticker": "840000:3",
    "protocol": "runes"
  },
  "amount": "10"
}
{
  "amm": [
    {
      "provider": {
        "code": "text",
        "name": "text",
        "url": "text",
        "logo": "text"
      },
      "from": {
        "ticker": "text",
        "protocol": "runes"
      },
      "to": {
        "ticker": "text",
        "protocol": "runes"
      },
      "receiveAmount": "text",
      "slippageSupported": true,
      "slippageThreshold": 1,
      "slippageDecimals": 1,
      "feePercentage": "text",
      "providerFeePercentage": "text",
      "xverseFeePercentage": "text",
      "bestMarketplaceProvider": {
        "code": "text",
        "name": "text",
        "url": "text",
        "logo": "text"
      },
      "identifier": null,
      "rate": "text"
    }
  ]
}

Last updated