Endpoint to retrieve account information. Mostly used to obtain balances in all assets.
Response will show free (available to trade) and locked (not available to trade) balances.
GET /api/v1/accounting/account/{accountId}
GET /api/v1/accounting/account/test123
// Successful Response body
{
"account": {
"accountId": "test123",
"type": "string",
"name": "string",
"balances": {
"BTC": {
"free": 100,
"locked": 0,
"limit": 0,
"pendingDeposit": 0,
"available": 0
},
"USD": {
"free": 0,
"locked": 10000,
"limit": 0,
"pendingDeposit": 0,
"available": 0
}
},
"sources": [
{
"entityType": "string",
"entityId": "string"
}
]
},
"status": "OK",
"httpStatusCode": 200,
}
// Error Response body
{
"status": 404,
"error": "Account ID Not Found"
}