查詢帳戶信息
信息
- 使用經紀商的母帳戶進行查詢
API頻率: 10次/秒
HTTP 請求
GET /v5/broker/account-info
請求參數
無
響應參數
參數 | 類型 | 說明 |
---|---|---|
subAcctQty | string | 已創建的子帳戶數量 |
maxSubAcctQty | string | 允許創建的子帳戶數量上限 |
baseFeeRebateRate | Object | 基礎費率返佣 |
> spot | string | 現貨交易基礎費率返佣, 例如, 10.00% |
> derivatives | string | 期貨交易基礎費率返佣, 例如, 10.00% |
markupFeeRebateRate | Object | 加點費率返佣 |
> spot | string | 現貨交易加點費率返佣, 例如, 10.00% |
> derivatives | string | 期貨交易加點費率返佣, 例如, 10.00% |
> convert | string | 閃兌加點費率返佣, 例如, 10.00% |
ts | string | 系統時間戳 (毫秒) |
請求示例
- HTTP
- Python
- Node.js
GET /v5/broker/account-info HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: XXXXX
X-BAPI-TIMESTAMP: 1701399431920
X-BAPI-RECV-WINDOW: 5000
Content-Type: application/json
const { RestClientV5 } = require('bybit-api');
const client = new RestClientV5({
testnet: true,
key: 'apikey',
secret: 'apisecret',
});
client
.getExchangeBrokerAccountInfo()
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});
響應示例
{
"retCode": 0,
"retMsg": "success",
"result": {
"subAcctQty": "2",
"maxSubAcctQty": "20",
"baseFeeRebateRate": {
"spot": "10.0%",
"derivatives": "10.0%"
},
"markupFeeRebateRate": {
"spot": "6.00%",
"derivatives": "9.00%",
"convert": "3.00%"
},
"ts": "1701395633402"
},
"retExtInfo": {},
"time": 1701395633403
}