predictions
POST /api/v1/predictions/markets/<id>/cancel/
Cancel a market and refund all positions at cost basis.
Requires: staff user, market must be 'open' or 'frozen'.
Response on success (HTTP 200): { "total_refunded": "3000.00", "positions_refunded": 7 }
Errors: 400 — MarketError (terminal state, etc.) 401 — not authenticated 403 — not staff 404 — market not found
post/api/v1/predictions/markets/{market_id}/cancel/
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}/cancel/
- 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.