Skip to content
This repository has been archived by the owner on Apr 20, 2021. It is now read-only.

Export trades from Robinhood and run basic reporting on portfolio performance

License

Notifications You must be signed in to change notification settings

westonplatter/simple_portfolio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple_metrics for Robinhood

Simple portfolio metrics applied to your Robinhood portfolio.

example 1

from simple_metrics import fetch, export

account = {
        'username': 'my username',
        'password': 'my password'}

#
# export stock trades to -> stock_orders.csv
#
stock_orders = fetch.stock_trades(account, {})
export.stock_orders(stock_orders, {})

#
# export -> option_orders.csv
#
option_orders = fetch.option_orders(account, {})
export.option_orders(option_orders, {})

example 2

Run the calculate_options.py script in the examples folder, it generates total and daily returns, as well as fetching greeks for open option positions.

Options Example

install

pip install simple_metrics

package api

Functionality includes:

  • Fetch Stock order history
  • Fetch Option order history
  • Export Stock order history
  • Export Option order history

local development

Git clone this repo and run,

pip install . --process-dependency-links --editable

Adding --editable allows you to pull in code changes without having to run pip install.