Package Information
Available Nodes
Documentation
n8n-nodes-gainium
Integrate Gainium with n8n to manage bots, strategies, and deals directly in your workflows. This package lets you trigger actions, fetch data, and coordinate trading logic with the rest of your automation stack.
β‘ Gainium Overview
Gainium is a platform for building and running automated trading strategies. Key features include:
- Trading terminal
- Grid, DCA, and Combo bots
- Backtesting & paper trading
- Market screener
- Portfolio tracking
- Risk tools & auto-compounding
- Webhook-triggered actions
π€ About n8n
n8n is a workflow automation tool that connects APIs and services. Use these nodes to tie trading logic to alerts, signals, data sources, or messaging toolsβno custom backend required.
π API Documentation
π Complete API Reference: https://api.gainium.io/api/docs/
π‘ Tip: The interactive API documentation includes detailed endpoint descriptions, request/response examples, and a built-in testing interface to help you understand and implement each feature.
π What You Can Do
The nodes let you:
- Trigger bots on signals or events
- Monitor deals, positions, and PnL
- Pause, resume, close, or adjust bots and deals
- React to strategy alerts
- Retrieve account and performance data
- Combine with Telegram, Discord, TradingView, etc. for full workflows
π§ Use Cases (Examples)
- Rebalance: Fetch balances + external prices, adjust allocations via bot actions.
- News / sentiment trigger: Pause or de-risk bots when negative sentiment spikes.
- Scheduled profit taking: Cron step-down of position size or bot aggressiveness.
- Volatility adaptation: Adjust grid/DCA parameters when volatility changes.
- Arbitrage alerting: Compare prices across exchanges and notify or trigger a deal.
- Chat control: Telegram command interface to pause, resume, or inspect deals.
- Risk rules: Auto close or scale down deals at configured drawdown levels.
- Template deployment: Create bots from stored presets (e.g. Airtable / Notion).
- PnL logging: Push periodic performance snapshots to Sheets or Notion.
π¦ Installation
In your n8n instance or custom Docker setup:
npm install n8n-nodes-gainium
Then restart your n8n server.
This is a community node. Youβll need to enable community nodes in your
n8nsettings.
π Authentication
Set your Gainium API Key in the credentials section of the node. You can create an API key in your Gainium account settings.
π§© Nodes Included
Each Gainium API endpoint has its own dedicated n8n node for maximum flexibility in your workflows.
Bots
- Get Grid Bots β /api/bots/grid
- Get Combo Bots β /api/bots/combo
- Get DCA Bots β /api/bots/dca
- Update DCA Bot β /api/updateDCABot
- Update Combo Bot β /api/updateComboBot
- Change Bot Pairs β /api/changeBotPairs
- Start Bot β /api/startBot
- Clone DCA Bot β /api/cloneDCABot
- Clone Combo Bot β /api/cloneComboBot
- Restore Bot β /api/restoreBot
- Stop Bot β /api/stopBot
- Archive Bot β /api/archiveBot
Deals
- Get Deals β /api/deals
- Update DCA Deal β /api/updateDCADel
- Update Combo Deal β /api/updateComboDeal
- Add Funds to Deal β /api/addFunds
- Reduce Funds from Deal β /api/reduceFunds
- Start Deal β /api/startDeal
- Close Deal β /api/closeDeal/{dealId}
User
- Get User Exchanges β /api/user/exchanges
- Get User Balances β /api/user/balances
General
- Get Supported Exchanges β /api/exchanges
- Get Crypto Screener β /api/screener
More coming soon.
π§ Agent Tool
Provides a unified action/data interface for AI or rule-driven agents (OpenAI, Anthropic, LangChain, etc.) so they can inspect state and invoke supported bot or deal operations dynamically.
π‘ Example Workflows
- TradingView signal β start bot via webhook
- De-risk on BTC dominance spike
- Profit alert when deal closes > X%
- Screener match β create / notify
- AI agent adjusts risk or pauses bots
- Natural language command interface (Telegram / Slack)
- Adaptive parameter tuning (volatility & volume)
π Support
Need help or a feature? Open an issue or visit the community forum.