Build reinforcement learning agents to trade USD_CAD and USD_CHF using data from OANDA v20 API.
After training, you can visualize the agents' trading activities (using testing data) on Dash app.
Credits: https://github.com/notadamking/RLTrader for gym environment codes, tutorials, and idea of using RL in trading https://dash-gallery.plotly.host/Portal/ for Dash template
$ sudo apt install libopenmpi-dev
$ pip install -r requirements-gpu.txt
$ pip install -r requirements-nogpu.txt
hostname: api-fxpractice.oanda.com
streaming_hostname: stream-fxpractice.oanda.com
port: 443
ssl: true
token: XXXXX
username: XXXXX
datetime_format: RFC3339
accounts:
- XXX-XXX-XXXXXXX-XXX
active_account: XXX-XXX-XXXXXXX-XXX
$ python data.py
$ python model.py --symbol EUR_USD --n 10000
$ python app.py