跳转到主要内容
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": "USDC",
  "buy_currency": "USD",
  "amount": "1000.00",
  "fixed_currency": "USD"
}
'
{
  "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"
  }
}

Documentation Index

Fetch the complete documentation index at: https://developers-sandbox.uqpaytech.com/llms.txt

Use this file to discover all available pages before exploring further.

授权

x-auth-token
string
header
必填

The API token for login provided by UQPay.

请求头

x-on-behalf-of
string

Specifies the sub-account on whose behalf the request is made. This should be set to the account_id, which can be retrieved via the List Connected Accounts API. If omitted or empty, the request is executed using the master account. More information at Connected Accounts.

请求体

application/json
sell_currency
string
必填

Selling currency

示例:

"USDC"

buy_currency
string
必填

Buying currency

示例:

"USD"

amount
string
必填

Amount for conversion

示例:

"1000.00"

fixed_currency
string
必填

The currency to fix the amount for (either sell or buy currency)

示例:

"USD"

响应

200 - application/json

Quote created successfully

code
integer
必填
示例:

200

message
string
必填
示例:

"Success"

data
object
必填