獲取標的的期權鏈到期日列表
該接口用於獲取標的的期權鏈到期日列表。
CLI安裝 CLI
bash
# AAPL 期權到期日列表
longbridge option chain AAPL.US
# TSLA 期權到期日列表
longbridge option chain TSLA.USSDK Links
Info
業務指令:20
Request
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| symbol | string | 是 | 標的代碼,使用 ticker.region 格式,例如:700.HK |
Protobuf
protobuf
message SecurityRequest {
string symbol = 1;
}Request Example
Response
Response Properties
| Name | Type | Description |
|---|---|---|
| expiry_date | string[] | 標的對應的期權鏈到期日列表,使用 YYMMDD 格式 |
Protobuf
protobuf
message OptionChainDateListResponse {
repeated string expiry_date = 1;
}Response JSON Example
json
{
"expiry_date": [
"20220422",
"20220429",
"20220506",
"20220513",
"20220520",
"20220527",
"20220603",
"20220617",
"20220715",
"20220819",
"20220916",
"20221021",
"20221118",
"20230120",
"20230317",
"20230616",
"20230915",
"20240119",
"20240621"
]
}錯誤碼
| 協議錯誤碼 | 業務錯誤碼 | 描述 | 排查建議 |
|---|---|---|---|
| 3 | 301600 | 無效的請求 | 請求參數有誤或解包失敗 |
| 3 | 301606 | 限流 | 降低請求頻次 |
| 7 | 301602 | 服務端內部錯誤 | 請重試或聯繫技術人員處理 |
| 7 | 301600 | 請求標的不存在 | 檢查請求的 symbol 是否正確 |