diff --git a/src/.DS_Store b/src/.DS_Store deleted file mode 100644 index 5008ddf..0000000 Binary files a/src/.DS_Store and /dev/null differ diff --git a/src/client.js b/src/client.js index 041b819..118d4db 100644 --- a/src/client.js +++ b/src/client.js @@ -47,7 +47,6 @@ function clientSubscribe(conn) { } delta = bta.sum - sta.sum; console.log('[R]',msg.tr_id,msg.tr_side,msg.tr_amount,msg.tr_price,msg.tr_timestamp,'[BS]',bta.count,bta.avg,bta.median,'[SS]',sta.count,sta.avg,sta.median, '[DS]', delta.toFixed(0)); - //console.log('[Record]',msg.tr_id,msg.tr_side,msg.tr_amount,msg.tr_price,msg.tr_timestamp); }); } diff --git a/src/server.js b/src/server.js index ef0ce90..2227aea 100644 --- a/src/server.js +++ b/src/server.js @@ -34,7 +34,7 @@ function main () // Only process configurationg for exchange if it is active if ( exchange_active == 'Y') { - // xxx + // Array to hold list of symbols; works for BITREX not sure about others. var exchange_symbol_list = []; // Loop through config for exchange: connect, transform and create Redis pub/sub @@ -56,10 +56,9 @@ function main () } else if ( exchange_name == 'BITSTAMP' ) { exFn.processBITSTAMP(exchange_name, exchange_wss, exchange_symbol ); } else if ( exchange_name == 'BINANCE' ) { - //exFn.processBINANCE( ...args ); exFn.processBINANCE(exchange_name, exchange_wss, exchange_symbol ); } else if ( exchange_name == 'BITTREX' ) { - //concatenate all of the symbols together because thats the way this API works for some reason + // We will send all symbols in one request for BITTREX because it allows it and its more efficient. exchange_symbol_list.push(exchange_symbol); if ( j == ( exchange_symbol_array.length - 1) ) {