Simple portfolio metrics for Robinhood
Project description
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.
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
.
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
simple_portfolio-0.1.8.tar.gz
(4.9 kB
view hashes)
Built Distribution
Close
Hashes for simple_portfolio-0.1.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | caebf08adfd491aa67a54d5d71d48ad4b5a7f0d59193ae6c58553febf048a028 |
|
MD5 | 246752a4f2ac49c44bfac17b243ad631 |
|
BLAKE2b-256 | 46bb858961dda2504dfbbc71b8ab9325110fa0043480b1e413af4ed75c12dc6c |