TY 太一数据 OneShare 接口文档

行情数据

高频行情数据

获取高频行情数据

版本 1 更新于 2026-07-16 18:19

接口基本信息

  • 接口名称: get_high_frequency_quotes
  • 功能描述: 获取股票/期货/期权高频(分钟级)行情数据
  • 数据更新频率: 分钟级
  • 请求方法: POST
  • API 路径: https://api.wanxingai.com/openapi/get_high_frequency_quotes/


使用示例

import requests

url = "https://api.wanxingai.com/openapi/get_high_frequency_quotes/"
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer sk-********"
}
payload = {
    "stock_code": "300033.SZ",
    "indicators": "open,high,low,close,volume,amount",
    "starttime": "2024-01-02 09:30:00",
    "endtime": "2024-01-02 15:00:00",
    "interval": "5",
    "cps": "forward3"
}

resp = requests.post(url, json=payload, headers=headers)
print(resp.json())
import java.net.http.*;
import java.net.URI;

HttpClient client = HttpClient.newHttpClient();
String json = """
    {"stock_code": "300033.SZ", "indicators": "open,high,low,close,volume,amount",
     "starttime": "2024-01-02 09:30:00", "endtime": "2024-01-02 15:00:00",
     "interval": "5", "cps": "forward3"}
    """;

HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://api.wanxingai.com/openapi/get_high_frequency_quotes/"))
    .header("Content-Type", "application/json")
    .header("Authorization", "Bearer sk-********")
    .POST(HttpRequest.BodyPublishers.ofString(json))
    .build();

HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
curl -X POST https://api.wanxingai.com/openapi/get_high_frequency_quotes/ \\
  -H "Content-Type: application/json" \\
  -H "Authorization: Bearer sk-********" \\
  -d '{"stock_code": "300033.SZ", "indicators": "open,high,low,close,volume,amount", "starttime": "2024-01-02 09:30:00", "endtime": "2024-01-02 15:00:00", "interval": "5", "cps": "forward3"}'

输入参数说明

参数名 类型 必选 描述 示例
stock_code str 完整股票代码 300033.SZ
indicators str 指标,英文逗号分隔 tradeDate,tradeTime,latest
starttime str 开始时间,格式 YYYY-MM-DD HH:mm:ss 2025-08-25 09:30:00
endtime str 结束时间,须与 starttime 同一天 2025-08-25 15:00:00
interval str 时间周期(分钟):1/3/5/10/15/30/60 5
cps str 复权方式:no-不复权, backward1-后复权, forward3-前复权 forward3

返回数据说明

字段 类型 说明
code string 股票代码
time string[] 时间序列(YYYY-MM-DD HH:mm,无秒)
table object 行情数据表,字段随 indicators 参数变化
table.open float[] 开盘价
table.high float[] 最高价
table.low float[] 最低价
table.close float[] 收盘价
table.volume float[] 成交量
table.amount float[] 成交额
table.changeRatio float[] 涨跌幅(%)
table.turnoverRatio float[] 换手率(%)

支持的指标列表

指标名 中文含义 说明
tradeDate 交易日期 成交日期
tradeTime 交易时间 成交时间(精确到秒)
latest 最新价 当前最新成交价格
vol 成交量 截至当前的成交总量(手)
bid1/ask1 买一/卖一价 买一档/卖一档报价