README
niftyfifty
A module that gives minute by minute data of NIFTY 50 companies for research.
HOW TO INSTALL
npm install niftyfifty --save
HOW TO USE
var niftyfifty = require('niftyfifty');
//use this to get data in form of an array
niftyfifty.fetchData("BHEL", -330, function(err, data){
if(err){
console.log("Error is ", err);
}else{
console.log("Data is ", data);
}
})
//use this to save the data as a csv in the folder named files in the same directory
niftyfifty.saveDataAsCsv("BHEL", -330, function(err, created){
if(err){
console.log(err);
}else{
console.log(created);
}
})
First argument is company symbol, second argument is timezone, -330 is for India.
Companies symbol list to be used as first argument is as under:
- NIFTY 50 for Nifty Fifty
- BANKNIFTY for Bank Nifty
- ADANIPORTS for Adani Ports & SEZ Limited
- ASIANPAINT for Asian Paints Ltd
- AXISBANK for Axis Bank
- BAJAJ-AUTO for Bajaj Auto
- BAJFINANCE for Bajaj Finance
- BAJAJFINSV for Bajaj Finserv
- BHARTIARTL for Bharti Airtel
- BPCL for Bharat Petroleum Corporation Limited
- CIPLA for Cipla
- COALINDIA for Coal India
- DRREDDY for Dr. Reddy's Laboratories
- EICHERMOT for Eicher Motors
- GAIL for Gas Authority of India
- GRASIM for Grasim Industries
- HCLTECH for HCL Techniologies
- HDFC for HDFC
- HDFCBANK for HDFC Bank
- HEROMOTOCO for Hero Moto Corp
- HINDALCO for Hindalco Industries
- HINDUNILVR for Hindustan Uniliver
- HINDPETRO for Hindpetro Energy
- ICICIBANK for ICICI Bank
- IBULHSGFIN for Indiabulls Housing Finance
- INDUSINDBK for IndusInd Bank
- INFY for Infosys
- IOC for Indian Oil Corporation
- ITC for ITC Limited
- KOTAKBANK for Kotak Bank
- LT for Larsen & Toubro
- LUPIN for Lupin Limited
- M&M for Mahindra and Mahindra
- MARUTI for Maruti Suzuki
- NTPC for NTPC Limited
- ONGC for ONGC Energy
- POWERGRID for PowerGrid Corporation of India
- RELIANCE for Reliance Industries
- SBIN for State Bank of India
- SUNPHARMA for Sun Pharmaceutical
- TCS for Tata Consultancy Services
- TATAMOTORS for Tata Motors
- TATASTEEL for Tata Steel
- TECHM for Tech Mahindra
- TITAN for Titan Company
- ULTRACEMCO for UltraTech Cement
- UPL for United Phosphorus Limited
- VEDL for Vedanta
- WIPRO for Wipro
- YESBANK for Yes Bank
- ZEEL for Zee Entertainment Enterprises