Robin Stocks: Python Trading on Wall St.¶
This library aims to create simple to use functions to interact with the Robinhood API. This is a pure python interface and it requires Python 3. The purpose of this library is to allow people to make their own robo-investors or to view stock information in real time.
Note
These functions make real time calls to your Robinhood account. Unlike in the app, there are no warnings when you are about to buy, sell, or cancel an order. It is up to YOU to use these commands responsibly.
User Guide¶
Below is the table of contents for Robin Stocks. Use it to find example code or to scroll through the list of all the callable functions.
- Introduction
- Installing
- Quick Start
- Advanced Usage
- Robinhood Functions
- Sending Requests to API
- Logging In and Out
- Loading Profiles
- Getting Stock Information
find_instrument_data()
get_earnings()
get_events()
get_fundamentals()
get_instrument_by_url()
get_instruments_by_symbols()
get_latest_price()
get_name_by_symbol()
get_name_by_url()
get_news()
get_pricebook_by_id()
get_pricebook_by_symbol()
get_quotes()
get_ratings()
get_splits()
get_stock_historicals()
get_stock_quote_by_id()
get_stock_quote_by_symbol()
get_symbol_by_url()
- Getting Option Information
find_options_by_expiration()
find_options_by_expiration_and_strike()
find_options_by_specific_profitability()
find_options_by_strike()
find_tradable_options()
get_aggregate_open_positions()
get_aggregate_positions()
get_all_option_positions()
get_chains()
get_market_options()
get_open_option_positions()
get_option_historicals()
get_option_instrument_data()
get_option_instrument_data_by_id()
get_option_market_data()
get_option_market_data_by_id()
spinning_cursor()
write_spinner()
- Getting Market Information
- Getting Positions and Account Information
build_holdings()
build_user_profile()
delete_symbols_from_watchlist()
deposit_funds_to_robinhood_account()
download_all_documents()
download_document()
get_all_positions()
get_all_watchlists()
get_bank_account_info()
get_bank_transfers()
get_card_transactions()
get_day_trades()
get_dividends()
get_dividends_by_instrument()
get_documents()
get_interest_payments()
get_latest_notification()
get_linked_bank_accounts()
get_margin_calls()
get_margin_interest()
get_notifications()
get_open_stock_positions()
get_referrals()
get_stock_loan_payments()
get_subscription_fees()
get_total_dividends()
get_watchlist_by_name()
get_wire_transfers()
load_phoenix_account()
post_symbols_to_watchlist()
unlink_bank_account()
withdrawl_funds_to_bank_account()
- Placing and Cancelling Orders
cancel_all_crypto_orders()
cancel_all_option_orders()
cancel_all_stock_orders()
cancel_crypto_order()
cancel_option_order()
cancel_stock_order()
find_stock_orders()
get_all_crypto_orders()
get_all_open_crypto_orders()
get_all_open_option_orders()
get_all_open_stock_orders()
get_all_option_orders()
get_all_stock_orders()
get_crypto_order_info()
get_option_order_info()
get_stock_order_info()
order()
order_buy_crypto_by_price()
order_buy_crypto_by_quantity()
order_buy_crypto_limit()
order_buy_crypto_limit_by_price()
order_buy_fractional_by_price()
order_buy_fractional_by_quantity()
order_buy_limit()
order_buy_market()
order_buy_option_limit()
order_buy_option_stop_limit()
order_buy_stop_limit()
order_buy_stop_loss()
order_buy_trailing_stop()
order_crypto()
order_option_credit_spread()
order_option_debit_spread()
order_option_spread()
order_sell_crypto_by_price()
order_sell_crypto_by_quantity()
order_sell_crypto_limit()
order_sell_crypto_limit_by_price()
order_sell_fractional_by_price()
order_sell_fractional_by_quantity()
order_sell_limit()
order_sell_market()
order_sell_option_limit()
order_sell_option_stop_limit()
order_sell_stop_limit()
order_sell_stop_loss()
order_sell_trailing_stop()
order_trailing_stop()
- Getting Crypto Information
- Export Information
- TD Ameritrade Functions
- Gemini Functions
- Example Scripts