Skip to content

Commit 3e1d0cc

Browse files
2 parents 1a571c9 + aafea91 commit 3e1d0cc

File tree

7 files changed

+167
-226
lines changed

7 files changed

+167
-226
lines changed

README.md

-214
This file was deleted.

README.rst

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
================================
2+
|Crypto Trading Environment|
3+
================================
4+
5+
.. |Crypto Trading Environment| raw:: html
6+
7+
<h1 align='center'>
8+
<img src = 'https://github.com/ClementPerroud/Gym-Trading-Env/raw/main/docs/source/images/logo_light-bg.png' width='500'>
9+
</h1>
10+
11+
12+
.. raw:: html
13+
14+
<section class="shields" align="center">
15+
<a href="https://www.python.org/">
16+
<img src="https://img.shields.io/badge/python-v3-brightgreen.svg"
17+
alt="python">
18+
</a>
19+
<a href="https://pypi.org/project/gym-trading-env/">
20+
<img src="https://img.shields.io/badge/pypi-v1.1.3-brightgreen.svg"
21+
alt="PyPI">
22+
</a>
23+
<a href="https://github.com/ClementPerroud/Gym-Trading-Env/blob/main/LICENSE.txt">
24+
<img src="https://img.shields.io/badge/license-MIT%202.0%20Clause-green"
25+
alt="Apache 2.0 with Commons Clause">
26+
</a>
27+
<a href='https://gym-trading-env.readthedocs.io/en/latest/?badge=latest'>
28+
<img src='https://readthedocs.org/projects/gym-trading-env/badge/?version=latest' alt='Documentation Status' />
29+
</a>
30+
31+
<br>
32+
<a href="https://github.com/ClementPerroud/Gym-Trading-Env">
33+
<img src="https://img.shields.io/github/stars/ClementPerroud/gym-trading-env?style=social" alt="Github stars">
34+
</a>
35+
</section>
36+
37+
Cryto Trading Env is an OpenAI Gym environment for simulating stocks and train Reinforcement Learning (RL) trading agents.
38+
It was designed to be fast and customizable for easy RL trading algorythms implementation.
39+
40+
+---------------------------------------------------------------------------------+
41+
| `Documentation <https://gym-trading-env.readthedocs.io/en/latest/index.html>`_ |
42+
+---------------------------------------------------------------------------------+
43+
44+
Key features
45+
---------------
46+
47+
This package aims to greatly simplify the research phase by offering :
48+
49+
* Easy and quick download technical data on several exchanges
50+
* A simple and fast environment for the user and the AI, but which allows complex operations (Short, Margin trading).
51+
* A high performance rendering (can display several hundred thousand candles simultaneously), customizable to visualize the actions of its agent and its results.
52+
* (Coming soon) An easy way to backtest any RL-Agents or any king
53+
54+
.. image:: docs/source/images/render.gif
55+
56+
Installation
57+
---------------
58+
59+
Crypto Trading Env supports Python 3.9+ on Windows, Mac, and Linux. You can install it using pip:
60+
61+
.. code-block:: console
62+
63+
pip install gym-trading-env
64+
65+
Or using git :
66+
67+
.. code-block:: console
68+
69+
git clone https://github.com/ClementPerroud/Gym-Trading-Env
70+
71+
72+
`Documentation available here <https://gym-trading-env.readthedocs.io/en/latest/index.html>`_
73+
-----------------------------------------------------------------------------------------------

docs/source/images/render.gif

395 KB
Loading

docs/source/index.rst

+23-9
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,26 @@
44

55
.. title:: Crypto Trading Environment for Reinforcement Learning
66

7-
===================
7+
8+
89
|Crypto Trading Environment|
9-
===================
10+
================================
11+
12+
.. |Crypto Trading Environment| raw:: html
1013

11-
.. |Crypto Trading Environment| image:: images/logo_light-bg.png
12-
:width: 500
14+
<h1 align='center'>
15+
<img src = 'https://github.com/ClementPerroud/Gym-Trading-Env/raw/main/docs/source/images/logo_light-bg.png' width='500'>
16+
</h1>
1317

18+
1419
.. raw:: html
15-
16-
<section class="shields">
20+
21+
<section class="shields" align="center">
1722
<a href="https://www.python.org/">
1823
<img src="https://img.shields.io/badge/python-v3-brightgreen.svg"
1924
alt="python">
2025
</a>
21-
<a href="https://pypi.org/project/lib-pybroker/">
26+
<a href="https://pypi.org/project/gym-trading-env/">
2227
<img src="https://img.shields.io/badge/pypi-v1.1.3-brightgreen.svg"
2328
alt="PyPI">
2429
</a>
@@ -39,6 +44,10 @@
3944
Cryto Trading Env is an OpenAI Gym environment for simulating stocks and train Reinforcement Learning (RL) trading agents.
4045
It was designed to be fast and customizable for easy RL trading algorythms implementation.
4146

47+
+---------------------------------------------------------------------------------+
48+
| `Github <https://github.com/ClementPerroud/Gym-Trading-Env>`_ |
49+
+---------------------------------------------------------------------------------+
50+
4251
Key features
4352
---------------
4453

@@ -49,6 +58,8 @@ This package aims to greatly simplify the research phase by offering :
4958
* A high performance rendering (can display several hundred thousand candles simultaneously), customizable to visualize the actions of its agent and its results.
5059
* (Coming soon) An easy way to backtest any RL-Agents or any king
5160

61+
.. image:: images/render.gif
62+
5263
Installation
5364
---------------
5465

@@ -63,20 +74,23 @@ Or using git :
6374
.. code-block:: console
6475
6576
git clone https://github.com/ClementPerroud/Gym-Trading-Env
77+
6678
6779
Contents
6880
---------------
6981

7082
.. toctree::
71-
83+
84+
Introduction <self>
7285
getting_started
7386

7487
.. toctree::
7588
:caption: 🤖 Reinforcement Learning
7689

7790
rl_tutorial
7891
customization
79-
advanced
92+
multi_datasets
93+
vectorize_env
8094

8195
.. toctree::
8296
:caption: 🦾 Functionnalities

docs/source/advanced.rst docs/source/multi_datasets.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Advanced
1+
Multi datasets environment
22
===========
33

44
Now, you know how to create a environment for your RL agent with one dataset. But something seems weird ... One good dataset is about 100k data points long. But it sounds very little compared to the millions steps that RL-Agent needs to get good.
@@ -17,7 +17,7 @@ A TradingEnv environment that handle multiple datasets. It automatically switchs
1717
How to use ?
1818
^^^^^^^^^^^^^
1919

20-
You need to specify a `glob path<https://docs.python.org/3.6/library/glob.html>`_ that gather all of the datasets (in .pkl format).
20+
You need to specify a `glob path <https://docs.python.org/3.6/library/glob.html>`_ that gather all of the datasets (in .pkl format).
2121
Imagine you have several preprocessed dataset in a folder named ``preprocessed_data`` .
2222

2323
.. code-block:: python

docs/source/rl_tutorial.rst

+4-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ I have seen many environments that consider actions such as BUY, SELL. In my exp
2222

2323
* ``0.5`` : 50% in BTC & 50% in USD
2424
* Even : ``0.1`` : 10% in BTC & 90% in USD ....
25-
In fact, it is way simpler for a RL-agent to work with positions. This way, it can easily make complex operation with a simple action space.
25+
26+
.. note::
27+
28+
It is way simpler for a RL-agent to work with positions. This way, it can easily make complex operation with a simple action space.
2629

2730
.. code-block::python
2831

0 commit comments

Comments
 (0)