[ API DOC ]
RESTful API, SDKs, and MCP server for prediction markets. Create markets, place trades, run backtests, and connect AI assistants — all from one unified platform.
QUICK START
Get started with the EventTrader API in seconds. Generate a free API key below and start making requests.
GENERATE FREE API KEY
RATE LIMIT TIERS
| Tier | Requests/min | Access |
|---|---|---|
| Standard | 100 | Free — generate above |
| Premium | 1,000 | Bot trading strategies |
| Admin | 10,000 | Internal services |
[ AUTHENTICATION ]
Three ways to authenticate with the EventTrader API. All exchange endpoints require an API key via the X-API-Key header.
1. Register + API Key (Two Calls)
Create a new account, then generate an API key.
2. API Key Bootstrap (One Call for Existing Accounts)
If you already have an account, generate tokens and an API key in a single request.
3. MCP Agent Registration (For AI Agents)
Instant API key for AI agent integrations. Returns an mcp_ prefixed key.
Using Your API Key
Include your key in the X-API-Key header on all exchange endpoints.
[ EXCHANGE TRADING API ]
Full endpoint reference for the CLOB + AMM hybrid exchange. Place orders, manage positions, and execute advanced order types.
Orders
Place a new order. Supports limit and market order types.
Cancel an open order by ID.
Place multiple orders in a single request (up to 10). Ideal for market makers quoting both sides.
Cancel multiple orders in a single request.
Market Data
Get the current order book with bids and asks.
Get recent trades for a symbol.
Get your trading balance for a symbol.
Advanced Orders
Place a TWAP (Time-Weighted Average Price) order. Splits a large order into smaller slices executed over a time window.
Place a scale order. Distributes orders across a price range with configurable size distribution.
[ MARKET MAKER GUIDE ]
Provide liquidity on the EventTrader exchange and earn maker rebates. Our fee structure rewards active liquidity providers.
Fee Structure
| Fee Type | Rate | Description |
|---|---|---|
| Maker Fee | 0 bps | Free to add liquidity |
| Taker Fee | 10 bps | Charged to market orders |
| Maker Rebate | 2 bps | Earned on every fill |
How to Provide Liquidity
Place limit orders on both sides of the spread. Your resting orders earn the maker rebate when filled.
Recommended Pairs
- SBIO — Vector Space Biosciences token
- VAIX — Platform governance token
- ETH — Ethereum
- BTC — Bitcoin
Batch Orders for Efficient Quoting
Use batch orders to update both sides of your quotes in a single API call. Cancel-and-replace in one round trip.
Inventory Management Tips
- Skew your quotes toward the side you want to reduce inventory on
- Widen spreads during high-volatility periods
- Use TWAP orders to unwind large positions gradually
- Monitor balance via the
/balanceendpoint between quote updates
Example: Simple Spread-Quoting Strategy
[ LIQUIDITY PROVIDER GUIDE ]
Multiple ways to earn passive income by providing liquidity and holding platform tokens.
ET10 REVENUE SHARE
Hold ET10 tokens to earn a share of platform trading fee revenue. Revenue is distributed proportionally to all ET10 holders.
SBIO/VAIX STAKING
Stake SBIO or VAIX tokens in staking pools for reward yields. Lock tokens for higher APY tiers.
LP STAKING POOLS
Provide liquidity to staking pools and earn rewards on top of trading fees. Multiple pool options available.
MAKER REBATES
Earn 2 bps on every fill when you provide resting limit orders. Zero maker fees means pure profit on the rebate.
REFERRAL COMMISSIONS
Earn commissions on trading fees generated by users you refer to the platform. Passive income from your network.
[ 248+ PROFIT PATHS ]
32 profit mechanisms across 6 categories, each combinable with 12 integrations = 248+ unique profit paths.
TRADING (8)
- WTA prediction markets
- Perpetual binary options
- Cross-exchange arbitrage
- Funding rate carry
- CLOB limit orders
- DEX replay strategies
- Mean reversion
- Momentum trading
PASSIVE INCOME (7)
- ET10 revenue share
- SBIO/VAIX holder income
- LP staking rewards
- Cashback rewards
- Maker rebates
- Referral commissions
- Feature revenue share
TOKEN CREATION (5)
- MRT tokens
- pump.fun launches
- Bonding curves
- Bot tokens
- Doppler Dutch auctions
BOT/VAULT OPS (6)
- Clone profits
- Bot subscriptions
- Bot marketplace
- Strategy vaults
- MetaVault
- CyMetica-42 shares
AI AGENT REWARDS (3)
- Agent LP rewards
- AI ET10 premium
- AgentBook monetization
INFRASTRUCTURE (3)
- Market making
- Multi-chain swaps
- Exchange integration
[ PAPER TRADING ]
Test strategies risk-free with simulated funds. Clone any bot with paper mode enabled, or add "mode": "paper" to any order request.
Clone a Bot in Paper Mode
Clone any bot with paper trading enabled. The cloned bot uses simulated funds and produces sim- prefixed transaction hashes.
Paper trading uses the same API shape as live trading. Switch to live by removing is_paper or setting "mode": "live".
[ RATE LIMITS ]
API rate limits are enforced per API key. Check your current usage via response headers: X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset.
| Tier | Rate Limit | Description |
|---|---|---|
| STANDARD | 100 req/min | Default for all new keys |
| PREMIUM | 1,000 req/min | High-volume traders |
| MARKET_MAKER | 6,000 req/min | Designated market makers |
Exceeding your rate limit returns HTTP 429 Too Many Requests. The X-RateLimit-Reset header indicates when your limit resets (Unix timestamp).
[ KEY FEATURES ]
PREDICTION MARKETS
Create and manage prediction markets for crypto, stocks, and custom events. Full CRUD operations supported.
ORDER BOOK TRADING
Place limit orders, view order books, and execute trades on a fully functional order matching engine.
REAL-TIME PRICING
Access live price feeds for cryptocurrencies and stocks. Automatic price updates and historical data.
KALSHI COMPATIBLE
API endpoints follow Kalshi's patterns including cursor-based pagination and query parameters.
HIGH PERFORMANCE
Built on FastAPI with async support. Redis caching for optimal response times.
SECURE & RELIABLE
API key authentication, rate limiting, and comprehensive error handling built-in.
[ CORE ENDPOINTS ]
Markets
List all prediction markets with optional filters. Supports cursor-based pagination.
Get detailed information about a specific market.
Create a new prediction market.
Get current standings and results for a market including price changes and winner.
Order Book Trading
Get order book for a specific asset. Returns bids and asks with price levels.
Place a limit order (buy or sell) on the order book.
Trading
Place a trade on a specific asset in a market.
Pricing
Get current price for a specific asset (crypto or stock).
Get bulk prices for multiple assets.
[ AUTHENTICATION ]
All API requests require an API key in the X-API-Key header.
Generate a free API key above or from your Account page.
[ RESPONSE FORMAT ]
All responses are returned in JSON format with appropriate HTTP status codes.
Success Response
Error Response
[ AI TRADING AGENT ]
AI-powered cryptocurrency analysis and asset recommendations using proprietary Tuatara vector intelligence.
Prompt Assets
Analyze a natural language prompt and return relevant cryptocurrency assets with probability scores.
Request Body
Response
cURL Example
Features
- Natural language understanding of trading queries
- Probability-weighted asset recommendations (0.0-1.0)
- Detailed explanations for each recommendation
- Supports all 50 cryptocurrencies in the database
- Context-aware analysis using vector database
Analyze URL Assets
Analyze how cryptocurrencies relate to content from any URL (news articles, blog posts, research papers).
Request Body
Response
Relevance Scoring
- 0.9-1.0: Direct subject of content
- 0.7-0.89: Strong correlation
- 0.5-0.69: Moderate connection
- 0.3-0.49: Weak correlation
- 0.0-0.29: Minimal connection
Relationship Types
- Direct Impact
- Competitive Pressure
- Sector Correlation
- Technology Alignment
- Market Sentiment
- Regulatory Impact
- Ecosystem Integration
- Use Case Overlap
cURL Example
Use Cases
- News Analysis: Understand how breaking news affects different cryptos
- Research: Analyze whitepapers and technical documentation
- Market Intelligence: Compare competitive positioning from articles
- Risk Assessment: Identify regulatory and competitive risks
- Investment Decisions: Evidence-based asset selection
Powered By
Proprietary AI with advanced cryptocurrency market knowledge and analysis capabilities.
[ TECHNICAL INDICATORS ]
Advanced technical analysis indicators for cryptocurrency price movements.
MACD Indicator
Calculate MACD (Moving Average Convergence Divergence) technical indicator with customizable parameters.
Path Parameters
Query Parameters
Response
MACD Components
- MACD Line: Fast EMA (12-day) - Slow EMA (26-day)
- Signal Line: 9-day EMA of the MACD line
- Histogram: MACD line - Signal line
Interpretation
- Bullish Signal: MACD crosses above signal line (positive histogram)
- Bearish Signal: MACD crosses below signal line (negative histogram)
- Trend Strength: Larger histogram values = stronger momentum
cURL Example
Advanced Usage
[ WEBSOCKET API ]
Real-time streaming data via WebSocket connections for live market updates.
Market WebSocket
Connect to receive real-time updates for a specific market including orderbook changes, trades, and price updates.
Subscribe to Channel
Message Types
Python Example
Available Channels
- orderbook - Real-time order book updates
- trades - Live trade executions
- prices - Asset price changes
- market - Market status updates
Incentives WebSocket
Stream real-time updates for bot earnings, tier changes, and leaderboard positions.
Message Types
[ INCENTIVES API ]
Bot registration, rewards tracking, staking, and leaderboards for automated traders.
Bot Management
Register a new trading bot to start earning rewards.
Get current tier status and progression for a bot.
Staking
List all available staking pools with APY and limits.
Stake tokens in a pool with optional lockup period.
Claim pending staking rewards.
Get staking summary for a wallet across all pools.
Leaderboards
Get leaderboard rankings by volume, trades, earnings, or PnL.
Airdrops
List available airdrops and eligibility status.
Claim an airdrop allocation.
[ GAMES API ]
Gamification features including streaks, duels, tournaments, and boosts.
Trading Streaks
Get current trading streak and rewards.
Duels
Create a 1v1 trading duel challenge.
Tournaments
List active and upcoming trading tournaments.
Join a tournament with entry fee.
Boosts
List available reward boosts and power-ups.
Activate a boost for enhanced rewards.
[ AGENT BOT ]
A standalone Python agent bot is available for automated market making and momentum trading.
The bot supports market making and momentum strategies with configurable risk parameters.
[ CLOB EXCHANGE API ]
Internal CLOB + AMM hybrid orderbook for trading any listed token. Merges real CLOB orders with AMM virtual depth from 4 chains (Ethereum, Base, Arbitrum, Solana).
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| GET | /api/v1/exchange/pairs | - | List trading pairs |
| GET | /api/v1/exchange/{symbol}/book/hybrid | - | Hybrid orderbook (CLOB + AMM) |
| GET | /api/v1/exchange/{symbol}/bbo | - | Best bid/offer |
| GET | /api/v1/exchange/{symbol}/trades | - | Recent trades |
| GET | /api/v1/exchange/{symbol}/stats | - | Token stats (price, mcap) |
| GET | /api/v1/exchange/{symbol}/chart | - | OHLC candles |
| GET | /api/v1/exchange/{symbol}/venues | - | Liquidity by venue |
| GET | /api/v1/exchange/{symbol}/ticker | - | 24h ticker (price, volume, change) |
| GET | /api/v1/exchange/time | - | Server timestamp |
| POST | /api/v1/exchange/{symbol}/orders | Bearer / API Key | Place order (limit/market/IOC/stop-limit) |
| DELETE | /api/v1/exchange/{symbol}/orders/{id} | Bearer / API Key | Cancel order |
| GET | /api/v1/exchange/{symbol}/orders/{id} | Bearer / API Key | Order status |
| GET | /api/v1/exchange/{symbol}/orders/open | Bearer / API Key | Open orders |
| GET | /api/v1/exchange/{symbol}/orders/history | Bearer / API Key | Order history |
| POST | /api/v1/exchange/{symbol}/orders/batch | Bearer / API Key | Batch place (up to 10) |
| DELETE | /api/v1/exchange/{symbol}/orders/batch | Bearer / API Key | Batch cancel |
| GET | /api/v1/exchange/{symbol}/trades/mine | Bearer / API Key | My fills |
| GET | /api/v1/exchange/{symbol}/balance | Bearer / API Key | Trading balance |
| POST | /api/v1/exchange/{symbol}/orders/twap | Bearer / API Key | Place TWAP order |
| DELETE | /api/v1/exchange/{symbol}/orders/twap/{id} | Bearer / API Key | Cancel TWAP order |
| GET | /api/v1/exchange/{symbol}/orders/twap/active | Bearer / API Key | Active TWAP orders |
| POST | /api/v1/exchange/{symbol}/orders/scale | Bearer / API Key | Place scale order |
| POST | /api/v1/exchange/{symbol}/withdraw | Bearer / API Key | Withdraw tokens |
SDK Quick Start
curl Examples
MCP Tools
All exchange endpoints available as MCP tools for AI integration:
[ PERPETUAL PREDICTION MARKETS ]
Binary prediction markets with perpetual epochs. Predict YES/NO on asset price direction using CYM1 collateral. Markets available: VAIX, BTC, ETH, SOL, DOGE, SBIO.
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| GET | /api/v1/perpetual/markets | - | List all markets |
| GET | /api/v1/perpetual/markets/{symbol}/status | - | Market status (epoch, prices) |
| POST | /api/v1/perpetual/user/vaix-predict | Bearer / API Key | Place prediction (YES/NO) |
| GET | /api/v1/perpetual/user/balance | Bearer / API Key | Trading balance |
| GET | /api/v1/perpetual/user/trades | Bearer / API Key | Trade history |
[ API KEY MANAGEMENT ]
Create and manage API keys for programmatic access. Keys use SHA-256 hashing and are shown only once at creation.
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/v1/api-keys | Create new API key (plaintext returned once) |
| GET | /api/v1/api-keys | List your keys (masked) |
| DELETE | /api/v1/api-keys/{key_id} | Revoke key |
| PATCH | /api/v1/api-keys/{key_id} | Update name/permissions |
Permissions: read (market data), trade (place/cancel orders). Withdrawals require JWT authentication (not API keys).
Rate limits: Standard tier: 100 req/min. Premium: 1,000 req/min. Headers: X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset.
[ PAPER TRADING ]
Add "mode": "paper" to any order request to use simulated trading. Paper orders produce sim-{uuid} transaction hashes and use simulated balances. Same API shape as live trading.
[ VAULTS ]
Strategy vaults (ERC-4626), CyMetica-42 AI hedge fund, and paper vaults for strategy testing.
Strategy Vaults
| Method | Endpoint | Description | Auth |
|---|---|---|---|
GET | /api/v1/vaults/list | List all strategy vaults | - |
GET | /api/v1/vaults/featured | Get featured vaults | - |
GET | /api/v1/vaults/{addr} | Vault details | - |
GET | /api/v1/vaults/performance/{addr} | Performance metrics | - |
GET | /api/v1/vaults/backtest-performance/{addr} | Backtest data | - |
GET | /api/v1/vaults/my-positions | User's vault positions | Bearer / Key |
GET | /api/v1/vaults/{addr}/position | User's position in vault | Bearer / Key |
POST | /api/v1/vaults/{addr}/deposit | Deposit USDC | Bearer |
POST | /api/v1/vaults/{addr}/withdraw | Withdraw USDC | Bearer |
CyMetica-42 AI Hedge Fund
| Method | Endpoint | Description | Auth |
|---|---|---|---|
GET | /api/v1/vaults/cym42/share-info | Share price, NAV, AUM | - |
POST | /api/v1/vaults/cym42/buy-shares | Buy shares with USDC | Bearer |
POST | /api/v1/vaults/cym42/sell-shares | Sell shares | Bearer |
GET | /api/v1/vaults/cymetica-42/live-performance | Live P&L and positions | - |
Paper Vaults
| Method | Endpoint | Description | Auth |
|---|---|---|---|
POST | /api/v1/paper-vaults/ | Create paper vault | Bearer / Key |
GET | /api/v1/paper-vaults/ | List paper vaults | Bearer / Key |
GET | /api/v1/paper-vaults/{id} | Paper vault details | Bearer / Key |
POST | /api/v1/paper-vaults/{id}/deposit | Deposit simulated funds | Bearer / Key |
POST | /api/v1/paper-vaults/{id}/withdraw | Withdraw from paper vault | Bearer / Key |
GET | /api/v1/paper-vaults/{id}/trades | Paper vault trade history | Bearer / Key |
Vault WebSocket
| Channel | URL | Description |
|---|---|---|
| vault_nav | wss://cymetica.com/ws/vault/nav | Real-time NAV updates, trade closures, position openings |
Message types: snapshot, nav_update, trade_closed, position_opened, heartbeat
Code Examples
[ WEBSOCKET CHANNELS ]
Real-time data via WebSocket. All market data is streamed, never polled.
| Channel | URL | Description |
|---|---|---|
| l2Book | wss://cymetica.com/ws/clob | L2 orderbook with delta updates |
| trades | wss://cymetica.com/ws/clob | Real-time trade stream |
| bbo | wss://cymetica.com/ws/clob | Best bid/offer updates |
| userOrders | wss://cymetica.com/ws/clob | User's order updates (auth required) |
| userFills | wss://cymetica.com/ws/clob | User's fill stream (auth required) |
| book | wss://cymetica.com/ws/exchange/{symbol}/book | Per-pair orderbook |
| price | wss://cymetica.com/ws/exchange/{symbol}/price | Per-pair price feed |
[ BACKTEST API ]
Run strategy backtests, browse the agent leaderboard, clone top-performing agents, and retrieve equity curves.
Run Backtest
Execute a backtest with a given strategy configuration. Returns backtest results including equity curve, trade log, and performance metrics.
Agent Leaderboard
Get the top-performing agents ranked by ROI, win rate, and Sharpe ratio.
Clone Agent
Clone a top-performing agent's strategy to your account. The cloned agent will mirror the original's trading logic.
Equity Curve
Retrieve the equity curve data points for a specific agent's backtest or live performance.
[ SDK ]
Official SDKs for Python, TypeScript, and Java. Full API coverage with typed responses, async support, and WebSocket streaming.
Installation
Quick Start — Python
Quick Start — TypeScript
Authentication Methods
Available Services
| Service | Methods | Description |
|---|---|---|
client.markets | list, get, orderbook, featured, search | Market data and discovery |
client.trading | place_order, buy, sell, cancel, history | Order management and execution |
client.prices | get, get_all, history, top_movers | Price feeds and historical data |
client.streaming | onOrderBook, onTrade, onPrice | WebSocket real-time streams |
client.wallet | portfolio, gas, supported_chains | Wallet and portfolio management |
client.incentives | register_bot, rewards, leaderboard | Agent incentive programs |
client.defi | swap_quote, il_calculator, mev_risk | DeFi tools and analytics |
client.aggregator | markets, arbitrage, route_order | Cross-venue aggregation |
Error Handling
[ MCP SERVER ]
Model Context Protocol server for AI assistants. Connect any MCP-compatible client to EventTrader's full API with 115+ tools, structured resources, and pre-built analysis prompts.
Installation
Claude Desktop Configuration
Available Tools (36+)
| Category | Tools | Description |
|---|---|---|
| Markets | get_markets, get_market, search_markets | List, search, and inspect prediction markets |
| Trading | get_orderbook, get_trades, get_featured_market | Orderbooks, trade history, featured markets |
| Prices | get_price, get_prices, get_trending_markets | Live prices and trending data |
| Analytics | get_leaderboard, get_market_summary | Leaderboards and AI-friendly summaries |
| DeFi | uniswap, base_dex, chainlink | DEX integrations and oracle data |
| Exchanges | binance, hyperliquid, drift | CEX/DEX exchange connectors |
| Blockchain | blockchain, wallet, wormhole | On-chain data, wallets, bridging |
| Backtesting | backtest, bots, ai_agent | Strategy backtesting and agent management |
Resources
Pre-built Prompts
| Prompt | Description |
|---|---|
analyze_market | Deep analysis of a specific market with probability assessment |
compare_markets | Side-by-side comparison of two markets |
find_opportunities | Discover mispriced markets and trading opportunities |
explain_probability | Plain English explanation of market probabilities |