Automate Stock Portfolio Updates with n8n and Baserow

This workflow automatically pulls investment stock data from Tradegate, updates your Baserow portfolio, and sends you a detailed HTML email report. Save time, avoid manual errors, and get up-to-date portfolio insights every weekday morning with n8n automation.
baserow
httpRequest
sendGrid
+5
Workflow Identifier: 1439
NODES in Use: Manual Trigger, Cron, Baserow, HTTP Request, HTML Extract, Set, Function, SendGrid

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

What This Automation Does

This workflow reads stock data from a Baserow database.

It gets live prices from Tradegate for each stock.

It calculates current stock values and gains or losses.

It builds a clear HTML table with all data.

It emails this table via SendGrid every weekday morning.


Inputs

  • Baserow Database: Contains stocks with Name, ISIN, Count, Purchase Price.
  • Tradegate Website: Provides live bid and ask prices via HTTP request using ISIN.

Processing Steps

  • Fetch stocks from Baserow with API.
  • Send HTTP requests to Tradegate for each stock’s ISIN.
  • Extract live prices and info using HTML Extract with CSS selectors.
  • Convert price format to numbers and calculate current value per stock.
  • Calculate gain/loss values and percentages based on purchase price.
  • Create a styled HTML report with the table and totals.

Outputs

  • Formatted HTML email report summarizing the portfolio.
  • Email sent via SendGrid to a chosen recipient.

Who Should Use This Workflow

This helps anyone manually tracking stock portfolios and price updates.

It suits people who want daily email summaries without opening multiple sites.

No coding needed if using n8n; just connect tools and run.


Tools / Services Used

  • n8n: Automates the entire process with nodes and workflows.
  • Baserow: Stores portfolio data accessible by API.
  • Tradegate HTTP Requests: Fetch live market data per ISIN.
  • HTML Extract Node: Parses necessary stock prices from HTML content.
  • SendGrid: Sends the final report as an email.

Beginner Step-By-Step: How to Use This Workflow in n8n

Download and Import Workflow

  1. Download the workflow file by using the Download button on this page.
  2. Open your n8n editor (cloud or self-host n8n).
  3. Click on “Import from File” and select the downloaded workflow JSON file.

Configure Credentials and IDs

  1. Add or update Baserow API credentials inside the Baserow node.
  2. Make sure Database ID and Table ID match your portfolio data.
  3. Enter SendGrid API Key in the SendGrid node.
  4. Edit recipient and sender email addresses as needed.

Check and Test

  1. Run the workflow manually using the Manual Trigger node to confirm proper operation.
  2. Make sure the email arrives correctly formatted with updated stock data.

Activate the Workflow

  1. Enable the Cron node to run the report automatically Monday to Saturday at 7:15 AM.
  2. Monitor workflow executions through n8n to catch any errors early.
  3. Adjust settings as needed, then leave running for automatic updates.

Edge Cases and Failures

  • Baserow Returns No Data: Check database/table IDs and API key validity.
  • Tradegate Data Not Loading: Validate ISIN mapping; verify website availability.
  • HTML Extract Fails: Webpage structure may have changed; update CSS selectors accordingly.
  • Email Failures: Check SendGrid API Key and sender/recipient addresses.

Customization Ideas

  • Add more columns and calculations from Baserow e.g. Dividend Yield or Sector.
  • Change email schedule by editing the Cron node timing.
  • Swap SendGrid node for SMTP or Gmail nodes if preferred.
  • Build SMS alerts or integrate with portfolio tracking tools.

Summary / Results

✓ Saves you 5 hours every week by automating portfolio updates email report.

✓ Removes manual errors in price and stock calculations.

✓ Gives fast access to clear daily investment summaries by email.


Frequently Asked Questions

It sends HTTP requests with the stock ISIN to Tradegate, then extracts live bid and ask prices using an HTML Extract node with CSS selectors.
The Baserow node will return no data, and the workflow cannot fetch stock info. Double-check database and table IDs and update API keys.
Yes, the schedule is controlled by the Cron node. Change its cron expression to adjust days or times for report emails.
Yes, the SendGrid node can be replaced with SMTP or Gmail nodes to send emails, depending on user preference.

Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free