Skip to content

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.

Notifications You must be signed in to change notification settings

alloc33/ForexAppServer

Repository files navigation

ForexAppServer

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.

🎯 Core Purpose

ForexAppServer provides real-time streaming and storage of forex and cryptocurrency trading data through WebSocket connections, enabling algorithmic trading strategies and market analysis.

🏗️ Architecture

Server Framework

  • Vapor 4: Modern async/await Swift web framework
  • Fluent ORM: Database abstraction with SQLite driver
  • RESTful API: Clean endpoints for trade data access

Real-Time Data Pipeline

  • 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

Data Management

  • 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

🔧 Key Features

  • 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

🚀 Built For Trading

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

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published