function eodRealTimeRequest(socket) {
  fetch('https://eodhistoricaldata.com/api/real-time/EUR.FOREX?api_token=anychart-5b084a5bd99e75.54278180&fmt=json')
    .then(res => res.json())
    .then(data => socket.emit('realTimeData', data))
    .catch(err => console.log(err));
}
/** 
 * get real-time data from EOD and send it to client
 * @param {*} socket socket.io client
 */
get real-time data from EOD and send it to client
@param {*} socket socket.io client
get real - time data from EOD and send it to client @param { * } socket socket . io client
function eodRealTimeRequest(socket) {
  fetch('https://eodhistoricaldata.com/api/real-time/EUR.FOREX?api_token=anychart-5b084a5bd99e75.54278180&fmt=json')
    .then(res => res.json())
    .then(data => socket.emit('realTimeData', data))
    .catch(err => console.log(err));
}
function eodRealTimeRequest ( socket ) { fetch ( 'https://eodhistoricaldata.com/api/real-time/EUR.FOREX?api_token=anychart-5b084a5bd99e75.54278180&fmt=json' ) . then ( res => res . json ( ) ) . then ( data => socket . emit ( 'realTimeData' , data ) ) . catch ( err => console . log ( err ) ) ; }
get real-time data from EOD and send it to client
 @param {*} socket socket.io client
get real - time data from EOD and send it to client @param { * } socket socket . io client