ericjohn / mbt_gym

mbt_gym is a module which provides a suite of gym environments for training reinforcement learning (RL) agents to solve model-based high-frequency trading problems such as market-making and optimal execution. The module is set up in an extensible way to allow the combination of different aspects of different models. It supports highly efficient imp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mbt_gym

mbt_gym is a module which provides a suite of gym environments for training reinforcement learning (RL) agents to solve model-based high-frequency trading problems such as market-making and optimal execution. The module is set up in an extensible way to allow the combination of different aspects of different models. It supports highly efficient implementations of vectorized environments to allow faster training of RL agents.

It includes gym environments for popular analytically tractable market making models, as well as more complex models that prove difficult to solve analytically.

The associated paper can be found at https://arxiv.org/abs/2209.07823.

Contributions are welcome!

If you wish to contribute to this repository, please read the details of how to do so in the CONTRIBUTING.md file in the root directory of the repository. For ideas on code that you could contribute, please look at the roadmap.

Using mbt_gym with Docker

To use the mbt_gym package from within a docker container (see instructions on how to install docker) , first change directory into the docker subdirectory using cd docker and then follow the instructions below.

Building

To build the container:

sh build_image.sh

Running

Run the start container script (mounting ../, therefore mounting mbt_gym), and specify a port for jupyter notebook:

sh start_container.sh 8877

(Note: if you wish to add gpus to container, just add --gpus device=0 to start_container.sh to use one gpu or --gpus all to add all gpus available.)

To work in the container via shell:

sh exec_mbt_gym.sh

Citing mbt_gym

When using mbt_gym, please cite the original workshop paper by using the following BibTeX entry:

@article{jerome2022model,
  title={Model-based gym environments for limit order book trading},
  author={Jerome, Joseph and Sanchez-Betancourt, Leandro and Savani, Rahul and Herdegen, Martin},
  journal={arXiv preprint arXiv:2209.07823},
  year={2022}
}

About

mbt_gym is a module which provides a suite of gym environments for training reinforcement learning (RL) agents to solve model-based high-frequency trading problems such as market-making and optimal execution. The module is set up in an extensible way to allow the combination of different aspects of different models. It supports highly efficient imp

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:HTML 56.4%Language:Jupyter Notebook 39.5%Language:Python 4.1%Language:Shell 0.0%Language:Dockerfile 0.0%