alpacahq / alpacahq/Alpaca-API

Invalid Option Symbol Returned from Option Snapshot Endpoint

オープン
#266 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
言語のデータがありません
スター
173
フォーク
17
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。