List Futures
getInstrumentsFutures/instruments/futuresBase URL: https://api.cert.tastyworks.com (Sandbox) · https://api.tastyworks.com (Production)
Returns active outright futures contracts, optionally filtered by symbol or product code. Each future includes its associated product metadata nested under `future-product`. Futures symbols begin with a forward slash (e.g. `/ESU3`); URL-encode the slash (e.g. `%2FESU3`).
Code samples
curl -X GET 'https://api.cert.tastyworks.com/instruments/futures?exchange=%7Bexchange%7D&only-active-futures=true&product-code=%7Bproduct-code%7D&security-id=%7Bsecurity-id%7D&symbol[]=%2FESU3' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
-H 'User-Agent: tastytrade-docs-example/1.0'import requests
url = "https://api.cert.tastyworks.com/instruments/futures?exchange=%7Bexchange%7D&only-active-futures=true&product-code=%7Bproduct-code%7D&security-id=%7Bsecurity-id%7D&symbol[]=%2FESU3"
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/instruments/futures?exchange=%7Bexchange%7D&only-active-futures=true&product-code=%7Bproduct-code%7D&security-id=%7Bsecurity-id%7D&symbol[]=%2FESU3", {
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/instruments/futures?exchange=%7Bexchange%7D&only-active-futures=true&product-code=%7Bproduct-code%7D&security-id=%7Bsecurity-id%7D&symbol[]=%2FESU3", 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/instruments/futures?exchange=%7Bexchange%7D&only-active-futures=true&product-code=%7Bproduct-code%7D&security-id=%7Bsecurity-id%7D&symbol[]=%2FESU3"))
.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 |
|---|---|---|---|
| exchange | query | string | Name of the exchange for the product. Only used to avoid security id collisions if that is also given. |
| only-active-futures | query | boolean | If true (defaults to true), only active futures are returned. e.g. true |
| product-code | query | array | The product code of the future(s), i.e. `product-code[]=ES&product-code[]=6A`. \ Ignored if `symbol` parameter is given. (example: product-code[]={value1}&product-code[]={value2}) |
| security-id | query | array | Exchange-specific ID used for order routing (example: security-id[]={value1}&security-id[]={value2}) |
| symbol | query | array | The symbol of the future(s), i.e. `symbol[]=ESZ9`. Leading forward slash is not required. (example: symbol[]={value1}&symbol[]={value2}) e.g. ["/ESU3"] |
Responses
Example response
{
"data": {
"items": [
{
"active": true,
"active-month": true,
"back-month-first-calendar-symbol": true,
"closing-only-date": "2024-01-15",
"contract-size": "50.0",
"display-factor": "0.01",
"exchange": "CME",
"exchange-data": {},
"expiration-date": "2023-09-15",
"expires-at": "2023-09-15T13:30:00.000+00:00",
"first-notice-date": "2024-01-15",
"product-group": "CME_ES",
"is-closing-only": false,
"last-trade-date": "2023-09-15",
"main-fraction": "string",
"next-active-month": false,
"notional-multiplier": "50.0",
"product-code": "ES",
"roll-target-symbol": "/ESZ3",
"security-id": "abc123",
"stops-trading-at": "2023-09-15T13:30:00.000+00:00",
"streamer-exchange-code": "XCME",
"streamer-symbol": "/ESU23:XCME",
"sub-fraction": "string",
"symbol": "/ESU3",
"tick-size": "0.25",
"is-tradeable": true,
"true-underlying-symbol": "AAPL",
"future-etf-equivalent": {
"share-quantity": 100,
"symbol": "AAPL"
},
"future-product": {
"active-months": "string",
"back-month-first-calendar-symbol": true,
"base-tick": 0,
"cash-settled": true,
"code": "string",
"contract-limit": 0,
"description": "string",
"display-factor": "string",
"exchange": "string",
"first-notice": true,
"listed-months": "string",
"market-sector": "string",
"notional-multiplier": "string",
"price-format": "100.00",
"product-subtype": "string",
"product-type": "string",
"security-group": "string",
"small-notional": true,
"streamer-exchange-code": "string",
"sub-tick": 0,
"supported": true,
"root-symbol": "AAPL",
"tick-size": "string",
"true-underlying-code": "string",
"underlying-description": "string",
"underlying-identifier": "string"
},
"option-tick-sizes": [
{
"value": "0.05",
"threshold": "5.0"
},
{
"value": "0.25"
}
],
"spread-tick-sizes": [
{
"value": "0.05",
"symbol": "/ESH4"
},
{
"value": "0.05",
"symbol": "/ESZ3"
}
],
"tick-sizes": [
{
"value": "0.25"
}
]
}
]
},
"context": "/instruments/futures",
"pagination": {
"per-page": 0,
"page-offset": 0,
"item-offset": 0,
"total-items": 0,
"total-pages": 0,
"current-item-count": 0
}
}Schema
datarequiredobjectitemsrequiredarray<object>{33 fields}
contextrequiredstringexample:
"/instruments/futures"paginationobjectPaging metadata, present on paginated list responses.
per-pageintegerpage-offsetintegeritem-offsetintegertotal-itemsintegertotal-pagesintegercurrent-item-countinteger
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.
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.