niftyfifty

Nifty, Data, Finance

Usage no npm install needed!

<script type="module">
  import niftyfifty from 'https://cdn.skypack.dev/niftyfifty';
</script>

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:

  1. NIFTY 50 for Nifty Fifty
  2. BANKNIFTY for Bank Nifty
  3. ADANIPORTS for Adani Ports & SEZ Limited
  4. ASIANPAINT for Asian Paints Ltd
  5. AXISBANK for Axis Bank
  6. BAJAJ-AUTO for Bajaj Auto
  7. BAJFINANCE for Bajaj Finance
  8. BAJAJFINSV for Bajaj Finserv
  9. BHARTIARTL for Bharti Airtel
  10. BPCL for Bharat Petroleum Corporation Limited
  11. CIPLA for Cipla
  12. COALINDIA for Coal India
  13. DRREDDY for Dr. Reddy's Laboratories
  14. EICHERMOT for Eicher Motors
  15. GAIL for Gas Authority of India
  16. GRASIM for Grasim Industries
  17. HCLTECH for HCL Techniologies
  18. HDFC for HDFC
  19. HDFCBANK for HDFC Bank
  20. HEROMOTOCO for Hero Moto Corp
  21. HINDALCO for Hindalco Industries
  22. HINDUNILVR for Hindustan Uniliver
  23. HINDPETRO for Hindpetro Energy
  24. ICICIBANK for ICICI Bank
  25. IBULHSGFIN for Indiabulls Housing Finance
  26. INDUSINDBK for IndusInd Bank
  27. INFY for Infosys
  28. IOC for Indian Oil Corporation
  29. ITC for ITC Limited
  30. KOTAKBANK for Kotak Bank
  31. LT for Larsen & Toubro
  32. LUPIN for Lupin Limited
  33. M&M for Mahindra and Mahindra
  34. MARUTI for Maruti Suzuki
  35. NTPC for NTPC Limited
  36. ONGC for ONGC Energy
  37. POWERGRID for PowerGrid Corporation of India
  38. RELIANCE for Reliance Industries
  39. SBIN for State Bank of India
  40. SUNPHARMA for Sun Pharmaceutical
  41. TCS for Tata Consultancy Services
  42. TATAMOTORS for Tata Motors
  43. TATASTEEL for Tata Steel
  44. TECHM for Tech Mahindra
  45. TITAN for Titan Company
  46. ULTRACEMCO for UltraTech Cement
  47. UPL for United Phosphorus Limited
  48. VEDL for Vedanta
  49. WIPRO for Wipro
  50. YESBANK for Yes Bank
  51. ZEEL for Zee Entertainment Enterprises