Skip to main content

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.

Metadata

Release files for simple-portfolio 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for simple-portfolio 0.1.8
File Size Uploaded
simple_portfolio-0.1.8.tar.gz 4.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for simple-portfolio 0.1.8
File Interpreter ABI Platform
simple_portfolio-0.1.8-py3-none-any.whl Python 3 none any Details

Total release size: 11.4 kB

Release files / simple_portfolio-0.1.8.tar.gz

Download URL simple_portfolio-0.1.8.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
028189f91ef5a0447e10cb43268d1bb7d5257acd2e80bb95b6532025d6bdea99
BLAKE2b-256 checksum
How to use checksums
262c6d9b62280d2b9e22279b6b26dfcc9a2fcbde1bc56d6c807ff438dd6a4400
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / simple_portfolio-0.1.8-py3-none-any.whl

Download URL simple_portfolio-0.1.8-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
caebf08adfd491aa67a54d5d71d48ad4b5a7f0d59193ae6c58553febf048a028
BLAKE2b-256 checksum
How to use checksums
46bb858961dda2504dfbbc71b8ab9325110fa0043480b1e413af4ed75c12dc6c
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.1.8 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page