v1 API
Authorization API - ALL
NOTICE: v0 API - Will be sunset by etrade on 12/31/2018 an effert is underway to move pyetrade over to v1
Authorization API - ALL
Accounts API - ALL
Order API -
- List Orders
- Place Equity Order
- Cancel Order
Market API -
- Look Up Product
- optionchain
- Get Quote
- All of v1 API
- Migrate test suit to pytest
pip install pyetrade
- or -
git clone https://github.com/jessecooper/pyetrade.git
cd pyetrade
sudo make init
sudo make install
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()
- ETrade API Docs
- Fork pyetrade
- Development Setup:
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