Code Monkey home page Code Monkey logo

pyrh's Introduction

robinhood-logo


pyrh - Unofficial Robinhood API

build

PyPI - Downloads

GitHub

Code style: black

Gitter

Python Framework to make trades with Unofficial Robinhood API. Supports Python 3.6+

Please note that parts of this project maybe non-functional / under rapid development

  • A stable release is iminent

Quickstart

from pyrh import Robinhood

rh = Robinhood()
rh.login(username="YOUR_EMAIL", password="YOUR_PASSWORD")
rh.print_quote("AAPL")

How To Install:

pip install pyrh

Current Features

  • Placing buy orders (Robinhood.place_buy_order)
  • Placing sell order (Robinhood.place_sell_order)
  • Fetch and cancel orders (Robinhood.order_history and Robinhood.cancel_order)
  • Quote information (Robinhood.quote_data)
  • User portfolio data (Robinhood.portfolio)
  • User positions data (Robinhood.positions)
  • More coming soon
  • Install jupyter .. code-block:

    $ python --version # python 3.3+ for venv functionality
    Python 3.7.6
    $ python -m venv pyrh_env
    $ source pyrh_env/bin/activate
    (pyrh_env) $ pip install pyrh
    (pyrh_env) $ pip install jupyter
    (pyrh_env) $ jupyter notebook

Then navigate to the example file linked above and run it.

Data returned

  • Quote data
    • Ask Price
    • Ask Size
    • Bid Price
    • Bid Size
    • Last trade price
    • Previous close
    • Previous close date
    • Adjusted previous close
    • Trading halted
    • Updated at
    • Historical Price
  • User portfolio data
    • Adjusted equity previous close
    • Equity
    • Equity previous close
    • Excess margin
    • Extended hours equity
    • Extended hours market value
    • Last core equity
    • Last core market value
    • Market value
    • Order history
    • Dividend history
  • User positions data
    • Securities owned
  • News

pyrh's People

Contributors

adithyabsk avatar jamonek avatar dsouzarc avatar jasonleehodges avatar gregoberfield avatar lordloh avatar milancurcic avatar lockefox avatar rohanpai avatar anthonykrivonos avatar miserlou avatar ciresnave avatar ahaggard2013 avatar jsmwoolf avatar jammarher avatar mlsmith avatar msk avatar oogali avatar pavpanchekha avatar samueleishion avatar supersaiyanmode avatar gitter-badger avatar securient avatar xinwuc avatar zafrinminoti avatar cndn avatar mattbeattie avatar swgr424 avatar marcejohnson avatar rememberlenny avatar

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.