Python 3 classes to facilitate using the TD Ameritrade web based API. The class creates http requests and parses the response to be used interactively in a shell or Jupyter Lab.
- Follow the guidelines on setting up an App for on the TD Ameritrade Developers.
- Clone this repository git clone https://github.com/brentjm/TD-Ameritrade-API.git
- Change the directory to the file containing tdameritrade_api.py
- Get an access token
- In a python terminal (e.g. Jupyter Lab), get a reference to the API. $td_api = td_ameritrade.TDAmeritradeAPI(account_number=your_account, oauth_certificate=your_token)
Brent Maranzano
This project is licensed under the MIT License - see the LICENSE.md file for details Example usage of the TD Ameritrade API