/pyetrade

Python E-Trade API Wrapper

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

pyetrade

Python E-Trade API Wrapper
PyPI PyPI PyPI Build Status codecov

Completed

Authorization API - ALL
Accounts API - List Accounts
Order API - Place Equity Order
Market API - Get Quote

TODO

Accounts API - See pyetrade/accounts.py
Order API - See pyetrade/order.py
Market API - See pyetrade/market.py
Notification API - ALL
Limits API - ALL

Install

pip install pyetrade
- or -
git clone https://github.com/jessecooper/pyetrade.git
cd pyetrade
sudo make init
sudo make install

Example Usage

import pyetrade
oauth = pyetrade.ETradeOAuth(consumer_key, consumer_secret)
oauth.get_request_token()
#Follow url and get verification code
tokens = oauth.get_access_token(verifier_code)
accounts = pyetrade.ETradeAccounts(
        consumer_key,
        consumer_secret, 
        tokens['oauth_token'],
        tokens['oauth_token_secret']
    )
accounts.list_accounts()

Documentation

PyEtrade Documentation

Contribute to pyetrade

    sudo make init  
    sudo make devel
  • Lint
make lint #Lint score should be >=8
  • Test
make test #Ensure test coverage is >80%
  • Push Changes:
    Push changes to a branch on your forked repo
  • Create pull request