n8n is a visual workflow automation tool. The QuanuX n8n integration lets you react to trading events — position changes, order fills, risk threshold breaches — and connect them to external systems like databases, notification services, spreadsheets, or custom webhooks. You build the workflow logic visually in n8n’s editor; QuanuX provides the bridge that feeds real-time trading events into it. The integration runs as a QXP sidecar extension located atDocumentation Index
Fetch the complete documentation index at: https://docs.quanux.org/llms.txt
Use this file to discover all available pages before exploring further.
extensions/n8n. It is a Go-based bridge that connects to the QuanuX core over a local key-authenticated channel and forwards events to your n8n instance.
How it works
The n8n extension subscribes to internal QuanuX events and forwards them to n8n as webhook payloads. From there, n8n takes over: you can route events through any of n8n’s 400+ integrations, apply conditional logic, enrich data, and trigger actions — all without writing application code. Example use cases:- Send a Telegram or Slack message when a position is opened or closed
- Log every filled order to a Google Sheet or database
- Trigger a risk halt workflow when a daily loss threshold is breached
- Send an email summary of the day’s trades at market close
The n8n workflow editor and server run separately from QuanuX. You are responsible for running your own n8n instance — either locally, via the n8n cloud service, or self-hosted on a server. QuanuX only provides the bridge that connects to it.
Setup
Start your n8n instance
If you do not already have n8n running, start it locally with Docker or npm:n8n is available at
http://localhost:5678 by default. Create a webhook trigger node in n8n and note the webhook URL — you will configure the extension to send events to that URL.Generate a bridge key
Generate a key so the extension can authenticate to the QuanuX core:
- Open the QuanuX web interface.
- Go to Settings → QuanuX Extensions.
- Click Generate Key.
- Store the key in the OS keyring:
Configure the extension environment
Export the bridge key and your n8n webhook URL into your shell:Replace the webhook URL with the one n8n generated for your trigger node.
Building workflows in n8n
Once the extension is running, events arrive in n8n as webhook payloads. A typical workflow starts with a Webhook trigger node and then branches based on event type or field values. Suggested workflow patterns:Trade alert via messaging
Trade alert via messaging
- Add a Webhook trigger node — note the URL and set it as
QUANUX_N8N_WEBHOOK_URL. - Add a Telegram or Slack node.
- Map the event fields (symbol, side, quantity, price) to the message body.
- Activate the workflow.
Trade log to a spreadsheet
Trade log to a spreadsheet
- Add a Webhook trigger node.
- Add a Google Sheets node (or Airtable, Notion, etc.).
- Map the order fill fields to the appropriate columns.
- Activate the workflow.
Risk threshold alert
Risk threshold alert
- Add a Webhook trigger node.
- Add an IF node that checks the
daily_pnlfield against your threshold. - On the
falsebranch (threshold breached), add a notification node. - Optionally add a second action to call a QuanuX endpoint to halt trading.
- Activate the workflow.
Remote usage
If QuanuX is running on a cloud server and n8n is running locally, configure the extension’s webhook URL to point at your local n8n instance’s public address or use an ngrok tunnel to expose it:QUANUX_N8N_WEBHOOK_URL to the internal address (for example, http://localhost:5678/webhook/your-path) so traffic stays within the server.