bclow / TD-Ameritrade-API

Example usage of the TD Ameritrade API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TD Ameritrade API

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.

Getting Started

  • 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)

Example

Demo Jupyter Lab Notebook

Author

Brent Maranzano

License

This project is licensed under the MIT License - see the LICENSE.md file for details Example usage of the TD Ameritrade API

About

Example usage of the TD Ameritrade API

License:MIT License


Languages

Language:HTML 94.5%Language:Python 5.5%