Fetch EU and UK dividend and split history by ISIN: a short integration sketch
This is a short integration sketch, not an in-depth tutorial. EU Dividends & Splits by ISIN is an Apify Actor that takes an ISIN and returns dividend and split records. Actor page: https://apify.com/carabain-digital/eu-dividends One caveat before the code. I only have the Actor's store listing, not its input schema or a sample output. So the field names in the code below ( isins , exDate , and so…
This integration sketch outlines an Apify Actor called EU Dividends & Splits by ISIN. The actor takes an ISIN and returns dividend and split records. The output includes fields like ex-date, pay date, declaration date, type, status, amount, and currency. The data is sourced from Yahoo Finance, Dividendmax, and Borsa Italiana. The actor is built for portfolio trackers and costs $1 per 1,000 records on the FREE tier.
To use the actor, you need an Apify account and an API token, which you should store in an environment variable (APIFY_TOKEN). In Node.js, import the ApifyClient, create a new instance with your token, and set up placeholder input with an ISIN. Call the actor using client.actor() and call() methods, then iterate through the returned items to print them.
In Python, use the apify-client library to interact with the actor. Import the necessary modules, create a client with your API token, set up placeholder input with an ISIN, and call the actor using client.actor(). Iterate through the returned items using client.dataset().iterate_items() and print them.
You can map the records to your own table, using fields like ex-date, pay date, currency, and so on. Create a function like toLedgerRow() to format each item as a ledger row. Then, map the items using this function to get your desired table structure. Since each record has a type and status, you can also separate dividends from splits or filter on status.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to