mutualfund_info 0.0.1 copy "mutualfund_info: ^0.0.1" to clipboard
mutualfund_info: ^0.0.1 copied to clipboard

Flutter Package to get the current(Today's) NAVs of Mutual Funds in India.

mutualfund_info #

Flutter Package to get the current(Today's) NAVs of Mutual Funds in India This package supports iOS, Android, MacOS and web.

The data is being fetched from Association of Mutual Funds India (AMFI)'s portal https://www.amfiindia.com/

Usage #

import 'package:../mutualfund_info/mutualfund_info.dart' as mfinfo;

Get all Navs . This returns all the Mutual Funds' Navs in an array format #

This will be an array of objects of all the Schemes in Indian MF

  final mfInfo = mfinfo.MutualFundsInfo();
    try {
      List<Map<String, String>> arr = await mfInfo.getAllNavs();
      if (arr.isNotEmpty) {
        print(arr[0]); // add your code here
      }
    } catch (e) {
      print("Error Occurred: $e");
    }

Sample Output of the NAV Object Array

[
  {
    'Scheme Code': '116174',
    'ISIN Div Payout/ ISIN Growth': 'INF109K01YE1',
    'ISIN Div Reinvestment': 'INF109K01YD3',
    'Scheme Name': 'ICICI Prudential Banking and PSU Debt Fund - Quarterly IDCW',
    'Net Asset Value': '10.8471',
    Date: '11-Feb-2025',
    'AMC Name': 'ICICI Prudential Mutual Fund',
    'Scheme Type': 'Open Ended Schemes(Debt Scheme - Banking and PSU Fund)'
  },
  ....
]

Fetch Nav of a particular Mutual Fund By it's Scheme Name #

You can fetch a MF's Nav by its name as below by using the fetchNavBySchemeName method.

  final mfInfo = mfinfo.MutualFundsInfo();

  List<Map<String, String>> arr = await mfInfo.fetchNavBySchemeName(
      "Aditya Birla Sun Life Banking & PSU Debt Fund  - DIRECT - IDCW");
  if (arr.isNotEmpty) {
    print(arr[0]); // add your code here
  }

  // you can use with try catch block as well, as the example above


// The sample will be something similar to
[{
  'Scheme Code': '119551',
  'ISIN Div Payout/ ISIN Growth': 'INF209KA12Z1',
  'ISIN Div Reinvestment': 'INF209KA13Z9',
  'Scheme Name': 'Aditya Birla Sun Life Banking & PSU Debt Fund  - DIRECT - IDCW',
  'Net Asset Value': '154.6417',
  Date: '21-May-2021',
  'AMC Name': 'Aditya Birla Sun Life Mutual Fund',
  'Scheme Type': 'Open Ended Schemes(Debt Scheme - Banking and PSU Fund)'
}]

Fetch Nav of a particular Mutual Fund By it's Scheme Code #

You can fetch a MF's Navby its code as below by using the fetchNavBySchemeCode method.

  final mfInfo = mfinfo.MutualFundsInfo();
  List<Map<String, String>> arr = await mfInfo.fetchNavBySchemeCode('119551');
   if (arr.isNotEmpty) {
      print(arr); // add your code here
    } else {
      print("No Mutual Fund found with the given Scheme Code.");
    }

Additional information #

This package supports iOS, Android, macos and web. I've not tested this for the windows, but it should, will update once I test

1
likes
0
points
20
downloads

Publisher

verified publisherkumarsundaram.com

Weekly Downloads

Flutter Package to get the current(Today's) NAVs of Mutual Funds in India.

Homepage
Repository (GitHub)
View/report issues

Topics

#mutualfund #mf #mfindia #nav

License

unknown (license)

Dependencies

flutter, http

More

Packages that depend on mutualfund_info