SQLAlchemy In-Memory Performance: Faster Backtests with a Pure Python Database

Posted on Sat 10 May 2025 in Software Architecture

Discover how to improve SQLAlchemy performance using an in-memory database built in pure Python. We benchmark SQLite and introduce a faster SQLAlchemy in-memory alternative for backtesting and simulations.


Continue reading

7 Python Built-in Functions for Code Optimization and Performance Tips

Posted on Sat 19 April 2025 in Quant Development

Discover 7 Python built-in functions that every developer should know. These tips and tricks will help you optimize your code, improve performance, and write cleaner trading algorithms.


Continue reading

Design Patterns for Algorithmic Trading Architecture in Python

Posted on Fri 28 March 2025 in Software Architecture

Explore key design patterns like Abstract Factory, Service Locator, and Event Emitter to build modular and scalable algorithmic trading systems in Python.


Continue reading

C++ Low Latency Programming: Inline Functions, Optimizations, and Performance Tips

Posted on Mon 10 March 2025 in Low Latency

This article introduces core low latency C++ programming techniques, including inline functions, CPU-level optimizations, and compile-time tricks to boost performance in trading systems and real-time applications.


Continue reading

Interdependence of returns across multiple strategies

Posted on Mon 03 March 2025 in Portfolio construction

Many trading strategies show low correlations on paper, but that doesn't mean they're independent. In this article, we will explore the hidden risks in trading portfolios by understanding the interdependence of strategies and the limitations of correlation as a sole risk measure.


Continue reading

Setting up an Ubuntu 24.04 EC2 instance for algorithmic trading with Interactive Brokers

Posted on Fri 28 February 2025 in Infrastructure

This article walks you through the steps of setting up a new EC2 instance for algorithmic trading using Ubuntu 24.04 and Interactive Brokers. Running your trading algorithms on EC2 can offer scalability, reliability, and cost efficiency, ideal for managing both paper and live trading accounts.


Continue reading