lib/csv.js
/**
 * transform exchangeList to csv string format
 * @param {object} exchangeList Data structure that stores many exchanges info
 * @return {string} exchangeList in csv string format
 */
transform exchangeList to csv string format
@param {object} exchangeList Data structure that stores many exchanges info
@return {string} exchangeList in csv string format
transform exchangeList to csv string format @param { object } exchangeList Data structure that stores many exchanges info @return { string } exchangeList in csv string format
function exchangeListToCsvString(exchangeList) {
  var string = '';
  string = getExchangeHeaderCsvString();
  for (var i = 0; i < exchangeList.data.length; i++) {
    string += getExchangeToCsvString(exchangeList.data[i]);
  }
  return string;
}
function exchangeListToCsvString ( exchangeList ) { var string = '' ; string = getExchangeHeaderCsvString ( ) ; for ( var i = 0 ; i < exchangeList . data . length ; i ++ ) { string += getExchangeToCsvString ( exchangeList . data [ i ] ) ; } return string ; }
transform exchangeList to csv string format
 @param {object} exchangeList Data structure that stores many exchanges info
 @return {string} exchangeList in csv string format
transform exchangeList to csv string format @param { object } exchangeList Data structure that stores many exchanges info @return { string } exchangeList in csv string format