Documentation
Base URL: https://api.traderspredict.com
Auth: send X-API-Key: pmx_... on every request. Get a key from API Keys.
Markets
/marketsList markets ordered by 24h volume. Filters: closed, category, tag.
/markets/:condition_idSingle market by condition_id.
/markets/by-slug/:slugLookup by human readable slug.
/markets/:condition_id/tradesTrades for both outcomes in one query.
Trades
/trades?token_id&from&to&limitTrades for a token in a time window.
/trades/recent?limitN most recent trades across all markets.
/trades/statsApproximate row count plus earliest and latest timestamp.
Candles
/candles?token_id&resolution&from&to&limit&formatOHLCV bars. format=udf returns TradingView UDF.
/candles/resolutionsAllowed resolution values.
Live orderbook
/orderbook/:token_idBest bid, best ask, spread, mid, depth. Sub second freshness.
Traders
/traders?sort_by&limitLeaderboard of active wallets, 30 day window.
/traders/:addressSummary stats for one wallet.
/traders/:address/tradesTrades involving this wallet.
Global aggregates
/global/statsPlatform wide KPIs.
/global/top-markets?window&limitTop markets by 24h, 7d, or 30d volume.
Webhooks
/webhooksList your webhook subscriptions.
/webhooksCreate a subscription, receive the signing secret once.
/webhooks/:idUpdate URL, events, filters, or active state.
/webhooks/:idRemove a subscription.
/webhooks/:id/deliveriesRecent delivery attempts.
Billing
/billing/planYour current plan, credit balance, cycle start.
/billing/tiersCatalog of all plan tiers.
/billing/checkoutComing soon. Returns 501 until Stripe is wired.
Your usage
/usage/summary?windowRequests, credits, latency, errors.
/usage/timeline?window&granularityTime series for plotting.
Auth
/auth/signupBody: email, name (optional). Creates user plus first API key. Shown ONCE.
/auth/meCurrent user record.
/auth/keysList your API keys, metadata only.
/auth/keysBody: name (optional). Creates an additional key. Shown ONCE.
/auth/keys/:idRevoke a key.
/auth/verify?token=XConsume an email verification token.
/auth/resend-verificationSend a fresh verification email.
Cache plus rate limits
- Most reads include Cache-Control headers honored by Cloudflare edge.
- Typical TTLs: 30 seconds for live data, 24 hours for immutable history.
- Rate limit per minute by plan: free 30, hobby 120, startup 600, scale 3000.
- 429 responses include
Retry-Afterseconds. - Each response carries
X-RateLimit-LimitandX-RateLimit-Remaining.