Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getSnapshot previous close price discrepancy[Bug]: #226

Open
2 tasks done
mallikarjkolar opened this issue Sep 21, 2022 · 0 comments
Open
2 tasks done

getSnapshot previous close price discrepancy[Bug]: #226

mallikarjkolar opened this issue Sep 21, 2022 · 0 comments

Comments

@mallikarjkolar
Copy link

Is there an existing issue for this?

  • 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

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

Filled out the Steps to Reproduce section?

  • 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant