Get your free API key at dashboard.predexon.com to start trading programmatically.
Overview
Predexon Trading API provides an interface for trading on prediction markets. Users don’t manage their own wallets - the API handles wallet creation, key management, and transaction signing on their behalf.Base URLs
| Surface | Base URL | Purpose |
|---|---|---|
| Trading API | https://trade.predexon.com | Place orders, manage users, funds, fees |
| Data API | https://api.predexon.com | Market data, prices, trading history (see Data API docs) |
Supported Venues
Polymarket
Polygon blockchain. Collateral: USDC.e. Supports limit and market orders.
Predict.fun
BNB Smart Chain. Collateral: USDT (BEP-20). Supports limit and market orders.
Authentication
All requests require an API key passed via thex-api-key header:
Error Handling
All errors return a JSON body with anerror field:
| Status Code | Description | Action |
|---|---|---|
| 400 | Bad request - invalid parameters or insufficient funds | Fix the request and retry |
| 401 | Unauthorized - missing or invalid API key | Check your x-api-key header |
| 403 | Forbidden - user not owned by this API key | Verify the user belongs to your key |
| 404 | Not found - user or resource doesn’t exist | Check the ID |
| 409 | Conflict - concurrent modification (fee policy) | Retry the request |
| 500 | Internal server error | Retry with exponential backoff |
5xx errors with exponential backoff. Do not retry 4xx errors - they indicate a problem with the request.
Next Steps
Quickstart
Place your first trade in 5 minutes
How It Works
Understand wallet management and order execution
Funding & Withdrawals
Deposit and withdraw funds
Placing Trades
Order types, venues, and the full trading workflow
