ISIN database for casparser
Project description
CASParser-ISIN
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 is shipped with a local database which may get obsolete over time. The local database can be updated via the cli tool
casparser-isin --update
- casparser-isin will try to use the file provided by
CASPARSER_ISIN_DB
environment variable; if present, and the file exists
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
Built Distribution
Close
Hashes for casparser_isin-2022.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c44a5b4e6fc16758cc400094948b529336b666d5c1611520dba4b6f3b02d9d3 |
|
MD5 | 96584685160b00276e1b4468425872b9 |
|
BLAKE2b-256 | 27e0c0a14977877eb3f220252f49ede62ee660c1dc1ec5b7fd536871da76aa42 |