Skip to main content
POST
/
quotes
/
multi
Beta - Multi Quotes
curl --request POST \
  --url https://api-partner.houdiniswap.com/v2/quotes/multi \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "orders": [
    {
      "from": "6689b73ec90e45f3b3e51564",
      "to": "6689b73ec90e45f3b3e51558",
      "amount": 1,
      "anonymous": true,
      "useXmr": true
    }
  ],
  "filters": {
    "onlySwaps": [
      "<string>"
    ],
    "rotatePayoutWallets": true,
    "deviationThreshold": 50,
    "rotationLookback": 50,
    "inLeg": {
      "include": [
        "<string>"
      ],
      "exclude": [
        "<string>"
      ]
    },
    "outLeg": {
      "include": [
        "<string>"
      ],
      "exclude": [
        "<string>"
      ]
    }
  },
  "batched": true
}
'
import requests

url = "https://api-partner.houdiniswap.com/v2/quotes/multi"

payload = {
"orders": [
{
"from": "6689b73ec90e45f3b3e51564",
"to": "6689b73ec90e45f3b3e51558",
"amount": 1,
"anonymous": True,
"useXmr": True
}
],
"filters": {
"onlySwaps": ["<string>"],
"rotatePayoutWallets": True,
"deviationThreshold": 50,
"rotationLookback": 50,
"inLeg": {
"include": ["<string>"],
"exclude": ["<string>"]
},
"outLeg": {
"include": ["<string>"],
"exclude": ["<string>"]
}
},
"batched": True
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
orders: [
{
from: '6689b73ec90e45f3b3e51564',
to: '6689b73ec90e45f3b3e51558',
amount: 1,
anonymous: true,
useXmr: true
}
],
filters: {
onlySwaps: ['<string>'],
rotatePayoutWallets: true,
deviationThreshold: 50,
rotationLookback: 50,
inLeg: {include: ['<string>'], exclude: ['<string>']},
outLeg: {include: ['<string>'], exclude: ['<string>']}
},
batched: true
})
};

fetch('https://api-partner.houdiniswap.com/v2/quotes/multi', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api-partner.houdiniswap.com/v2/quotes/multi",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'orders' => [
[
'from' => '6689b73ec90e45f3b3e51564',
'to' => '6689b73ec90e45f3b3e51558',
'amount' => 1,
'anonymous' => true,
'useXmr' => true
]
],
'filters' => [
'onlySwaps' => [
'<string>'
],
'rotatePayoutWallets' => true,
'deviationThreshold' => 50,
'rotationLookback' => 50,
'inLeg' => [
'include' => [
'<string>'
],
'exclude' => [
'<string>'
]
],
'outLeg' => [
'include' => [
'<string>'
],
'exclude' => [
'<string>'
]
]
],
'batched' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://api-partner.houdiniswap.com/v2/quotes/multi"

payload := strings.NewReader("{\n \"orders\": [\n {\n \"from\": \"6689b73ec90e45f3b3e51564\",\n \"to\": \"6689b73ec90e45f3b3e51558\",\n \"amount\": 1,\n \"anonymous\": true,\n \"useXmr\": true\n }\n ],\n \"filters\": {\n \"onlySwaps\": [\n \"<string>\"\n ],\n \"rotatePayoutWallets\": true,\n \"deviationThreshold\": 50,\n \"rotationLookback\": 50,\n \"inLeg\": {\n \"include\": [\n \"<string>\"\n ],\n \"exclude\": [\n \"<string>\"\n ]\n },\n \"outLeg\": {\n \"include\": [\n \"<string>\"\n ],\n \"exclude\": [\n \"<string>\"\n ]\n }\n },\n \"batched\": true\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://api-partner.houdiniswap.com/v2/quotes/multi")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"orders\": [\n {\n \"from\": \"6689b73ec90e45f3b3e51564\",\n \"to\": \"6689b73ec90e45f3b3e51558\",\n \"amount\": 1,\n \"anonymous\": true,\n \"useXmr\": true\n }\n ],\n \"filters\": {\n \"onlySwaps\": [\n \"<string>\"\n ],\n \"rotatePayoutWallets\": true,\n \"deviationThreshold\": 50,\n \"rotationLookback\": 50,\n \"inLeg\": {\n \"include\": [\n \"<string>\"\n ],\n \"exclude\": [\n \"<string>\"\n ]\n },\n \"outLeg\": {\n \"include\": [\n \"<string>\"\n ],\n \"exclude\": [\n \"<string>\"\n ]\n }\n },\n \"batched\": true\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api-partner.houdiniswap.com/v2/quotes/multi")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"orders\": [\n {\n \"from\": \"6689b73ec90e45f3b3e51564\",\n \"to\": \"6689b73ec90e45f3b3e51558\",\n \"amount\": 1,\n \"anonymous\": true,\n \"useXmr\": true\n }\n ],\n \"filters\": {\n \"onlySwaps\": [\n \"<string>\"\n ],\n \"rotatePayoutWallets\": true,\n \"deviationThreshold\": 50,\n \"rotationLookback\": 50,\n \"inLeg\": {\n \"include\": [\n \"<string>\"\n ],\n \"exclude\": [\n \"<string>\"\n ]\n },\n \"outLeg\": {\n \"include\": [\n \"<string>\"\n ],\n \"exclude\": [\n \"<string>\"\n ]\n }\n },\n \"batched\": true\n}"

response = http.request(request)
puts response.read_body
{
  "batched": true,
  "orders": [
    {
      "index": 123,
      "quoted": true,
      "total": 123,
      "quotes": [
        {
          "swap": "<string>",
          "quoteId": "<string>",
          "duration": 123,
          "providerEta": 123,
          "gas": 123,
          "gasUsd": 123,
          "amountIn": 123,
          "amountOut": 123,
          "amountOutUsd": 123,
          "amountInUsd": 123,
          "feeUsd": 123,
          "bridgeFeeUsd": 123,
          "netAmountOut": 123,
          "error": "<string>",
          "swapName": "<string>",
          "filtered": false,
          "supportsSignatures": true,
          "logoUrl": "<string>",
          "markupSupported": true,
          "slippageSupported": true,
          "apiMarkupValue": 123,
          "restrictedCountries": [
            "<string>"
          ],
          "rewardsAvailable": true,
          "min": 123,
          "max": 123,
          "minOut": 123,
          "maxOut": 123,
          "rateId": "<string>",
          "fixed": true,
          "validUntil": "<string>",
          "requiresApproval": true,
          "isPriority": true,
          "refundAddress": "<string>"
        }
      ],
      "error": {
        "message": "<string>",
        "code": "<string>"
      }
    }
  ]
}
{
"message": "<string>",
"code": "<string>",
"requestId": "<string>"
}
{
"message": "<string>",
"code": "<string>",
"fields": {},
"requestId": "<string>"
}
{
"message": "<string>",
"code": "<string>",
"requestId": "<string>"
}

Authorizations

Authorization
string
header
required

Body

application/json
orders
object[]
required
Required array length: 1 - 10 elements
filters
object

Provider filters applied to every order in the batch.

mode
enum<string>

How many of the submitted orders to quote. all (the default) quotes every order; single quotes only the first order and returns the rest with quoted: false. See MultiQuoteMode for the full behaviour.

Available options:
all,
single
batched
boolean

Resolve distinct order tuples concurrently (bounded) when true (default), or sequentially when false. POC knob for latency benchmarking.

Response

Success

mode
enum<string>
required

Controls how many of the submitted orders are individually quoted.

  • all (default): every order is quoted and returns its own array of candidate routes.
  • single: only the first order is quoted; the remaining orders come back with quoted: false and no candidates — a lighter, faster preview for when quoting the whole batch is too slow.
Available options:
all,
single
batched
boolean
required
orders
object[]
required