Synpath
Risk

Get risk rules

The pre-trade rules in force, and their version.

GET/riskself-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 configuration.

import os
import httpx

TOKEN = os.environ["SYNPATH_ACCESS_TOKEN"]

r = httpx.get("http://127.0.0.1:8000/trading/risk", headers={"Authorization": f"Bearer {TOKEN}"})
r.raise_for_status()
print(r.json())
200
{
  "enabled": true,
  "max_order_contracts": "100",
  "max_order_notional": "50",
  "max_position_contracts": "500",
  "max_open_orders": 50,
  "max_orders_per_minute": 60,
  "daily_loss_limit": "500",
  "min_price": "0.01",
  "max_price": "0.99",
  "price_collar": "0.10",
  "closing_soon_s": 60,
  "duplicate_window_ms": 2000,
  "self_trade_prevention": "account",
  "exchange_limits": {},
  "max_event_contracts": null,
  "max_venue_notional": null,
  "paused_books": [],
  "restricted": [
    "kalshi:KXELON*"
  ]
}