Analysis

Backtest a condition

What price did after a condition on one symbol: occurrences, forward returns, win rate and the edge over the baseline. Same data as the MCP tool backtest_condition.

post/v1/backtest

Request

  • Base URL: https://api.traderspy.app
  • URL: https://api.traderspy.app/v1/backtest
  • Auth: one of:
    • HTTP bearer
    • API key in header X-API-Key

Request body

symbolstring required

Trading pair (BTCUSDT, or a bare BTC).

interval'1m' | '5m' | '15m' | '1h' | '4h' | '1d'

Candle timeframe.

horizonsinteger[]

Bars ahead to measure returns over (default ≈ 4h / 1d / 3d for the interval).

Response

OK

object required

Changes

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