ποΈ Architecture
WATA uses a microservice architecture with:
Component (roles) | Purpose |
---|---|
Web Server | Receives webhook signals from third party (like: TradingView) |
Trader | Executes Saxo Bank API operations |
Scheduler | Manages job orchestrations |
Telegram | Delivers notifications and alerts |
RabbitMQ | Handles inter-component messaging |
Key Componentsβ
1. Web Serverβ
- Receives and validates webhook signals from TradingView or other sources
- Authenticates incoming requests
- Forwards validated signals to the message broker
2. Trader Serviceβ
- Connects to Saxo Bank API
- Handles OAuth 2.0 authentication
- Executes trades based on signals
- Monitors positions for performance thresholds
- Records trading data for analysis
3. Schedulerβ
- Performs periodic tasks (daily summaries, position checks)
- Manages system health checks
- Handles time-based operations
4. Telegram Serviceβ
- Delivers real-time notifications about trades
- Sends authentication requests
- Alerts on errors or critical events
- Provides daily performance summaries
5. RabbitMQβ
- Ensures reliable message delivery between components
- Manages message queues for async processing
- Handles service communication