接口详情
百日新高个股历史
- 接口 ID
- getgroupstock-bygroup-w28-stocknewhigh-2
- 分组
- 新高统计
- 调用地址
- /v1/endpoints/getgroupstock-bygroup-w28-stocknewhigh-2/call
可传参数
| 参数 | 名称 | 说明 | 必填 | 类型 | 示例值 |
|---|---|---|---|---|---|
| trade_date | 交易日期 | 交易日期,格式通常为 YYYY-MM-DD。 | 否 | string | 2026-01-21 |
| group_id | 分组 ID | 分组 ID,用于查询某一分组下的数据。 | 否 | string | 801001 |
| type | 类型 | 接口业务类型或分类值。不同接口含义不同,默认使用示例值。 | 否 | string | 0_0_0_0_0 |
在线测试
在线测试需要登录,会使用控制台中的默认 API Key 并计入用量。
响应结构
基于最近一次接口体检样本自动生成,仅展示主要字段。
| 字段路径 | 类型 | 样例值 |
|---|---|---|
| ArtGn | string | |
| ArtGnDate | string | |
| ArtGnID | integer | 0 |
| Date | string | 2026-01-21 |
| ZF | integer | 0 |
| errcode | string | 0 |
| ttag | number | 0.08452199999999999 |
调用示例
curl -X POST http://127.0.0.1:8080/v1/endpoints/getgroupstock-bygroup-w28-stocknewhigh-2/call \
-H "X-API-Key: <api_key>" \
-H "Content-Type: application/json" \
-d '{"params":{"group_id":"801001","trade_date":"2026-01-21","type":"0_0_0_0_0"}}'import requests
resp = requests.post(
"http://127.0.0.1:8080/v1/endpoints/getgroupstock-bygroup-w28-stocknewhigh-2/call",
headers={"X-API-Key": "<api_key>"},
json={"params": {"group_id":"801001","trade_date":"2026-01-21","type":"0_0_0_0_0"}},
)
print(resp.status_code)
print(resp.text)package main
import (
"bytes"
"fmt"
"net/http"
)
func main() {
body := []byte(`{"params":{"group_id":"801001","trade_date":"2026-01-21","type":"0_0_0_0_0"}}`)
req, _ := http.NewRequest("POST", "http://127.0.0.1:8080/v1/endpoints/getgroupstock-bygroup-w28-stocknewhigh-2/call", bytes.NewReader(body))
req.Header.Set("X-API-Key", "<api_key>")
req.Header.Set("Content-Type", "application/json")
resp, err := http.DefaultClient.Do(req)
fmt.Println(resp.StatusCode, err)
}