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
File details
Details for the file casparser_isin-2023.9.10.tar.gz
.
File metadata
- Download URL: casparser_isin-2023.9.10.tar.gz
- Upload date:
- Size: 2.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.10.12 Linux/5.15.0-1041-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51beb5aa24ee567d906b7384a87577132d0a6d69202430897fc7a1cbafaf1edb |
|
MD5 | 94a0061b54b53ff99efe49302c8145a6 |
|
BLAKE2b-256 | 6401413cefbb210e08f0294d7b9885ab7278662f8c68b5d7b9d866b09274508a |
File details
Details for the file casparser_isin-2023.9.10-py3-none-any.whl
.
File metadata
- Download URL: casparser_isin-2023.9.10-py3-none-any.whl
- Upload date:
- Size: 2.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.10.12 Linux/5.15.0-1041-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e89c264d29c1c9ab229ea1615a1dd5849f61e8530329090a24a1f756a9867b07 |
|
MD5 | c9157005678f767f43f3e1a4c89937ca |
|
BLAKE2b-256 | d68e2414dc2cebabd9af36c23b97db80d308bbe31ef2bccd2d75fd1ea35038c4 |