使用说明
返回指定交易日的龙虎榜上榜股票列表,含涨跌幅、成交额、净买入等字段。trade_date 可留空表示最近交易日;page_size 默认 500。
接口详情
龙虎榜上榜股票列表
- 接口 ID
- getstocklist-longhubang
- 分组
- 龙虎榜明细
- 调用地址
- /v1/endpoints/getstocklist-longhubang/call
可传参数
| 参数 | 名称 | 说明 | 必填 | 类型 | 示例值 |
|---|---|---|---|---|---|
| page_offset | 分页起点 | 分页偏移量,首页为 0。 | 否 | string | 0 |
| trade_date | 交易日期 | 龙虎榜交易日,格式 YYYY-MM-DD。留空时返回最近一个有数据的交易日。 | 否 | string |
在线测试
在线测试需要登录,会使用控制台中的默认 API Key 并计入用量。
调用示例
curl -X POST http://127.0.0.1:8080/v1/endpoints/getstocklist-longhubang/call \
-H "X-API-Key: <api_key>" \
-H "Content-Type: application/json" \
-d '{"params":{"page_offset":"0","trade_date":""}}'import requests
resp = requests.post(
"http://127.0.0.1:8080/v1/endpoints/getstocklist-longhubang/call",
headers={"X-API-Key": "<api_key>"},
json={"params": {"page_offset":"0","trade_date":""}},
)
print(resp.status_code)
print(resp.text)package main
import (
"bytes"
"fmt"
"net/http"
)
func main() {
body := []byte(`{"params":{"page_offset":"0","trade_date":""}}`)
req, _ := http.NewRequest("POST", "http://127.0.0.1:8080/v1/endpoints/getstocklist-longhubang/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)
}