接口详情
涨停板表现-首板历史
- 接口 ID
- dailylimitperformance-hishomedingpan
- 分组
- 涨停板表现
- 调用地址
- /v1/endpoints/dailylimitperformance-hishomedingpan/call
可传参数
| 参数 | 名称 | 说明 | 必填 | 类型 | 示例值 |
|---|---|---|---|---|---|
| trade_date | 交易日期 | 交易日期,格式通常为 YYYY-MM-DD 或 YYYYMMDD,按接口说明传入。 | 否 | string | 2024-10-15 |
| page_offset | 分页起点 | 分页偏移量。第一页通常为 0,后续页按接口的分页步长递增。 | 否 | string | 0 |
| sort_order | 排序方向 | 历史涨停列表排序方向。默认使用示例值。 | 否 | string | 0 |
| board_count | 连板高度 | 连板高度。1 表示首板,2 表示二板,3 表示三板,4 表示四板,5 表示更高。 | 否 | string | 1 |
| limit_status | 涨停状态 | 历史涨停状态分类。默认使用示例值。 | 否 | string | 4 |
在线测试
在线测试需要登录,会使用控制台中的默认 API Key 并计入用量。
响应结构
基于最近一次接口体检样本自动生成,仅展示主要字段。
| 字段路径 | 类型 | 样例值 |
|---|---|---|
| errcode | string | 0 |
| ttag | number | 0.0017820000000000613 |
调用示例
curl -X POST http://127.0.0.1:8080/v1/endpoints/dailylimitperformance-hishomedingpan/call \
-H "X-API-Key: <api_key>" \
-H "Content-Type: application/json" \
-d '{"params":{"board_count":"1","limit_status":"4","page_offset":"0","sort_order":"0","trade_date":"2024-10-15"}}'import requests
resp = requests.post(
"http://127.0.0.1:8080/v1/endpoints/dailylimitperformance-hishomedingpan/call",
headers={"X-API-Key": "<api_key>"},
json={"params": {"board_count":"1","limit_status":"4","page_offset":"0","sort_order":"0","trade_date":"2024-10-15"}},
)
print(resp.status_code)
print(resp.text)package main
import (
"bytes"
"fmt"
"net/http"
)
func main() {
body := []byte(`{"params":{"board_count":"1","limit_status":"4","page_offset":"0","sort_order":"0","trade_date":"2024-10-15"}}`)
req, _ := http.NewRequest("POST", "http://127.0.0.1:8080/v1/endpoints/dailylimitperformance-hishomedingpan/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)
}