Crates.io | find_latest_nav |
lib.rs | find_latest_nav |
version | 0.1.3 |
source | src |
created_at | 2019-09-10 13:07:29.277398 |
updated_at | 2020-07-02 07:59:44.522948 |
description | find latest net-asset-value (NAV) for the given scheme code or ISIN code; the source data is taken from amfi website |
homepage | https://github.com/mohankumaranna/find_latest_nav |
repository | https://github.com/mohankumaranna/find_latest_nav |
max_upload_size | |
id | 163821 |
size | 1,785,275 |
Finds latest NAV for a given ISIN code or scheme code; in fact, it fetches entire list of latest NAV from https://www.amfiindia.com/; store it into a SQLite database; thereafter, for each request, shows only rows that are relevant to the given ISIN codes or Scheme Codes.
Developed with following goals in mind:
Learn Rust language
NAV list for a given ISIN codes rather than entire list found in amfiindia website; this in turn can slightly improve performance while opening along with mutual fund's tracking sheet; with this app, it loads only 10 to 20 rows, rather than entire list of approximately 5000 rows.
Clone or download this app
Edit Settings.toml for folder names, database name (yearly database), etc
Build the executable file using: $Cargo build --release
a) Run it as $ target/release/find_latest_nav "INF209K01YN0" (where "INF209K01YN0" is an ISIN code of a mutual fund), this gives following results:
latest NAVs are: [Record { scheme_code: 119550, isin_growth: "INF209K01YN0", isin_div_reinvestment: "-", scheme_name: "Aditya Birla Sun Life Banking & PSU Debt Fund- Direct Plan-Growth", net_asset_value: "254.3784", date: "23-Sep-2019", remarks: None, created_on: "2019-09-24 11:52:24.205286755 +05:30" }]
b) More than one ISIN code can be passed with comma, space, semicolon separator as $ target/release/find_latest_nav "INF209KA12Z1, INF209K01YN0" this gives result like:
latest NAVs are: [Record { scheme_code: 119551, isin_growth: "INF209KA12Z1", isin_div_reinvestment: "INF209KA13Z9", scheme_name: "Aditya Birla Sun Life Banking & PSU Debt Fund - Direct Plan-Dividend", net_asset_value: "150.1778", date: "23-Sep-2019", remarks: None, created_on: "2019-09-24 11:52:24.204577137 +05:30" }, Record { scheme_code: 119550, isin_growth: "INF209K01YN0", isin_div_reinvestment: "-", scheme_name: "Aditya Birla Sun Life Banking & PSU Debt Fund- Direct Plan-Growth", net_asset_value: "254.3784", date: "23-Sep-2019", remarks: None, created_on: "2019-09-24 11:52:24.205286755 +05:30" }]
Please refer: https://github.com/mohankumaranna/find_latest_nav_site
MIT