tastytradeDeveloper Docs
Legacy ↗

API Reference / Backtesting

List Available Date Ranges

getAvailableDates
get/available-dates

Base 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'

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:

  • symbolstring

    The symbol with available history.

    example: "SPY"

  • startDatestring

    Earliest date with available backtest history for this symbol.

    example: "2012-01-03"

  • endDatestring

    Latest 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

Agents: this page is also Markdown (with the embedded OpenAPI definition) — append .md or send Accept: text/markdown. Index at /llms.txt.