alpacahq / alpacahq/Alpaca-API
Invalid Option Symbol Returned from Option Snapshot Endpoint
- Lenguaje dominante
- Sin datos de lenguaje
- Estrellas
- 173
- Forks
- 17
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
**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.
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.