Tools for monitoring my Lifetime ISA portfolio.
Project description
lisatools
Tools for monitoring my Lifetime ISA portfolio.
Installation
$ pip install lisatools
Usage
lisatools
provides classes and functions that help me manage my Lifetime ISA
fund portfolio. For example, I can calculate the trades required to obtain
my target portfolio as in the following snippet:
import lisatools
import datetime
ftse_global = lisatools.Fund(
"FTSE Global All Cap Index Fund",
172.14,
isin="GB00BD3RZ582",
date=datetime.date(2022, 11, 21)
)
gilts = lisatools.Fund(
"U.K. Gilt UCITS ETF (VGOV)",
18.58,
isin="IE00B42WWV65",
date=datetime.date(2022, 11, 21)
)
holding1 = lisatools.Holding(ftse_global, 1.0, 0.6)
holding2 = lisatools.Holding(gilts, 5.0, 0.4)
pf = lisatools.Portfolio([holding1, holding2])
buy, sell = pf.trade_to_target()
print("Buy:\n=====", buy, "\nSell:\n=====", sell, sep = "\n")
A more elaborate example is provided in the /docs/ folder.
License
lisatools
was created by Istvan Kleijn. It is licensed under the terms of the MIT license.
Credits
lisatools
was created with cookiecutter
and the py-pkgs-cookiecutter
template.
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
lisatools-0.1.0.tar.gz
(6.0 kB
view hashes)
Built Distribution
Close
Hashes for lisatools-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff29d859c2a53de77c71ec72dd3c49a9ccd64bc932d6b8f439c24f20623228ec |
|
MD5 | a340ad0b59b27602f4d3f72ab853ad90 |
|
BLAKE2b-256 | b45a4c9b9ec6f676c434d61e34f6a54fcb4530afb91b520ef4ef2b0c5fd879ba |