List Nested Futures Option Chains
getFuturesOptionChainsSymbolNested/futures-option-chains/{symbol}/nestedBase URL: https://api.cert.tastyworks.com (Sandbox) · https://api.tastyworks.com (Production)
Returns the futures option chain for a given futures product code (e.g. `ES`) in a nested form that groups data by expiration and strike to minimize redundant processing. Each strike provides its call and put symbols.
Code samples
curl -X GET 'https://api.cert.tastyworks.com/futures-option-chains/ES/nested' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
-H 'User-Agent: tastytrade-docs-example/1.0'import requests
url = "https://api.cert.tastyworks.com/futures-option-chains/ES/nested"
headers = {
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"User-Agent": "tastytrade-docs-example/1.0",
}
resp = requests.get(url, headers=headers)
print(resp.status_code, resp.json())const resp = await fetch("https://api.cert.tastyworks.com/futures-option-chains/ES/nested", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"User-Agent": "tastytrade-docs-example/1.0",
},
})
const data = await resp.json()
console.log(resp.status, data)package main
import (
"net/http"
"io"
"fmt"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.cert.tastyworks.com/futures-option-chains/ES/nested", nil)
req.Header.Set("Authorization", "Bearer YOUR_ACCESS_TOKEN")
req.Header.Set("User-Agent", "tastytrade-docs-example/1.0")
resp, _ := http.DefaultClient.Do(req)
defer resp.Body.Close()
out, _ := io.ReadAll(resp.Body)
fmt.Println(resp.Status, string(out))
}import java.net.URI;
import java.net.http.*;
HttpClient client = HttpClient.newHttpClient();
HttpRequest req = HttpRequest.newBuilder()
.uri(URI.create("https://api.cert.tastyworks.com/futures-option-chains/ES/nested"))
.header("Authorization", "Bearer YOUR_ACCESS_TOKEN")
.header("User-Agent", "tastytrade-docs-example/1.0")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> resp = client.send(req, HttpResponse.BodyHandlers.ofString());
System.out.println(resp.statusCode() + " " + resp.body());Parameters
| Name | In | Type | Description |
|---|---|---|---|
| symbol* | path | string | e.g. "ES" |
Responses
Example response
{
"data": {
"futures": [
{
"symbol": "AAPL",
"root-symbol": "AAPL",
"maturity-date": "2024-01-15",
"expiration-date": "2024-01-15",
"days-to-expiration": 0,
"active-month": true,
"next-active-month": true,
"stops-trading-at": "2024-01-15T14:30:00.000Z",
"expires-at": "2024-01-15T14:30:00.000Z"
}
],
"option-chains": [
{
"underlying-symbol": "AAPL",
"root-symbol": "AAPL",
"exercise-style": "string",
"expirations": [
{
"underlying-symbol": "AAPL",
"root-symbol": "AAPL",
"option-root-symbol": "AAPL",
"option-contract-symbol": "AAPL",
"asset": "string",
"expiration-date": "2024-01-15",
"days-to-expiration": 0,
"expiration-type": "string",
"settlement-type": "string",
"notional-value": "100.00",
"display-factor": "string",
"strike-factor": "string",
"stops-trading-at": "2024-01-15T14:30:00.000Z",
"expires-at": "2024-01-15T14:30:00.000Z",
"tick-sizes": [],
"strikes": []
}
]
}
]
},
"context": "/futures-option-chains/{symbol}/nested"
}Schema
datarequiredobject (FuturesNestedOptionChainSerializer)Nested representation of a futures option chain, grouping futures, expirations, and strikes to minimize redundant processing.
futuresarray<object>{9 fields}Futures contracts associated with the option chain.
option-chainsarray<object>{4 fields}Option chains grouped by expiration and strike for each underlying future.
contextrequiredstringexample:
"/futures-option-chains/{symbol}/nested"
Example response
{
"error": {
"code": "unauthorized",
"message": "No valid access token was provided; access tokens expire after 15 minutes."
}
}Schema
errorrequiredobjectcoderequiredstringMachine-readable error code (see the Error reference).
messagerequiredstringHuman-readable explanation.
errorsarray<object>{3 fields}Present for multi-error / validation failures; one entry per problem.
Example response
{
"error": {
"code": "string",
"message": "string",
"errors": [
{
"code": "string",
"message": "string",
"domain": "string"
}
]
}
}Schema
errorrequiredobjectcoderequiredstringMachine-readable error code (see the Error reference).
messagerequiredstringHuman-readable explanation.
errorsarray<object>{3 fields}Present for multi-error / validation failures; one entry per problem.
Example response
{
"error": {
"code": "string",
"message": "string",
"errors": [
{
"code": "string",
"message": "string",
"domain": "string"
}
]
}
}Schema
errorrequiredobjectcoderequiredstringMachine-readable error code (see the Error reference).
messagerequiredstringHuman-readable explanation.
errorsarray<object>{3 fields}Present for multi-error / validation failures; one entry per problem.
Related
- Rate-limit class:
read· idempotent — Rate limits & backoff - Error reference — codes, causes, and fixes
Agents: this page is also Markdown (with the embedded OpenAPI definition) — append .md or send Accept: text/markdown. Index at /llms.txt.