Collection of helpful python functions on top of tda-api
python wrapper
credential.py
file needs to contain the following six constants:
Constant name | Filetype | Description |
---|---|---|
tda_token_path |
str |
path to the token.pickle file generated by tda-api |
tda_api_key |
str |
api key from TDA website |
tda_redirect_uri |
str |
e.g) 'http://localhost' |
tda_accountid |
int |
account id from TDA website |
alpaca_api_key |
str |
|
alpaca_api_secret |
str |
- Place
credential.py
andtoken.pickle
insrc/tda_utils
folder - Create a virtual environment e.g)
conda create -n tda conda activate tda conda install pip
- Install the package by
pip install -e path/to/git/folder
history.yaml log.txt