curl --request POST \
--url https://sandbox-api.axisfi.net/api/fx/quotes \
--header 'Api-Version: <api-version>' \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--header 'X-API-Secret: <api-key>' \
--data '
{
"source_currency": "USDT",
"target_currency": "USDT",
"source_network": "ETH",
"target_network": "ETH",
"source_amount": 99.99,
"target_amount": 99.99
}
'import requests
url = "https://sandbox-api.axisfi.net/api/fx/quotes"
payload = {
"source_currency": "USDT",
"target_currency": "USDT",
"source_network": "ETH",
"target_network": "ETH",
"source_amount": 99.99,
"target_amount": 99.99
}
headers = {
"Api-Version": "<api-version>",
"X-API-Key": "<api-key>",
"X-API-Secret": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Api-Version': '<api-version>',
'X-API-Key': '<api-key>',
'X-API-Secret': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
source_currency: 'USDT',
target_currency: 'USDT',
source_network: 'ETH',
target_network: 'ETH',
source_amount: 99.99,
target_amount: 99.99
})
};
fetch('https://sandbox-api.axisfi.net/api/fx/quotes', 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://sandbox-api.axisfi.net/api/fx/quotes",
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([
'source_currency' => 'USDT',
'target_currency' => 'USDT',
'source_network' => 'ETH',
'target_network' => 'ETH',
'source_amount' => 99.99,
'target_amount' => 99.99
]),
CURLOPT_HTTPHEADER => [
"Api-Version: <api-version>",
"Content-Type: application/json",
"X-API-Key: <api-key>",
"X-API-Secret: <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://sandbox-api.axisfi.net/api/fx/quotes"
payload := strings.NewReader("{\n \"source_currency\": \"USDT\",\n \"target_currency\": \"USDT\",\n \"source_network\": \"ETH\",\n \"target_network\": \"ETH\",\n \"source_amount\": 99.99,\n \"target_amount\": 99.99\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Api-Version", "<api-version>")
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("X-API-Secret", "<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://sandbox-api.axisfi.net/api/fx/quotes")
.header("Api-Version", "<api-version>")
.header("X-API-Key", "<api-key>")
.header("X-API-Secret", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"source_currency\": \"USDT\",\n \"target_currency\": \"USDT\",\n \"source_network\": \"ETH\",\n \"target_network\": \"ETH\",\n \"source_amount\": 99.99,\n \"target_amount\": 99.99\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-api.axisfi.net/api/fx/quotes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Api-Version"] = '<api-version>'
request["X-API-Key"] = '<api-key>'
request["X-API-Secret"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"source_currency\": \"USDT\",\n \"target_currency\": \"USDT\",\n \"source_network\": \"ETH\",\n \"target_network\": \"ETH\",\n \"source_amount\": 99.99,\n \"target_amount\": 99.99\n}"
response = http.request(request)
puts response.read_body{
"quote_id": "quote_f91fafe4b4fb463c8d0b04a90fece464",
"valid_from": "2023-11-07T05:31:56Z",
"source_currency": "USDT",
"source_network": "ETH",
"target_currency": "USDC",
"target_network": "TRX",
"source_amount": 1000,
"exchange_rate": 1.005,
"target_amount": 995,
"valid_to": "2023-11-07T05:31:56Z",
"remaining_seconds": 180
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}{
"errors": [
{
"detail": "Invalid organizationId",
"code": "ORG_ID_INVALID"
}
]
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}Request Quote
Retrieves real-time currency exchange rates or formal quotes for specified currency pairs. The Quote endpoint gives the user a guaranteed rate for an agreed period of time.
curl --request POST \
--url https://sandbox-api.axisfi.net/api/fx/quotes \
--header 'Api-Version: <api-version>' \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--header 'X-API-Secret: <api-key>' \
--data '
{
"source_currency": "USDT",
"target_currency": "USDT",
"source_network": "ETH",
"target_network": "ETH",
"source_amount": 99.99,
"target_amount": 99.99
}
'import requests
url = "https://sandbox-api.axisfi.net/api/fx/quotes"
payload = {
"source_currency": "USDT",
"target_currency": "USDT",
"source_network": "ETH",
"target_network": "ETH",
"source_amount": 99.99,
"target_amount": 99.99
}
headers = {
"Api-Version": "<api-version>",
"X-API-Key": "<api-key>",
"X-API-Secret": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Api-Version': '<api-version>',
'X-API-Key': '<api-key>',
'X-API-Secret': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
source_currency: 'USDT',
target_currency: 'USDT',
source_network: 'ETH',
target_network: 'ETH',
source_amount: 99.99,
target_amount: 99.99
})
};
fetch('https://sandbox-api.axisfi.net/api/fx/quotes', 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://sandbox-api.axisfi.net/api/fx/quotes",
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([
'source_currency' => 'USDT',
'target_currency' => 'USDT',
'source_network' => 'ETH',
'target_network' => 'ETH',
'source_amount' => 99.99,
'target_amount' => 99.99
]),
CURLOPT_HTTPHEADER => [
"Api-Version: <api-version>",
"Content-Type: application/json",
"X-API-Key: <api-key>",
"X-API-Secret: <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://sandbox-api.axisfi.net/api/fx/quotes"
payload := strings.NewReader("{\n \"source_currency\": \"USDT\",\n \"target_currency\": \"USDT\",\n \"source_network\": \"ETH\",\n \"target_network\": \"ETH\",\n \"source_amount\": 99.99,\n \"target_amount\": 99.99\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Api-Version", "<api-version>")
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("X-API-Secret", "<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://sandbox-api.axisfi.net/api/fx/quotes")
.header("Api-Version", "<api-version>")
.header("X-API-Key", "<api-key>")
.header("X-API-Secret", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"source_currency\": \"USDT\",\n \"target_currency\": \"USDT\",\n \"source_network\": \"ETH\",\n \"target_network\": \"ETH\",\n \"source_amount\": 99.99,\n \"target_amount\": 99.99\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-api.axisfi.net/api/fx/quotes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Api-Version"] = '<api-version>'
request["X-API-Key"] = '<api-key>'
request["X-API-Secret"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"source_currency\": \"USDT\",\n \"target_currency\": \"USDT\",\n \"source_network\": \"ETH\",\n \"target_network\": \"ETH\",\n \"source_amount\": 99.99,\n \"target_amount\": 99.99\n}"
response = http.request(request)
puts response.read_body{
"quote_id": "quote_f91fafe4b4fb463c8d0b04a90fece464",
"valid_from": "2023-11-07T05:31:56Z",
"source_currency": "USDT",
"source_network": "ETH",
"target_currency": "USDC",
"target_network": "TRX",
"source_amount": 1000,
"exchange_rate": 1.005,
"target_amount": 995,
"valid_to": "2023-11-07T05:31:56Z",
"remaining_seconds": 180
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}{
"errors": [
{
"detail": "Invalid organizationId",
"code": "ORG_ID_INVALID"
}
]
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}Authorizations
Includes an API key in the HTTP headers to authenticate the client.
Includes an API secret in the HTTP headers to authenticate the client.
Headers
AxisFi API contract version
2024-12-01 Body
Source Currency
USDT, USDC, USD USDT|USDC|USD"USDT"
Target Currency
USDT, USDC, USD USDT|USDC|USD"USDT"
Source Network
ETH, TRX ETH|TRX"ETH"
Target Network
ETH, TRX ETH|TRX"ETH"
Source Amount
0.01 < x < 10000000099.99
Target Amount
0.01 < x < 10000000099.99
Response
Operation Successful
Exchange Records Response
Quote ID
"quote_f91fafe4b4fb463c8d0b04a90fece464"
Exchange valid from time
Source currency code
USDT, USDC, USD "USDT"
Source currency network
ETH, TRX "ETH"
Target currency code
USDT, USDC, USD "USDC"
Target currency network
ETH, TRX "TRX"
Source exchange amount
1000
Exchange rate between source and target currency
1.005
Target exchange amount
995
Quote expiration time
Remaining seconds before expiration
180

