Balances
This method returns the account's balances that matches the entered ID.
Authorizations
Path parameters
account_idintegerRequired
The account's ID
Responses
200
Account object
application/json
Responseone of
or
or
404
Account not found
application/json
get
GET /accounts/{account_id}/balances HTTP/1.1
Host:
X-Ledger-API-Key: YOUR_API_KEY
Accept: */*
{
"available": "750",
"pending": "250",
"total": "1000"
}
This method returns the account's balances history that matches the entered ID.
Authorizations
Path parameters
account_idintegerRequired
The account's ID
Query parameters
endstring · date-time | nullableOptionalDefault:
End of the balance history time span.
2025-04-08T14:57:28.155582+00:00
startstring · date-time | nullableOptionalDefault:
Start of the balance history time span.
2025-04-08T14:57:28.155554+00:00
Responses
200
Account object
application/json
501
Not supported for this currency
application/json
get
GET /accounts/{account_id}/balances/history HTTP/1.1
Host:
X-Ledger-API-Key: YOUR_API_KEY
Accept: */*
{
"account_index": 1,
"balances": [
{
"date": "text",
"value": "text"
}
],
"currency": {
"magnitude": 1,
"name": "text",
"network": "text",
"token_address": "text"
}
}
Last updated