Skip to main content
Ask a prediction-market trader their exposure to one event and most reach for a spreadsheet. Mithril answers directly — per subaccount or across the whole workspace, with venues netted into one view.

Risk statistics

Percentages are in basis points (largest_position_pct_bps: 3200 = 32%). marks_stale: true warns that mark prices couldn’t be refreshed, so mark-to-market values are best-effort.

Daily P&L history

Fills

Every execution, newest first — with fees computed from each venue’s schedule:
Each fill (FillView):

Positions and portfolio

GET /v1/positions returns a paginated list of PositionView:
GET /v1/portfolio aggregates positions for a scope (PortfolioView):
Mark-to-market value and P&L live on risk stats; the portfolio view is positions + aggregate cost basis.
Two more reporting endpoints:
python 06_risk.py walks all of these in one run — a good template for a monitoring dashboard or an end-of-day report.

Full endpoint reference

Every path, method, and auth requirement.