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
casparser_isin-0.tar.gz
(2.0 MB
view details)
Built Distribution
File details
Details for the file casparser_isin-0.tar.gz
.
File metadata
- Download URL: casparser_isin-0.tar.gz
- Upload date:
- Size: 2.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 542776400197d8e48bc165bf4ea26680a42082d0714692b7f7722ce8d0912b31 |
|
MD5 | e3ef0360540437c25c0a5239439c4947 |
|
BLAKE2b-256 | cce17e71debcd02751153a1c914c48d9f4fffec6c3ad06af8ea79d696b5dfba0 |
File details
Details for the file casparser_isin-0-py3-none-any.whl
.
File metadata
- Download URL: casparser_isin-0-py3-none-any.whl
- Upload date:
- Size: 2.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5377a19dc6c71cb9c4482d9dc2361ca2de9122ac8d79ec753dd8f80701af82c1 |
|
MD5 | 8de4d16ccddafee1c9255ba495a862c2 |
|
BLAKE2b-256 | 850e8e976607af8549c97753089f5e70eaedd9fbe4074d10cf11c0412312a118 |