Last active
August 29, 2015 14:04
-
-
Save frozeman/13317623f84f35bcd620 to your computer and use it in GitHub Desktop.
Get the order sum in cryptsy.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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