Portfolio Analytics Utilities
Project description
Money Counter
Portfolio analytics utilities
This is the beginning of a work in progress. I expect it will be in pretty good shape early in 2023 and then evolve from there.
This is a supporting package for a larger project I am working on and should be useful to others as is.
$ pip install moneycounter
from datetime import date
from moneycounter import fifo, realized_gains
# Given pandas df of trades calculate realized gains from sells after d
realized = fifo(df, d=date(2022, 1, 1))
# Given a pandas df of trades calculate realized gains.
realized = realized_gains(df)
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
moneycounter-0.0.9.tar.gz
(8.8 kB
view hashes)
Built Distribution
Close
Hashes for moneycounter-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f08499a69c4284a404ccd60f410ab70ce10d951b62fd69172b1839758f20e013 |
|
MD5 | 435e887ebc2ed68bb31f99b840df4e77 |
|
BLAKE2b-256 | f22e41da7ce0bac8d0b9d2d1bbc5591a6bac7743ef31f1e8702667dd3a041a4e |