/
v3.0.11Get access

getChildrenBalances

Retrieves the balances of all active currency wallets associated with the user

Request parameters:

The method works without parameters

Call example:

getChildrenBalances({
  command: 'get_children_balances',
  params: [],
  rid: 1382708563
})

Response examples:

{
  code: 0,
  rid: 1382708563,
  data: {
    result: 0,
    result_text: null,
    details: [{
      ClientId: 1839907287,
      CurrencyId: 'TUS',
      Balance: 3.69
    }, {
      ClientId: 1850462659,
      CurrencyId: 'FTN',
      Balance: 0
    }, {
      ClientId: 1854049450,
      CurrencyId: 'ETH',
      Balance: 0
    }, {
      ClientId: 1854049832,
      CurrencyId: 'MBT',
      Balance: 0
    }, {
      ClientId: 1854051736,
      CurrencyId: 'USD',
      Balance: 0
    }]
  },
  hasError: false,
  error: {
    message: ''
  }
}

Response parameters:

NameDescriptionTypeValues
ClientId
An identifier tied to the user's specific wallet account for a given currencynumber-
CurrencyId
An identifier for a currency type (e.g. "BTC", "ETH", "USD")string-
Balance
The user's current balance for a given currency walletnumber-