Get contract account assets
GET
/az/future/user/v1/compat/balance/list
Limit Flow Rules
200/s/apikey
Parameters
| Parameter | Type | Mandatory | Default | Description | Ranges |
|---|---|---|---|---|---|
| queryAccountId | string | false | N/A | account id |
Java
public void getMarketConfig() {
String text = HttpUtil.get(URL + "/data/api/user/v1/getMarketConfig");
System.out.println(text);
}
Response
{
"error": {
"code": "",
"msg": ""
},
"msgInfo": "",
"result": [
{
"accountId": 500000000000, // account id
"userId": 500000000000, // user id
"coin": "usdt", // Currency
"underlyingType": 2, // Coin standard, u standard
"walletBalance": "2078.57264793", // Currency balance
"openOrderMarginFrozen": "0", // Order frozen
"isolatedMargin": "0", // Margin freeze
"crossedMargin": "0", // Full margin freeze
"amount": "2078.57264793", // Net asset balance
"totalAmount": "2078.57264793", // Margin balance
"convertBtcAmount": "0.03638940", // walletBalance wallet asset conversion BTC
"convertUsdtAmount": "2078.5726", // walletBalance wallet asset conversion to USDT
"profit": "0", // Profit and loss
"notProfit": "0", // unrealized profit or loss
"bonus": "0", // Trial fee
"coupon": "0" // Deduction
}
],
"returnCode": 0
}