Build the middle.
The API behind the current majjha beta lets you discover live questions, stream order books, manage orders, and follow portfolios. REST handles requests; WebSocket delivers realtime updates.
Base URL
majjha currently exposes one hosted beta API. Activity uses test Dots with no monetary value, and there is no money in or out.
Hosted beta
https://api.majjha.fun hosted betaRunning locally?
The development engine listens on
http://localhost:7890. Point your client at that base URL when working against a local stack.Start here
QuickstartRead a market and stream updates in under five minutes.AuthenticationFirst-party sign-in, sessions, and native Bearer tokens.SDKsOfficial TypeScript, Python, and Rust clients.WebSocketStream live order books and tickers over a single socket.MCP serverPreview the hosted connector for agent market reads and actions.
REST resources
The API is organised around these resource groups, top of the hierarchy first.
- Auth APISessions & identity
- ExchangeHealth & status
- ComplianceKYC state
- SearchMarkets, events, series, profiles
- TagsTopic pages & related tags
- SeriesRecurring market families
- EventsGroups of related markets
- SportsSports, leagues, teams, market types
- MarketsDiscovery, books & trades
- CommentsMarket discussion
- OrdersRead, cancel & compatibility
- PortfolioPositions, fills, balance