Create Quote
curl --request POST \
--url https://api-sandbox.uqpaytech.com/api/v1/ramp/conversion/quote \
--header 'Content-Type: application/json' \
--header 'x-auth-token: <api-key>' \
--data '
{
"sell_currency": "USDT",
"buy_currency": "USD",
"amount": "1000.00",
"fixed_currency": "USD"
}
'import requests
url = "https://api-sandbox.uqpaytech.com/api/v1/ramp/conversion/quote"
payload = {
"sell_currency": "USDT",
"buy_currency": "USD",
"amount": "1000.00",
"fixed_currency": "USD"
}
headers = {
"x-auth-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-auth-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
sell_currency: 'USDT',
buy_currency: 'USD',
amount: '1000.00',
fixed_currency: 'USD'
})
};
fetch('https://api-sandbox.uqpaytech.com/api/v1/ramp/conversion/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-sandbox.uqpaytech.com/api/v1/ramp/conversion/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([
'sell_currency' => 'USDT',
'buy_currency' => 'USD',
'amount' => '1000.00',
'fixed_currency' => 'USD'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-auth-token: <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-sandbox.uqpaytech.com/api/v1/ramp/conversion/quote"
payload := strings.NewReader("{\n \"sell_currency\": \"USDT\",\n \"buy_currency\": \"USD\",\n \"amount\": \"1000.00\",\n \"fixed_currency\": \"USD\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-auth-token", "<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-sandbox.uqpaytech.com/api/v1/ramp/conversion/quote")
.header("x-auth-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"sell_currency\": \"USDT\",\n \"buy_currency\": \"USD\",\n \"amount\": \"1000.00\",\n \"fixed_currency\": \"USD\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.uqpaytech.com/api/v1/ramp/conversion/quote")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-auth-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"sell_currency\": \"USDT\",\n \"buy_currency\": \"USD\",\n \"amount\": \"1000.00\",\n \"fixed_currency\": \"USD\"\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"message": "Success",
"data": {
"quote_id": "958813b7-8523-4b93-862e-46eddb87b56d",
"sell_currency": "USDT",
"sell_amount": "100",
"buy_currency": "SGD",
"buy_amount": "133.84",
"currency_pair": "USDTSGD",
"direct_rate": "1.3384723",
"inverse_rate": "0.74712043",
"processing_fee": "0",
"network_fee": "0",
"valid_from": "2026-04-27T10:47:26+08:00",
"valid_to": "2026-04-27T10:50:26+08:00"
}
}Conversions
Create Quote
货币兑换的汇率报价。 Stablecoin Account API 发布方免责声明
POST
/
v1
/
ramp
/
conversion
/
quote
Create Quote
curl --request POST \
--url https://api-sandbox.uqpaytech.com/api/v1/ramp/conversion/quote \
--header 'Content-Type: application/json' \
--header 'x-auth-token: <api-key>' \
--data '
{
"sell_currency": "USDT",
"buy_currency": "USD",
"amount": "1000.00",
"fixed_currency": "USD"
}
'import requests
url = "https://api-sandbox.uqpaytech.com/api/v1/ramp/conversion/quote"
payload = {
"sell_currency": "USDT",
"buy_currency": "USD",
"amount": "1000.00",
"fixed_currency": "USD"
}
headers = {
"x-auth-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-auth-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
sell_currency: 'USDT',
buy_currency: 'USD',
amount: '1000.00',
fixed_currency: 'USD'
})
};
fetch('https://api-sandbox.uqpaytech.com/api/v1/ramp/conversion/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-sandbox.uqpaytech.com/api/v1/ramp/conversion/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([
'sell_currency' => 'USDT',
'buy_currency' => 'USD',
'amount' => '1000.00',
'fixed_currency' => 'USD'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-auth-token: <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-sandbox.uqpaytech.com/api/v1/ramp/conversion/quote"
payload := strings.NewReader("{\n \"sell_currency\": \"USDT\",\n \"buy_currency\": \"USD\",\n \"amount\": \"1000.00\",\n \"fixed_currency\": \"USD\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-auth-token", "<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-sandbox.uqpaytech.com/api/v1/ramp/conversion/quote")
.header("x-auth-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"sell_currency\": \"USDT\",\n \"buy_currency\": \"USD\",\n \"amount\": \"1000.00\",\n \"fixed_currency\": \"USD\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.uqpaytech.com/api/v1/ramp/conversion/quote")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-auth-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"sell_currency\": \"USDT\",\n \"buy_currency\": \"USD\",\n \"amount\": \"1000.00\",\n \"fixed_currency\": \"USD\"\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"message": "Success",
"data": {
"quote_id": "958813b7-8523-4b93-862e-46eddb87b56d",
"sell_currency": "USDT",
"sell_amount": "100",
"buy_currency": "SGD",
"buy_amount": "133.84",
"currency_pair": "USDTSGD",
"direct_rate": "1.3384723",
"inverse_rate": "0.74712043",
"processing_fee": "0",
"network_fee": "0",
"valid_from": "2026-04-27T10:47:26+08:00",
"valid_to": "2026-04-27T10:50:26+08:00"
}
}授权
UQPay 提供的用于登录的 API Token。
请求头
指定代表哪个子账户发起请求。应设置为 account_id,可通过 List Connected Accounts 接口获取。若省略或为空,则请求以主账户身份执行。
更多信息参见 Connected Accounts。
请求体
application/json
⌘I

