[ API DOC ]
RESTful API for prediction markets. Create markets, place bets, trade on order books, and access real-time pricing data. Kalshi-compatible endpoints included.
โก QUICK START
Get started with the EVENT TRADER API in seconds. Generate a free API key below and start making requests.
๐ GENERATE FREE API KEY
[ 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.
โ ๏ธ Default key for testing: user-secret-key
[ 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 Claude Sonnet 4.
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
Claude Sonnet 4 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.