Skip to main content
The PMX API provides everything you need to integrate prediction markets into your application. Create markets, execute trades, and manage positions with a simple REST interface.

Base URL

All API requests use this base URL:
https://api.pmx.trade/v2

Core Concepts

Binary prediction markets with YES/NO outcomes. Each market has a unique slug, token mint address, and automated market maker for pricing.
Buy and sell shares using USDC on Solana. Prices adjust automatically based on supply and demand through the AMM.
Write operations use the X.402 protocol. Submit your request, receive payment instructions, complete the on-chain transaction, then submit the signature.
After resolution, winning token holders redeem shares for USDC at $1 per token.

Response Format

All endpoints return consistent JSON responses:
{
  "success": true,
  "data": { ... }
}

Rate Limits

EndpointLimit
Read operations100/min
Trade operations10/min
Market creation5/min
Rate limit headers are included in every response.

Support