Skip to main content
POST
/
api
/
programs
/
backtest
cURL
curl --request POST \
  --url https://api.production.hyperoru.com/api/programs/backtest \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "backtest": {
    "id": 123,
    "status": "<string>",
    "account_id": 123,
    "finished_at": "<string>",
    "program_id": 123,
    "started_at": "<string>",
    "total_pnl": 123,
    "total_trades": 123,
    "win_rate": 123
  },
  "metrics": {},
  "trades": [
    {}
  ]
}

Authorizations

Authorization
string
header
required

Session token issued by POST /api/users/login, transported as Authorization: Bearer <token>.

Body

application/json

Generic free-form JSON object used as a fallback response schema for endpoints whose payload is large, deeply nested, or best documented via their narrative description rather than a fixed Rust type.

Named so it shows up as a proper $ref in the generated spec instead of a bare serde_json::Value; clients that want stricter typing should reach for the domain-specific DTOs declared alongside the relevant handler.

Response

Backtest accepted / result

Backtest detail payload.

backtest
object
required

Backtest result row.

metrics
object
required
trades
object[]
required