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
Built Distribution
File details
Details for the file simple_portfolio-0.1.8.tar.gz
.
File metadata
- Download URL: simple_portfolio-0.1.8.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 028189f91ef5a0447e10cb43268d1bb7d5257acd2e80bb95b6532025d6bdea99 |
|
MD5 | 202fa49a4b9a397ec1a186cf29797565 |
|
BLAKE2b-256 | 262c6d9b62280d2b9e22279b6b26dfcc9a2fcbde1bc56d6c807ff438dd6a4400 |
File details
Details for the file simple_portfolio-0.1.8-py3-none-any.whl
.
File metadata
- Download URL: simple_portfolio-0.1.8-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | caebf08adfd491aa67a54d5d71d48ad4b5a7f0d59193ae6c58553febf048a028 |
|
MD5 | 246752a4f2ac49c44bfac17b243ad631 |
|
BLAKE2b-256 | 46bb858961dda2504dfbbc71b8ab9325110fa0043480b1e413af4ed75c12dc6c |