curl --request GET \
--url https://api.bron.org/dictionary/intent-pairs/{fromAssetId}/{toAssetId}/quoteimport requests
url = "https://api.bron.org/dictionary/intent-pairs/{fromAssetId}/{toAssetId}/quote"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.bron.org/dictionary/intent-pairs/{fromAssetId}/{toAssetId}/quote', 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.bron.org/dictionary/intent-pairs/{fromAssetId}/{toAssetId}/quote",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.bron.org/dictionary/intent-pairs/{fromAssetId}/{toAssetId}/quote"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.bron.org/dictionary/intent-pairs/{fromAssetId}/{toAssetId}/quote")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bron.org/dictionary/intent-pairs/{fromAssetId}/{toAssetId}/quote")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"fromAmount": "120.015",
"fromAssetId": "2",
"minPrice": "973.4500",
"minToAmount": "116912.53",
"oracleFeePercent": "0.02",
"solverFeePercent": "0.05",
"toAmount": "117500.03",
"toAssetId": "5002",
"_embedded": {
"slippageBps": "300",
"slippageReason": "stock-off-session",
"stockSession": "regular"
}
}{
"error": "bad-request",
"message": "<string>"
}{
"error": "forbidden",
"message": "<string>"
}{
"error": "conflict",
"message": "<string>"
}Get indicative quote for an intent swap pair
Returns an indicative price for a swap of the pair without creating an on-chain order, for the amount given as fromAmount or toAmount. No authentication is required for this endpoint. Pass the fee your order will carry as broadcasterFeePercent: minPrice and minToAmount leave room for it, for the solver fee and for the settlement network fee, so minPrice can be passed on-chain as is.
Without broadcasterFeePercent no broadcaster fee is assumed. Amounts too small to cover the settlement network fee are still quoted, with the fee share capped at 30% of the order value: such an order is unlikely to be filled. In toAmount mode minToAmount is capped at toAmount and minPrice bounds the amount spent. The floor assumes the default price tolerance.
Answers 404 pair-not-available when the pair is not tradable through Intents.
curl --request GET \
--url https://api.bron.org/dictionary/intent-pairs/{fromAssetId}/{toAssetId}/quoteimport requests
url = "https://api.bron.org/dictionary/intent-pairs/{fromAssetId}/{toAssetId}/quote"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.bron.org/dictionary/intent-pairs/{fromAssetId}/{toAssetId}/quote', 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.bron.org/dictionary/intent-pairs/{fromAssetId}/{toAssetId}/quote",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.bron.org/dictionary/intent-pairs/{fromAssetId}/{toAssetId}/quote"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.bron.org/dictionary/intent-pairs/{fromAssetId}/{toAssetId}/quote")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bron.org/dictionary/intent-pairs/{fromAssetId}/{toAssetId}/quote")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"fromAmount": "120.015",
"fromAssetId": "2",
"minPrice": "973.4500",
"minToAmount": "116912.53",
"oracleFeePercent": "0.02",
"solverFeePercent": "0.05",
"toAmount": "117500.03",
"toAssetId": "5002",
"_embedded": {
"slippageBps": "300",
"slippageReason": "stock-off-session",
"stockSession": "regular"
}
}{
"error": "bad-request",
"message": "<string>"
}{
"error": "forbidden",
"message": "<string>"
}{
"error": "conflict",
"message": "<string>"
}Query Parameters
Response
OK
Was this page helpful?
