{% extends "base.html" %} {% block title %}Help & Documentation{% endblock %} {% block page_title %}Help & Documentation{% endblock %} {% block page_subtitle %}Learn how to use the Alpha Arena Master Control{% endblock %} {% block content %}

Contents

Welcome to Alpha Arena

Alpha Arena Master Control is a comprehensive web-based control center for the Polymarket Trading Harness. It provides operators and supervisors with complete visibility and control over autonomous trading operations.

Key Features

Multi-Agent Trading

AI agents collaborate to research, assess risk, and execute trades

Real-Time Monitoring

WebSocket-powered live updates on positions and P&L

Wallet Analysis

Analyze any Polymarket wallet's strategy and performance

Risk Controls

Kelly Criterion sizing, position limits, and kill switch

Quick Start Guide

1. Configure Your Environment

Ensure your .env file contains:

WALLET_PRIVATE_KEY=your_key
POLYMARKET_API_KEY=your_key
ANTHROPIC_API_KEY=your_key

2. Start the Web Server

python -m uvicorn src.web.app:app --reload --port 8000

3. Access the Dashboard

Open http://localhost:8000 in your browser

4. Start Trading

  1. Review your configuration on the Config page
  2. Set risk limits on the Risk page
  3. Start with Simulation mode first
  4. Click "Start Trading" in the header

Dashboard Overview

The dashboard provides a real-time overview of your trading system.

Key Metrics

BalanceYour current USDC balance
Daily P&LProfit/loss for today
Open PositionsCurrent positions vs maximum allowed
Trading CyclesNumber of analysis cycles completed

Status Indicators

Active Trading engine is running
Stopped Trading engine is not running
KILL SWITCH Emergency stop is active

Trading Control

Trading Modes

Simulation Mode

Paper trading with no real money. Use this to test strategies.

Live Trading Mode

Real trades with actual funds. Use with caution.

Features

  • Multi-Agent System - Research, Risk, Execution, and Reflection agents
  • Agent Debate - Agents discuss before making decisions
  • Technical Indicators - EMA, RSI, MACD analysis
  • Arbitrage Detection - Find price discrepancies

Multi-Agent System

Research Agent

Gathers market data, analyzes news, and generates probability estimates.

Recommended model: Claude Sonnet 4

Risk Agent

Calculates Kelly sizing, assesses exposure, and enforces risk limits.

Recommended model: Claude Sonnet 4

Execution Agent

Determines optimal entry timing and manages order placement.

Recommended model: Claude Haiku 3.5 (fast)

Reflection Agent

Analyzes completed trades and learns from outcomes.

Recommended model: Claude Sonnet 4

Wallet Analysis

Analyze any Polymarket wallet to understand their trading strategy and performance.

What You Can Learn

  • Strategy Detection - Momentum, mean reversion, scalping, etc.
  • Risk Profile - Conservative, moderate, aggressive, or degen
  • Performance Metrics - Sharpe ratio, profit factor, win rate
  • Trading Patterns - Hold times, position sizes, entry preferences
  • Strengths & Weaknesses - What they do well and areas to improve

Export Options

Export analysis as JSON or open a full HTML report.

Risk Management

Kelly Criterion

Position sizes are calculated using the Kelly Criterion: f* = (bp - q) / b

We recommend using 25% Kelly (Quarter Kelly) for reduced volatility while still capturing most of the growth.

Risk Controls

Daily Loss LimitTrading stops when this limit is hit
Max Position SizeMaximum capital per position
Max Open PositionsLimit concurrent positions
Kill SwitchEmergency stop all trading

Keyboard Shortcuts

Shortcut Action
G DGo to Dashboard
G TGo to Trading
G PGo to Positions
G MGo to Markets
G WGo to Wallet Analysis
KToggle Kill Switch
RRefresh Data
?Show Help

Troubleshooting

WebSocket Disconnected

If the WebSocket shows "Disconnected":

  • Check that the server is running
  • Refresh the page
  • The connection will auto-reconnect after 3 seconds

Trading Won't Start

Check the following:

  • API keys are configured in .env
  • Kill switch is not active
  • You have sufficient balance

Wallet Analysis Fails

Possible causes:

  • Invalid wallet address
  • Wallet has no trading history
  • API rate limiting - try again later
{% endblock %}