You can watch how do I built this code on Youtube
Youtube content:
This code is designed for demo only.
Install python 3.7 and the requirements from requirements.txt
You have to set the following environment variables:
API_URL
Base url for your brokerACCESS_TOKEN
Access token for your broker
Positional Arguments:
- Instrument (e.g. EUR_USD)
- Granularity (e.g. M15)
- Data folder - collected data will be written there
python collect_candles.py
This details are needed for my broker, but if you find an other broker, with a slight change of code I'm sure you can make it as well.
If you need any help for a different broker setup, reach me out, I'm happy to give some pointers.