This is a python wrapper for the Etrade API. It handles authentication and provides an interface for making requests.
To use this library, you must have API consumer keys, which require an Etrade account. Visit their getting started page to learn more.
- Acquire consumer keys from Etrade.
- Clone this repo.
- Run
pip install -e .in the cloned directory to install this package.
- Read the example code given in examples/starter.py.
- Provide program with consumer keys (example uses a .env file).
- Run the example program in a terminal:
python3 starter.py. - Login to your Etrade account when prompted by your browser.
- Read and accept the terms and agreements.
- Copy the verification code given to you by Etrade, and paste it into the console where you ran the program.
- The program prints the output of a few common api requests, use as desired.