A 股當日分時含盤前數(shù)據(jù) API 數(shù)據(jù)接口
支持實時盤前數(shù)據(jù),支持時間區(qū)間獲取,分鐘級實時數(shù)據(jù)。
1. 產品功能
支持所有 A 股數(shù)據(jù)查詢;
支持指定時間段盤前歷史數(shù)據(jù)查詢;
支持分鐘級盤前實時數(shù)據(jù)查詢;
毫秒級查詢性能;
數(shù)據(jù)持續(xù)更新與維護;
全接口支持 HTTPS(TLS v1.0 / v1.1 / v1.2 / v1.3);
全面兼容 Apple ATS;
全國多節(jié)點 CDN 部署;
接口極速響應,多臺服務器構建 API 接口負載均衡;
2. API 文檔
接口詳情: https://www.gugudata.com/api/details/stockcnpreopen
接口地址: https://api.gugudata.com/stock/cn/preopen
返回格式: application/json; charset=utf-8
請求方式: GET
請求協(xié)議: HTTPS
數(shù)據(jù)預覽: https://www.gugudata.com/preview/stockcnpreopen
接口測試: https://api.gugudata.com/stock/cn/preopen/demo
3. 請求參數(shù)
| 參數(shù)名 | 參數(shù)類型 | 是否必須 | 默認值 | 備注 |
|---|---|---|---|---|
| appkey | string | 是 | YOUR_APPKEY | 付費后獲取的 APPKEY |
| symbol | string | 是 | YOUR_VALUE | 股票編碼,如: 600000 |
| begindate | string | 是 | YOUR_VALUE | 歷史數(shù)據(jù)開始時間,格式為 20200101 |
| enddate | string | 是 | YOUR_VALUE | 歷史數(shù)據(jù)結束時間,格式為 20200101,獲取全量數(shù)據(jù)請分批獲取,數(shù)據(jù)量較大,請保持合理的請求頻率 |
4. 返回參數(shù)
| 參數(shù)名 | 參數(shù)類型 | 備注 |
|---|---|---|
| DataStatus.StatusCode | int | 接口返回狀態(tài)碼 |
| DataStatus.StatusDescription | string | 接口返回狀態(tài)說明 |
| DataStatus.ResponseDateTime | string | 接口數(shù)據(jù)返回時間 |
| DataStatus.DataTotalCount | int | 此條件下的總數(shù)據(jù)量,一般用于分頁計算 |
| Data.Symbol | string | 股票代碼 |
| Data.TimeKey | double | 交易時間 |
| Data.Open | double | 開盤價,單位:元 |
| Data.Close | double | 收盤價,單位:元 |
| Data.High | double | 最高,單位:元 |
| Data.Low | double | 最低,單位:元 |
| Data.TradingVolume | int | 成交量,單位:股 |
| Data.TradingAmount | double | 成交額,單位:元 |
| Data.Latest | double | 最新價,單位:% |