接口详情
热点题材板块列表
- 接口 ID
- flash-api-xuangubao-com-cn-api-surge-stock-plates
- 分组
- 热点题材
- 调用地址
- /v1/endpoints/flash-api-xuangubao-com-cn-api-surge-stock-plates/call
可传参数
| 参数 | 名称 | 说明 | 必填 | 类型 | 示例值 |
|---|---|---|---|---|---|
| trade_date | 交易日期 | 交易日期,格式通常为 YYYY-MM-DD。 | 否 | string | 1735185263 |
在线测试
在线测试需要登录,会使用控制台中的默认 API Key 并计入用量。
响应结构
基于最近一次接口体检样本自动生成,仅展示主要字段。
| 字段路径 | 类型 | 样例值 |
|---|---|---|
| code | integer | 20000 |
| data.items[].description | string | 数据传输带动AEC、铜缆等配套需求 |
| data.items[].id | integer | 90851122 |
| data.items[].name | string | 铜缆高速连接器 |
| data.manual_updated_at | integer | 1780069800 |
| data.timestamp | integer | 1735142400 |
| message | string | OK |
调用示例
curl -X POST http://127.0.0.1:8080/v1/endpoints/flash-api-xuangubao-com-cn-api-surge-stock-plates/call \
-H "X-API-Key: <api_key>" \
-H "Content-Type: application/json" \
-d '{"params":{"trade_date":"1735185263"}}'import requests
resp = requests.post(
"http://127.0.0.1:8080/v1/endpoints/flash-api-xuangubao-com-cn-api-surge-stock-plates/call",
headers={"X-API-Key": "<api_key>"},
json={"params": {"trade_date":"1735185263"}},
)
print(resp.status_code)
print(resp.text)package main
import (
"bytes"
"fmt"
"net/http"
)
func main() {
body := []byte(`{"params":{"trade_date":"1735185263"}}`)
req, _ := http.NewRequest("POST", "http://127.0.0.1:8080/v1/endpoints/flash-api-xuangubao-com-cn-api-surge-stock-plates/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)
}