All Projects → jessecooper → Pyetrade

jessecooper / Pyetrade

Licence: gpl-3.0
Python E-Trade API Wrapper

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Pyetrade

alpha-vantage-api
Alpha Vantage PHP Client
Stars: ✭ 57 (-52.5%)
Mutual labels:  api-client, stock
Examples Of Web Crawlers
一些非常有趣的python爬虫例子,对新手比较友好,主要爬取淘宝、天猫、微信、豆瓣、QQ等网站。(Some interesting examples of python crawlers that are friendly to beginners. )
Stars: ✭ 10,724 (+8836.67%)
Mutual labels:  stock
Kupi Terminal
Ccxt based, open source, customized, extendable trading platform that supports 130+ crypto exchanges.
Stars: ✭ 104 (-13.33%)
Mutual labels:  stock
Mns
Money never sleeps! IntelliJ IDEA平台插件. 支持查看股票实时行情. 支持美股, 港股, A股.
Stars: ✭ 113 (-5.83%)
Mutual labels:  stock
Python Scaleway
🐍 Python SDK to query Scaleway APIs.
Stars: ✭ 107 (-10.83%)
Mutual labels:  api-client
Quandl R
This is Quandl's R Package
Stars: ✭ 113 (-5.83%)
Mutual labels:  api-client
Tracker api
Ruby Wrapper for Pivotal Tracker v5 API
Stars: ✭ 102 (-15%)
Mutual labels:  api-client
Trakt.py
Python interface for the Trakt.tv API
Stars: ✭ 117 (-2.5%)
Mutual labels:  api-client
Pixiv Api Client
Promise based Pixiv API client for node.js and react native
Stars: ✭ 114 (-5%)
Mutual labels:  api-client
Tekore
Spotify Web API client for Python 3
Stars: ✭ 111 (-7.5%)
Mutual labels:  api-client
Laqul
A complete starter kit that allows you create amazing apps that look native thanks to the Quasar Framework. Powered by an API developed in Laravel Framework using the easy GraphQL queries language. And ready to use the Google Firebase features.
Stars: ✭ 110 (-8.33%)
Mutual labels:  api-client
Yelp Ruby
A Ruby gem for communicating with the Yelp REST API
Stars: ✭ 107 (-10.83%)
Mutual labels:  api-client
Nodejs Foscam
Remote control, view and config a Foscam or compatible IP camera
Stars: ✭ 113 (-5.83%)
Mutual labels:  api-client
Eflinventory V2
🏬 Point-of-sale and inventory tracking for small-scale retail stores. Easily manage inventory, purchases, sales, and damaged and/or expired products.
Stars: ✭ 106 (-11.67%)
Mutual labels:  stock
Coinbase Pro Node
Coinbase Pro API written in TypeScript and covered by tests.
Stars: ✭ 116 (-3.33%)
Mutual labels:  api-client
Nodejs Youtube
Access public YouTube data feeds from your Node.js apps
Stars: ✭ 102 (-15%)
Mutual labels:  api-client
Zvt
modular quant framework.
Stars: ✭ 1,801 (+1400.83%)
Mutual labels:  stock
Jjstockview
iOS股票,课程表,表格控件
Stars: ✭ 113 (-5.83%)
Mutual labels:  stock
Tik4net
Manage mikrotik routers with .NET C# code via ADO.NET like API or enjoy O/R mapper like highlevel api.
Stars: ✭ 118 (-1.67%)
Mutual labels:  api-client
Sdk Js
Directus JS SDK — JavaScript Software Development Kit for Node and Browser
Stars: ✭ 117 (-2.5%)
Mutual labels:  api-client

pyetrade

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

Completed

v1 API Authorization API - ALL Accounts

  • list accounts

Authorization API - ALL Order API -

  • List Orders
  • Place Equity Order
  • Cancel Order

Market API -

  • Look Up Product
  • optionchain
  • Get Quote

Install

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

Example Usage

To create the OAuth tokens:

import pyetrade

consumer_key = "<CONSUMER_KEY>"
consumer_secret = "<SECRET_KEY>"

oauth = pyetrade.ETradeOAuth(consumer_key, consumer_secret)
print(oauth.get_request_token())  # Use the printed URL

verifier_code = input("Enter verification code: ")
tokens = oauth.get_access_token(verifier_code)
print(tokens)

And then on the example code:

import pyetrade

consumer_key = "<CONSUMER_KEY>"
consumer_secret = "<SECRET_KEY>"
tokens = {'oauth_token': '<TOKEN FROM THE SCRIPT ABOVE>',
          'oauth_token_secret': '<TOKEN FROM THE SCRIPT ABOVE>'}

accounts = pyetrade.ETradeAccounts(
    consumer_key,
    consumer_secret,
    tokens['oauth_token'],
    tokens['oauth_token_secret']
)

print(accounts.list_accounts())

Documentation

PyEtrade Documentation

Contribute to pyetrade

    sudo make init
    sudo make devel
  • Lint
# Run Black
black pyetrade/
# Run Linter
pylint pyetrade/  #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
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].