POST
/
otc-exchanges
/
quote
Request an indicative OTC quote
curl --request POST \
  --url https://api.balansas.com/functions/v1/customer-api/otc-exchanges/quote \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "sourceFrAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "destinationUtilaWalletId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "sourceAmountEur": "100.00",
  "side": "buy",
  "destinationCurrency": "USDT"
}
'
import requests

url = "https://api.balansas.com/functions/v1/customer-api/otc-exchanges/quote"

payload = {
"sourceFrAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"destinationUtilaWalletId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sourceAmountEur": "100.00",
"side": "buy",
"destinationCurrency": "USDT"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}

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

print(response.text)
const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
sourceFrAccountId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
destinationUtilaWalletId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
sourceAmountEur: '100.00',
side: 'buy',
destinationCurrency: 'USDT'
})
};

fetch('https://api.balansas.com/functions/v1/customer-api/otc-exchanges/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.balansas.com/functions/v1/customer-api/otc-exchanges/quote",
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([
'sourceFrAccountId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'destinationUtilaWalletId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'sourceAmountEur' => '100.00',
'side' => 'buy',
'destinationCurrency' => 'USDT'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);

$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.balansas.com/functions/v1/customer-api/otc-exchanges/quote"

payload := strings.NewReader("{\n \"sourceFrAccountId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"destinationUtilaWalletId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sourceAmountEur\": \"100.00\",\n \"side\": \"buy\",\n \"destinationCurrency\": \"USDT\"\n}")

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

req.Header.Add("x-api-key", "<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.balansas.com/functions/v1/customer-api/otc-exchanges/quote")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"sourceFrAccountId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"destinationUtilaWalletId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sourceAmountEur\": \"100.00\",\n \"side\": \"buy\",\n \"destinationCurrency\": \"USDT\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.balansas.com/functions/v1/customer-api/otc-exchanges/quote")

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

request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"sourceFrAccountId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"destinationUtilaWalletId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sourceAmountEur\": \"100.00\",\n \"side\": \"buy\",\n \"destinationCurrency\": \"USDT\"\n}"

response = http.request(request)
puts response.read_body
{
  "data": {
    "quoteId": "770e8400-e29b-41d4-a716-446655440002",
    "rate": "1.05",
    "destinationAmount": "105.00",
    "sourceCurrency": "EUR",
    "destinationCurrency": "USDC",
    "ttlExpiresAt": "2026-05-28T11:02:09.456Z",
    "ttlSeconds": 60,
    "indicative": true,
    "sourceAmountEur": "100.00",
    "sourceAmountUsdc": "100.000000"
  }
}
{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}
{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}
{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}
{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}
{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}
{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}

Authorizations

x-api-key
string
header
required

Customer API key. Send as x-api-key: sk_... or Authorization: Bearer sk_.... Write operations also require an X-CSRF-Token header (64-char hex).

Body

application/json
sourceFrAccountId
string<uuid>
required
destinationUtilaWalletId
string<uuid>
required
sourceAmountEur
string
required

EUR amount to convert, as a decimal string (up to 2 dp). Minimum 20 EUR.

Pattern: ^\d+(\.\d{1,2})?$
Example:

"100.00"

side
enum<string>
default:buy
Available options:
buy
destinationCurrency
string

Crypto to buy; omitted defaults to USDC.

Required string length: 1 - 10
Example:

"USDT"

Response

Success

data
object
required