v1

latestOpenAPI 3.1.02026-07-241653251.3 MB
Accounts

List account movements

Retrieves the history of each itemized movement that has been applied to an account to lead up to its current balance.

get/accounts/{account_id}/movements

Path parameters

account_idstring required

This parameter enables the filtering of movements based on the associated account_id.

Query parameters

pagestring

Filters for a specific page (pagination)

movement_timestamp[gt]number

Filters for movements with a timestamp greater than the provided value, which can be defined in milliseconds or nanoseconds

movement_timestamp[gte]number

Filters for movements with a timestamp greater than or equal to the provided value, which can be defined in milliseconds or nanoseconds

movement_timestamp[e]number

Filters for movements with a timestamp that is equal to the provided value, which can be defined in milliseconds or nanoseconds

movement_timestamp[lt]number

Filters for movements with a timestamp less than the provided value, which can be defined in milliseconds or nanoseconds

movement_timestamp[lte]number

Filters for movements with a timestamp less than or equals the provided value, which can be defined in milliseconds or nanoseconds

parent_link_idstring

Filters for movements that are tagged with a specific parent_link_id

Headers

X-SCX-SIGNEDstring required

HMAC-SHA256 signature of the request, base64-encoded. See the Authentication guide for the exact signing formula.

X-SCX-TIMESTAMPstring required
Example:1678901234

Current Unix timestamp in seconds. Must be within 60 seconds of server time or the request is rejected.

Response

Successfully retrieved paginated list of account movements with optional filters: page, movement_timestamp filters, parent_link_id.

pagenumber
total_pagesnumber

Example response

{
  "message": [
    {
      "order_id": 123,
      "run_id": "500",
      "movement_timestamp": 1777911679783,
      "movement_id": "ab938734-0aa6-4378-baa1-2cc56aeee757",
      "movement_type": "transfer",
      "trade_id": "3ad29e08-8b4f-435b-89aa-17b7a298b350",
      "change": "-14.77",
      "parent_link_id": "3ad29e08-8b4f-435b-89aa-17b7a298b350",
      "origin": "rest_api"
    }
  ],
  "page": 1,
  "total_pages": 1
}