Skip to Content

Option Chain Expiry Date List

This API is used to obtain the the list of expiration dates of option chain

CLIInstall CLI

bash
# list all expiry dates for AAPL options
longbridge option chain AAPL.US
# list all expiry dates for TSLA options
longbridge option chain TSLA.US

Request

Parameters

NameTypeRequiredDescription
symbolstringYesSecurity code, in ticker.region format, for example:700.HK

Protobuf

protobuf
message SecurityRequest {
  string symbol = 1;
}

Request Example

Response

Response Properties

NameTypeDescription
expiry_datestring[]option chain expiry dates list,in YYMMDD format

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"
  ]
}

Error Code

Protocol Error CodeBusiness Error CodeDescriptionTroubleshooting Suggestions
3301600Invalid requestInvalid request parameters or unpacking request failed
3301606Request rate limitReduce the frequency of requests
7301602Server errorPlease try again or contact a technician to resolve the issue
7301600Symbol not foundCheck that the requested symbol is correct