Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 1.02 KB

File metadata and controls

19 lines (16 loc) · 1.02 KB

ptrade

This is a python wrapper for the Etrade API. It handles authentication and provides an interface for making requests.

Getting started

To use this library, you must have API consumer keys, which require an Etrade account. Visit their getting started page to learn more.

Setup [temp]

  1. Acquire consumer keys from Etrade.
  2. Clone this repo.
  3. Run pip install -e . in the cloned directory to install this package.

Example

  1. Read the example code given in examples/starter.py.
  2. Provide program with consumer keys (example uses a .env file).
  3. Run the example program in a terminal: python3 starter.py.
  4. Login to your Etrade account when prompted by your browser.
  5. Read and accept the terms and agreements.
  6. Copy the verification code given to you by Etrade, and paste it into the console where you ran the program.
  7. The program prints the output of a few common api requests, use as desired.