兑换订单列表(游标分页)
代会员调用 · 必带
x-on-behalf-of
游标是不透明串,别自己拼。解不开的游标按「从头开始」处理而不是
报错 —— 我方换排序实现时你的下一次调用能自愈。
⚠ 这个端点的金额是最小单位整数串("500000000"),与
POST /v1/exchange/orders、GET /v1/exchange/orders/{id}、
POST /v1/exchange/quotes 的定点串不是同一种形态。
这条线上只有这一个端点是整数串形态 —— 别把详情的解析函数拿来读它。
位数随行下发(ledger_scale_from / ledger_scale_to /
ledger_scale_fee),自己插小数点。三个分开给:手续费落在哪个
资产由该方向的配置决定,可能既不是 from 也不是 to(USDT→USD
收在 to 侧是最常见的组合),复用其中任何一个都会在那个币对上就错。
⚠ 锁了价还没成交的报价会以 status: quoted 出现在这个清单里 ——
它不是一笔交易,到期即作废、不产生任何资金动作。对账时按 status
过滤,别把 quoted 算进成交量。
查询参数
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
limit |
integer | 可选 | 每页条数。缺省 20,上限 100;非法值一律回落到 20。 |
cursor |
string | 可选 | 上一页返回的 next_cursor。不透明串,不要解析或自造。 |
请求头
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
x-on-behalf-of |
string | 必填 | 只返回这个会员在你名下的兑换单。 |
响应
200
status 取值:quoted / executing / executed / failed /
canceled / reversed(后者是后台冲正)。认不出的值原样存下并
告警,不要 default。{
"data": [
{
"id": "exc_7a1e5c30-2b44-4c11-9f8e-31d0a7b62c45",
"status": "executed",
"from_asset": "USDT",
"to_asset": "USD",
"from_amount": "500000000",
"to_amount": "498750000",
"rate": "1.0000",
"fee_asset": "USD",
"fee_amount": "1250000",
"ledger_scale_from": 6,
"ledger_scale_to": 6,
"ledger_scale_fee": 6,
"created_at": "2026-08-12T09:30:00Z"
}
],
"next_cursor": "eyJ2IjoxfQ",
"has_more": true
}400
member_context_required · member_not_found403
insufficient_scope请求
curl -X GET 'https://api.zise.com/v1/exchange/orders' \
-H 'x-auth-token: Bearer $TOKEN' \
-H 'x-on-behalf-of: $MEMBER_ID'const res = await fetch("https://api.zise.com/v1/exchange/orders", {
method: "GET",
headers: {
"x-auth-token": "Bearer $TOKEN",
"x-on-behalf-of": "$MEMBER_ID",
},
});
// 金额按字符串读,别让它变成 number
const data = await res.json();import requests
res = requests.get(
"https://api.zise.com/v1/exchange/orders",
headers={
"x-auth-token": "Bearer $TOKEN",
"x-on-behalf-of": "$MEMBER_ID",
},
)
# 金额用 Decimal(str(...)),不要 float
data = res.json()req, _ := http.NewRequest("GET", "https://api.zise.com/v1/exchange/orders",
nil)
req.Header.Set("x-auth-token", "Bearer $TOKEN")
req.Header.Set("x-on-behalf-of", "$MEMBER_ID")
res, err := http.DefaultClient.Do(req)
// 金额字段用 string 接,不要 float64HttpRequest req = HttpRequest.newBuilder()
.uri(URI.create("https://api.zise.com/v1/exchange/orders"))
.header("x-auth-token", "Bearer $TOKEN")
.header("x-on-behalf-of", "$MEMBER_ID")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
// 金额字段用 String / BigDecimal,不要 double$ch = curl_init('https://api.zise.com/v1/exchange/orders');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'x-auth-token: Bearer $TOKEN',
'x-on-behalf-of: $MEMBER_ID',
],
]);
$res = curl_exec($ch);
// 金额用 bcmath / 字符串,不要 floatval
200
{
"data": [
{
"id": "exc_7a1e5c30-2b44-4c11-9f8e-31d0a7b62c45",
"status": "executed",
"from_asset": "USDT",
"to_asset": "USD",
"from_amount": "500000000",
"to_amount": "498750000",
"rate": "1.0000",
"fee_asset": "USD",
"fee_amount": "1250000",
"ledger_scale_from": 6,
"ledger_scale_to": 6,
"ledger_scale_fee": 6,
"created_at": "2026-08-12T09:30:00Z"
}
],
"next_cursor": "eyJ2IjoxfQ",
"has_more": true
}