Skip to content

This is used to subscribe to spectre api market, get access token and also code using #python #websocket-client

Notifications You must be signed in to change notification settings

Codertjay-projects/spectre_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spectre API

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

Setup

python -m venv venv

Mac source venv/bin/actiate

Windows venv\Scripts\activate

Install requirements

pip install -r requirements.txt

Update your .env using the .env-sample provided

run

python trade.py

About

This is used to subscribe to spectre api market, get access token and also code using #python #websocket-client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages