Bitget APIBitget API
统一账户经典账户
旧文档
  • 概览
  • API 文档
  • WebSocket
  • Agent Hub
  • SDK
  • 更新日志
Copied to clipboard
Stock+
    期权行情
      查询期权实时报价get查询期权链get获取到期日列表get查询期权成交量get
    股票行情
      获取标的基本信息get获取标的K线get获取标的历史K线get获取标的盘口get获取标的当日分时数据get获取标的实时报价get获取标的逐笔明细get
    订单
      创建订单post修改订单post撤销订单post查询当日订单get查询历史订单get查询订单详情get查询当日成交get查询历史成交get
    成交
      查询占位信息get
    Stock+ 资产
      资金划转post获取划转记录get查询账户资金get查询资金流水get查询股票持仓get
Stock+
Stock+

股票行情

股票行情


获取标的基本信息

GET
https://api.bitget.com
/api/v3/stockplus/market/static

限频规则: 1秒内不超过10次调用,并发请求数不超过5

权限: Stock+ 行情(只读)

该接口用于获取标的基础信息。

获取标的基本信息 › Request Parameters

symbol
​string · required

标的代码列表,使用 ticker.region 格式,例如: AAPL.US 校验规则: 每次请求支持传入的标的数量上限是 500 个

获取标的基本信息 › Response Parameters

200

请求成功

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

标的基础数据列表

GET/api/v3/stockplus/market/static
curl 'https://api.bitget.com/api/v3/stockplus/market/static?symbol=<string>'
Example Responses
{ "code": "00000", "msg": "success", "requestTime": 1740000000000, "data": { "list": [ { "symbol": "AAPL.US", "nameCn": "苹果", "nameEn": "Apple Inc.", "exchange": "NASD", "currency": "USD", "lotSize": 1, "totalShares": 16319441000, "circulatingShares": 16302661350, "eps": 5.669, "epsTtm": 6.0771, "bps": 4.40197, "dividendYield": 0.85, "stockDerivatives": [ "Option" ], "board": "USMain" } ] } }
json
application/json

获取标的K线

GET
https://api.bitget.com
/api/v3/stockplus/market/candlestick

限频规则: 1秒内不超过10次调用,并发请求数不超过5

权限: Stock+ 行情(只读)

该接口用于获取标的的K线数据。注意:本接口只能获取到最近 1000 根K线,如需获取较长的历史数据,请使用历史K线接口。

获取标的K线 › Request Parameters

symbol
​string · required

标的代码,使用 ticker.region 格式,例如: AAPL.US

period
​string · required

K线周期 Min_1 - 1分 Min_2 - 2分 Min_3 - 3分 Min_5 - 5分 Min_10 - 10分 Min_15 - 15分 Min_20 - 20分 Min_30 - 30分 Min_45 - 45分 Min_60 - 60分 Min_120 - 120分 Min_180 - 180分 Min_240 - 240分 Day - 日线 Week - 周线 Month - 月线 Quarter - 季线 Year - 年线

count
​integer · required

数据数量,上限 1000

adjustType
​string · required

K线复权类型 NoAdjust - 除权 ForwardAdjust - 前复权

tradeSessions
​string

交易时段 Intraday - 盘中交易 Pre - 盘前交易 Post - 盘后交易 Overnight - 夜盘交易

获取标的K线 › Response Parameters

200

请求成功

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

K线数据

GET/api/v3/stockplus/market/candlestick
curl 'https://api.bitget.com/api/v3/stockplus/market/candlestick?symbol=<string>&period=<string>&count=<number>&adjustType=<string>'
Example Responses
{ "code": "00000", "msg": "success", "requestTime": 1740000000000, "data": { "list": [ { "close": "175.460", "open": "176.750", "low": "175.180", "high": "177.840", "volume": "54321000", "turnover": "9587654321", "timestamp": "1697414400", "tradeSession": "Intraday" }, { "close": "176.810", "open": "175.580", "low": "174.910", "high": "177.110", "volume": "48765000", "turnover": "8601234567", "timestamp": "1697500800", "tradeSession": "Intraday" }, { "close": "177.150", "open": "177.060", "low": "176.450", "high": "178.420", "volume": "42210000", "turnover": "7498765432", "timestamp": "1697587200", "tradeSession": "Intraday" } ] } }
json
application/json

获取标的历史K线

GET
https://api.bitget.com
/api/v3/stockplus/market/history-candlestick

限频规则: 1秒内不超过10次调用,并发请求数不超过5

权限: Stock+ 行情(只读)

该接口用于获取标的历史K线数据。

获取标的历史K线 › Request Parameters

symbol
​string · required

标的代码,使用 ticker.region 格式,例如: AAPL.US

period
​string · required

K线周期 Min_1 - 1分 Min_2 - 2分 Min_3 - 3分 Min_5 - 5分 Min_10 - 10分 Min_15 - 15分 Min_20 - 20分 Min_30 - 30分 Min_45 - 45分 Min_60 - 60分 Min_120 - 120分 Min_180 - 180分 Min_240 - 240分 Day - 日线 Week - 周线 Month - 月线 Quarter - 季线 Year - 年线

count
​integer · required

数据数量,上限 1000

adjustType
​string · required

K线复权类型 NoAdjust - 除权 ForwardAdjust - 前复权

forward
​boolean

查询方向。默认 false false - 向后查询 true - 向前查询

time
​string

查询时间戳,Unix 秒。默认当前时间

tradeSessions
​string

交易时段 Intraday - 盘中交易 Pre - 盘前交易 Post - 盘后交易 Overnight - 夜盘交易(包含在美股 LV1 中,仅美股有效)

获取标的历史K线 › Response Parameters

200

请求成功

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

K线数据

GET/api/v3/stockplus/market/history-candlestick
curl 'https://api.bitget.com/api/v3/stockplus/market/history-candlestick?symbol=<string>&period=<string>&count=<number>&adjustType=<string>'
Example Responses
{ "code": "00000", "msg": "success", "requestTime": 1740000000000, "data": { "list": [ { "close": "175.460", "open": "176.750", "low": "175.180", "high": "177.840", "volume": "54321000", "turnover": "9587654321", "timestamp": "1697414400", "tradeSession": "Intraday" }, { "close": "176.810", "open": "175.580", "low": "174.910", "high": "177.110", "volume": "48765000", "turnover": "8601234567", "timestamp": "1697500800", "tradeSession": "Intraday" }, { "close": "177.150", "open": "177.060", "low": "176.450", "high": "178.420", "volume": "42210000", "turnover": "7498765432", "timestamp": "1697587200", "tradeSession": "Intraday" } ] } }
json
application/json

获取标的盘口

GET
https://api.bitget.com
/api/v3/stockplus/market/depth

限频规则: 1秒内不超过10次调用,并发请求数不超过5

权限: Stock+ 行情(只读)

该接口用于获取标的的盘口数据。

获取标的盘口 › Request Parameters

symbol
​string · required

标的代码,使用 ticker.region 格式,例如: AAPL.US

获取标的盘口 › Response Parameters

200

请求成功

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

卖盘

​object[]

买盘

GET/api/v3/stockplus/market/depth
curl 'https://api.bitget.com/api/v3/stockplus/market/depth?symbol=<string>'
Example Responses
{ "code": "00000", "msg": "success", "requestTime": 1740000000000, "data": { "asks": [ { "position": 1, "price": "195.900", "volume": "200", "orderNum": 5 }, { "position": 2, "price": "195.910", "volume": "500", "orderNum": 8 }, { "position": 3, "price": "195.920", "volume": "300", "orderNum": 3 }, { "position": 4, "price": "195.930", "volume": "800", "orderNum": 12 }, { "position": 5, "price": "195.940", "volume": "150", "orderNum": 2 } ], "bids": [ { "position": 1, "price": "195.880", "volume": "350", "orderNum": 6 }, { "position": 2, "price": "195.870", "volume": "600", "orderNum": 9 }, { "position": 3, "price": "195.860", "volume": "450", "orderNum": 7 }, { "position": 4, "price": "195.850", "volume": "200", "orderNum": 4 }, { "position": 5, "price": "195.840", "volume": "700", "orderNum": 11 } ] } }
json
application/json

获取标的当日分时数据

GET
https://api.bitget.com
/api/v3/stockplus/market/intraday

限频规则: 1秒内不超过10次调用,并发请求数不超过5

权限: Stock+ 行情(只读)

该接口用于获取标的的当日分时数据。

获取标的当日分时数据 › Request Parameters

symbol
​string · required

标的代码,使用 ticker.region 格式,例如: AAPL.US

获取标的当日分时数据 › Response Parameters

200

请求成功

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

分时数据

GET/api/v3/stockplus/market/intraday
curl 'https://api.bitget.com/api/v3/stockplus/market/intraday?symbol=<string>'
Example Responses
{ "code": "00000", "msg": "success", "requestTime": 1740000000000, "data": { "list": [ { "price": 195.89, "timestamp": "2024-10-16T09:30:00Z", "volume": 150000, "turnover": 29383500, "avgPrice": 195.88 }, { "price": 195.92, "timestamp": "2024-10-16T09:31:00Z", "volume": 180000, "turnover": 35265600, "avgPrice": 195.91 }, { "price": 195.85, "timestamp": "2024-10-16T09:32:00Z", "volume": 120000, "turnover": 23502000, "avgPrice": 195.87 }, { "price": 195.88, "timestamp": "2024-10-16T09:33:00Z", "volume": 200000, "turnover": 39176000, "avgPrice": 195.88 }, { "price": 195.9, "timestamp": "2024-10-16T09:34:00Z", "volume": 160000, "turnover": 31344000, "avgPrice": 195.89 } ] } }
json
application/json

获取标的实时报价

GET
https://api.bitget.com
/api/v3/stockplus/market/quote

限频规则: 1秒内不超过10次调用,并发请求数不超过5

权限: Stock+ 行情(只读)

该接口用于获取标的的实时行情(支持所有类型标的)。

获取标的实时报价 › Request Parameters

symbol
​string · required

标的代码列表,使用 ticker.region 格式,例如: AAPL.US 校验规则: 每次请求支持传入的标的数量上限是 500 个

获取标的实时报价 › Response Parameters

200

请求成功

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

标的实时行情数据列表

GET/api/v3/stockplus/market/quote
curl 'https://api.bitget.com/api/v3/stockplus/market/quote?symbol=<string>'
Example Responses
{ "code": "00000", "msg": "success", "requestTime": 1740000000000, "data": { "list": [ { "symbol": "AAPL.US", "lastDone": 195.89, "prevClose": 192.53, "open": 193.41, "high": 195.93, "low": 192.05, "timestamp": "2024-10-16T20:00:00Z", "volume": 53502311, "turnover": 10409656210, "tradeStatus": "Normal", "preMarketQuote": { "lastDone": 193.5, "timestamp": "2024-10-17T09:00:00Z", "volume": 1250000, "turnover": 241875000, "high": 194, "low": 192.8, "prevClose": 192.53 }, "postMarketQuote": { "lastDone": 196.1, "timestamp": "2024-10-16T23:59:59Z", "volume": 980000, "turnover": 192178000, "high": 196.5, "low": 195.7, "prevClose": 195.89 }, "overnightQuote": null } ] } }
json
application/json

获取标的逐笔明细

GET
https://api.bitget.com
/api/v3/stockplus/market/trade

限频规则: 1秒内不超过10次调用,并发请求数不超过5

权限: Stock+ 行情(只读)

该接口用于获取标的的成交明细数据。

交易类型说明

美股交易类型: ` (space) - 普通交易 B - 平均价成交 E - 自动执行 H - 价格变动交易 I - 碎股交易

获取标的逐笔明细 › Request Parameters

symbol
​string · required

标的代码,使用 ticker.region 格式,例如: AAPL.US

count
​integer · required

请求的逐笔成交数量。上限: 1000

获取标的逐笔明细 › Response Parameters

200

请求成功

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

逐笔成交明细数据

price
​string

成交价

volume
​string

成交量

timestamp
​string

成交时间(ISO 8601)

tradeType
​string

交易类型。见描述中的交易类型说明

direction
​string

成交方向 Up - 外盘 Down - 内盘 Neutral - 中性盘

tradeSession
​string

交易时段 Intraday - 盘中交易 Pre - 盘前交易 Post - 盘后交易 Overnight - 夜盘交易

GET/api/v3/stockplus/market/trade
curl 'https://api.bitget.com/api/v3/stockplus/market/trade?symbol=<string>&count=<number>'
Example Responses
{ "code": "00000", "msg": "success", "requestTime": 1740000000000, "data": [ { "price": 195.89, "volume": 100, "timestamp": "2024-10-16T09:30:00Z", "tradeType": "I", "direction": "Up", "tradeSession": "Intraday" }, { "price": 195.88, "volume": 200, "timestamp": "2024-10-16T09:29:55Z", "tradeType": "I", "direction": "Neutral", "tradeSession": "Intraday" }, { "price": 195.89, "volume": 150, "timestamp": "2024-10-16T09:29:50Z", "tradeType": "I", "direction": "Down", "tradeSession": "Intraday" } ] }
json
application/json

期权行情订单