dogabot dogabot Documentation

Create a backtest

post https://api.dogabot.com/api/v1/backtest

Enqueues a backtest. Check quota first; a limited number may run at once. start_time and end_time are unix milliseconds; execution_interval is milliseconds. Requires the listed write scope and feat:api:write on an Institutional account. Send Idempotency-Key.

Scopes write:backtest write

Headers

Idempotency-Key string required

Unique key per mutation so retries stay safe.

Example retry-1

Body parameters

application/json required

name string required
max 200 chars
symbol string required
exchange string required
candle_timeframe string required

Candle size, e.g. 1h or 60.

execution_interval integer required

Strategy tick in milliseconds (must be compatible with candle_timeframe).

start_time integer required

Range start, unix milliseconds.

end_time integer required

Range end, unix milliseconds. Must be after start_time.

initial_capital number
≥ 0
markets array of object

Optional multi-leg markets. When omitted, a single primary leg is built from exchange/symbol.

params object

Strategy params in the webapp / backtest save shape. Needs entry.rules (and usually exit/increase/reversal sections) for validation. Named-rule wire shapes: https://docs.dogabot.com/rules/ (JSON: /rule-examples.json). Ask AI / customLogic recipes: https://docs.dogabot.com/recipes/ (JSON: /recipe-examples.json).

Responses

202 Accepted
401 Unauthorized
403 Forbidden — missing scope or feature gate
404 Not found
429 Rate limited