The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"name": "Compute Sector Heatmap",
"nodes": [
{
"parameters": {
"triggerTimes": {
"item": [
{
"hour": 0,
"minutes": 30
}
]
}
},
"id": "Cron",
"name": "Cron Trigger",
"type": "n8n-nodes-base.cron",
"typeVersion": 1
},
{
"parameters": {
"operation": "executeQuery",
"query": "DELETE FROM sector_heatmap WHERE as_of_date = CURRENT_DATE;"
},
"id": "Clear Today",
"name": "Clear Today",
"type": "n8n-nodes-base.postgres",
"typeVersion": 1,
"credentials": {
"postgres": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"operation": "executeQuery",
"query": "INSERT INTO sector_heatmap (sector_norm, as_of_date, score, rsi, change_pct, volspike)\nSELECT\n sector,\n CURRENT_DATE,\n AVG(score) AS score,\n AVG(rsi) AS rsi,\n AVG(changePct) AS change_pct,\n AVG(volSpike) AS volspike\nFROM bullish_detail_flat\nGROUP BY sector;"
},
"id": "Insert Heatmap",
"name": "Insert Heatmap",
"type": "n8n-nodes-base.postgres",
"typeVersion": 1,
"credentials": {
"postgres": {
"name": "<your credential>"
}
}
}
],
"connections": {
"Clear Today": {
"main": [
[
{
"node": "Insert Heatmap",
"type": "main",
"index": 0
}
]
]
},
"Cron Trigger": {
"main": [
[
{
"node": "Clear Today",
"type": "main",
"index": 0
}
]
]
}
}
}
Credentials you'll need
Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.
postgres
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Compute Sector Heatmap. Uses postgres. Scheduled trigger; 3 nodes.
Source: https://github.com/featherduino/micro-radar-app/blob/6fe2c8b04cdb42acb826028b9cb2b5f2fc55c8a0/n8n-workflows/calc-sector-heatmap.json — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
BTC_Poll. Uses start, httpRequest, postgres. Scheduled trigger; 5 nodes.
Recordatorio de Citas - 24 horas antes. Uses postgres, emailSend, httpRequest. Scheduled trigger; 5 nodes.
QuepasaAutomatic. Uses postgres. Scheduled trigger; 5 nodes.
Project Genji - Complete Data Pipeline. Uses schedule, executeCommand, postgres. Scheduled trigger; 4 nodes.