API reference

Conventions

Response format

Every endpoint returns JSON with the same structure:

JSON
{
  "code": 0,
  "message": "ok",
  "data": { }
}
FieldTypeDescription
codeinteger0 means success; anything else is an error — see Errors
messagestringok on success, otherwise the reason for the error
dataobject / arrayThe result; null on error

Use code to decide success. On errors the HTTP status also changes accordingly (400, 401, 404, 409, 429, 500, 503) — see Errors.

Amounts

  • All amounts, in requests and responses, are strings such as "1000" or "0.01512518", to avoid floating-point loss.
  • Request amounts allow up to 18 integer digits and 18 decimal places and must be greater than 0.
  • Use a decimal type in your system (e.g. BigDecimal, decimal).

Time

Time fields are UTC in the format 2026-11-15T15:31:24.73 (no time-zone suffix). Parse them as UTC.

Currencies and networks

A currency (currency) plus a network (network) identify an asset — USDT, for example, exists on TRC20, ERC20 and others. Always use the values returned by Currencies rather than typing them yourself.

Pagination

List endpoints take page (from 1) and size (1–100, default 20) and return:

JSON
{ "items": [ ], "total": 128, "page": 1, "size": 20 }

Compatibility

  • We may add fields to responses; your parser must ignore unknown fields.
  • Don't rely on the order of fields in JSON.
  • A field with no value may be null or absent — treat both the same.

Need help with your integration? Contact support: [email protected]