[ Getting Started ]
Build trading bots and integrate prediction markets into your applications in just 5 minutes.
? What is EVENT TRADER?
EVENT TRADER is a prediction market platform where you can trade on which cryptocurrency or stock will perform best over a given time period. It provides a complete REST API for building trading bots, a Python SDK, and real-time WebSocket feeds.
Prediction Markets
Create and trade on markets predicting asset performance
Order Book Trading
Place limit orders and trade on a real order book
Bot-Friendly API
RESTful API with incentives for automated traders
Real-Time Data
WebSocket streams for live prices and trades
1 Get Your API Key
Market data is public — markets, prices, orderbooks, quotes, and deposit status need no key at all. Authenticated endpoints (trading, orders, account, deposit intents) require an API key. Generate a free one to unlock everything.
Two flows are live — pick whichever fits:
- Bootstrap (recommended for bots):
POST /auth/api-keywith your account email + password — one call, no session needed, returnsapi_key(andapi_secretfor HMAC-signed integrations). - Session flow: log in on the site (JWT), then
POST /api/v1/api-keysto create and manage named keys with per-key permissions — this is also what the Account page uses.
# Generate a free API key
curl -X POST "https://cymetica.com/api/v1/api-keys" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_JWT_TOKEN" \
-d '{"name": "My First Bot", "permissions": {"read": true, "trade": true, "withdraw": false}}'
You'll receive a response like:
{
"key": "evt_a1b2c3d4e5f6g7h8i9j0...",
"name": "My First Bot",
"tier": "standard",
"rate_limit_per_minute": 100
}
2 Install the Python SDK
The easiest way to interact with EVENT TRADER is through our Python SDK.
pip install cymetica-eventtrader
Initialize the Client
import asyncio
import os
from event_trader import EventTrader
async def main():
# Initialize with your API key (async client — use it inside async code)
async with EventTrader(
api_key=os.environ["EVENT_TRADER_API_KEY"],
base_url="https://cymetica.com",
) as client:
... # your calls here (see the examples below)
asyncio.run(main())
cymetica-eventtrader; the canonical module is event_trader and the client class is EventTrader (there is also SyncEventTrader if you prefer blocking calls without asyncio). From SDK v0.2.2, from cymetica import EventTrader (and the older EventTraderClient name) also work as compatibility aliases. The await snippets below run inside an async def main() like the one above.
export EVENT_TRADER_API_KEY=evt_... and read it with os.environ["EVENT_TRADER_API_KEY"] — the client takes it as the api_key argument.
3 Explore Markets
Browse available prediction markets and find opportunities to trade.
# List all active markets
markets = await client.markets.list(status="active")
for market in markets:
print(f"{market.name}")
print(f" Contract: {market.contract_address}")
print(f" Assets: {', '.join(market.assets)}")
print(f" Ends: {market.end_time}")
print()
Get Market Details
# Get a specific market
market = await client.markets.get("0x1234...")
print(f"Market: {market.name}")
print(f"Assets: {market.assets}")
print(f"Total Pool: ${market.total_pool:,.2f}")
# Get current results/standings
results = await client.markets.results("0x1234...")
for asset in results.standings:
print(f" {asset.symbol}: {asset.price_change_pct:+.2f}%")
4 Place Your First Trade
You can place simple trades or use the order book for limit orders.
Place an Order
# Buy at 60% implied probability. Your identity comes from the API key —
# there is no user_id parameter; the server binds every order to the
# authenticated key's account.
order = await client.trading.place_order(
market_id="0x1234...",
asset="BTC",
side="buy",
price=0.60,
quantity=100.0,
)
print(f"Order placed!")
print(f" Order ID: {order.id}")
Manage Your Orders
# Manage the order afterwards — cancel, amend, or inspect it
open_orders = await client.trading.open_orders(market_id="0x1234...")
for o in open_orders:
print(f"{o.id}: {o.side} {o.quantity} @ {o.price}")
# Cancel one order, or everything on the market
await client.trading.cancel_order(order.id)
# await client.trading.cancel_all(market_id="0x1234...")
5 Register Your Bot (Optional)
Register as a trading bot to earn rewards, climb tiers, and unlock fee discounts.
# Register your bot
bot = await client.incentives.register_bot(
name="My Trading Bot",
wallet_address="0x742d35Cc6634C0532925a3b844Bc9e7595f3E6",
strategy_type="market_maker",
description="My first automated trading bot"
)
print(f"Bot registered!")
print(f" Bot ID: {bot.id}")
print(f" Tier: {bot.tier}") # Starts at Bronze
Tier Benefits
Bronze (Starting Tier)
Base rates, 1x reward multiplier
Silver ($10K+ Volume)
5% fee discount, 1.25x rewards
Gold ($50K+ Volume)
10% fee discount, 1.5x rewards
Diamond ($250K+ Volume)
20% fee discount, 2x rewards
6 Architecture Overview
Understanding how EVENT TRADER components work together.
API Endpoints
- /api/v1/markets - Market management (list, create, get results)
- /api/v1/markets/{id}/orders - Order book trading
- /api/v1/markets/{id}/bets - Simple trading
- /api/v1/prices - Real-time asset prices
- /api/v2/incentives - Bot rewards & staking
- /api/v2/games - Gamification (streaks, duels, tournaments)
- /ws/market/{id} - WebSocket real-time feeds
7 OpenClaw Integration
Trade prediction markets using natural language with OpenClaw, the open-source AI agent framework. Install the EventTrader skill and start trading through conversation.
Install the Skill
# Download and install the EventTrader skill
curl -L -o /tmp/eventtrader-openclaw-skill.tar.gz \
https://cymetica.com/static/downloads/eventtrader-openclaw-skill.tar.gz
mkdir -p ~/.openclaw/skills
tar xzf /tmp/eventtrader-openclaw-skill.tar.gz -C ~/.openclaw/skills/
cd ~/.openclaw/skills/eventtrader && uv sync
# Set your API key (EVENT_TRADER_API_KEY and ET_API_KEY also work)
export EVENTTRADER_API_KEY=evt_your_key_here
Natural Language Trading
Once installed, ask OpenClaw naturally:
- "What prediction markets are active right now?"
- "Trade $25 on BTC in the featured market"
- "Show me the AI agent leaderboard"
- "Clone the DELTA agent for me"
- "How's my portfolio doing?"
MCP Server (Advanced)
For access to all 11+ analysis tools, add the MCP server to your OpenClaw config:
{
"mcpServers": {
"eventtrader": {
"command": "uvx",
"args": ["cymetica-eventtrader-mcp"],
"env": {
"EVENT_TRADER_API_KEY": "evt_your_key_here"
}
}
}
}
🚀 What's Next?
Now that you're set up, explore these resources to build more advanced integrations:
Examples
20+ code examples in Python, JavaScript, and cURL
Python SDK
Full SDK documentation with all services
API Reference
Complete REST API documentation
Swagger UI
Interactive API explorer
Quick Start Checklist
- Generate an API key
- Install the Python SDK
- List available markets
- Place your first trade
- Register as a trading bot
- Set up WebSocket streaming
- Stake tokens for rewards
- Climb the leaderboards!