LogoLogo
  • Xverse API
  • ▶️Get Started
  • 📚API reference
    • Bitcoin
      • 📦Outputs
      • 📫Address
        • UTXO
        • Balance
        • Transactions
          • Unconfirmed
      • 📝Transactions
        • History
    • 🖼️Ordinals
      • Address
        • 📦UTXO
        • 🖼️Inscriptions
        • 🔳Runes
        • 🪙BRC-20
      • ✍️Inscription Service
        • Estimate
        • Order
          • Execute
    • 🔲Runes
      • Rune balances
      • ⛏️Mint Rune
        • Estimate
        • Order
          • Execute
      • 🚀Etch Rune
        • Estimate
        • Order
          • Execute
      • 🔲Rune Data
    • 🪙BRC-20
      • 🪙BRC-20 balances
      • ⛏️Mint BRC-20
        • Estimate
        • Order
          • Execute
      • 🚀Deploy BRC-20
        • Estimate
        • Order
          • Execute
    • 🔄Swaps
      • 🪙Get destination tokens
      • 🧾Get quotes
      • 🔲Runes Swaps
        • Place order
        • Execute order
      • 📦UTXO
        • Get utxos
        • Place order
        • Execute order
      • 🔴Stacks Swaps
        • Place order
        • Execute order
      • 🔀Crosschain Swaps
        • Place order
  • Specification
Powered by GitBook
On this page
Export as PDF
  1. 📚API reference
  2. 🔄Swaps

🧾Get quotes

PreviousGet destination tokensNextRunes Swaps
post
Authorizations
Body
objectOptional
Responses
200
Default Response
application/json
Responseobject
post
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: 105

{
  "from": {
    "ticker": "BTC",
    "protocol": "btc"
  },
  "to": {
    "ticker": "840000:3",
    "protocol": "runes"
  },
  "amount": "10000"
}
200

Default Response

{
  "amm": [
    {
      "provider": {
        "code": "dotswap",
        "name": "DotSwap",
        "url": "https://www.dotswap.app/",
        "logo": "https://storage.googleapis.com/featured-dapps/logos/dotswap_logo.webp"
      },
      "from": {
        "ticker": "BTC",
        "protocol": "btc"
      },
      "to": {
        "ticker": "840000:3",
        "protocol": "runes"
      },
      "slippageSupported": true,
      "slippageDecimals": 0,
      "slippageThreshold": 0.05,
      "identifier": "...",
      "feePercentage": "2",
      "receiveAmount": "4000"
    },
    {
      "provider": {
        "code": "runesdex",
        "name": "Runes Dex",
        "url": "https://www.runesdex.com",
        "logo": "https://storage.googleapis.com/featured-dapps/logos/runesdex_logo.jpg"
      },
      "from": {
        "ticker": "BTC",
        "protocol": "btc"
      },
      "to": {
        "ticker": "840000:3",
        "protocol": "runes"
      },
      "slippageSupported": true,
      "slippageDecimals": 0,
      "slippageThreshold": 0.1,
      "identifier": "...",
      "feePercentage": "2",
      "receiveAmount": "4050"
    }
  ],
  "utxo": [
    {
      "provider": {
        "code": "magiceden_utxo",
        "name": "Magic Eden",
        "logo": "https://storage.googleapis.com/featured-dapps/logos/magic_eden_logo.jpeg",
        "url": "https://magiceden.io"
      },
      "from": {
        "ticker": "BTC",
        "protocol": "btc"
      },
      "to": {
        "ticker": "840000:3",
        "protocol": "runes"
      },
      "floorRate": "2.479301",
      "feePercentage": "1"
    },
    {
      "provider": {
        "code": "unisat_utxo",
        "name": "Unisat",
        "logo": "https://storage.googleapis.com/featured-dapps/logos/unisat_logo.jpeg",
        "url": "https://unisat.io"
      },
      "from": {
        "ticker": "BTC",
        "protocol": "btc"
      },
      "to": {
        "ticker": "840000:3",
        "protocol": "runes"
      },
      "floorRate": "2.88"
    },
    {
      "provider": {
        "code": "okx_utxo",
        "name": "OKX",
        "logo": "https://storage.googleapis.com/featured-dapps/logos/okx_logo.jpeg",
        "url": "https://www.okx.com/"
      },
      "from": {
        "ticker": "BTC",
        "protocol": "btc"
      },
      "to": {
        "ticker": "840000:3",
        "protocol": "runes"
      },
      "floorRate": "2.5299",
      "feePercentage": "1"
    }
  ],
  "stx": [],
  "xc": []
}