项目作者: ksemianov

项目描述 :
OpenAI Gym Environment for Low-Latency Trading
高级语言: Python
项目地址: git://github.com/ksemianov/TradingGym.git
创建时间: 2018-02-05T17:46:33Z
项目社区:https://github.com/ksemianov/TradingGym

开源协议:Apache License 2.0

下载


TradingGym

TradingGym is a platform for automated optimal trading. It implements OpenAI Gym environment to train and test reinforcement learning agents. The environment is created from level II stock exchange data and takes into account commissions, bid-ask spreads and slippage (but still assumes no market impact).

Installation

  1. git clone https://github.com/ksemianov/TradingGym
  2. cd TradingGym
  3. python3 -m pip install -e .

Usage

The platform supports level II market data in Plaza II format from MOEX. It expects hdf5 file where every key has data for a separate trading session. The example value for a key should look similar to this:

See RL notebook for examples of training and testing agents based on keras-rl.