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.2.1.tar.gz
(7.5 kB
view hashes)
Built Distribution
Close
Hashes for lisatools-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13cdb54c71e4e23ded5fdca24c3790949c637c0e7d25bd8bc931530279e6b6b2 |
|
MD5 | d6b360f0e00263a9ba773c3be3ceebf5 |
|
BLAKE2b-256 | b9e58d75cf6d7e9426c7cffe3cf0450a4e23df5c43b1c159e248742784972f39 |