alpha-arena/macos-app/AlphaArena/AlphaArenaApp.swift
oho 774f8b3f61 Initial commit: Alpha Arena - Polymarket Autonomous Trading Harness
A comprehensive autonomous trading system for Polymarket prediction markets
featuring multi-LLM provider support, a native macOS menu bar app, and a
web-based control dashboard.

Key features:
- Multi-agent trading system (Research, Risk, Execution, Reflection agents)
- LLM provider flexibility (Anthropic, OpenAI, Google, xAI, Local models)
- Automatic provider fallback chain for resilience
- Native Swift/SwiftUI macOS menu bar application
- FastAPI web dashboard with real-time WebSocket updates
- Risk management with kill switch
- Technical indicators and market analysis
2026-01-12 23:04:58 +01:00

25 lines
615 B
Swift

import SwiftUI
/// Alpha Arena Menu Bar Application
@main
struct AlphaArenaApp: App {
@NSApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
@StateObject private var service = AlphaArenaService()
var body: some Scene {
// Menu bar extra - the main interface
MenuBarExtra {
MenuBarView()
.environmentObject(service)
} label: {
StatusItemView()
.environmentObject(service)
}
.menuBarExtraStyle(.window)
// Settings window
Settings {
PreferencesView()
}
}
}