/optimalHFT

HFT & Stochastic control numerical implementations from "Optimal high frequency trading with limit and market orders" (GUILBAUD & PHAM)

Primary LanguageJupyter NotebookGNU General Public License v3.0GPL-3.0

Optimal HF trading (HFT & Stochastic Control)

  

Workflows:

Overview

This project aims at studying a research article involving high-frequency trading & stochastic control applications. One also attempts to reproduce the numerical results shown in this paper.

  • Original paper: Optimal high frequency trading with limit and market orders, Fabien GUILBAUD, Huyên PHAM (2011)
  • Keywords: Market making, limit order book, inventory risk, point process, stochastic control

Data description

This article's using Level 1 (L1) data from SOGCGEN.PA (intraday data) for only one day: April 18, 2011 between 9:30 and 16:30 in Paris local time (CET, UTC+2).

To reproduce the method introduced in this article, one applies it to L1 (tick data) sample dataset available on TickHistory's website.

Dataset description:

  • GOOG: trades and quotes data
  • MSFT: trades and quotes data
.
├── tickhistory_sample
│   ├── GOOG_Quote_2022_01_03.txt
│   ├── GOOG_Trade_2022_01_03.txt
│   ├── MSFT_Quote_2022_01_03.txt
│   ├── MSFT_Trade_2022_01_03.txt
│   ├── file_format_details.txt
│   └── tick_history_ticker_coverage.txt
└── tickhistory_sample.zip

Data from:

Getting started

  1. Install required modules:
pip3 install -r requirements.txt
  1. Launch a Jupyter instance
jupyter-notebook .

License

Check LICENSE file

  • Adrien NAVARRO - Lucas RODRIGUEZ
  • Academic works (March - May 2023)