Exchange order list, cursor-paginated
x-on-behalf-of required
Cursors are opaque strings; do not construct them. Undecodable cursors restart at the beginning rather than error, allowing the next request to recover automatically if our ordering implementation changes.
⚠ Amounts here are integer strings in minor units, such as "500000000", unlike fixed-point strings in POST /v1/exchange/orders, GET /v1/exchange/orders/{id}, and POST /v1/exchange/quotes. This is the only endpoint in this flow using integer strings; do not parse it with the detail endpoint’s parser.
Precision is supplied alongside each row through ledger_scale_from / ledger_scale_to / ledger_scale_fee; insert decimal points yourself. All three are separate: fee denomination depends on direction configuration and need not be inferred from either asset; charging the to side for USDT→USD is common. Reusing either asset’s scale can be wrong for a particular pair.
⚠ Locked quotes not yet executed appear with status: quoted. They are not transactions, expire unused, and move no funds. Filter by status during reconciliation; do not count quoted as executed volume.
Query Parameters
| Field | Type | Required | Description |
|---|---|---|---|
limit |
integer | Optional | Items per page. Defaults to 20, maximum 100; invalid values fall back to 20. |
cursor |
string | Optional | next_cursor from the previous page. Opaque string; do not parse or manufacture it. |
Request Headers
| Field | Type | Required | Description |
|---|---|---|---|
x-on-behalf-of |
string | Required | Returns only this member’s exchange orders under your merchant. |
Response
status values: quoted / executing / executed / failed / canceled / reversed, the last being an administrative reversal. Store unknown values unchanged and alert; do not 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
}member_context_required · member_not_foundinsufficient_scopecurl -X GET 'https://api.zinfra.vip/v1/exchange/orders' \
-H 'x-auth-token: Bearer $TOKEN' \
-H 'x-on-behalf-of: $MEMBER_ID'const res = await fetch("https://api.zinfra.vip/v1/exchange/orders", {
method: "GET",
headers: {
"x-auth-token": "Bearer $TOKEN",
"x-on-behalf-of": "$MEMBER_ID",
},
});
// Keep monetary amounts as strings, never numbers.
const data = await res.json();import requests
res = requests.get(
"https://api.zinfra.vip/v1/exchange/orders",
headers={
"x-auth-token": "Bearer $TOKEN",
"x-on-behalf-of": "$MEMBER_ID",
},
)
# Use Decimal(str(...)) for amounts, not float.
data = res.json()req, _ := http.NewRequest("GET", "https://api.zinfra.vip/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)
// Decode amount fields as string, not float64.HttpRequest req = HttpRequest.newBuilder()
.uri(URI.create("https://api.zinfra.vip/v1/exchange/orders"))
.header("x-auth-token", "Bearer $TOKEN")
.header("x-on-behalf-of", "$MEMBER_ID")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
// Use String / BigDecimal for amounts, not double.$ch = curl_init('https://api.zinfra.vip/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);
// Use bcmath / strings for amounts, not floatval.
{
"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
}