Skip to content

bdowling/tdameritrade

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MLTDAmeritrade

Library for accessing TDAmeritrade API's.

This is a work in progress. I am currently working with the very helpful API support team at TDAmeritrade to get everything working. The documentation for the API's are at https://developer.tdameritrade.com/. This tool will only be useful to you if you have a TDAmeritrade account, which you can get at https://www.tdameritrade.com.

Notes

  • There is a webserver that will automatically startup as needed to authenticate with TDAmeritrade as needed. That server needs to run SSL, and needs a certificate. Place the certificate and key in the following file: ~/.mltrading/config/cert.pem. See https://developer.tdameritrade.com/content/authentication-sample-python-3 for an example of how to create a self-signed certificate.
  • You will need to create the following file ~/.mltrading/config/td_app_config with some configuration information (corresponding to your app and your confguration).
{
        "oauthid": "{oauthid}@AMER.OAUTHAP",
        "redirect_host": "localhost",
        "redirect_port": 39948
}
  • Data is cached under ~/.mltrading/data/.
  • Authentication data is cached in two files: ~/.mltrading/config/td_auth_code_config and ~/.mltrading/config/td_auth_token_config
  • Look in examples for ways this can be used.
  • This package can be installed directly from github using the following command: pip install git+https://github.com/lemieuxm/tdameritrade.git
  • This has been tested with Python 3.6

Please send questions to: (Matthew) mdl@mlemieux.com

About

Library for accessing TDAmeritrade API's.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%