// In this example the callback assumes page.evaluate is provided by your browser // automation framework. constfidelity = newFidelity(async (fn, ...args) =>page.evaluate(fn, ...args));
// Get transactions for specific accounts and date range consttransactions = awaitfidelity.getTransactions( ["123456789", "987654321"], newDate(2024, 0, 1), newDate(2024, 0, 31) );
for (consttoftransactions) { console.log(`${t.date.toISOString().split('T')[0]}\t$${t.amount}\t${t.description}`); }
Retrieve Fidelity transaction data via fetch calls to fidelity.com.
Example
See fidelity-example.ts for a working example.