Last updated 4 months ago
GET /api/subaccount/balance/<subaccount_id>
GET
/api/subaccount/balance/<subaccount_id>
Get asset balance of currently subaccount user.
Headers
* is mandatory parameter
/api/subaccount/balance/3dc81811-8cdb-49c6-8f9e-9125ea4540b0?asset=aud
Response
{ "message": "balance found", "payload": { "available": 958638, "pending": 17526, "asset": "AUD" } }
{ "message": "Get balance failed", "error": [ { "code": "SUBA304", "message": "Asset is not valid" } ] }
x-api-key
<token>
signature
asset*
string
Asset to get balance