List option expiries for an underlying
GET
/instruments/options/expiries
curl --request GET \ --url http://localhost:3001/instruments/options/expiries \ --header 'Authorization: Bearer <token>'import requests
url = "http://localhost:3001/instruments/options/expiries"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.json())use reqwest;
#[tokio::main]pub async fn main() { let url = "http://localhost:3001/instruments/options/expiries";
let mut headers = reqwest::header::HeaderMap::new(); headers.insert("Authorization", "Bearer <token>".parse().unwrap());
let client = reqwest::Client::new(); let response = client.get(url) .headers(headers) .send() .await;
let results = response.unwrap() .json::<serde_json::Value>() .await .unwrap();
dbg!(results);}Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”underlying
required
string
Responses
Section titled “Responses”Sorted distinct expiry dates
Media typeapplication/json
Array<string>
Example generated
[ "example"]