curl --request GET \
--url https://api-test.paiera.com/v1/fx/rate \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api-test.paiera.com/v1/fx/rate"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api-test.paiera.com/v1/fx/rate', 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-test.paiera.com/v1/fx/rate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>"
],
]);
$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-test.paiera.com/v1/fx/rate"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
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-test.paiera.com/v1/fx/rate")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-test.paiera.com/v1/fx/rate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"code": "success",
"message": "success",
"trace_id": "00000000000000000000000000000001",
"timestamp": 1792158658334,
"data": {
"source_currency": "USDT",
"destination_currency": "USD",
"rate": "0.998770",
"updated_at": "2026-10-16T13:50:00.000Z"
},
"success": true
}Retrieve Exchange Rate
Retrieve a reference exchange rate for a source and destination currency pair. This rate is informational; use Create Swap Quote for the rate of an actual Swap transaction. Currency pair permissions are directional: permission for one direction does not grant permission for the reverse direction. See FX Error Codes for error handling.
curl --request GET \
--url https://api-test.paiera.com/v1/fx/rate \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api-test.paiera.com/v1/fx/rate"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api-test.paiera.com/v1/fx/rate', 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-test.paiera.com/v1/fx/rate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>"
],
]);
$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-test.paiera.com/v1/fx/rate"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
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-test.paiera.com/v1/fx/rate")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-test.paiera.com/v1/fx/rate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"code": "success",
"message": "success",
"trace_id": "00000000000000000000000000000001",
"timestamp": 1792158658334,
"data": {
"source_currency": "USDT",
"destination_currency": "USD",
"rate": "0.998770",
"updated_at": "2026-10-16T13:50:00.000Z"
},
"success": true
}Authorizations
Use HTTP Basic authentication with api_key as username and api_secret as password. Obtain credentials in Portal > Settings > Developer.
Query Parameters
Source currency code. Leading and trailing whitespace is removed and letters are converted to uppercase before validation. The normalized value must match [A-Z0-9]{2,16}. Valid format does not guarantee that the currency pair is permitted or supported.
Destination currency code. Leading and trailing whitespace is removed and letters are converted to uppercase before validation. The normalized value must match [A-Z0-9]{2,16}. Valid format does not guarantee that the currency pair is permitted or supported.
