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.7.tar.gz
(8.7 kB
view hashes)
Built Distribution
Close
Hashes for moneycounter-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6098ff030d5b3eb53a71e2b453cf0d52cd65212b342a90d56deec896aae6041d |
|
MD5 | 3d51c0ff223e6810e426e267038f23c4 |
|
BLAKE2b-256 | 5515d6d08c843153acb4ae1df05624733d03cd2c7ce68e524005d160fcd426dd |