alpacahq / alpacahq/alpaca-trade-api-js

getSnapshot previous close price discrepancy[Bug]:

Abierto
#226 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
TypeScript
Estrellas
601
Forks
155
Merge medio
21 h 14 min
PR fusionados (30 d)
10

Descripción

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

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.