alpacahq / alpacahq/alpaca-trade-api-js

getSnapshot previous close price discrepancy[Bug]:

オープン
#226 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
601
フォーク
155
平均マージ
21時間 14分
マージ済み PR(30日)
10

説明

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Current Behavior

When I do
```
const snapshot = await alpaca.getSnapshot
const previousClose = snapshot?.PrevDailyBar?.ClosePrice;
```

the previousClose price is not consistent with numbers I get from other sources, like Yahoo Finance or Nasdaq website

### Expected Behavior

I would expect theses numbers to match up since it is referencing yesterday's market data-- there should be no discrepancy

### SDK Version I encountered this issue in

@alpacahq/alpaca-trade-api: ^2.15.0

### Steps To Reproduce

```markdown
1) call `alpaca.getSnapshot('BITQ')`
2) look at the value for PrevDailyBar.ClosePrice
```

### Filled out the Steps to Reproduce section?

- [X] I have entered valid steps to reproduce my issue or have attached a minimally reproducible case in code that shows my issue happening; and understand that without this my issue will be flagged as invalid and closed after 30 days.

### Anything else?

_No response_

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。