codereverser / casparser-isin

ISIN database for casparser
MIT License
6 stars 7 forks source link
cams cas casparser-isin consolidated-account-statements ftamil isin-database karvy kfintech mutual-fund-portfolio mutual-funds

CASParser-ISIN

code style: black GitHub GitHub Workflow Status codecov PyPI - Python Version

ISIN Database for casparser.

Installation

pip install -U casparser-isin

Usage

from casparser_isin import MFISINDb
with MFISINDb() as db:
    scheme_data = db.isin_lookup("Axis Long Term Equity Fund - Growth",  # scheme name
                                 "KFINTECH", # RTA
                                 "128TSDGG", # Scheme RTA code
                                 )
print(scheme_data)
SchemeData(name="axis long term equity fund - direct growth",
           isin="INF846K01EW2",
           amfi_code="120503",
           score=100.0)

The database also contains NAV values on 31-Jan-2018 for all funds, which can be used for taxable LTCG computation for units purchased before the same date.

from casparser_isin import MFISINDb
with MFISINDb() as db:
    nav = db.nav_lookup("INF846K01EW2")
print(nav)
Decimal('44.8938')

Notes

casparser-isin --update