Skip to content

Instantly share code, notes, and snippets.

@krejdster
krejdster / bitbay_transactions_pcc.js
Last active May 12, 2018 14:48
[Bitbay - transactions PCC]
var sumArray = [];
var transactionsInterval = setInterval(function() {
// Get all buy (bid) transactions
$('.bid').closest('.historyItem-wrapper').find('strong#transaction-value').each(function(idx, record) {
var price = $(record).text().replace(/pln/ig, '').replace(/ /ig, '').trim();
price = parseFloat(price);
sumArray.push(price);