Z Zise Developers

内部调剂的成交记录

GET /v1/merchant/conversions scope: merchant:read
商户自身

keyset 游标,按 (created_at, id) 严格递减,不用 OFFSET

每行没有状态字段,因为这条线没有状态:能被列出来就是已成交。

这是资金档案,永不删除、永不改写。

行的字段与 POST 的成交出参逐字相同(少一个 duplicated)。

金额是十进制串,两侧位数分别看 ledger_scale_from /

ledger_scale_to

查询参数

字段类型必填说明
limit integer 可选 缺省 20、上限 100。非法值静默回落到 20,不报错
cursor string 可选 上一页的 next_cursor(不透明串,不要自己拼)

响应

200OK
{
  "data": [
    {
      "id": "mcv_7a1e5c30-2b44-4c11-9f8e-31d0a7b62c45",
      "from_asset": "USDT",
      "to_asset": "USDC",
      "from_amount": "5000.000000",
      "to_amount": "4990.003750",
      "rate": "0.999500",
      "fee_asset": "USDC",
      "fee_amount": "7.496250",
      "ledger_scale_from": 6,
      "ledger_scale_to": 6,
      "created_at": "2026-08-13T04:12:55.108Z"
    }
  ],
  "next_cursor": null,
  "has_more": false
}
403insufficient_scopemerchant:read
请求
curl -X GET 'https://api.zise.com/v1/merchant/conversions' \
  -H 'x-auth-token: Bearer $TOKEN'
const res = await fetch("https://api.zise.com/v1/merchant/conversions", {
  method: "GET",
  headers: {
    "x-auth-token": "Bearer $TOKEN",
  },
});
// 金额按字符串读,别让它变成 number
const data = await res.json();
import requests

res = requests.get(
    "https://api.zise.com/v1/merchant/conversions",
    headers={
        "x-auth-token": "Bearer $TOKEN",
    },
)
# 金额用 Decimal(str(...)),不要 float
data = res.json()
req, _ := http.NewRequest("GET", "https://api.zise.com/v1/merchant/conversions",
    nil)
req.Header.Set("x-auth-token", "Bearer $TOKEN")
res, err := http.DefaultClient.Do(req)
// 金额字段用 string 接,不要 float64
HttpRequest req = HttpRequest.newBuilder()
    .uri(URI.create("https://api.zise.com/v1/merchant/conversions"))
    .header("x-auth-token", "Bearer $TOKEN")
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
// 金额字段用 String / BigDecimal,不要 double
$ch = curl_init('https://api.zise.com/v1/merchant/conversions');
curl_setopt_array($ch, [
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_HTTPHEADER => [
    'x-auth-token: Bearer $TOKEN',
  ],
]);
$res = curl_exec($ch);
// 金额用 bcmath / 字符串,不要 floatval
200
{
  "data": [
    {
      "id": "mcv_7a1e5c30-2b44-4c11-9f8e-31d0a7b62c45",
      "from_asset": "USDT",
      "to_asset": "USDC",
      "from_amount": "5000.000000",
      "to_amount": "4990.003750",
      "rate": "0.999500",
      "fee_asset": "USDC",
      "fee_amount": "7.496250",
      "ledger_scale_from": 6,
      "ledger_scale_to": 6,
      "created_at": "2026-08-13T04:12:55.108Z"
    }
  ],
  "next_cursor": null,
  "has_more": false
}