tastytradeDeveloper Docs
Legacy ↗

API Reference / Backtesting

Cancel A Running Backtest

cancelBacktests
post/backtests/{id}/cancel

Base URL: https://backtester.vast.tastyworks.com (Backtester API)

Stops a `pending` or `running` backtest early. Returns `204 No Content` on success. Useful for aborting a long run you no longer need.

Code samples

curl -X POST 'https://backtester.vast.tastyworks.com/backtests/{id}/cancel' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'User-Agent: tastytrade-docs-example/1.0'

Parameters

NameInTypeDescription
id*pathstring

Responses

204The backtest was cancelled. No response body is returned.
400Request included malformed input
401Unauthorized.
404Backtest not found
429Request rate exceeded reasonable thresholds. Back off exponentially before retrying.

Related

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