Get Account Detail - Cross Margin

Request via this endpoint to get the info of the cross margin account.

HTTP REQUEST

GET /api/v3/margin/accounts

Example

GET /api/v3/margin/accounts?quoteCurrency=BTC

//Response
{
    "success": true,
    "code": "200",
    "msg": "success",
    "retry": false,
    "data": {
        "timestamp": 1669708513820,
        "currentPage": 1,
        "pageSize": 100,
        "totalNum": 1,
        "totalPage": 1,
        "items": [
            {
                "totalLiabilityOfQuoteCurrency": "0.976",
                "totalAssetOfQuoteCurrency": "1.00",
                "debtRatio": "0.976",
                "status": "LIQUIDATION",
                "assets": [
                    {
                        "currency": "BTC",
                        "borrowEnabled": true,
                        "repayEnabled": true,
                        "transferEnabled": false,
                        "borrowed": "0.976",
                        "totalAsset": "1.00",
                        "available": "0.024",
                        "hold": "0",
                        "maxBorrowSize": "0"
                    }
                ]
            }
        ]
    }
}
API KEY PERMISSIONS

This endpoint requires the General permission.

REQUEST URL

This endpoint support Spot URL

REQUEST RATE LIMIT

Spot weight:15

PARAMETERS
Param Type Mandatory Description
quoteCurrency STRING No quote currency, currently only supports USDT, KCS, BTC, USDT as default
queryType STRING No Query account type (default MARGIN), MARGIN - only query low frequency cross margin account, MARGIN_V2-only query high frequency cross margin account, ALL - consistent aggregate query with the web side
RESPONSES
Param Description
totalAssetOfQuoteCurrency Total Assets in Quote Currency
totalLiabilityOfQuoteCurrency Total Liability in Quote Currency
debtRatio debt ratio
status Position status; EFFECTIVE-effective, BANKRUPTCY-bankruptcy liquidation, LIQUIDATION-closing, REPAY-repayment, BORROW borrowing
assets asset list
currency currency
liability Liabilities
total Total Assets
available Account available assets (total assets - frozen)
hold Account frozen assets
maxBorrowSize The user's remaining maximum loan amount
borrowEnabled Support borrow or not
repayEnabled Support repay or not
transferEnabled Support transfer or not