alpacahq / alpacahq/Alpaca-API

Market data "latest trade" returning extremely old value

Open
#267 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

**Describe the bug**
I'd simply like to pull the latest trade to get an idea of the price; but it's returning a trade from august not a price from today. There are more recent trades inside the paginated list of trades.

**To Reproduce**
Steps to reproduce the behavior:

Hit "https://data.alpaca.markets/v2/stocks/BSLKW/trades"
Notice there are trades from today
Then hit "https://data.alpaca.markets/v2/stocks/BSLKW/trades/latest"
Compare results

**Expected behavior**
I'd expect latest trade to be one of (ideally last) trade from the trades list.

**Screenshots**
Latest Trade (note: it's from August)
image
Trades (note: there are trades from today)
image

**Desktop (please complete the following information):**
n/a

**Smartphone (please complete the following information):**
n/a

**Additional context**
n/a

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.