Skip to main content

Track investments using Baserow and n8n

Workflow preview

Workflow preview
100%
Track investments using Baserow and n8n preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This workflow uses a number of technologies to track the value of ETFs, stocks and other exchange traded products: Baserow: To keep track of our investments n8n’s Cron node: ...

Best for

  • Crypto Trading automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.cron, n8n-nodes-base.baserow, n8n-nodes-base.httprequest, n8n-nodes-base.htmlextract, n8n-nodes-base.function, n8n-nodes-base.set, n8n-nodes-base.sendgrid

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Tom.

Original n8n.io source

1.1 Workflow description

Title
Track investments using Baserow and n8n
Workflow name
Track investments using Baserow and n8n

This workflow uses a number of technologies to track the value of ETFs, stocks and other exchange-traded products:

  • Baserow: To keep track of our investments
  • n8n’s Cron node: To trigger the workflow compiling our daily morning briefing
  • Webscraping: The HTTP Request & HTML Extract nodes to fetch up-to-date prices from the relevant stock exchange and structure this infromation
  • Javascript: We’ll use the Function node to build a custom HTML body with all the relevant information
  • Sendgrid: The Email Service Provider in this workflow to send out our email

Thanks to n8n, the steps in this workflow can easily be changed. Not a Sendgrid user? Simply remove the Sendgrid node and add a Gmail node instead. The stock exchange has a REST API? Just throw away the HTML Extract node.

Here’s how it works:

Data Source

In this scenario, our data source is Baserow. In our table, we’ll track all information needed to identify each investment product:

We have two text type columns (Name and ISIN) as well as two number type columns (Count and Purchase Price).

Workflow

Nodes

1. Cron

The Cron node will trigger our workflow to run each work day in the morning hours.

2. Baserow

The Baserow node will fetch our investments from the database table shown above.

3. HTTP Request

Using the HTTP Request node we can fetch live data from the stock exchange of our choice based on the ISIN. This example uses Tradegate, which is used by many German fintechs. The basic approach should also work for other exchanges, as long as they provide the required data to the public.

4. HTML Extract

Since our HTTP Request node fetches full websites, we’re using the HTML Extract node to extract the information we’re looking for from each website. If an exchange other than Tradegate is used, the selectors used in this node will most likely need to be updated.

5. + 6. Set

The Set nodes helps with setting the exact columns we’ll use in our table. In this case we’re first formatting the results from our exchange, then calculate the changes based on the purchase price.

7. Function

Here were using a bit of Javascript magic to build an HTML email. This is where any changes to the email content would have to be made.

8. Sendgrid

Finally we send out the email built in the previous step. This is where you can configure sender and recipients.

Result

The basic email generated by this workflow will look like so:

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - On clicking 'execute'

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 2 - Cron

Type / Role
n8n-nodes-base.cron - cron
Config choices
Version 1

Block 3 - Baserow

Type / Role
n8n-nodes-base.baserow - baserow
Config choices
Version 1

Block 4 - Fetch tradegate stock page

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 1

Block 5 - Parse tradegate stock page

Type / Role
n8n-nodes-base.htmlExtract - htmlExtract
Config choices
Version 1

Block 6 - Build HTML

Type / Role
n8n-nodes-base.function - function
Config choices
Version 1

Block 7 - Format result

Type / Role
n8n-nodes-base.set - set
Config choices
Version 1

Block 8 - Calculate change

Type / Role
n8n-nodes-base.set - set
Config choices
Version 1

Block 9 - SendGrid

Type / Role
n8n-nodes-base.sendGrid - sendGrid
Config choices
Version 1

3. Summary Table

Workflow Track investments using Baserow and n8n
Complexity intermediate
Nodes 9
Categories Crypto Trading
Author Tom
Published 08 Sept 2022

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/1785/1785.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Track investments using Baserow and n8n do?

This workflow uses a number of technologies to track the value of ETFs, stocks and other exchange traded products: Baserow: To keep track of our investments n8n’s Cron node: ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Crypto Trading use case.