find_latest_nav

Crates.iofind_latest_nav
lib.rsfind_latest_nav
version0.1.3
sourcesrc
created_at2019-09-10 13:07:29.277398
updated_at2020-07-02 07:59:44.522948
descriptionfind latest net-asset-value (NAV) for the given scheme code or ISIN code; the source data is taken from amfi website
homepagehttps://github.com/mohankumaranna/find_latest_nav
repositoryhttps://github.com/mohankumaranna/find_latest_nav
max_upload_size
id163821
size1,785,275
Mohan (mohankumaranna)

documentation

README

find_latest_nav

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.

Goals

Developed with following goals in mind:

  1. Learn Rust language

  2. 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.

How to use it (in command line)

  1. Clone or download this app

  2. Edit Settings.toml for folder names, database name (yearly database), etc

  3. Build the executable file using: $Cargo build --release

  4. 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" }]

How to use it (in a browser)

Please refer: https://github.com/mohankumaranna/find_latest_nav_site

License

MIT

Commit count: 0

cargo fmt