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 details)
Built Distribution
File details
Details for the file moneycounter-0.0.7.tar.gz
.
File metadata
- Download URL: moneycounter-0.0.7.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95c847fbab6a6d74e2f88fda83c50b3504f290e89eabe7edf5af3eb1ad89929f |
|
MD5 | bb4553f53d9e6577f1c822b5aaaf3609 |
|
BLAKE2b-256 | fc3432266dfd7616e2953f8d904d85f2f7547622a04eb8afac290504c93bd789 |
Provenance
File details
Details for the file moneycounter-0.0.7-py3-none-any.whl
.
File metadata
- Download URL: moneycounter-0.0.7-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6098ff030d5b3eb53a71e2b453cf0d52cd65212b342a90d56deec896aae6041d |
|
MD5 | 3d51c0ff223e6810e426e267038f23c4 |
|
BLAKE2b-256 | 5515d6d08c843153acb4ae1df05624733d03cd2c7ce68e524005d160fcd426dd |