Skip to main content
POST

授权

x-auth-token
string
header
必填

由 UQPAY 提供的登录 API Token。

请求头

x-idempotency-key
string<uuid>
必填

用于维持操作幂等性的唯一标识符。同一操作重试时使用相同的键和请求内容;新的操作使用新的键。

Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$

请求体

application/json
asset_id
string<uuid>
必填

List assets 返回的资产标识。

示例:

"7453f146-b267-11f1-b4f4-0abd773ba497"

side
enum<string>
必填
可用选项:
BUY
示例:

"BUY"

funding_currency
enum<string>
必填

交易使用的资金币种。

可用选项:
USDC
示例:

"USDC"

cash_amount
string
必填

不含手续费的正数资金金额。不要同时提交 quantity。

Pattern: ^[0-9]{1,18}(\.[0-9]{1,6})?$
示例:

"1"

响应

成功

quote_id
string<uuid>
必填

创建订单时提交的报价标识。

示例:

"0576b03b-56dd-48b1-ba24-058ce90d0f53"

asset_id
string<uuid>
必填

平台资产 UUID,列表与所有交易接口共用

示例:

"7453f146-b267-11f1-b4f4-0abd773ba497"

symbol
string
必填

资产代码。

示例:

"AAPLx"

side
enum<string>
必填

拟进行交易的方向。

可用选项:
BUY,
SELL
示例:

"BUY"

network
string
必填

报价所选的区块链网络;报价请求不指定网络。

示例:

"Ethereum"

funding_currency
enum<string>
必填

资金币种,现为 USDC

可用选项:
USDC
示例:

"USDC"

quantity
string | null
必填

报价中的资产数量;需要在执行时确定数量时为 null。

Pattern: ^-?[0-9]+(\.[0-9]+)?$
示例:

"0.00297066689243735"

price
string | null
必填

以 funding_currency 计价的每单位报价;报价未确定执行价格时为 null。

Pattern: ^-?[0-9]+(\.[0-9]+)?$
示例:

"336.624750000000055741"

cash_amount
string | null
必填

以 funding_currency 计价、不含手续费的交易金额;需要在执行时确定时为 null。

Pattern: ^-?[0-9]+(\.[0-9]+)?$
示例:

"1"

fees
object[] | null
必填

报价中的费用。null 表示费用暂不可用,不代表免收费用。

total_amount
string | null
必填

以 funding_currency 计价,买入时为含手续费的总支出,卖出时为扣除手续费后的收入;尚无法确定时为 null。

Pattern: ^-?[0-9]+(\.[0-9]+)?$
示例:

"1.0005"

created_at
string<date-time>
必填

报价创建时间。

示例:

"2026-09-21T01:33:07.797Z"

expires_at
string<date-time> | null
必填

客户确认截止时间;过期后应申请新报价

示例:

"2026-09-21T01:34:04.542Z"