Open dckc opened 2 years ago
txInfo = tr => ({ date: tr.getAttribute('aria-label').replace(' transaction details', ''), title: tr.querySelector('*[data-element="TitleWrapper"] span').textContent, status: tr.querySelector('*[data-element="TitleWrapper"] p').textContent, amount: Number(tr.querySelector('*[data-element="AmountContainer"]').textContent.split(' ')[0].replace('−', '-').replace('+', '').replace(',', '')) })
txs = [...tis].map(txInfo)
JSON.stringify(txs)
I downloaded a "complete" transaction report, but the transactions don't add up to the balance. It seems to be missing "transfers".
But I seem to be able to compute the balance using a DOM query:
To get associated transaction info, I'm starting with...