獲取賬戶詳情 - 逐倉槓桿

該接口可以查詢逐倉帳戶信息

HTTP請求

GET /api/v3/isolated/accounts

請求示例

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

//Response
{
	"code": "200000",
	"data": [
		{
			"totalAssetOfQuoteCurrency": "3.4939947",
			"totalLiabilityOfQuoteCurrency": "0.00239066",
			"timestamp": 1668062174000,
			"assets": [
				{
					"symbol": "MANA-USDT",
					"debtRatio": "0",
					"status": "BORROW",
					"baseAsset": {
						"currency": "MANA",
						"borrowEnabled": true,
						"repayEnabled": true,
						"transferEnabled": true,
						"borrowed": "0",
						"totalAsset": "0",
						"available": "0",
						"hold": "0",
						"maxBorrowSize": "1000"
					},
					"quoteAsset": {
						"currency": "USDT",
						"borrowEnabled": true,
						"repayEnabled": true,
						"transferEnabled": true,
						"borrowed": "0",
						"totalAsset": "0",
						"available": "0",
						"hold": "0",
						"maxBorrowSize": "50000"
					}
				}
			]
		}
	]
}
API權限

此接口需要通用權限

請求URL

此接口支持现货URL

頻率限制

現貨類權重:15

請求參數
請求參數 類型 是否必須 含義
symbol STRING 逐倉交易對,不傳查詢全部
quoteCurrency STRING 計價幣種,目前只支持USDT、KCS、BTC,不傳默認USDT
queryType STRING 查詢帳戶類型(默認ISOLATED),ISOLATED-只查詢低頻,ISOLATED_V2-只查詢高頻,ALL-和web端一致的聚合查詢
返回值
字段 含義
totalAssetOfQuoteCurrency 計價幣種總資產
totalLiabilityOfQuoteCurrency 計價幣種總負債
timestamp 時間戳
status 倉位狀態;EFFECTIVE-生效 , BANKRUPTCY-破產穿倉 , LIQUIDATION-平倉中 ,REPAY - 還款中 ,BORROW 借入中
assets 資產列表
symbol 交易對
debtRatio 負債率
baseAsset base資產
quoteAsset quote資產
currency 幣種
borrowEnabled 是否可以借入
repayEnabled 是否可以還款
transferEnabled 是否可以劃轉
liability 負債數量
total 總資產
available 帳戶可用資產(總資產-凍結)
hold 帳戶凍結資產
maxBorrowSize 用戶剩餘最大可借