Skip to content

Instantly share code, notes, and snippets.

@frozeman
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frozeman/13317623f84f35bcd620 to your computer and use it in GitHub Desktop.
Save frozeman/13317623f84f35bcd620 to your computer and use it in GitHub Desktop.
Get the order sum in cryptsy.com
// in the console, to get the BUY/SELL order sum type:
var until = 9999; // until order
var sum = 0; $('#sellorderlist tr:lt('+until+')').each(function(){ sum += Number($(this).find('td:eq(2)').text())}); console.log('SEll: '+sum+' BTC by '+$('#sellorderlist tr').length+' orders');
var sum = 0; $('#buyorderlist tr:lt('+until+')').each(function(){ sum += Number($(this).find('td:eq(2)').text())}); console.log('BUY: '+sum+' BTC by '+$('#buyorderlist tr').length+' orders');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment