Bitget APIBitget API
统一账户经典账户
旧文档
  • 概览
  • API 文档
  • WebSocket
  • Agent Hub
  • SDK
  • 更新日志
Copied to clipboard
行情
    市场行情数据
      获取交易产品信息get获取RPI交易对列表get获取行情数据get获取深度数据get获取RPI深度数据get获取平台近期成交数据getK线数据get历史K线数据get
    衍生品与资金费率
      获取未平仓合约持仓量(OI)get获取历史爆仓数据get实时资金费率get历史资金费率get获取指数价格成分get
    公共配置
      获取储备金证明get获取做市分数权重get获取机构费率分组get获取现金派息记录get获取拆合股记录get
    交易与风控规则
      获取风险准备金(天)get获取风险准备金(小时)get获取当前全部风险准备金get获取杠杆借币信息get获取仓位档位信息get获取合约OI限仓信息get获取币种折扣率get
    交易统计数据
      获取现货大户净流入信息get获取现货资金流向信息get获取现货24小时资金净流入信息get获取杠杆多空对比信息get获取杠杆借贷存量增速信息get获取杠杆逐仓借贷比信息get获取合约主动买卖量信息get获取合约多空比信息get获取合约大户持仓量多空比信息get获取合约大户账户多空比信息get
行情
行情

交易统计数据

交易统计数据


获取现货大户净流入信息

GET
https://api.bitget.com
/api/v3/market/spot-whale-flow

限频规则: 1次/秒/IP

获取现货大户净流入信息。

获取现货大户净流入信息 › Request Parameters

symbol
​string · required

交易对

获取现货大户净流入信息 › Response Parameters

200

Successful response

code
​string
msg
​string
requestTime
​integer
​object[]
volume
​string

大户买卖净流入量

date
​string

毫秒时间戳

GET/api/v3/market/spot-whale-flow
curl 'https://api.bitget.com/api/v3/market/spot-whale-flow?symbol=<string>'
Example Responses
{ "code": "00000", "msg": "success", "requestTime": 1656589586807, "data": [ { "volume": "-1.1", "date": "1713942000000" } ] }
json
application/json

获取现货资金流向信息

GET
https://api.bitget.com
/api/v3/market/spot-fund-flow

限频规则: 1次/秒/IP

获取现货资金流向信息。

获取现货资金流向信息 › Request Parameters

symbol
​string · required

交易对,如 BTCUSDT

period
​string

查询周期: 15m(默认), 30m, 1h, 2h, 4h, 1d

Default: 15m

获取现货资金流向信息 › Response Parameters

200

Successful response

code
​string
msg
​string
requestTime
​integer
​object
whaleBuyVolume
​string

大户买入量

dolphinBuyVolume
​string

中户买入量

fishBuyVolume
​string

散户买入量

whaleSellVolume
​string

大户卖出量

dolphinSellVolume
​string

中户卖出量

fishSellVolume
​string

散户卖出量

whaleBuyRatio
​string

大户买入占比

dolphinBuyRatio
​string

中户买入占比

fishBuyRatio
​string

散户买入占比

whaleSellRatio
​string

大户卖出占比

dolphinSellRatio
​string

中户卖出占比

fishSellRatio
​string

散户卖出占比

GET/api/v3/market/spot-fund-flow
curl 'https://api.bitget.com/api/v3/market/spot-fund-flow?symbol=<string>'
Example Responses
{ "code": "00000", "msg": "success", "requestTime": 1656589586807, "data": { "whaleBuyVolume": "50.901579", "dolphinBuyVolume": "1.506897", "fishBuyVolume": "0.529853", "whaleSellVolume": "50.635982", "dolphinSellVolume": "1.429034", "fishSellVolume": "0.344032", "whaleBuyRatio": "50.901579", "dolphinBuyRatio": "1.506897", "fishBuyRatio": "0.529853", "whaleSellRatio": "50.635982", "dolphinSellRatio": "1.429034", "fishSellRatio": "0.344032" } }
json
application/json

获取现货24小时资金净流入信息

GET
https://api.bitget.com
/api/v3/market/spot-net-flow

限频规则: 1次/秒/IP

获取现货24小时资金净流入信息。

获取现货24小时资金净流入信息 › Request Parameters

symbol
​string · required

交易对

获取现货24小时资金净流入信息 › Response Parameters

200

Successful response

code
​string
msg
​string
requestTime
​integer
​object[]
netFlow
​string

大户资金净流入

ts
​string

毫秒时间戳

GET/api/v3/market/spot-net-flow
curl 'https://api.bitget.com/api/v3/market/spot-net-flow?symbol=<string>'
Example Responses
{ "code": "00000", "msg": "success", "requestTime": 1656589586807, "data": [ { "netFlow": "-1.1", "ts": "1713942000000" } ] }
json
application/json

获取杠杆多空对比信息

GET
https://api.bitget.com
/api/v3/market/margin-long-short

限频规则: 1次/秒/IP

获取全仓及逐仓杠杆账户中特定币种的多空持仓比例。

获取杠杆多空对比信息 › Request Parameters

symbol
​string · required

交易对

period
​string

默认: 24h,支持:24h, 30d

Default: 24h
coin
​string

基础币或计价币,默认:基础币

获取杠杆多空对比信息 › Response Parameters

200

Successful response

code
​string
msg
​string
requestTime
​integer
​object[]
longShortRatio
​string

多空比

ts
​string

毫秒时间戳

GET/api/v3/market/margin-long-short
curl 'https://api.bitget.com/api/v3/market/margin-long-short?symbol=<string>'
Example Responses
{ "code": "00000", "msg": "success", "requestTime": 1656589586807, "data": [ { "longShortRatio": "-0.96", "ts": "1713942000000" } ] }
json
application/json

获取杠杆借贷存量增速信息

GET
https://api.bitget.com
/api/v3/market/margin-loan-growth

限频规则: 1次/秒/IP

获取全仓及逐仓杠杆账户中特定币种借贷资金的增长速率。

获取杠杆借贷存量增速信息 › Request Parameters

symbol
​string · required

交易对

period
​string

默认: 24h,支持:24h, 30d

Default: 24h
coin
​string

基础币或计价币,默认:基础币

获取杠杆借贷存量增速信息 › Response Parameters

200

Successful response

code
​string
msg
​string
requestTime
​integer
​object[]
growthRate
​string

增长速率

ts
​string

毫秒时间戳

GET/api/v3/market/margin-loan-growth
curl 'https://api.bitget.com/api/v3/market/margin-loan-growth?symbol=<string>'
Example Responses
{ "code": "00000", "msg": "success", "requestTime": 1656589586807, "data": [ { "growthRate": "-0.96", "ts": "1713942000000" } ] }
json
application/json

获取杠杆逐仓借贷比信息

GET
https://api.bitget.com
/api/v3/market/margin-isolated-borrow

限频规则: 1次/秒/IP

获取逐仓杠杆账户中基础币借入量与计价币借入量(均折算为USDT)的比例。

获取杠杆逐仓借贷比信息 › Request Parameters

symbol
​string · required

交易对

period
​string

默认: 24h,支持:24h, 30d

Default: 24h

获取杠杆逐仓借贷比信息 › Response Parameters

200

Successful response

code
​string
msg
​string
requestTime
​integer
​object[]
borrowRate
​string

借贷比

ts
​string

毫秒时间戳

GET/api/v3/market/margin-isolated-borrow
curl 'https://api.bitget.com/api/v3/market/margin-isolated-borrow?symbol=<string>'
Example Responses
{ "code": "00000", "msg": "success", "requestTime": 1656589586807, "data": [ { "borrowRate": "-0.96", "ts": "1713942000000" } ] }
json
application/json

获取合约主动买卖量信息

GET
https://api.bitget.com
/api/v3/market/futures-active-buy-sell

限频规则: 1次/秒/IP

获取合约主动买卖量信息。

获取合约主动买卖量信息 › Request Parameters

symbol
​string · required

交易对

period
​string

默认: 5m,支持:5m, 15m, 30m, 1h, 2h, 4h, 6h, 12h, 1d

Default: 5m

获取合约主动买卖量信息 › Response Parameters

200

Successful response

code
​string
msg
​string
requestTime
​integer
​object[]
buyVolume
​string

主动买入量

sellVolume
​string

主动卖出量

ts
​string

毫秒时间戳

GET/api/v3/market/futures-active-buy-sell
curl 'https://api.bitget.com/api/v3/market/futures-active-buy-sell?symbol=<string>'
Example Responses
{ "code": "00000", "msg": "success", "requestTime": 1656589586807, "data": [ { "buyVolume": "0.01", "sellVolume": "0.12", "ts": "1714020600000" } ] }
json
application/json

获取合约多空比信息

GET
https://api.bitget.com
/api/v3/market/futures-long-short

限频规则: 1次/秒/IP

获取合约多空比信息。

获取合约多空比信息 › Request Parameters

symbol
​string · required

交易对

period
​string

默认: 5m,支持:5m, 15m, 30m, 1h, 2h, 4h, 6h, 12h, 1Dutc

Default: 5m

获取合约多空比信息 › Response Parameters

200

Successful response

code
​string
msg
​string
requestTime
​integer
​object[]
longRatio
​string

多仓比例

shortRatio
​string

空仓比例

longShortRatio
​string

多空比

ts
​string

毫秒时间戳

GET/api/v3/market/futures-long-short
curl 'https://api.bitget.com/api/v3/market/futures-long-short?symbol=<string>'
Example Responses
{ "code": "00000", "msg": "success", "requestTime": 1656589586807, "data": [ { "longRatio": "0.01", "shortRatio": "0.12", "longShortRatio": "1.2", "ts": "1714020600000" } ] }
json
application/json

获取合约大户持仓量多空比信息

GET
https://api.bitget.com
/api/v3/market/futures-position-long-short

限频规则: 1次/秒/IP

获取合约大户持仓量多空比信息。

获取合约大户持仓量多空比信息 › Request Parameters

symbol
​string · required

交易对

period
​string

默认: 5m,支持:5m, 15m, 30m, 1h, 2h, 4h, 6h, 12h, 1d

Default: 5m

获取合约大户持仓量多空比信息 › Response Parameters

200

Successful response

code
​string
msg
​string
requestTime
​integer
​object[]
longPositionRatio
​string

多仓持仓量比例

shortPositionRatio
​string

空仓持仓量比例

longShortPositionRatio
​string

多空持仓量比

ts
​string

毫秒时间戳

GET/api/v3/market/futures-position-long-short
curl 'https://api.bitget.com/api/v3/market/futures-position-long-short?symbol=<string>'
Example Responses
{ "code": "00000", "msg": "success", "requestTime": 1656589586807, "data": [ { "longPositionRatio": "0.01", "shortPositionRatio": "0.12", "longShortPositionRatio": "1.2", "ts": "1714020600000" } ] }
json
application/json

获取合约大户账户多空比信息

GET
https://api.bitget.com
/api/v3/market/futures-account-long-short

限频规则: 1次/秒/IP

获取合约大户账户多空比信息。

获取合约大户账户多空比信息 › Request Parameters

symbol
​string · required

交易对

period
​string

默认: 5m,支持:5m, 15m, 30m, 1h, 2h, 4h, 6h, 12h, 1d

Default: 5m

获取合约大户账户多空比信息 › Response Parameters

200

Successful response

code
​string
msg
​string
requestTime
​integer
​object[]
longAccountRatio
​string

多仓账户比例

shortAccountRatio
​string

空仓账户比例

longShortAccountRatio
​string

多空账户比

ts
​string

毫秒时间戳

GET/api/v3/market/futures-account-long-short
curl 'https://api.bitget.com/api/v3/market/futures-account-long-short?symbol=<string>'
Example Responses
{ "code": "00000", "msg": "success", "requestTime": 1656589586807, "data": [ { "longAccountRatio": "0.01", "shortAccountRatio": "0.12", "longShortAccountRatio": "1.2", "ts": "1714020600000" } ] }
json
application/json

交易与风控规则