alpacahq / alpacahq/alpaca-trade-api-go

UpdatedAt time in stream.News API needs standard time format

未关闭
#244 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Go
星标
429
派生
118
PR 合并指标
30 天内没有已合并 PR

描述

When streaming news, the time is in an arbitrary format, e.g.

`"CreatedAt":"2023-01-30T13:01:31+01:00","UpdatedAt":"2023-01-30T13:01:32+01:00"`

which cannot be simply unmarshaled into `stream.News` struct, where `CreatedAt` and `UpdatedAt` are `time.Time` structs. Could the time be standardized, so it's consistent with alpaca API? I think `time.Time` uses `RFC 3339` format.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。