List Available Date Ranges
getAvailableDatesget
/available-datesBase URL: https://backtester.vast.tastyworks.com (Backtester API)
Returns each symbol with historical backtest data alongside the `startDate` and `endDate` of its available coverage. Call this before creating a backtest to confirm a symbol has history for your requested window.
Code samples
curl -X GET 'https://backtester.vast.tastyworks.com/available-dates' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
-H 'User-Agent: tastytrade-docs-example/1.0'import requests
url = "https://backtester.vast.tastyworks.com/available-dates"
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://backtester.vast.tastyworks.com/available-dates", {
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://backtester.vast.tastyworks.com/available-dates", 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://backtester.vast.tastyworks.com/available-dates"))
.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
No parameters.
Responses
200An array of symbols, each with the inclusive range of dates that have backtest history.application/json
Example response
[
{
"symbol": "SPY",
"startDate": "2012-01-03",
"endDate": "2024-12-31"
}
]Schema
Array — each item is an object with fields:
symbolstringThe symbol with available history.
example:
"SPY"startDatestringEarliest date with available backtest history for this symbol.
example:
"2012-01-03"endDatestringLatest date with available backtest history for this symbol.
example:
"2024-12-31"
400Request included malformed input
401Unauthorized.
429Request rate exceeded reasonable thresholds. Back off exponentially before retrying.
500Failed to process request
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.