Source: index.js

var API = require('./service/API');

/**
 * API returning top turnovers of day
 * @returns {*}
 */
function getTopTurnOvers() {
  return API.getTopTurnOvers();
}


/**
 * API returning top indices
 * @returns {*}
 */
function getIndices() {
  return API.getIndices();
}

function getIndicesInfo(symbol) {
  return API.getIndicesInfo(symbol);
}

/**
 * API returning top Gainers of day
 * @returns {*}
 */
function getGainers() {
  return API.getGainers();
}


/**
 * API returning top Losers of day
 * @returns {*}
 */
function getLosers() {
  return API.getLosers();
}


/**
 *  API returning Daily Stocks data of company
 * @param securityCode {number} BSE, company securityCode value
 * @returns {*}
 */
function getDailyStocks(securityCode) {
  return API.getDailyStocks(securityCode);
}


/**
 *  API returning Company Info
 * @param securityCode {number} BSE, company securityCode value
 * @returns {*}
 */
function getCompanyInfo(securityCode) {
  return API.getCompanyInfo(securityCode);
}


/**
 *  API returning Company Info
 * @param securityCode {number} BSE, company securityCode value
 * @param flag {enum}, oneOf [1D,5D,1M,3M,6M,12M]
 * @returns {*}
 */
function getDayStocks(securityCode, flag) {
  return API.getDayStocks(securityCode, flag);
}


var bse = {
  getTopTurnOvers: getTopTurnOvers,
  getIndices: getIndices,
  getGainers: getGainers,
  getLosers: getLosers,
  getDailyStocks: getDailyStocks,
  getCompanyInfo: getCompanyInfo,
  getDayStocks: getDayStocks,
  getIndicesInfo: getIndicesInfo
};

module.exports = bse;