Guest User

Untitled

a guest
Dec 15th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. (function loop(){
  2. window.gem = window.gem || $(".header-market-link[href*=gem] .price-right").get()[0]
  3. window.gdax = window.gdax || $(".header-market-link[href*=gdax] .price-right").get()[0]
  4.  
  5. let gemPrice = parseFloat(gem.innerText);
  6. let gdaxPrice = parseFloat(gdax.innerText);
  7. console.log(Math.round(gdaxPrice - gemPrice), Math.round(gemPrice/gdaxPrice * 1000) / 1000)
  8. setTimeout(loop, 200)
  9. })()
Add Comment
Please, Sign In to add comment