Skip to main content

πŸ—οΈ Architecture

WATA uses a microservice architecture with:

Component (roles)Purpose
Web ServerReceives webhook signals from third party (like: TradingView)
TraderExecutes Saxo Bank API operations
SchedulerManages job orchestrations
TelegramDelivers notifications and alerts
RabbitMQHandles 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