mirror of
https://github.com/saymrwulf/alpha-arena.git
synced 2026-07-30 19:57:44 +00:00
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
26 lines
801 B
Swift
26 lines
801 B
Swift
import AppKit
|
|
import UserNotifications
|
|
|
|
/// App delegate for Alpha Arena
|
|
class AppDelegate: NSObject, NSApplicationDelegate {
|
|
|
|
func applicationDidFinishLaunching(_ notification: Notification) {
|
|
// Request notification permissions
|
|
UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .sound, .badge]) { granted, error in
|
|
if let error = error {
|
|
print("Notification permission error: \(error)")
|
|
}
|
|
}
|
|
|
|
// Hide dock icon (we're a menu bar app)
|
|
NSApp.setActivationPolicy(.accessory)
|
|
}
|
|
|
|
func applicationWillTerminate(_ notification: Notification) {
|
|
// Clean up if needed
|
|
}
|
|
|
|
func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool {
|
|
return true
|
|
}
|
|
}
|