Z Zise Developers

币对(按方向配:A→B 与 B→A 是两条独立记录)

GET /v1/exchange/pairs scope: exchange:read
商户自身

按方向配USDT→USDUSD→USDT 是两条独立记录,费率不必对称、

可以只关一个。把它当成一条无向边缓存起来,会让「只关了一个方向」

在你这一侧表现成两个方向都能下单,然后成交时被拒。

这个清单已经做过逐方向的平台回落:你没配的方向会落到平台默认值。

所以清单里出现的方向就是你的会员在 App 上看得到的那些。

不分页(has_more 恒为 false),但信封形状与所有清单端点一致 ——

你的通用翻页器可以照常吃它。

响应

200OK
{
  "data": [
    {
      "from": "USDT",
      "to": "USD"
    },
    {
      "from": "USD",
      "to": "USDT"
    }
  ],
  "next_cursor": null,
  "has_more": false
}
403insufficient_scope —— 这把 Key 没有 exchange:read
请求
curl -X GET 'https://api.zise.com/v1/exchange/pairs' \
  -H 'x-auth-token: Bearer $TOKEN'
const res = await fetch("https://api.zise.com/v1/exchange/pairs", {
  method: "GET",
  headers: {
    "x-auth-token": "Bearer $TOKEN",
  },
});
// 金额按字符串读,别让它变成 number
const data = await res.json();
import requests

res = requests.get(
    "https://api.zise.com/v1/exchange/pairs",
    headers={
        "x-auth-token": "Bearer $TOKEN",
    },
)
# 金额用 Decimal(str(...)),不要 float
data = res.json()
req, _ := http.NewRequest("GET", "https://api.zise.com/v1/exchange/pairs",
    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/exchange/pairs"))
    .header("x-auth-token", "Bearer $TOKEN")
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
// 金额字段用 String / BigDecimal,不要 double
$ch = curl_init('https://api.zise.com/v1/exchange/pairs');
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": [
    {
      "from": "USDT",
      "to": "USD"
    },
    {
      "from": "USD",
      "to": "USDT"
    }
  ],
  "next_cursor": null,
  "has_more": false
}