A high-performance server-side Swift application for real-time trading data collection and analysis. Built for traders who need reliable, automated market data infrastructure.
ForexAppServer provides real-time streaming and storage of forex and cryptocurrency trading data through WebSocket connections, enabling algorithmic trading strategies and market analysis.
- Vapor 4: Modern async/await Swift web framework
- Fluent ORM: Database abstraction with SQLite driver
- RESTful API: Clean endpoints for trade data access
- FinnhubSwift: Custom Swift package wrapping Finnhub.io API
- WebSocket Streaming: Live market data for forex and crypto pairs
- Intelligent Storage: Minute-interval data collection with automatic cleanup
- Error Recovery: Automatic reconnection and fault tolerance
- Symbol Management: Configurable forex and crypto symbol tracking
- Trade Storage: Optimized time-series data with rolling window (1-hour retention)
- User System: API key authentication for secure access
- Background Jobs: Automated data processing and cleanup
- Real-time trade data collection from multiple markets
- RESTful API for historical data access
- Automated data lifecycle management
- Modular architecture with clean separation of concerns
- Comprehensive error handling and logging
- Docker containerization ready
This system is designed for traders and quantitative analysts who need:
- Low-latency market data access
- Reliable data persistence
- Scalable infrastructure
- Clean API integration
Perfect for algorithmic trading strategies, market analysis, and trading bot backends.
Built with Swift 5.3+ | Server-side Swift | Real-time Trading Infrastructure