A professional-grade AI trading orchestration system for Bitget Spot Market automation via Telegram.
This agent integrates Bitget REST APIs, authenticated order management, and real-time reasoning with GPT-4o-mini, allowing direct Telegram-based execution of spot and trigger orders — all within your self-hosted n8n environment.
You must install and activate all of the following workflows for the system to function correctly:
✅ Workflow Name | 📌 Function Description |
---|---|
Bitget AI Trader Agent | Core orchestrator. Handles user Telegram commands, routes to correct sub-agents, and formats all responses. |
Account and Wallet Agent Tool | Retrieves Bitget account info, balances, and deposit addresses using authenticated endpoints /api/v2/spot/account/* . |
Spot Order Trading Agent Tool | Places, cancels, and queries spot orders (/trade/place-order , /cancel-order , /orderInfo , /unfilled-orders ). |
Trigger Order Agent Tool | Manages conditional “plan” (trigger) orders — place, modify, cancel, and list them (/trade/place-plan-order , /modify-plan-order , etc.). |
Webhook HTTP Request Nodes | Securely handle REST calls for each sub-agent via n8n webhooks. All endpoints authenticated using the Bitget Sign system. |
Bitget AI Trader Agent (Finished).json
fileMake sure all downstream webhooks (e.g., Get-Account-Information
, Place-Order
, Cancel-Order
, etc.) are accessible via HTTPS.
Each must use Basic Auth credentials named:
Bitget Authentication for Webhooks
Replace the placeholder Telegram ID in:
if ($input.first().json.message.from.id !== <<Replace>>) { ... }
with your Telegram user ID.
This ensures only you can issue trading commands.
Trigger the Telegram bot command (e.g. /balance
or /order
) to verify:
✅ BTCUSDT limit buy placed @ 23222.5, size 0.01 (orderId: 123456)
❌ Rejected: price tick invalid for BTCUSDT. Provide price with correct step.
💰 Balance Summary:
• USDT: 1250.34 (Available)
• BTC: 0.023 (In Trade)
[Telegram Trigger]
→ [User Authentication]
→ [Bitget AI Trader Agent]
→ [Account/Wallet Tool] + [Spot Order Tool] + [Trigger Order Tool]
→ [Webhook Execution Layer]
→ [GPT-4o-mini Reasoning + Message Split Logic]
→ [Telegram Output]
© 2025 Treasurium Capital Limited Company
All architecture, prompt structures, and Telegram formatting are IP-protected.
No unauthorized resale, repackaging, or rebranding permitted.
🔗 For support: LinkedIn – Don Jayamaha