How amadeusgb/alpha-arena works
Project type and purpose
• This is a Python-based MVP service (no UI yet) that orchestrates AI (LLM) agents to trade on real or paper markets, compare their performance, and record results.
• Its core is a scheduler (“Orchestrator”) that every N minutes: fetches market data, builds a prompt, sends it to multiple LLMs in parallel, validates the JSON response, and routes orders to a paper-trade or real exchange adapter.
File structure
• adapters/
• llm_base.py → base class defining the LLM adapter interface
• openai_adapter.py / claude_adapter.py → concrete adapters for different LLM providers (Adapter Pattern)
• exchange_api.py → paper-trade or CCXT-style exchange adapter
• core/
• market.py → market-data structures and fetch logic
• decision.py → wraps calls to the LLM gateway and applies JSON schema checks
• main.py → the orchestrator entrypoint (scheduling, wiring together adapters & core)
• version_manager.py → tracks & prints the current version
• env.example / requirements.txt → configuration & dependencies
README for additional insights
• The README sketches a more elaborate multi-service topology (orchestrator, LLM gateway, exchange adapter, portfolio/ledger, dashboard, database).
• In this MVP codebase, you have the orchestrator + adapters + decision logic; storage and dashboard layers are planned but not yet present in code.