Unofficial Robinhood Python API
Project description
pyrh - Unofficial Robinhood API
Python Framework to make trades with Robinhood Private API. See the original blog post.
Supports Python 2.7+ and 3.6+
Current Features
- Placing buy orders (
Robinhood.place_buy_order) - Placing sell order (
Robinhood.place_sell_order) - Fetch and cancel orders (
Robinhood.order_historyandRobinhood.cancel_order) - Quote information (
Robinhood.quote_data) - User portfolio data (
Robinhood.portfolios) - User positions data (
Robinhood.positions) - More coming soon
How To Install:
Clone the repository into your project directory using:
git clone https://github.com/robinhood-unofficial/Robinhood
Then navigate to the cloned directory, where setup.py is located. Now run the following to install:
pip install .
Converting to Python 3
Project will work on both python 2 and python 3
Running example.py
- Install jupyter
pip install jupyter
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
Changelog
2.0
- Fixed 2fa connection issues
- Last version to support python 2
1.0.1
- Added custom exception
Developer setup
- Python 3.7+ is required
- poetry is used to manage package dependencies
- pre-commit is used to manage the project's tooling and linting
- black
- flake8
brew install poetry
brew install pre-commit
poetry install
pre-commit install
To manually run the linting checks. They are automatically run when you try to push the code.
pre-commit run -a
Related
- robinhood-ruby - RubyGem for interacting with Robinhood API
- robinhood-node - NodeJS module to make trades with Robinhood Private API
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyrh-2.0.tar.gz.
File metadata
- Download URL: pyrh-2.0.tar.gz
- Upload date:
- Size: 16.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.7.6 Darwin/18.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6dee4a11b653d809df494f0a6735a5c4c36005b55c92899d05f9a6f85eba8447
|
|
| MD5 |
a023974b65320ef3d7b7cb5f79d007e7
|
|
| BLAKE2b-256 |
a064c229c31f8db68d29b0c75fe57977fb05921664a319fbcd4c25803dc348ac
|
File details
Details for the file pyrh-2.0-py2.py3-none-any.whl.
File metadata
- Download URL: pyrh-2.0-py2.py3-none-any.whl
- Upload date:
- Size: 18.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.7.6 Darwin/18.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba7220d0eb9691fa5baaca5f3d322699559e2763ca0802e9b3925306866cb637
|
|
| MD5 |
6bcea259d860e5a31946e6b733f9870a
|
|
| BLAKE2b-256 |
fd8b9c0b1b83052da79737840b19451677912450611eb614262962c01057e4e4
|