Bitget APIBitget API
统一账户经典账户
旧文档
  • 概览
  • API 文档
  • WebSocket
  • Agent Hub
  • SDK
  • 更新日志
Copied to clipboard
接口文档
经典账户
    公共
      获取服务器时间get获取交易手续费get获取业务线所有交易对手续费get
经典账户 · 基础配置 API
经典账户 · 基础配置 API

公共

经典账户 — 公共


获取服务器时间

GET
https://api.bitget.com
/api/v2/public/time

限速规则 20次/1s (IP)

获取服务器时间,时间格式为Unix毫秒时间戳

获取服务器时间 › Response Parameters

200

Successful response

code
​string
msg
​string
requestTime
​integer
​object
serverTime
​string

服务器时间,Unix毫秒时间戳,例如1690196141868

GET/api/v2/public/time
curl https://api.bitget.com/api/v2/public/time
Example Responses
{ "code": "00000", "msg": "success", "requestTime": 1688008631614, "data": { "serverTime": "1688008631614" } }
json
application/json

获取交易手续费

GET
https://api.bitget.com
/api/v2/common/trade-rate

限速规则 10次/1s (UID)

获取交易费率

获取交易手续费 › Request Parameters

symbol
​string · required

交易对名称,如BTCUSDT

businessType
​string · required

业务类型 mix合约 spot现货 margin杠杆

获取交易手续费 › Response Parameters

200

Successful response

code
​string
msg
​string
requestTime
​integer
​object
makerFeeRate
​string

挂单手续费率 小数形式,即0.0002代表万分之二

takerFeeRate
​string

吃单手续费率 小数形式,即0.0002代表万分之二

GET/api/v2/common/trade-rate
curl 'https://api.bitget.com/api/v2/common/trade-rate?symbol=<string>&businessType=<string>'
Example Responses
{ "code": "00000", "msg": "success", "requestTime": 1683875302853, "data": { "makerFeeRate": "0.0002", "takerFeeRate": "0.0006" } }
json
application/json

获取业务线所有交易对手续费

GET
https://api.bitget.com
/api/v2/common/all-trade-rate

限速规则 10次/1s (UID)

获取交易费率

获取业务线所有交易对手续费 › Request Parameters

businessType
​string · required

业务类型 mix合约 spot现货 margin杠杆

获取业务线所有交易对手续费 › Response Parameters

200

Successful response

code
​string
msg
​string
requestTime
​integer
​object
symbol
​string

币对名称

makerFeeRate
​string

挂单手续费率 小数形式,即0.0002代表万分之二

takerFeeRate
​string

吃单手续费率 小数形式,即0.0002代表万分之二

GET/api/v2/common/all-trade-rate
curl 'https://api.bitget.com/api/v2/common/all-trade-rate?businessType=<string>'
Example Responses
{ "code": "00000", "msg": "success", "requestTime": 1683875302853, "data": [ { "symbol": "BTCUSDT", "makerFeeRate": "0.0001", "takerFeeRate": "0.0004" }, { "symbol": "ETHUSDT", "makerFeeRate": "0.0001", "takerFeeRate": "0.0004" }, { "symbol": "DOGEUSDT", "makerFeeRate": "0.0001", "takerFeeRate": "0.0004" } ] }
json
application/json