alpacahq / alpacahq/Alpaca-API

bars API returns wrong response sometimes

Open
#159 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
173
Forks
17
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.