接口详情
上涨/下跌家数
- 接口 ID
- moodnumcount-marketmood
- 分组
- 市场情绪
- 调用地址
- /v1/endpoints/moodnumcount-marketmood/call
可传参数
该接口没有需要传入的公开参数。
在线测试
在线测试需要登录,会使用控制台中的默认 API Key 并计入用量。
响应结构
基于最近一次接口体检样本自动生成,仅展示主要字段。
| 字段路径 | 类型 | 样例值 |
|---|---|---|
| errcode | string | 0 |
| list.DTJS | integer | 50 |
| list.SZJS | integer | 1446 |
| list.XDJS | integer | 3672 |
| list.ZTJS | integer | 49 |
| list.bl | number | 11.82 |
| list.color | integer | 1 |
| list.q_zrcs | integer | 296815059 |
| list.qscln | integer | 331903214 |
| ttag | number | 0.005523999999999973 |
调用示例
curl -X POST http://127.0.0.1:8080/v1/endpoints/moodnumcount-marketmood/call \
-H "X-API-Key: <api_key>" \
-H "Content-Type: application/json" \
-d '{"params":{}}'import requests
resp = requests.post(
"http://127.0.0.1:8080/v1/endpoints/moodnumcount-marketmood/call",
headers={"X-API-Key": "<api_key>"},
json={"params": {}},
)
print(resp.status_code)
print(resp.text)package main
import (
"bytes"
"fmt"
"net/http"
)
func main() {
body := []byte(`{"params":{}}`)
req, _ := http.NewRequest("POST", "http://127.0.0.1:8080/v1/endpoints/moodnumcount-marketmood/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)
}