Synpath
Accounts & Keys

Engine status

Whether the engine is running or halted, and what it holds.

GET/statusself-hosted · access token · view

Self-hosted. Served by synpath serve on your own machine or host, which must be running; the engine and its order types live there. Nothing on this page runs on Synpath's servers.

Response

The status.

import os
import httpx

TOKEN = os.environ["SYNPATH_ACCESS_TOKEN"]

r = httpx.get("http://127.0.0.1:8000/trading/status", headers={"Authorization": f"Bearer {TOKEN}"})
r.raise_for_status()
print(r.json())
200
{
  "running": true,
  "halted": false,
  "halt_reason": "",
  "owner": "engine@host:41022",
  "open_orders": 3,
  "managed_orders": 1,
  "positions": 2,
  "journal_events": 1842,
  "risk_version": 4
}