Track portfolio performance and risk using Google Sheets and Alpha Vantage
Ready for 3.0What this workflow does
This workflow has 8 nodes and runs on a schedule (every 23 hours) (plus 1 other trigger). Along the way it connects Google Sheets and Gmail. It also calls alphavantage.co over HTTP.
How it runs
Trigger: On a schedule (every 23 hours) (plus 1 other trigger).
- Read portfolio holdings (Google Sheets): uses Google Sheets
- Send error notification email (Gmail): uses Gmail
- Process each stock (Loop Over Items (Split in Batches)): loops over the items in batches
- Fetch daily stock prices (HTTP Request): calls alphavantage.co
- Calculate returns and risk metrics (Code): runs custom JavaScript code
- Update portfolio performance (Google Sheets): append or update
Services it uses
Other Google Sheets + Gmail templates (2,102)
HTTP calls to: alphavantage.co
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (7)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Google Sheets
n8n-nodes-base.googleSheets - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Error Trigger
n8n-nodes-base.errorTrigger - Gmail
n8n-nodes-base.gmail
From the author
📄 Description This workflow helps users track and understand the performance of their stock portfolio in an automated and structured way. It reads portfolio holdings from Google Sheets, fetches the latest market prices, calculates key performance metrics,…