Skip to main content

Account APIs

The Account APIs allow access to Etana custody account balances and transactions.

Get a snapshot of account balances

Get current account balances across all securities in the account.

Request method

account/core/balance

Parameters

FieldTypeDescription
accountIdstringThe account identifier to be queried for.

Response

FieldTypeDescription
accountIdstringThe account identifier of the account.
balancesmap of string:numberTotal balance per security.
reservedmap of string:numberAmounts reserved per security.
unsettledmap of string:numberInternally tracked settlement amounts for integration with correspondents.

Account balance updates

Provides updates on the account balances for a given account.

Subscription spec

FieldTypeDescription
itemstring"account/core/balance"
accountIdstringThe account identifier of the account of interest.

Update

FieldTypeDescription
accountIdstringThe account identifier of the account.
balancesmap of string:numberTotal balance per security.
reservedmap of string:numberAmounts reserved per security.
unsettledmap of string:numberInternally tracked settlement amounts for integration with correspondents.

Get a snapshot of transactions for an account

Get transactions for the given account.

Request method

account/core/txs

Parameters

FieldTypeDescription
accountIdstringThe account identifier of the account.
offsetnumberSkip this many transactions in the result set.
countnumberReturn this many transactions in the result set, starting at offset.

Response

FieldTypeDescription
[]list of transactionsTransactions.

Transaction updates for an account

Provides updates on new transactions as they are booked to the account.

Subscription spec

FieldTypeDescription
itemstring"account/core/txs"
accountIdstringThe account identifier of the account of interest.

Update

FieldTypeDescription
tidnumberThe transaction identifier uniquely identifying this transaction.
accountIdstringThe account to which this transaction applies.
secIdstringThe security identifier for the transaction.
tsnumberA timestamp representing the time that the transaction was received by the accounting system. Epoch milliseconds.
amountnumberThe amount of the transaction.
descstringDescription as specified in the booking request.