Git Product home page Git Product logo

etrade-python-sample's Introduction

E*TRADE API Python Sample Application

This sample Python application provides examples on using the ETRADE API endpoints.

Table of Contents

Requirements

In order to run this sample application you need the following three items:

  1. Python 3 - this sample application is written in Python and requires Python 3. If you do not already have Python 3 installed, download it from

    https://www.python.org/downloads/.

  2. An E*TRADE account

  3. E*TRADE consumer key and consumer secret.

Setup

  1. Unzip python zip file

  2. Edit config.ini with your consumer key and consumer secret; copy these from your application's keys' section

  3. Create the virtual environment by running the Python's venv command; see the command syntax below

$ python3 -m venv venv
  1. Activate the Python virtual environment

On Windows, run:

$ venv\Scripts\activate.bat

On Unix or Mac OS, run:

$ source venv/bin/activate
  1. Use pip to install dependencies for the sample application
$ pip install -r requirements.txt
  1. Run the sample application
$ cd etrade_python_client
$ python3 etrade_python_client.py

Running Code

Complete these steps to run the code for the sample application:

  1. Activate the Python virtual environment

On Windows, run:

$ venv\Scripts\activate.bat

On Unix or Mac OS, run:

$ source venv/bin/activate
  1. Run the application
$ cd etrade_python_client
$ python3 etrade_python_client.py

etrade-python-sample's People

Contributors

mrancourt avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

nejohnson2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.