alpacahq / alpacahq/alpaca-trade-api-js

getSnapshot previous close price discrepancy[Bug]:

Ouverte
#226 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
TypeScript
Étoiles
601
Forks
155
Merge moyen
21 h 14 min
PR mergées (30 j)
10

Description

### 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_

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.