返回接口目录

接口详情

板块正宗度说明

GET
接口 ID
plateintroduction-zhishuranking
分组
板块成分股
调用地址
/v1/endpoints/plateintroduction-zhishuranking/call
可传参数
参数名称说明必填类型示例值
page_offset分页起点分页偏移量。第一页通常为 0,后续页按接口的分页步长递增。string0
sort_order排序方向板块介绍列表排序方向。默认使用示例值。string1
sector_id板块 ID行业、概念或主题板块 ID。string801600
intro_metric介绍类型板块介绍或关联类型。默认使用示例值。string2

在线测试

在线测试需要登录,会使用控制台中的默认 API Key 并计入用量。

响应结构

基于最近一次接口体检样本自动生成,仅展示主要字段。

HTTP 200 · object
字段路径类型样例值
errcodestring0
ttagnumber0.004035999999999984

调用示例

curl -X POST http://127.0.0.1:8080/v1/endpoints/plateintroduction-zhishuranking/call \
  -H "X-API-Key: <api_key>" \
  -H "Content-Type: application/json" \
  -d '{"params":{"intro_metric":"2","page_offset":"0","sector_id":"801600","sort_order":"1"}}'
import requests

resp = requests.post(
    "http://127.0.0.1:8080/v1/endpoints/plateintroduction-zhishuranking/call",
    headers={"X-API-Key": "<api_key>"},
    json={"params": {"intro_metric":"2","page_offset":"0","sector_id":"801600","sort_order":"1"}},
)
print(resp.status_code)
print(resp.text)
package main

import (
  "bytes"
  "fmt"
  "net/http"
)

func main() {
  body := []byte(`{"params":{"intro_metric":"2","page_offset":"0","sector_id":"801600","sort_order":"1"}}`)
  req, _ := http.NewRequest("POST", "http://127.0.0.1:8080/v1/endpoints/plateintroduction-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)
}