Designing Data Flow in an Elixir Trading System
An automated trading system makes hundreds of decisions a day on data it didn't generate. Ticks arrive from a broker. Orders go to
8 posts
An automated trading system makes hundreds of decisions a day on data it didn't generate. Ticks arrive from a broker. Orders go to
One GenServer holds open positions, pending orders, strategy state, portfolio risk, and contract rolls — for a system trading real capital. This post is a tour
Part of Broker Architecture The previous post evaluated the four brokers in this system. This post is about what makes them coexist — the behaviors that
Part of Broker Architecture I've integrated four brokers into the same codebase. Three are still running. One is gone. This is the evaluation
Part of the IBKR Saga The question wasn't hard to answer. A stop order is the most basic risk management primitive in trading
Part of the IBKR Saga The Python port was working. Orders were flowing. The system was live on IBKR, trading real capital with real stops,
Part of the IBKR Saga The system was built. The supervision tree was running. But without broker authentication, it was an engine with no ignition
This system has been trading real capital for about eight months. It's been running on a DigitalOcean droplet, unattended, for about five of