API Reference / Risk Parameters
getAccountsAccountNumberExpectedPriceRangesFutureUnderlyingSymbolEffective
getAccountsAccountNumberExpectedPriceRangesFutureUnderlyingSymbolEffective/accounts/{account_number}/expected-price-ranges/future/{underlying_symbol}/effectiveBase URL: https://api.cert.tastyworks.com (Sandbox) · https://api.tastyworks.com (Production)
Get effective expected price range for account and future underlying
Code samples
curl -X GET 'https://api.cert.tastyworks.com/accounts/5WX01234/expected-price-ranges/future/{underlying_symbol}/effective' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
-H 'User-Agent: tastytrade-docs-example/1.0'import requests
url = "https://api.cert.tastyworks.com/accounts/5WX01234/expected-price-ranges/future/{underlying_symbol}/effective"
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/accounts/5WX01234/expected-price-ranges/future/{underlying_symbol}/effective", {
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/accounts/5WX01234/expected-price-ranges/future/{underlying_symbol}/effective", 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/accounts/5WX01234/expected-price-ranges/future/{underlying_symbol}/effective"))
.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 |
|---|---|---|---|
| account_number* | path | string | e.g. "5WX01234" |
| underlying_symbol* | path | string |
Responses
Example response
{
"data": {
"id": 1,
"account-number": "5WX01234",
"clearing-identifier": "string",
"down-percent": "string",
"down-percent-override": "string",
"enabled": true,
"hard-to-borrow-multiplier": "string",
"is-deleted": true,
"underlying-instrument-type": "Equity",
"underlying-symbol": "AAPL",
"up-percent": "string",
"up-percent-override": "string"
},
"context": "/accounts/{account_number}/expected-price-ranges/future/{underlying_symbol}/effective"
}Schema
datarequiredobject (ExpectedPriceRange)ExpectedPriceRange model
idinteger <int32>account-numberstringclearing-identifierstringdown-percentstring <decimal>Decimal value serialized as a JSON string (e.g. "150.25").
down-percent-overridestring <decimal>Decimal value serialized as a JSON string (e.g. "150.25").
enabledbooleanhard-to-borrow-multiplierstring <decimal>Decimal value serialized as a JSON string (e.g. "150.25").
is-deletedbooleanunderlying-instrument-typestringunderlying-symbolstringup-percentstring <decimal>Decimal value serialized as a JSON string (e.g. "150.25").
up-percent-overridestring <decimal>Decimal value serialized as a JSON string (e.g. "150.25").
contextrequiredstringexample:
"/accounts/{account_number}/expected-price-ranges/future/{underlying_symbol}/effective"
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.