Access Token·InactiveLog in to your Public account to generate your access code.
Market Data
Get option expirations
Retrieve option expiration dates
Returns available option expiration dates for a given instrument. Requires the `marketdata` scope. Supported types: EQUITY, UNDERLYING_SECURITY_FOR_INDEX_OPTION.
POST/userapigateway/marketdata/{accountId}/option-expirations
Parameters
Path Parameters
string
Request body
Required*Parameters
Name | Type | Required | Description |
---|---|---|---|
accountId | string | Yes | - |
Body
application/jsonRequest Body
application/json
instrumentrequired
Responses
Response
200
application/json
baseSymbolstringrequired
The base symbol for which the option expirations belong.
expirationsstring[]required
List of option expirations for the given symbol.
Response
400application/json
Invalid input: unsupported instrument type, nonexistent instrument, invalid account, or unauthorized access.
No response body defined
curl --request POST \
--url https://api.public.com/userapigateway/marketdata/{accountId}/option-expirations \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"instrument": {
"symbol": "string",
"type": "EQUITY"
}
}'
{
"baseSymbol": "string",
"expirations": [
"2023-11-07"
]
}
The Public Individual API is for your own personal, non-commercial use. Unauthorized access is prohibited. You are responsible for all trades made via the API. Learn more