Skip to content

Commit

Permalink
Additional cleanup and refinement based on #18
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerard Moroney committed Jan 5, 2018
1 parent 64fb7c1 commit 1a05a86
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
Binary file removed src/.DS_Store
Binary file not shown.
1 change: 0 additions & 1 deletion src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
}

Expand Down
5 changes: 2 additions & 3 deletions src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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) )
{
Expand Down

0 comments on commit 1a05a86

Please sign in to comment.