curl https://api.pmx.trade/v2/clob/markets
{
"markets": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"marketId": "btc-100k-2025",
"marketPubkey": "7xKXabc123...",
"status": "active",
"outcome": null,
"title": "Will BTC hit $100k by end of 2025?",
"description": "Resolves YES if Bitcoin reaches $100,000 USD...",
"resolutionRules": "Based on CoinGecko BTC/USD price",
"category": "crypto",
"endDate": "2025-12-31T23:59:59.000Z",
"imageUrl": "https://...",
"yesTicker": "YES",
"noTicker": "NO",
"creatorAddress": "7xKXabc123...",
"bestBid": { "yes": 5500, "no": 4200 },
"bestAsk": { "yes": 5800, "no": 4500 },
"lastPrice": { "yes": null, "no": null },
"createdAt": "2025-01-01T00:00:00.000Z",
"updatedAt": "2025-01-10T00:00:00.000Z"
}
]
}
List all orderbook markets with current best bid/ask prices.
curl https://api.pmx.trade/v2/clob/markets
{
"markets": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"marketId": "btc-100k-2025",
"marketPubkey": "7xKXabc123...",
"status": "active",
"outcome": null,
"title": "Will BTC hit $100k by end of 2025?",
"description": "Resolves YES if Bitcoin reaches $100,000 USD...",
"resolutionRules": "Based on CoinGecko BTC/USD price",
"category": "crypto",
"endDate": "2025-12-31T23:59:59.000Z",
"imageUrl": "https://...",
"yesTicker": "YES",
"noTicker": "NO",
"creatorAddress": "7xKXabc123...",
"bestBid": { "yes": 5500, "no": 4200 },
"bestAsk": { "yes": 5800, "no": 4500 },
"lastPrice": { "yes": null, "no": null },
"createdAt": "2025-01-01T00:00:00.000Z",
"updatedAt": "2025-01-10T00:00:00.000Z"
}
]
}
Show Market object
active, paused, or resolved.yes, no, or null.null.{ yes, no }. Values are null when no bids exist.{ yes, no }. Values are null when no asks exist.{ yes, no }.curl https://api.pmx.trade/v2/clob/markets
{
"markets": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"marketId": "btc-100k-2025",
"marketPubkey": "7xKXabc123...",
"status": "active",
"outcome": null,
"title": "Will BTC hit $100k by end of 2025?",
"description": "Resolves YES if Bitcoin reaches $100,000 USD...",
"resolutionRules": "Based on CoinGecko BTC/USD price",
"category": "crypto",
"endDate": "2025-12-31T23:59:59.000Z",
"imageUrl": "https://...",
"yesTicker": "YES",
"noTicker": "NO",
"creatorAddress": "7xKXabc123...",
"bestBid": { "yes": 5500, "no": 4200 },
"bestAsk": { "yes": 5800, "no": 4500 },
"lastPrice": { "yes": null, "no": null },
"createdAt": "2025-01-01T00:00:00.000Z",
"updatedAt": "2025-01-10T00:00:00.000Z"
}
]
}
bestBid/bestAsk are null, lastPrice provides the most recent trade price as a fallback.