Files
QFCG d3caa067ef 增加 Protobuf 说明;接入方式增加 SDK;'协议指令' -> '业务指令' (#66)
* 增加proto说明;接入方式增加sdk;'协议指令'=>'业务指令'

* sdk=>SDK

Co-authored-by: 梁轩伟 <xuanwei.liang@longbridge.sg>
2022-05-05 10:28:19 +08:00

1.9 KiB
Raw Permalink Blame History

id, title, slug, sidebar_position
id title slug sidebar_position
quote_optionchain_date 获取标的的期权链到期日列表 optionchain-date 11

该接口用于获取标的的期权链到期日列表。

:::info

业务指令:20

:::

Request

Parameters

Name Type Required Description
symbol string 是 标的代码,使用 ticker.region 格式,例如:700.HK

Protobuf

message SecurityRequest {
  string symbol = 1;
}

Response

Response Properties

Name Type Description
expiry_date string[] 标的对应的期权链到期日列表,使用 YYMMDD 格式

`

Protobuf

message OptionChainDateListResponse {
  repeated string expiry_date = 1;
}

Response JSON Example

{
  "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 是否正确