Coder Social home page Coder Social logo

qrl-lob / dl_lob_trading_and_midpirce_movement Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fsuheting/dl_lob_trading_and_midpirce_movement

0.0 0.0 0.0 9.06 MB

Deep learning for limit order book trading and mid-price movement

Python 100.00%

dl_lob_trading_and_midpirce_movement's Introduction

FSU_DL_LOB_Trading

Deep learning for limit order book trading and mid-price movement. Some data files are too big to upload. If you want to run the code, you need to download the dataset first.

There are two datasets in this project.

1, LobsterData

The data is on https://lobsterdata.com/info/DataSamples.php. Download the level 5 data of Amazon, Apple, Google, Intel, Microsoft.

2, "Benchmark" dataset

The "Bechmark" dataset is from this paper: Benchmark dataset for mid-price forecasting of limit orderbook data with machine learning methods. Adamantios Ntakaris, Martin Magris, Juho Kanniainen, Moncef Gabbouj, Alexandros Iosifidis.(2018)

https://onlinelibrary.wiley.com/doi/epdf/10.1002/for.2543

The data is on https://etsin.avointiede.fi/dataset/urn-nbn-fi-csc-kata20170601153214969115. Click the "Access this dataset freely." to download the dataset. (sorry)

Unzip the the data file if needed. Put the files in the "data" folder without subfolders.

There are three experiments in this project.

More details about the models can be found on the paper: Deep learning for Limit Order Book Trading and Mid-price Movement prediction.

1, limit order book trading.

We use two CNN models to predict bid ask spread cross. One for long and one for short.

run main_trading.py

2, mid-pirce moving prediction on LobsterData.

We use a CNN model to predict the mid-price movement.

run main_midprice.py

3, mid-pirce moving prediction on "Benchmark" dataset.

We use a deep CNN model to predict the mid-price movement.

run main_benchmark.py

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.