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,
"markup": 0.5
}
],
"filters": {
"onlySwaps": [
"<string>"
],
"rotatePayoutWallets": true,
"rotateFallback": 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,
"markup": 0.5
}
],
"filters": {
"onlySwaps": ["<string>"],
"rotatePayoutWallets": True,
"rotateFallback": 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,
markup: 0.5
}
],
filters: {
onlySwaps: ['<string>'],
rotatePayoutWallets: true,
rotateFallback: 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,
'markup' => 0.5
]
],
'filters' => [
'onlySwaps' => [
'<string>'
],
'rotatePayoutWallets' => true,
'rotateFallback' => 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 \"markup\": 0.5\n }\n ],\n \"filters\": {\n \"onlySwaps\": [\n \"<string>\"\n ],\n \"rotatePayoutWallets\": true,\n \"rotateFallback\": 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 \"markup\": 0.5\n }\n ],\n \"filters\": {\n \"onlySwaps\": [\n \"<string>\"\n ],\n \"rotatePayoutWallets\": true,\n \"rotateFallback\": 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 \"markup\": 0.5\n }\n ],\n \"filters\": {\n \"onlySwaps\": [\n \"<string>\"\n ],\n \"rotatePayoutWallets\": true,\n \"rotateFallback\": 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{
"mode": "all",
"batched": true,
"orders": [
{
"index": 0,
"quoted": true,
"total": 1,
"quotes": [
{
"quoteId": "69a02882f48d56c923119d95",
"swap": "cl",
"swapName": "Changelly",
"type": "private",
"amountIn": 0.25,
"amountOut": 3.5182,
"amountInUsd": 26450.5,
"amountOutUsd": 26301.44,
"netAmountOut": 3.5182,
"duration": 22,
"providerEta": 18,
"min": 0.0012,
"max": 12.5,
"fixed": false,
"filtered": false,
"amountType": "send"
}
]
},
{
"index": 1,
"quoted": true,
"total": 0,
"quotes": [],
"error": {
"code": "SWAP_AMOUNT_IS_OUT_OF_BOUNDS",
"message": "Amount is below the minimum for this pair"
}
}
]
}{
"message": "<string>",
"code": "<string>",
"requestId": "<string>"
}{}{
"message": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"message": "<string>",
"code": "<string>",
"fields": {},
"requestId": "<string>"
}{
"message": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"message": "<string>",
"code": "<string>",
"requestId": "<string>"
}Get multi quotes
Returns the available routes for each swap in a batch.
Optional. Create multi exchange picks its own routes and takes no quoteId, so call this only when you want to show rates before committing.
- standard and private CEX only — no DEX
mode=singlequotes just the first swap, as a faster preview
Beta — the response shape may still change.
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,
"markup": 0.5
}
],
"filters": {
"onlySwaps": [
"<string>"
],
"rotatePayoutWallets": true,
"rotateFallback": 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,
"markup": 0.5
}
],
"filters": {
"onlySwaps": ["<string>"],
"rotatePayoutWallets": True,
"rotateFallback": 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,
markup: 0.5
}
],
filters: {
onlySwaps: ['<string>'],
rotatePayoutWallets: true,
rotateFallback: 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,
'markup' => 0.5
]
],
'filters' => [
'onlySwaps' => [
'<string>'
],
'rotatePayoutWallets' => true,
'rotateFallback' => 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 \"markup\": 0.5\n }\n ],\n \"filters\": {\n \"onlySwaps\": [\n \"<string>\"\n ],\n \"rotatePayoutWallets\": true,\n \"rotateFallback\": 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 \"markup\": 0.5\n }\n ],\n \"filters\": {\n \"onlySwaps\": [\n \"<string>\"\n ],\n \"rotatePayoutWallets\": true,\n \"rotateFallback\": 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 \"markup\": 0.5\n }\n ],\n \"filters\": {\n \"onlySwaps\": [\n \"<string>\"\n ],\n \"rotatePayoutWallets\": true,\n \"rotateFallback\": 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{
"mode": "all",
"batched": true,
"orders": [
{
"index": 0,
"quoted": true,
"total": 1,
"quotes": [
{
"quoteId": "69a02882f48d56c923119d95",
"swap": "cl",
"swapName": "Changelly",
"type": "private",
"amountIn": 0.25,
"amountOut": 3.5182,
"amountInUsd": 26450.5,
"amountOutUsd": 26301.44,
"netAmountOut": 3.5182,
"duration": 22,
"providerEta": 18,
"min": 0.0012,
"max": 12.5,
"fixed": false,
"filtered": false,
"amountType": "send"
}
]
},
{
"index": 1,
"quoted": true,
"total": 0,
"quotes": [],
"error": {
"code": "SWAP_AMOUNT_IS_OUT_OF_BOUNDS",
"message": "Amount is below the minimum for this pair"
}
}
]
}{
"message": "<string>",
"code": "<string>",
"requestId": "<string>"
}{}{
"message": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"message": "<string>",
"code": "<string>",
"fields": {},
"requestId": "<string>"
}{
"message": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"message": "<string>",
"code": "<string>",
"requestId": "<string>"
}Authorizations
Send Authorization: <ApiKey>:<ApiSecret> — joined by a colon, raw. No Bearer prefix, no base64.
Body
The swaps to quote, 1 to 10 per request. Each is quoted on its own, so one failing does not fail the rest.
1 - 10 elementsShow child attributes
Show child attributes
Provider filters applied to every order in the batch.
Show child attributes
Show child attributes
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.
all, single Quote the orders in parallel (true, the default) or one after another. Leave it unset unless you are measuring latency — the results are the same either way.