Guest User

Untitled

a guest
Mar 24th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. // .sell gets the bids for the asks use .buy
  2. var price = $(".sell .book-vis-table .price");
  3. var tot = $(".sell .book-vis-table .depth-value-cml");
  4. var amt = $(".sell .book-vis-table .depth-value-amt");
  5.  
  6. var csv = "AMOUNT;TOTAL;PRICE\n";
  7. var comma = ";";
  8. for (var index = 0; index < price.length; index++) {
  9. var priceText = price[index].textContent.trim();
  10. var totText = tot[index].textContent.trim();
  11. var amtText = amt[index].textContent.trim();
  12. csv += amtText + comma + totText + comma + priceText + "\n";
  13. }
  14.  
  15. // if you're on chrome remove below
  16. copy($1);
Add Comment
Please, Sign In to add comment