Skip to content

11:30以后获取实时分钟数据,最后一条数据是11:29 (11:30的数据给漏掉了) #4

Open

Description

@SitanChen2019

问题描述:
实时分钟K线,早盘结束后拉取数据,遗漏了最后一根K线(11:30分)的数据.

调用方法:
def getTickTime(type: int, code: str, period: str, token: str, method: str = "get") -> str:
"""
* 获取沪深京股票交易日盘中实时行情数据,包括买卖五档数据、1分钟数据、日线数据。
"""
url = Config.SERVER_URL + "/doc/order/time"
params = {"type": type, "code": code, "period": period, "token": token}
return XTickUtil.request(url, method, params)

调用时间: 中午12:00

目前的结果:
132 1 003035 2026-04-28 11:27:00 7.68 7.68 7.69 7.68 962.0 739104.0 7.68
133 1 003035 2026-04-28 11:28:00 7.69 7.67 7.69 7.67 2175.0 1670176.0 7.68
134 1 003035 2026-04-28 11:29:00 7.67 7.70 7.70 7.67 2125.0 1633120.0 7.67

期待的结果:
132 1 003035 2026-04-28 11:27:00 7.68 7.68 7.69 7.68 962.0 739104.0 7.68
133 1 003035 2026-04-28 11:28:00 7.69 7.67 7.69 7.67 2175.0 1670176.0 7.68
134 1 003035 2026-04-28 11:29:00 7.67 7.70 7.70 7.67 2125.0 1633120.0 7.67
135 1 003035 2026-04-28 11:30:00 ......

补充: 下午开盘后,获取当日分钟数据,仍然缺少11:30分的数据
132 1 003035 2026-04-28 11:27:00 7.68 7.68 7.69 7.68 962.0 739104.0 7.68
133 1 003035 2026-04-28 11:28:00 7.69 7.67 7.69 7.67 2175.0 1670176.0 7.68
134 1 003035 2026-04-28 11:29:00 7.67 7.70 7.70 7.67 2125.0 1633120.0 7.67
135 1 003035 2026-04-28 13:01:00 7.68 7.68 7.69 7.67 3734.0 2867680.0 7.68
136 1 003035 2026-04-28 13:02:00 7.68 7.68 7.69 7.67 1325.0 1017696.0 7.68
137 1 003035 2026-04-28 13:03:00 7.68 7.67 7.68 7.67 902.0 692032.0 7.68

Activity

  1. xticktop commented on May 12, 2026

    @xticktop
    Owner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions