v1

latestOpenAPI 3.0.32026-07-2613529376.3 KB
Codes

Get codes history

The endpoint retrieves the whole codes history for the account.

<Warning> Rate limit: 1000 requests/10 sec. </Warning> <Note> The API does not cache the response. </Note> <Note> Results are sorted by date, newest first. </Note> <Note> **No date filtering:** the endpoint does not accept `startDate` / `endDate` parameters, and pagination is capped at `offset + limit ≤ 10000` (`limit` ≤ 100). For a complete history export beyond the cap, use the Report on the History page. </Note>
post/api/v4/main-account/codes/history

Request body

limitinteger

LIMIT is a special clause used to limit records a particular query can return.

offsetinteger

Use the OFFSET clause to return entries starting from a particular line.

requeststring required

Request signature

nonceinteger required

Unique request identifier

Example request

{
  "limit": 100,
  "request": "{{request}}",
  "nonce": 1594297865000
}

Response

All validations succeeded and creating transaction is started

totalinteger

Total number of code history entries

limitinteger
offsetinteger

Example response

{
  "data": [
    {
      "amount": "-100",
      "code": "WBe50fbe4d5d...ee33",
      "date": 1598296132,
      "status": "applied",
      "ticker": "USDT",
      "external_id": "id1"
    }
  ]
}