Skip to content

Run History

Read every activation of an owned Strategy RMS strategy, newest first.

Endpoint URL

http
Local Host   :  POST http://127.0.0.1:5000/api/v1/strategy/runs
Ngrok Domain :  POST https://<your-ngrok-domain>.ngrok-free.app/api/v1/strategy/runs
Custom Domain:  POST https://<your-custom-domain>/api/v1/strategy/runs

Sample API Request

json
{
  "apikey": "<your_app_apikey>",
  "strategy_id": 7,
  "limit": 10
}

Sample cURL Request

bash
curl -X POST http://127.0.0.1:5000/api/v1/strategy/runs \
  -H 'Content-Type: application/json' \
  -d '{
  "apikey": "<your_app_apikey>",
  "strategy_id": 7,
  "limit": 10
}'

Sample API Response

json
{
  "status": "success",
  "data": [
    {
      "id": 42,
      "strategy_id": 7,
      "mode": "sandbox",
      "broker": "sandbox",
      "started_at": "2026-08-30T03:50:11.402118+00:00",
      "stopped_at": "2026-08-30T09:40:02.771905+00:00",
      "stop_reason": "overall_target",
      "stop_requested_at": null,
      "stop_requested_reason": null,
      "pnl_realized": 3140.5,
      "pnl_peak": 4880.0,
      "pnl_trough": -1220.25,
      "trigger_source": "manual",
      "resolved_expiries": {"1": "04-SEP-26"}
    }
  ]
}

Request Body

ParameterDescriptionMandatory/OptionalDefault Value
apikeyYour Tradeboard API keyMandatory-
strategy_idPositive Strategy RMS idMandatory-
limitNumber of runs, from 1 to 500Optional100

The limit is rejected outside its range instead of silently clamped.

Response Fields

FieldTypeDescription
statusstringsuccess or error
dataarrayRuns ordered newest first by start time

Run Object Fields

FieldTypeDescription
idintegerRun id; use it to filter Order History or Risk Event Audit Trail
strategy_idintegerOwning strategy
modestringlive or sandbox
brokerstringBroker captured at start
started_at, stopped_atstring or nullISO 8601 UTC timestamps
stop_reasonstring or nullTerminal stop reason
stop_requested_at, stop_requested_reasonstring or nullDurable pending-stop state
pnl_realizednumberFinal realised P&L from durable owner/fill evidence
pnl_peak, pnl_troughnumberHighest and lowest P&L for the run
trigger_sourcestringmanual, webhook, or scheduler
webhook_event_idinteger or nullInbound webhook event that opened the run
resolved_expiriesobject or nullResolved expiry by string leg id

Notes

  • stopped_at: null marks an open run. Pair it with Strategy Status when checking the current run.
  • A populated pending-stop field means recovery will resume the stop; it is not an ordinary closed run.
  • Overall thresholds trigger MARKET exits from rolling latest-known marks. A run can end with overall_target or overall_sl and a different final realised P&L.
  • Peak and trough are authoritative only after the run stops. Final P&L is reconciled from exact fill evidence rather than a stale checkpoint.

Back to: Strategy RMS API