alpacahq / alpacahq/Alpaca-API

bars API returns wrong response sometimes

未关闭
#159 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
没有语言数据
星标
173
派生
17
PR 合并指标
30 天内没有已合并 PR

描述

Possibly related to issue [#139](https://github.com/alpacahq/Alpaca-API/issues/139)

The following endpoint returns a non-deterministic response.

https://data.alpaca.markets/v1/bars/minute?symbols=TSLA&limit=1&until=2021-01-25T15:30:00.000Z

Expected behavior: API should always return a single bar whose time is 2021-01-25, 15:29:00 pm.
Actual behavior: Sometimes, (seemingly randomly,) the API will wrongly return the following:

{
"TSLA": [
{
"t": 1611588480,
"o": 887.935,
"h": 887.935,
"l": 885.73,
"c": 886.27,
"v": 3319
}
]
}

which is the bar for 2021-01-25, 15:28:00 pm not 15:29:00 pm.

贡献指南

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

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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