get Option Expiry Horizons
curl --request POST \
--url https://quantura.studio/api/v1/market-data/options/horizons \
--header 'Content-Type: application/json' \
--data '
{
"underlying": "<string>",
"last_timestamp": "2023-11-07T05:31:56Z"
}
'import requests
url = "https://quantura.studio/api/v1/market-data/options/horizons"
payload = {
"underlying": "<string>",
"last_timestamp": "2023-11-07T05:31:56Z"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({underlying: '<string>', last_timestamp: '2023-11-07T05:31:56Z'})
};
fetch('https://quantura.studio/api/v1/market-data/options/horizons', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://quantura.studio/api/v1/market-data/options/horizons",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'underlying' => '<string>',
'last_timestamp' => '2023-11-07T05:31:56Z'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://quantura.studio/api/v1/market-data/options/horizons"
payload := strings.NewReader("{\n \"underlying\": \"<string>\",\n \"last_timestamp\": \"2023-11-07T05:31:56Z\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://quantura.studio/api/v1/market-data/options/horizons")
.header("Content-Type", "application/json")
.body("{\n \"underlying\": \"<string>\",\n \"last_timestamp\": \"2023-11-07T05:31:56Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://quantura.studio/api/v1/market-data/options/horizons")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"underlying\": \"<string>\",\n \"last_timestamp\": \"2023-11-07T05:31:56Z\"\n}"
response = http.request(request)
puts response.read_body{
"ok": true,
"provider": "alpaca",
"schema_version": "option_horizons_v1",
"rows": []
}{
"ok": false,
"error": "event_query_invalid",
"message": "Choose a provider event and a valid continuation cursor."
}{
"ok": false,
"error": "event_query_invalid",
"message": "Choose a provider event and a valid continuation cursor."
}{
"ok": false,
"error": "event_query_invalid",
"message": "Choose a provider event and a valid continuation cursor."
}{
"ok": false,
"error": "event_query_invalid",
"message": "Choose a provider event and a valid continuation cursor."
}Download
get Option Expiry Horizons
XNYS calendar projections from last_timestamp, not requested end or today. Daily counts trading sessions; intraday counts projected regular-session bars on the tail grid, including early closes/DST. Extended-hour downloads still receive regular-session guidance with explicit caveat. Weekly/monthly bucket starts may not land on an expiry; landing flags and next grid date are returned. Expiration date is not inferred to be a contract exercise/last-trading deadline. Calendar coverage 2000–2040; no future bar availability guarantee.
POST
/
v1
/
market-data
/
options
/
horizons
get Option Expiry Horizons
curl --request POST \
--url https://quantura.studio/api/v1/market-data/options/horizons \
--header 'Content-Type: application/json' \
--data '
{
"underlying": "<string>",
"last_timestamp": "2023-11-07T05:31:56Z"
}
'import requests
url = "https://quantura.studio/api/v1/market-data/options/horizons"
payload = {
"underlying": "<string>",
"last_timestamp": "2023-11-07T05:31:56Z"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({underlying: '<string>', last_timestamp: '2023-11-07T05:31:56Z'})
};
fetch('https://quantura.studio/api/v1/market-data/options/horizons', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://quantura.studio/api/v1/market-data/options/horizons",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'underlying' => '<string>',
'last_timestamp' => '2023-11-07T05:31:56Z'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://quantura.studio/api/v1/market-data/options/horizons"
payload := strings.NewReader("{\n \"underlying\": \"<string>\",\n \"last_timestamp\": \"2023-11-07T05:31:56Z\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://quantura.studio/api/v1/market-data/options/horizons")
.header("Content-Type", "application/json")
.body("{\n \"underlying\": \"<string>\",\n \"last_timestamp\": \"2023-11-07T05:31:56Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://quantura.studio/api/v1/market-data/options/horizons")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"underlying\": \"<string>\",\n \"last_timestamp\": \"2023-11-07T05:31:56Z\"\n}"
response = http.request(request)
puts response.read_body{
"ok": true,
"provider": "alpaca",
"schema_version": "option_horizons_v1",
"rows": []
}{
"ok": false,
"error": "event_query_invalid",
"message": "Choose a provider event and a valid continuation cursor."
}{
"ok": false,
"error": "event_query_invalid",
"message": "Choose a provider event and a valid continuation cursor."
}{
"ok": false,
"error": "event_query_invalid",
"message": "Choose a provider event and a valid continuation cursor."
}{
"ok": false,
"error": "event_query_invalid",
"message": "Choose a provider event and a valid continuation cursor."
}Body
application/json
Response
Successful response (illustrative example)
The response is of type object.