返回接口目录

接口详情

上涨下跌家数曲线

GET
接口 ID
flash-api-xuangubao-com-cn-api-market-indicator-line
分组
市场情绪曲线
调用地址
/v1/endpoints/flash-api-xuangubao-com-cn-api-market-indicator-line/call
可传参数
参数名称说明必填类型示例值
trade_date交易日期交易日期,格式通常为 YYYY-MM-DD。string2024-12-26
fields返回字段需要返回的字段列表,多个字段用逗号分隔。stringrise_count,fall_count

在线测试

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

响应结构

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

HTTP 200 · object
字段路径类型样例值
codeinteger20000
data[].fall_countinteger2651
data[].rise_countinteger1483
data[].timestampinteger1735176300
messagestringOK

调用示例

curl -X POST http://127.0.0.1:8080/v1/endpoints/flash-api-xuangubao-com-cn-api-market-indicator-line/call \
  -H "X-API-Key: <api_key>" \
  -H "Content-Type: application/json" \
  -d '{"params":{"fields":"rise_count,fall_count","trade_date":"2024-12-26"}}'
import requests

resp = requests.post(
    "http://127.0.0.1:8080/v1/endpoints/flash-api-xuangubao-com-cn-api-market-indicator-line/call",
    headers={"X-API-Key": "<api_key>"},
    json={"params": {"fields":"rise_count,fall_count","trade_date":"2024-12-26"}},
)
print(resp.status_code)
print(resp.text)
package main

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

func main() {
  body := []byte(`{"params":{"fields":"rise_count,fall_count","trade_date":"2024-12-26"}}`)
  req, _ := http.NewRequest("POST", "http://127.0.0.1:8080/v1/endpoints/flash-api-xuangubao-com-cn-api-market-indicator-line/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)
}