接口详情
板块成分股-大单净额排序
- 接口 ID
- zhishustocklist-w8-zhishuranking
- 分组
- 板块成分股
- 调用地址
- /v1/endpoints/zhishustocklist-w8-zhishuranking/call
可传参数
| 参数 | 名称 | 说明 | 必填 | 类型 | 示例值 |
|---|---|---|---|---|---|
| page_offset | 分页起点 | 分页偏移量。第一页通常为 0,后续页按接口的分页步长递增。 | 否 | string | 0 |
| sort_order | 排序方向 | 板块成分股列表排序方向。默认使用示例值。 | 否 | string | 1 |
| sector_id | 板块 ID | 行业、概念或主题板块 ID。 | 是 | string | 801074 |
| end_time | 结束时间 | 分时区间结束时间,通常为 HHMM,例如 1500。 | 否 | string | 0930 |
| start_time | 开始时间 | 分时区间开始时间,通常为 HHMM,例如 0925。 | 否 | string | 0925 |
| stock_metric | 成分股指标 | 板块成分股排序指标,例如大单净额、涨幅或正宗度。默认使用示例值。 | 否 | string | 1 |
| filter_mode | 过滤模式 | 成分股过滤模式。默认使用示例值即可。 | 否 | string | 0 |
在线测试
在线测试需要登录,会使用控制台中的默认 API Key 并计入用量。
响应结构
基于最近一次接口体检样本自动生成,仅展示主要字段。
| 字段路径 | 类型 | 样例值 |
|---|---|---|
| Count | integer | 377 |
| Max | string | 1500 |
| Min | string | 0925 |
| State | integer | 0 |
| Time | integer | 1780203013 |
| errcode | string | 0 |
| ttag | number | 0.010752999999999957 |
调用示例
curl -X POST http://127.0.0.1:8080/v1/endpoints/zhishustocklist-w8-zhishuranking/call \
-H "X-API-Key: <api_key>" \
-H "Content-Type: application/json" \
-d '{"params":{"end_time":"0930","filter_mode":"0","page_offset":"0","sector_id":"801074","sort_order":"1","start_time":"0925","stock_metric":"1"}}'import requests
resp = requests.post(
"http://127.0.0.1:8080/v1/endpoints/zhishustocklist-w8-zhishuranking/call",
headers={"X-API-Key": "<api_key>"},
json={"params": {"end_time":"0930","filter_mode":"0","page_offset":"0","sector_id":"801074","sort_order":"1","start_time":"0925","stock_metric":"1"}},
)
print(resp.status_code)
print(resp.text)package main
import (
"bytes"
"fmt"
"net/http"
)
func main() {
body := []byte(`{"params":{"end_time":"0930","filter_mode":"0","page_offset":"0","sector_id":"801074","sort_order":"1","start_time":"0925","stock_metric":"1"}}`)
req, _ := http.NewRequest("POST", "http://127.0.0.1:8080/v1/endpoints/zhishustocklist-w8-zhishuranking/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)
}