Submit Backtest
Enqueue a backtest.
Accepts either:
- strategy_spec: an inline strategy spec dict
- strategy_id: id of a previously saved strategy (user-scoped)
The spec is validated synchronously; a background task runs the engine and writes results to the DB.
Auth: the EFFECTIVE user is the session-cookie user when a valid session exists, else the X-Vega-Key header user (require_backtest_submitter — see auth.py). This matters because the home cockpit always sends the shared demo key alongside a real user's session cookie; without preferring the session, a logged-in account holder would be treated as the demo user and hit the free-tier cap below.
post/v1/backtests
Request
- Base URL: https://api.quantradin.com (the document declares no server; this is the origin it was published from)
- URL: https://api.quantradin.com/v1/backtests
- Auth: none declared
Headers
x-vega-keystring nullable
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.