{"product_id":"okx-spot-dca-order-monitor-telegram-alerts-n8n-workflow","title":"OKX Spot DCA Order Monitor + Telegram Alerts (n8n Workflow)","description":"\u003ch3\u003eOKX Spot DCA order alerts—automatically monitored every minute and sent to Telegram\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow watches your \u003cstrong\u003eOKX Spot DCA bots\u003c\/strong\u003e in real time (scheduled every minute), detects newly filled DCA orders (initial, safety, and take-profit), calculates cycle profit for completed cycles, and sends clean, formatted \u003cstrong\u003eTelegram notifications\u003c\/strong\u003e—with built-in deduplication to prevent repeat alerts.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRuns every minute\u003c\/strong\u003e using a Schedule Trigger.\u003c\/li\u003e\n  \u003cli\u003eUses an \u003cstrong\u003eHTTP Request\u003c\/strong\u003e signed against the \u003cstrong\u003eOKX Trading Bot API\u003c\/strong\u003e to fetch the list of \u003cstrong\u003eongoing Spot DCA bots\u003c\/strong\u003e for your OKX region endpoint.\u003c\/li\u003e\n  \u003cli\u003eFor each bot, retrieves its \u003cstrong\u003ecycle list\u003c\/strong\u003e, extracts profit details for \u003cstrong\u003estopped cycles\u003c\/strong\u003e, and prepares current cycle metadata.\u003c\/li\u003e\n  \u003cli\u003eFor each active cycle, pulls the \u003cstrong\u003eDCA order history\u003c\/strong\u003e and normalizes orders with:\n    \u003cul\u003e\n      \u003cli\u003ecalculated investment,\u003c\/li\u003e\n      \u003cli\u003eand for \u003cstrong\u003etake-profit orders\u003c\/strong\u003e, \u003cstrong\u003ecycle profit\u003c\/strong\u003e in USDC and percentage.\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n  \u003cli\u003eChecks n8n \u003cstrong\u003eworkflow static data\u003c\/strong\u003e using a \u003cstrong\u003eper-order deduplication key\u003c\/strong\u003e to skip orders already notified.\u003c\/li\u003e\n  \u003cli\u003eSends a \u003cstrong\u003ehuman-readable Telegram message\u003c\/strong\u003e for each newly detected order.\u003c\/li\u003e\n  \u003cli\u003eStores the deduplication key in workflow static data to avoid duplicate notifications in future runs.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eStay informed when your OKX Spot DCA strategy fills \u003cstrong\u003einitial\u003c\/strong\u003e, \u003cstrong\u003esafety\u003c\/strong\u003e, or \u003cstrong\u003etake-profit\u003c\/strong\u003e orders.\u003c\/li\u003e\n  \u003cli\u003eTrack cycle performance by receiving profit-aware notifications when a cycle is completed.\u003c\/li\u003e\n  \u003cli\u003eReduce manual monitoring for SaaS operators running multiple OKX Trading Bots.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNodes \/ tech stack:\u003c\/strong\u003e Code, Telegram, Sticky Note, HTTP Request, Schedule Trigger.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCredentials:\u003c\/strong\u003e OKX API keys via environment variables:\n    \u003cul\u003e\n      \u003cli\u003e\u003ccode\u003eOKX_API_KEY\u003c\/code\u003e\u003c\/li\u003e\n      \u003cli\u003e\u003ccode\u003eOKX_SECRET_KEY\u003c\/code\u003e\u003c\/li\u003e\n      \u003cli\u003e\u003ccode\u003eOKX_PASSPHRASE\u003c\/code\u003e\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRegion endpoint:\u003c\/strong\u003e update the OKX API base URL (e.g., EU: \u003ccode\u003ehttps:\/\/eea.okx.com\u003c\/code\u003e) in the HTTP requests.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46019205791923,"sku":"N8N-19530","price":20.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/dG6YXj6wtkho03CMW5kMK_tYALJM6e.png?v=1789377319","url":"https:\/\/buyflowscripts.com\/products\/okx-spot-dca-order-monitor-telegram-alerts-n8n-workflow","provider":"N8N Commerce","version":"1.0","type":"link"}