n8n, Binance API, Google Sheets, Slack, Telegram, Jira & Email
This workflow automates futures trade monitoring by fetching live prices from Binance, calculating trade performance (PnL, ROI, fees), evaluating risk levels and sending alerts across Slack, Telegram, Jira and Email. It also stores trade history and analytics in Google Sheets.
This workflow continuously monitors futures trading positions by combining user-defined trade data with real-time market prices fetched from the Binance public API. It calculates key metrics such as profit/loss (PnL), return on investment (ROI) and transaction fees to evaluate trade performance.
Based on calculated values, the workflow applies a risk scoring mechanism to classify trades into different severity levels. These levels determine how alerts are routed across communication platforms such as Slack, Telegram, Jira and Email.
Additionally, the workflow stores all trade data and daily analytics in Google Sheets, enabling users to track performance trends and maintain a history of trades without manual effort.
Configure Schedule Trigger to run at intervals (e.g., every 5 minutes).
Use Function node or Google Sheets to define:
HTTP Request node calls Binance API:
/api/v3/ticker/priceMerge node combines trade input with live price.
Function node calculates:
IF node ensures valid calculations (e.g., non-null values).
Assigns risk score based on loss and position size.
Switch node routes alerts:
Google Sheets (Trades):
Function node generates:
Google Sheets (Analytics):
Note: This workflow can be adapted for many other financial monitoring and automation use cases.
| Issue | Possible Cause | Solution |
|---|---|---|
| PnL is null | Incorrect field mapping | Ensure correct price field is used |
| Telegram error | Formatting issue | Set Parse Mode to NONE |
| No alerts triggered | Risk condition not met | Check Switch node logic |
| Empty rows in Sheets | Wrong data source | Connect correct node to Sheets |
| API error | Invalid request | Verify Binance endpoint |
If you need help setting up, customizing or extending this workflow, feel free to reach out our n8n workflow developers at WeblineIndia.
We can help you: