/amfi

library to fetch latest NAV data from AMFI

Primary LanguageRustApache License 2.0Apache-2.0

amfi

amfi: library to fetch latest NAV data from AMFI

It aims to extract as much information from AMFI latest nav public data as possible.

This library can also parse data mirrors and local file copies. See nav_from_url and nav_from_file.

Basic Usage

let navs = amfi::daily_nav();
for item in items {
    match item {
        Err(error) => warn!("{}", error),
        Ok(ref record) => println!("{:>10} {} {}", record.nav, record.date, record.name),
    }
}

Cargo features

Enable serde feature for serialization/deserialization support.

License: MIT OR Apache-2.0