Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // .sell gets the bids for the asks use .buy
- var price = $(".sell .book-vis-table .price");
- var tot = $(".sell .book-vis-table .depth-value-cml");
- var amt = $(".sell .book-vis-table .depth-value-amt");
- var csv = "AMOUNT;TOTAL;PRICE\n";
- var comma = ";";
- for (var index = 0; index < price.length; index++) {
- var priceText = price[index].textContent.trim();
- var totText = tot[index].textContent.trim();
- var amtText = amt[index].textContent.trim();
- csv += amtText + comma + totText + comma + priceText + "\n";
- }
- // if you're on chrome remove below
- copy($1);
Add Comment
Please, Sign In to add comment