Przejdź do treści
Zarejestruj się

Subkonta

Pobierz listę subkont

Konto główne i każde subkonto Twojej firmy, każde z wartością wszystkiego, co na nim jest, w euro.

GET/api/v1/sub-accountsZdobądź klucz
curl --request GET \
  --url "https://reirex.com/api/v1/sub-accounts" \
  --header "GX-API-KEY: $GX_API_KEY" \
  --header "GX-API-TIMESTAMP: $TIMESTAMP" \
  --header "GX-API-SIGN: $SIGNATURE"

200 OKapplication/json

{
  "main": {
    "uid": 4182736455,
    "total": "182400.12"
  },
  "subAccounts": [
    {
      "subAccountId": 12,
      "uid": 7731940025,
      "name": "market_making",
      "label": "Market making",
      "status": "active",
      "trade": true,
      "keys": 1,
      "total": "25000.00",
      "createdAt": "2026-09-02T08:15:40.120Z"
    },
    {
      "subAccountId": 9,
      "uid": 2950417368,
      "name": "treasury",
      "label": "Treasury",
      "status": "active",
      "trade": false,
      "keys": 0,
      "total": "140000.00",
      "createdAt": "2026-08-21T12:03:09.774Z"
    }
  ],
  "limit": 20,
  "currency": "EUR"
}

Odczytać to może tylko klucz konta głównego firmy. Klucz subkonta dostaje main_account_only, konto osobiste not_institution. Subkonta tworzysz, opisujesz etykietami i zamrażasz na stronie.

Odpowiedź

  • mainobject

    Konto główne.

  • subAccountsobject[]

    Subkonta od najnowszego.

  • limitinteger

    Ile subkont może mieć firma.

  • currencystring

    Waluta sum: zawsze EUR.