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.6.tar.gz
(7.6 kB
view hashes)
Built Distribution
Close
Hashes for moneycounter-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb56be15411869bd43bf77115c2ac9d7c24fe4a068cc0115f8109dc033fdc439 |
|
MD5 | 9e1822cfd437659271ed4146d179f851 |
|
BLAKE2b-256 | c5ffe5da84a306782a0cfb24450a32a2d17908dcc6a59607f6cf7490cbe4d8bb |