取得子帳號餘額
概述
此介面用於根據market_type 取得對應市場的子帳號餘額。market_type 定義見枚舉值定義- market_type。
此介面不直接定義請求與回應;當market_type 不同時,請求參數與回應資料與餘額模組中對應介面保持一致(請參閱下方「適配關係」)。
HTTP 請求
GET /account/subs/balance
請求參數
| 參數名 | 是否必須 | 類型 | 說明 | 
|---|---|---|---|
| sub_user_name | true | string | 子帳號用戶名 | 
| market_type | true | enum | 市場類型,枚舉值見market_type | 
說明:除上述兩個參數外,其他可選參數因market_type 而異,請參考下方對應文件。
適配關係(依market_type 路由至下列文件定義的請求/回應)
請求範例
- GET 
/account/subs/balance?sub_user_name=sub2&market_type=SPOT - GET 
/account/subs/balance?sub_user_name=sub2&market_type=MARGIN&market=CETUSDT - GET 
/account/subs/balance?sub_user_name=sub2&market_type=FUTURES