Run History
Read every activation of an owned Strategy RMS strategy, newest first.
Endpoint URL
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/runsSample API Request
{
"apikey": "<your_app_apikey>",
"strategy_id": 7,
"limit": 10
}Sample cURL Request
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
Request Body
apikey
Your OpenAlgo API key
Mandatory
-
strategy_id
Positive Strategy RMS id
Mandatory
-
limit
Number of runs, from 1 to 500
Optional
100
The limit is rejected outside its range instead of silently clamped.
Response Fields
status
string
success or error
data
array
Runs ordered newest first by start time
Run Object Fields
strategy_id
integer
Owning strategy
mode
string
live or sandbox
broker
string
Broker captured at start
started_at, stopped_at
string or null
ISO 8601 UTC timestamps
stop_reason
string or null
Terminal stop reason
stop_requested_at, stop_requested_reason
string or null
Durable pending-stop state
pnl_realized
number
Final realised P&L from durable owner/fill evidence
pnl_peak, pnl_trough
number
Highest and lowest P&L for the run
trigger_source
string
manual, webhook, or scheduler
webhook_event_id
integer or null
Inbound webhook event that opened the run
resolved_expiries
object or null
Resolved expiry by string leg id
Notes
stopped_at: nullmarks 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_targetoroverall_sland 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
Last updated