Wondering what’s next for npm?Check out our public roadmap! »

nse-nmfTypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

nse-nmf

Utility functions to interact with NSE NMF XML-based APIs, https://www.nsenmf.com/

Installation

npm install --save nse-nmf

Usage

const nse = require('nse-nmf');

GetCustomers

nse.getCustomers({
  userId: "MFS*****", 
  password: "****", 
  brokerCode: "ARN-*****"
}).then((customers) => {
        console.log(customers.map((customer) => {
          return {
            customerId: customer.customerId,
            investorName: customer.investorName
          }
        });
});

GetCustomerDetails

nse.getCustomerDetails({
  userId: "MFS*****", 
  password: "****", 
  brokerCode: "ARN-*****"
}, "123412341234").then((customer) => {
    console.log(customer.customerId, customer.investorName, customer.dateOfBirth, customer.emailAddress, customer.mobileNo);
})

Keywords

Install

npm i nse-nmf

DownloadsWeekly Downloads

11

Version

1.1.1

License

ISC

Unpacked Size

8.72 kB

Total Files

6

Last publish

Collaborators

  • avatar