SpotAccount
API Scopes
Need Permission to view account balance information
SpotAccount
SpotAccount represents the state of one spot account.
Attribute Name | Type | Description | Example |
---|---|---|---|
asset_symbol | string | asset symbol of this account | BTC |
balance | string | balance, this is a float number in String format | 10.034 |
locked_balance | string | locked balance, this is a float number in String | 10.034 |
Balance of all assets
GET /viewer/accounts
Response is Spot Account Array.
[
{
"asset_symbol": "BTC",
"balance": "0",
"locked_balance": "0"
}
]
Balance of one asset
GET /viewer/accounts/{asset_symbol}
Parameters
Name | Type | Require | Description | Example |
---|---|---|---|---|
asset_symbol | string | true | asset symbol | BTC |
Response is Spot Account object.
{
"asset_symbol": "BTC",
"balance": "0",
"locked_balance": "0"
}