User Asset
GET
/api/v1/userAssetModified at: 2 个月前
User Assets provides detailed information about a user's assets on our platform, including available balances, in-use amounts, pending withdrawals, and current market prices.
请求参数
无
示例代码
Responses
OK(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
Data Schema
error
boolean
required
Indicates whether the API request encountered any errors.
assets
array [object {5}]
required
An array containing information for each asset held by the user.
assetName
string
required
The symbol or identifier of the asset.
available
number
required
The amount of the asset available for trading.
inUse
number
required
The amount of the asset currently in use (e.g., tied up in open orders).
pendingWithdraw
number
required
The amount of the asset pending withdrawal.
price
number
required
The current market price of the asset.
Example
{
"error": false,
"assets": [
{
"assetName": "USDT",
"available": 200000,
"inUse": 0,
"pendingWithdraw": 0,
"price": 1
},
{
"assetName": "USDC",
"available": 0,
"inUse": 0,
"pendingWithdraw": 0,
"price": 1
},
{
"assetName": "WBTC",
"available": 0,
"inUse": 0,
"pendingWithdraw": 0,
"price": 44174.62
}
]
}
Modified at 2 个月前