import fs from 'fs';

let weatherKey;
fs.readFile(__dirname + '/weather-key', (err, data) => {
  if (err){
    const error = "No weather-key provided. Please have weather-key in the keys folder";
    throw error;
  }
  weatherKey = data.toString().trim();
});

export function getWeatherUrl(lat, lng){
  return `http://api.openweathermap.org/data/2.5/weather?lat=${lat}&lon=${lng}&appid=${weatherKey}`;
}

export function getStockUrl(nse) {
  return `http://www.google.com/finance/info?q=${nse}`;
}

@@ -455,37 +455,64 @@
 p://
-www.google.com/finance/info?q
+dev.markitondemand.com/MODApis/Api/v2/Quote/jsonp?symbol
 =$%7Bn

Update api endpoint