查詢手續費率
查詢交易手續費率
HTTP 請求
GET /v5/account/fee-rate
參數 | 是否必需 | 類型 | 說明 |
---|---|---|---|
category | true | string | 產品類型. spot , linear , inverse , option |
symbol | false | string | 合約名稱. 僅spot , linear , inverse 有效 |
baseCoin | false | string | 交易幣種. SOL , BTC , ETH .僅option 有效 |
響應參數
參數 | 類型 | 說明 |
---|---|---|
category | string | 產品類型. spot , option . 期貨不返回該字段 |
list | array | Object |
> symbol | string | 合約名稱. 期權總是為"" |
> baseCoin | string | 交易幣種. SOL , BTC , ETH
|
> takerFeeRate | string | 吃單手續費率 |
> makerFeeRate | string | 掛單手續費率 |
請求示例
- HTTP
- Python
- Node.js
GET /v5/account/fee-rate?symbol=ETHUSDT HTTP/1.1
Host: api.bybit.com
X-BAPI-SIGN: XXXXXXX
X-BAPI-API-KEY: XXXXXXX
X-BAPI-TIMESTAMP: 1676360412362
X-BAPI-RECV-WINDOW: 5000
from pybit.unified_trading import HTTP
session = HTTP(
testnet=True,
api_key="XXXXX",
api_secret="XXXXX",
)
print(session.get_fee_rates(
symbol="ETHUSDT",
))
const { RestClientV5 } = require('bybit-api');
const client = new RestClientV5({
testnet: true,
key: 'apikey',
secret: 'apisecret',
});
client
.getFeeRate({
category: 'linear',
symbol: 'ETHUSDT',
})
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});
響應示例
{
"retCode": 0,
"retMsg": "OK",
"result": {
"list": [
{
"symbol": "ETHUSDT",
"takerFeeRate": "0.0006",
"makerFeeRate": "0.0001"
}
]
},
"retExtInfo": {},
"time": 1676360412576
}