Z Zise Developers 简体中文

Executed internal conversions

GET /v1/merchant/conversions scope: merchant:read
Merchant account

Keyset pagination, strictly descending by (created_at, id), without OFFSET.

Rows have no status field because this business line has no statuses: an order appearing here has executed. These financial records are never deleted or rewritten.

Fields are identical to the execution response from POST, except for duplicated. Amounts are decimal strings; precision for each side comes from ledger_scale_from / ledger_scale_to.

Query Parameters

FieldTypeRequiredDescription
limit integer Optional Defaults to 20, maximum 100. Invalid values silently fall back to 20 without an error.
cursor string Optional The previous page's next_cursor; an opaque string, not something to construct yourself.

Response

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_scope: missing merchant:read.
Request
curl -X GET 'https://api.zinfra.vip/v1/merchant/conversions' \
  -H 'x-auth-token: Bearer $TOKEN'
const res = await fetch("https://api.zinfra.vip/v1/merchant/conversions", {
  method: "GET",
  headers: {
    "x-auth-token": "Bearer $TOKEN",
  },
});
// Keep monetary amounts as strings, never numbers.
const data = await res.json();
import requests

res = requests.get(
    "https://api.zinfra.vip/v1/merchant/conversions",
    headers={
        "x-auth-token": "Bearer $TOKEN",
    },
)
# Use Decimal(str(...)) for amounts, not float.
data = res.json()
req, _ := http.NewRequest("GET", "https://api.zinfra.vip/v1/merchant/conversions",
    nil)
req.Header.Set("x-auth-token", "Bearer $TOKEN")
res, err := http.DefaultClient.Do(req)
// Decode amount fields as string, not float64.
HttpRequest req = HttpRequest.newBuilder()
    .uri(URI.create("https://api.zinfra.vip/v1/merchant/conversions"))
    .header("x-auth-token", "Bearer $TOKEN")
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
// Use String / BigDecimal for amounts, not double.
$ch = curl_init('https://api.zinfra.vip/v1/merchant/conversions');
curl_setopt_array($ch, [
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_HTTPHEADER => [
    'x-auth-token: Bearer $TOKEN',
  ],
]);
$res = curl_exec($ch);
// Use bcmath / strings for amounts, not 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
}