Get FX Conversion Quote
curl --request POST \
--url https://api.rach.finance/caas/api/v1/fx/quote \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"fiat_amount": 20000,
"local_currency": "XOF",
"target_token": "USDC"
}
'import requests
url = "https://api.rach.finance/caas/api/v1/fx/quote"
payload = {
"fiat_amount": 20000,
"local_currency": "XOF",
"target_token": "USDC"
}
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({fiat_amount: 20000, local_currency: 'XOF', target_token: 'USDC'})
};
fetch('https://api.rach.finance/caas/api/v1/fx/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.rach.finance/caas/api/v1/fx/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([
'fiat_amount' => 20000,
'local_currency' => 'XOF',
'target_token' => 'USDC'
]),
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.rach.finance/caas/api/v1/fx/quote"
payload := strings.NewReader("{\n \"fiat_amount\": 20000,\n \"local_currency\": \"XOF\",\n \"target_token\": \"USDC\"\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.rach.finance/caas/api/v1/fx/quote")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"fiat_amount\": 20000,\n \"local_currency\": \"XOF\",\n \"target_token\": \"USDC\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rach.finance/caas/api/v1/fx/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 \"fiat_amount\": 20000,\n \"local_currency\": \"XOF\",\n \"target_token\": \"USDC\"\n}"
response = http.request(request)
puts response.read_body{
"currency_pair": "XOF_USDC",
"expected_out": "35.67",
"expires_at": "2026-06-24T21:25:25Z",
"fiat_amount": "20000.00",
"quote_id": "fx_b3d8a1c2-...",
"rate": "560.77",
"target_token": "USDC"
}{}{}{}B2B - FX
Get FX Conversion Quote
Returns a locked exchange rate for converting local fiat (XOF, NGN, KES, etc.) to USDC. The returned quote_id must be passed to POST /v1/transfers/send for fiat-denominated transfers. Quotes expire in 60 seconds — check expires_at before use. For direct crypto-to-crypto transfers without FX conversion use the DIRECT_CRYPTO:: quote_id format instead.
POST
/
v1
/
fx
/
quote
Get FX Conversion Quote
curl --request POST \
--url https://api.rach.finance/caas/api/v1/fx/quote \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"fiat_amount": 20000,
"local_currency": "XOF",
"target_token": "USDC"
}
'import requests
url = "https://api.rach.finance/caas/api/v1/fx/quote"
payload = {
"fiat_amount": 20000,
"local_currency": "XOF",
"target_token": "USDC"
}
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({fiat_amount: 20000, local_currency: 'XOF', target_token: 'USDC'})
};
fetch('https://api.rach.finance/caas/api/v1/fx/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.rach.finance/caas/api/v1/fx/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([
'fiat_amount' => 20000,
'local_currency' => 'XOF',
'target_token' => 'USDC'
]),
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.rach.finance/caas/api/v1/fx/quote"
payload := strings.NewReader("{\n \"fiat_amount\": 20000,\n \"local_currency\": \"XOF\",\n \"target_token\": \"USDC\"\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.rach.finance/caas/api/v1/fx/quote")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"fiat_amount\": 20000,\n \"local_currency\": \"XOF\",\n \"target_token\": \"USDC\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rach.finance/caas/api/v1/fx/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 \"fiat_amount\": 20000,\n \"local_currency\": \"XOF\",\n \"target_token\": \"USDC\"\n}"
response = http.request(request)
puts response.read_body{
"currency_pair": "XOF_USDC",
"expected_out": "35.67",
"expires_at": "2026-06-24T21:25:25Z",
"fiat_amount": "20000.00",
"quote_id": "fx_b3d8a1c2-...",
"rate": "560.77",
"target_token": "USDC"
}{}{}{}Authorizations
Your Rach B2B API key. Use rach_sk_live_* for production (on-chain) or rach_sk_test_* for sandbox (no-chain simulation).
Body
application/json
Quote request
⌘I

