Hire Me
← All Work
SJ Ltd
SJ Ltd

Betfair Exchange Automated Trading Framework

Production-grade Java automated trading framework using Betfair Exchange API and Betfair Streaming API. Spring Boot event-driven architecture with proprietary signal engine covering Weight of Money, LTP dynamics, price velocity, and order flow imbalance.

Java Spring Boot AWS EC2 S3 GitHub Actions Python

Betfair Exchange Automated Trading Framework

This is the project I’m most proud of — and the one that most distinctly defines my specialism. Built from scratch as a personal venture through SJ Ltd, this production-grade automated trading framework integrates directly with Betfair’s Exchange API and Streaming API to execute data-driven betting strategies in real time across pre-race and in-play markets.

The goal was to build a system that could identify and act on genuine market signals faster and more consistently than any manual approach could achieve, while keeping risk controlled and the execution architecture robust enough to run continuously in a live trading environment.

What It Does

The framework connects to Betfair’s Streaming API to consume a continuous, low-latency feed of live market data — prices, traded volumes, order books, and matched amounts — across selected horse racing and sports markets. It processes this data through a configurable strategy engine that evaluates proprietary signals and places orders directly on the exchange via the Exchange API when execution criteria are met.

The system is designed to run headlessly on AWS, handling its own reconnection, state recovery, and error management.

Key Technical Features

Architecture Overview

The application is structured around three core concerns:

  1. Market Data Layer — Streaming API consumer normalising raw market data into domain events (price changes, volume updates, market status transitions).
  2. Strategy Layer — Pluggable strategy implementations consuming domain events, maintaining per-market state, and emitting execution instructions when signal thresholds are met.
  3. Execution Layer — Exchange API client managing order placement, modification, and cancellation with idempotent retry logic and position reconciliation.

This clean separation means strategies can be developed and tested in isolation, and the execution engine can be improved independently of strategy logic.

Outcome

The framework has run in live production across Betfair horse racing markets. It demonstrated the viability of systematic, data-driven trading on the Betfair Exchange using a purely Java-based stack — and gave me deep, hands-on experience of the operational challenges that distinguish production betting systems from prototypes: latency management, state recovery, API rate limits, and market liquidity dynamics.

This project underpins my claim as a specialist Java developer for betting exchange work. If your project involves Betfair, Betdaq, Smarkets, or Matchbook integration, I’d welcome the conversation.

Betfair Exchange API Betfair Streaming API Spring Boot AWS EC2 AWS S3 GitHub Actions Python

← All Work Hire Me