alpacahq / alpacahq/Alpaca-API

Invalid Option Symbol Returned from Option Snapshot Endpoint

Ouverte
#266 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Aucune donnée de langage
Étoiles
173
Forks
17
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

**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.

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.