Skip to content

历史k线部分数据错误 #762

@thirdcountry

Description

@thirdcountry

问题描述

通过接口获取的k线图数据,最低价和最高价返回值相反。比如12-09号TSLA.US的数据

代码例子

pricedata, err := CandlesticksHistory(s.ctx, quoteContext, name, daysCount)
if err == nil {
    for _, p := range pricedata { //数据格式转换
       candles = append(candles, model.CandleStickModel{
          Symbol:    p.Symbol,
          Close:     p.Close,
          Open:      p.Open,
          Low:       p.Low,
          High:      p.High,
          Volume:    p.Volume,
          Turnover:  p.Turnover,
          Timestamp: p.Timestamp,
          TimeUtc:   p.TimeUtc,
       })
    }
  }

错误信息或结果截图

Image

你的环境信息

  • 操作系统: linux
  • 开发语言: Go
  • SDK 版本号: v0.16.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions