Skip to main content

A Python wrapper around the Robinhood API

Project description

Robinhood API Library

Introduction

This library aims to create simple to use functions to interact with the Robinhood API. This is a pure python interface and it requires Python3.

Installing

There is no need to download these files directly. This project is published on PyPi so it can be installed by typing into terminal:

>>> pip install robin_stocks

Example Usage

In your python code write:

>>> from robin_stocks import robin_stocks
>>> r = robin_stocks()
>>> login = r.login('joshsmith@email.com','password')
>>> my_stocks = r.build_holdings()

This will build a dictionary called “my stocks” containing symbols of all the stocks you hold as the keys, and another dictionary containing important information about the stocks as the items.

Functions Contained

  • login

  • logout

  • get_user_profile

  • get_investment_profile

  • get_basic_profile

  • get_international_profile [DOES NOT WORK]

  • get_employment_profile [DOES NOT WORK]

  • get_portfolios_profile

  • get_accounts_profile

  • get_security_profile

  • get_quotes

  • get_latest_price

  • get_fundamentals

  • get_instruments_by_symbols

  • get_instruments_by_url

  • query_instruments

  • get_positions

  • get_owned_positions

  • get_dividends

  • get_total_dividends

  • get_name_by_symbol

  • get_name_by_url

  • get_documents

  • download_document

  • download_all_documents

  • get_historicals

  • get_all_watchlists

  • get_watchlist_by_name

  • post_symbols_to_watchlist

  • delete_symbols_from_watchlist

  • get_notifications

  • get_markets

  • get_wire_transfers

  • get_all_orders

  • get_all_open_orders

  • get_order_info

  • query_orders

  • cancel_all_open_orders

  • cancel_order

  • order_buy_market

  • order_sell_market

  • build_holdings

  • build_user_profile

Project details


Release history Release notifications | RSS feed

This version

0.6

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

robin_stocks-0.6.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

robin_stocks-0.6-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file robin_stocks-0.6.tar.gz.

File metadata

  • Download URL: robin_stocks-0.6.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.9.1 pkginfo/1.4.1 requests/2.19.1 setuptools/38.5.1 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.1

File hashes

Hashes for robin_stocks-0.6.tar.gz
Algorithm Hash digest
SHA256 c680258467088b48c17bf7dca48515f12f2fee0a05d5eec4a1ef1ff97b964925
MD5 503a3449947990c41ebfdd1d9c6d669a
BLAKE2b-256 fdb33e584c13ac3a0b28636b0ef210b532e40bc64da7c4820e2692572fe3fc29

See more details on using hashes here.

File details

Details for the file robin_stocks-0.6-py3-none-any.whl.

File metadata

  • Download URL: robin_stocks-0.6-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.9.1 pkginfo/1.4.1 requests/2.19.1 setuptools/38.5.1 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.1

File hashes

Hashes for robin_stocks-0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 3d219e42d778cdedbc887d4ef433d9bb9ba90f9fa3c57660d00799875e63419d
MD5 8b959c46fc24924d9c32a0c333035f76
BLAKE2b-256 e90adf28984e6a7a4d06244c615f0001f9a869fe06853bc5eb625939d169121e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page