Skip to main content

Get Balance in Margin Account

Info
  • This endpoint requires signature. For specific signature rules, please refer to Authentication
  • This endpoint will trigger rate limit. For specific rules, please refer to Rate Limit.

HTTP request

GET /assets/margin/balance

Request parameters

Parameter NameRequiredTypeNotes
marketfalsestringMarkets

Return parameters

Parameter NameTypeNotes
margin_accountstringMargin Account.Margin market name.
base_ccystringBase currency
quote_ccystringQuote currency
availableobjectBalance available. Assets available for placing orders, including incoming transfers and borrowed assets.
available.base_ccystringBalance available in base currency
available.quote_ccystringBalance available in quote currency
frozenobjectFrozen balance. Assets in margin account that cannot be used for orders or transfers.
frozen.base_ccystringFrozen balance in base currency
frozen.quote_ccystringFrozen balance in quote currency
repaidobjectTo-be-repaid amount.The amount of borrowed currency to be repaid.
repaid.base_ccystringTo-be-repaid base currency amount
repaid.quote_ccystringTo-be-repaid quote currency amount
interestobjectInterest amount.The amount of interest to be repaid.
interest.base_ccystringInterest in base currency
interest.quote_ccystringInterest in quote currency
risk_ratestringCurrent risk rate.
  • When the risk rate is 0, return an empty string
liq_pricestringLiquidation price.
  • When there is no forced liquidation, return an empty string

Request example

GET /assets/margin/balance

Response example

{
"code": 0,
"data": [
{
"margin_account": "CETUSDT",
"base_ccy": "CET",
"quote_ccy": "USDT",
"available": {
"base_ccy": "45945.5263788804",
"quote_ccy": "0"
},
"frozen": {
"base_ccy": "50634.82448865128",
"quote_ccy": "0"
}
"repaid": {
"base_ccy": "14265.938812991284",
"quote_ccy": "0"
},
"interest": {
"base_ccy": "4321.234123894434",
"quote_ccy": "0"
},
"rik_rate": "",
"liq_price": ""
},
],
"message": "OK"
}