function eodHistoricalRequest(socket) {
  fetch('https://eodhistoricaldata.com/api/eod/EUR.FOREX?api_token=OeAFFmMliFG5orCUuwAKQ8l4WWFQ67YX&period=d')
    .then(res => res.text())
    .then(csv => papa.parse(csv, {header: true}).data)
    .then(data => {
      socket.emit('loadData', data);
    })
    .catch(err => console.log(err));
}
/**
 * get historical data from EOD and send it to client
 * @param {*} socket socket.io client
 */
get historical data from EOD and send it to client
@param {*} socket socket.io client
get historical data from EOD and send it to client @param { * } socket socket . io client
function eodHistoricalRequest(socket) {
  fetch('https://eodhistoricaldata.com/api/eod/EUR.FOREX?api_token=OeAFFmMliFG5orCUuwAKQ8l4WWFQ67YX&period=d')
    .then(res => res.text())
    .then(csv => papa.parse(csv, {header: true}).data)
    .then(data => {
      socket.emit('loadData', data);
    })
    .catch(err => console.log(err));
}
function eodHistoricalRequest ( socket ) { fetch ( 'https://eodhistoricaldata.com/api/eod/EUR.FOREX?api_token=OeAFFmMliFG5orCUuwAKQ8l4WWFQ67YX&period=d' ) . then ( res => res . text ( ) ) . then ( csv => papa . parse ( csv , { header : true } ) . data ) . then ( data => { socket . emit ( 'loadData' , data ) ; } ) . catch ( err => console . log ( err ) ) ; }
get historical data from EOD and send it to client
 @param {*} socket socket.io client
get historical data from EOD and send it to client @param { * } socket socket . io client