The doc to spectre https://developers.spectre.ai/#method_Flow2 This uses the spectre api to subscribe to the market data sub.
First we had to login with selenium to get the code
and next we had to get the access token from the code which is another function
and the next we had to test the server if it working with their test .
The last is we just has to subscribe
To run this you need the .env which you can create from the sample provided
python -m venv venv
Mac
source venv/bin/actiate
Windows venv\Scripts\activate
pip install -r requirements.txt
Update your .env
using the .env-sample
provided
run
python trade.py