predictions

POST /api/v1/predictions/markets/create/

Create a new prediction market and seed its MM reserve.

Requires: staff user. Requires ENABLE_PREDICTIONS=1 in settings.

Request body (JSON): { "question": "Will BTC exceed $100k by Dec 2026?", "b_parameter": 500, "max_per_user": 5000, (optional, default 5000) "min_trade": 10, (optional, default 10) "expires_at": "2026-12-31T23:59:59Z" (optional ISO-8601) }

Response on success (HTTP 201): <MarketDetailSerializer>

Errors: 400 — invalid body, MarketError (business rule violation) 401 — not authenticated 403 — not staff

post/api/v1/predictions/markets/create/

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/create/
  • Auth: one of:
    • HTTP bearer
    • API key in cookie sessionid

Response

No response body

Changes

No recorded changes to this operation across all 1 revision of this API.