backtesting

Simulate A Single Trade

Returns historical pricing for one trade without defining a full backtest. Supply an underlying and one or more legs (each leg uses tastytrade/OCC symbology), optionally bounded by startTime/endTime. The response is a time series of price points with the trade effect (debit or credit), underlyingPrice, and delta.

post/simulate-trade

Request

  • Base URL
    https://backtester.vast.tastyworks.com
  • Auth
    none declared

Request body

underlyingstring

Underlying symbol of the trade

startTimestring date-time

Optionally, start time of the trade in ISO 8601 format.

endTimestring date-time

Optionally, end time of the trade in ISO 8601 format.

Response

A time-ordered series of price points for the simulated trade.

dateTimestring date-time
pricestring
effect'debit' | 'credit'
underlyingPricestring
deltastring

Changes

No recorded changes to this operation across all 1 revision of this API.