Stuttgart Stock Exchange ,Trading Engine team responsible for the matching engine of BSDEX

Key Features

  • Order Matching & Price Discovery: Efficient, real-time matching of buy and sell orders with advanced algorithms to ensure fair price discovery and maintain market integrity.
  • Order Book Management: Accurate and real-time order book management, supporting multiple order types and ensuring reliable tracking of all buy and sell activities.
  • Trade Publishing Low-latency trade publishing via WebSocket and FIX Gateway, providing real-time trade data to internal systems and external clients for enhanced market transparency.
  • Proactive Monitoring & Alerting Integrated Prometheus and Grafana for real-time system monitoring, with a 90% improvement in alerting, enabling proactive issue detection and faster resolution.
  • Security & Compliance Markets in Crypto-Assets Regulation (MiCA), ensuring regulatory compliance, data security, and safe trading operations.

Technologies

  • Languages: Go (Golang), gRPC
  • Data Store: Postgresql, Redis
  • Infrastructure: Docker, Kubernetes, AWS, Gitlab
  • Monitoring and Analytics: Prometheus, Grafana for performance monitoring
  • Logging and Error Tracking: Sentry for real-time error monitoring and alerting

Challenges and Solutions

Challenge: Handling High-Frequency Trading with Low Latency

Solution: Optimized the database and enhanced system architecture, reducing latency and improving order matching efficiency. Implemented connection pooling and re-architected microservices to improve performance by 20%.

Challenge: Ensuring Zero Downtime

Solution: With closing collaborating with trading floor, trading Platform teams, and enhanced both robust feature testing and real-time monitoring tools using Prometheus and Grafana to proactively detect and resolve issues, ensuring the system remained fully operational 24/7.

Impact

The Trading Engine team played a crucial role in ensuring BSDEX’s platform operated reliably, securely, and efficiently. This allowed the platform to provide a seamless and user-friendly experience for its customers while maintaining compliance with regulatory standards. By optimizing the engine, we increased system efficiency by 20%, improved customer experience by 25%, and reduced system load by 20%. We also enhanced alerting by 90%, enabling proactive monitoring and quicker issue resolution, which boosted overall platform performance and reliability.

Role and Contributions

I joined the Trading Engine team as a Senior Backend Engineer, where I worked extensively on enhancing the core trading platform. Key contributions included:

  • Exchange, Bookkeeping, Market : Developed features for the exchange service, bookkeeping, market microservices focusing on order matching and trade execution.
  • Order Book Publishing: Enhanced order book publishing via the WebSocket Gateway, ensuring accurate and timely updates for users.
  • Database Optimization: Enhanced database performance by integrating a connection pool, improving the overall engine efficiency.
  • Logging & Error Tracking: Integrated Golang’s built-in logger with Sentry for better error tracking and system monitoring.
  • FIX Gateway Development: Built the FIX Gateway for FIX 4.4, ensuring secure and compliant connectivity with external systems.
  • Market Data Feed: Re-architected couple of microservice for example Market Data Feed microservice for efficient reading, reconnection, and order-book management.
  • Liquidation: Developed a liquidation system for handling order closures under specific conditions, eliminate manual liquidation process.
  • Microservices Architecture: Reduced service-to-service dependency by re-architecting key microservices, improving system scalability and reliability.
  • Extensive Refactoring: Refactored the entire trading engine by enhancing common libraries and optimizing the distributed system for core engine logging, alerting, data store query optimization, indexing, database connection pooling etc.
  • Markets in Crypto-Assets Regulation(MiCA): Adapted legacy systems to comply with Markets in Crypto Assets (MiCA) Regulation.