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

Invalid Option Symbol Returned from Option Snapshot Endpoint #266

Open
Chacoon3 opened this issue Nov 27, 2024 · 0 comments
Open

Invalid Option Symbol Returned from Option Snapshot Endpoint #266

Chacoon3 opened this issue Nov 27, 2024 · 0 comments

Comments

@Chacoon3
Copy link

Describe the bug
An option snapshot like the one below was returned from the endpoint. The option symbol appears incorrect.

"XOM2241220P00280000": {
"latestQuote": {
"ap": 9.5,
"as": 82,
"ax": "N",
"bp": 7,
"bs": 86,
"bx": "X",
"c": " ",
"t": "2024-11-26T20:59:59.956962048Z"
},
"latestTrade": {
"c": "f",
"p": 15.79,
"s": 5,
"t": "2024-08-26T14:37:34.549471232Z",
"x": "C"
}
},

To Reproduce
Use this query:

https://data.alpaca.markets/v1beta1/options/snapshots/XOM?expiration_date_gte=2024-11-27&expiration_date_lte=2024-12-27&limit=1000

Expected behavior
The symbol should probably be XOM241220P00280000. I didn't know how come this was returned to me and it made me doubt if this is really a production-ready API.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
This is not the first time I found invalid option symbols being returned from this endpoint. Hopefully someone can explain the reason to me.

@Chacoon3 Chacoon3 changed the title Weird Option Symbol Returned from Option Snapshot Endpoint Invalid Option Symbol Returned from Option Snapshot Endpoint Nov 27, 2024
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