{
  "name": "Track multi-broker investment portfolio with Google Sheets and Telegram alerts",
  "nodes": [
    {
      "id": "6cc81650-0473-4b2a-bd23-abae6e3c81a7",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        -840,
        60
      ]
    },
    {
      "id": "a038f750-3464-4143-b8a7-e4d244c556c5",
      "name": "Get row(s) in sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -260,
        260
      ]
    },
    {
      "id": "7f066010-4fd1-4ccf-a407-05694051e4f7",
      "name": "Get row(s) in sheet2",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -260,
        -40
      ]
    },
    {
      "id": "1874c3d2-02e7-4faf-b592-af7c1b392d78",
      "name": "Switch",
      "type": "n8n-nodes-base.switch",
      "position": [
        -580,
        40
      ]
    },
    {
      "id": "e019c20d-4f7f-447a-9b24-0b3c7d1840d5",
      "name": "Aggregate",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        -40,
        260
      ]
    },
    {
      "id": "f8e95cdd-7020-4d9e-970f-ec9013be3268",
      "name": "Code",
      "type": "n8n-nodes-base.code",
      "position": [
        220,
        260
      ]
    },
    {
      "id": "c37ddc50-eec3-4a8e-a0b1-b5216f0dfe99",
      "name": "Code1",
      "type": "n8n-nodes-base.code",
      "position": [
        -40,
        -40
      ]
    },
    {
      "id": "61c27425-c7f1-44e2-b36a-386076e9abfd",
      "name": "Telegram Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -1300,
        60
      ]
    },
    {
      "id": "bc3603aa-cb9d-49f3-a9cb-83dd90b4d0b5",
      "name": "Broker PNL Update",
      "type": "n8n-nodes-base.telegram",
      "position": [
        180,
        -40
      ]
    },
    {
      "id": "61c9441a-f243-49ab-824f-2148d3d9c48f",
      "name": "Auto Update at 10AM and 4PM",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -560,
        260
      ]
    },
    {
      "id": "9d2f23f4-5371-45fb-8a03-f7d261f2a0dd",
      "name": "Edit Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        -1060,
        60
      ]
    },
    {
      "id": "32f61af1-faea-4148-adb9-fd00ec437810",
      "name": "Total PNL Update",
      "type": "n8n-nodes-base.telegram",
      "position": [
        440,
        260
      ]
    },
    {
      "id": "948fc47b-8d28-4358-9c69-bda130e026af",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2180,
        -340
      ],
      "parameters": {
        "width": 840,
        "height": 1520,
        "content": "## **All-in-One Portfolio Tracker & Telegram Finance Updates Workflow for n8n: Multi-Broker, Real-Time, Global 🚀**\n\n### Overview\n\nTake control of all your investments—across multiple brokers and platf"
      }
    },
    {
      "id": "90280429-7ef1-4fa2-b7dc-5a777faa0b91",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1320,
        -340
      ],
      "parameters": {
        "width": 780,
        "height": 300,
        "content": "\n### Easy Setup Steps\n\n1. **Copy the Template to Your n8n Instance**: Just import the provided workflow JSON.\n2. **Configure Your Google Sheet**:  \n   - List all your brokers/platforms as rows (US, EU"
      }
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code": {
      "main": [
        [
          {
            "node": "Total PNL Update",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code1": {
      "main": [
        [
          {
            "node": "Broker PNL Update",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch": {
      "main": [
        [
          {
            "node": "Get row(s) in sheet2",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get row(s) in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Broker PNL Update": {
      "main": [
        []
      ]
    },
    "Get row(s) in sheet": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in sheet2": {
      "main": [
        [
          {
            "node": "Code1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Auto Update at 10AM and 4PM": {
      "main": [
        [
          {
            "node": "Get row(s) in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}