List balances

GET {{baseUrl}}/ledgers/:ledgerId/balances/accounts

Retrieves asset balances for every account in a ledger in a paginated way.

Allowed roles: VIEWER and EDITOR

Request Params

KeyDatatypeRequiredDescription
datestring(Optional query) Include transactions only until given datetime (inclusive) in the balance calculation
pageTokenstringThe pageToken parameter identifies a specific page in the result set that should be returned.
In an API response, the nextPageToken property identifies other pages that could be retrieved.
limitnumber(Optional query) Limit the number of results.

Accepts a positive integer between 1 and 100. Default: 100

Note that the sever may choose to ignore this parameter and use a lower value.

Example: 20 | | sort | string | | (Optional query) Sorting order |

HEADERS

KeyDatatypeRequiredDescription
tangany-versionnumber(Required) API version
Acceptstring

RESPONSES

status: OK

{"items":[{"date":"2022-10-05T14:48:00.000Z","accountId":"dolor veniam aliqua nostrud non","balances":{"Duis_1":{"bookedBalance":"0.00548","availableBalance":"0.00548"}}},{"date":"2022-10-05T14:48:00.000Z","accountId":"esse","balances":{"Lorem_c_":{"bookedBalance":"0.00548","availableBalance":"0.00548"},"officia9d8":{"bookedBalance":"0.00548","availableBalance":"0.00548"}}}],"nextPageToken":"NDg2ODg=","pageInfo":{"totalResults":97942610.04420882,"resultsPerPage":-71682779.56056817}}