Single Asset Balance
Get the balance of a specific asset for the user.
API Information
- Method:
GET - Path:
/api/v1/assets/{asset} - Authentication: Requires signature authentication (see Common Module · Signature Specification)
Request Parameters
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
| asset | path | string | Yes | Asset type, e.g. BTC, USDT |
Request Example
GET /api/v1/assets/USDT
Response Fields
| Field | Type | Description |
|---|---|---|
| code | integer | Status code |
| message | string | Response message |
| data.id | integer | Primary key ID |
| data.user_id | integer | User ID |
| data.asset | string | Asset type |
| data.available | string | Available balance |
| data.frozen | string | Frozen balance |
| data.updated_at | integer | Update time (milliseconds) |
Response Example
{
"code": 0,
"message": "success",
"data": {
"id": 1,
"user_id": 100001,
"asset": "USDT",
"available": "1000.5",
"frozen": "50",
"updated_at": 1704067200000
}
}