List user assets

Balances of user’s assets

URL

GET https://exchange.savitar.io/api/v1/user/accounts

Response Data

[].asset
enum
Balance currency.
Possible values: EUR, BTC
[].balance
string
Available balance.
[].locked
string
Locked balance

Example

Request:

curl -H "Authorization: Bearer $JWT_TOKEN" \
     https://exchange.savitar.io/api/v1/user/accounts

Response:

{
  "status": "ok",
  "response": [
    { "asset": "EUR", "balance": "0", "locked": "0" },
    { "asset": "BTC", "balance": "0.00329289", "locked": "0" }
  ]
}