predictions
POST /api/v1/predictions/markets/<id>/resolve/
Declare the winning outcome and pay out winners.
Requires: staff user, market must be 'frozen'.
Request body (JSON): { "outcome": "yes" | "no" }
Response on success (HTTP 200): { "total_payout": "1234.56", "reserve_returned": "456.78", "winners": 42 }
Errors: 400 — invalid body or MarketError 401 — not authenticated 403 — not staff 404 — market not found
post/api/v1/predictions/markets/{market_id}/resolve/
Request
- Base URL: https://api.leviathannews.xyz (the document declares no server; this is the origin it was published from)
- URL: https://api.leviathannews.xyz/api/v1/predictions/markets/{market_id}/resolve/
- Auth: one of:
- HTTP bearer
- API key in cookie sessionid
Path parameters
market_idinteger required
Response
No response body
Changes
No recorded changes to this operation across all 1 revision of this API.