Git Product home page Git Product logo

imperial_hft's Introduction

Low-Latency Programming Repository for High-Frequency Trading (HFT)

Table of Contents

  1. Introduction
  2. Features
  3. Installation
  4. Prerequisites
  5. Usage
  6. Benchmarking
  7. Acknowledgments

Introduction

Welcome to the Low-Latency Programming Repository, a project aimed to serve both academics and industry practitioners in the realm of High-Frequency Trading (HFT). With a focus on optimizing latency-critical code, this repository provides comprehensive insights, techniques, design patterns, and best practices that are statistically benchmarked to mitigate latency in HFT systems.

Features

  • Comprehensive guide on low-latency programming techniques such as Cache Warming, Constexpr, Loop Unrolling, Lock-Free Programming, and Short-circuiting.
  • Market-neutral statistical arbitrage pairs trading strategy optimized for low-latency.
  • Implementation of the Disruptor pattern in C++ optimized for speed and scalability.

Installation

Clone this repository to your local machine to get started.

git clone https://github.com/0burak/imperial_hft.git
cd imperial_hft

Prerequisites

  • C++ Compiler with C++11 support or higher
  • CMake version 3.10 or higher
  • Google Benchmark

Usage

After Google Benchmark has been installed and the benchmark folder if in the same directory as the mybenchmark.cc file, the user can compile the my-benchmark.cc file using the makefile provided in the repository.

g++ mybenchmark.cc -std=c++20 -isystem benchmark/include -Lbenchmark/build/src -lbenchmark -lpthread -o mybenchmark

Benchmarking

All techniques and strategies are rigorously benchmarked for latency reduction, cache efficiency, and overall performance. The benchmark/ directory contains all benchmarking scripts.

Acknowledgments

  • A special thanks to Dr Paul A. Bilokon for his evaluation and invaluable feedback.

imperial_hft's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.