n8nflow.net logo

Analyze Cryptocurrency Market Data with HTX API, GPT-4o and Telegram

by Don Jayamaha Jrโ€ขUpdated: Last update 7 days agoโ€ขSource: n8n.io
Loading workflow viewer...

Getting Started

A fully autonomous, HTX Spot Market AI Agent (Huobi AI Agent) built using GPT-4o and Telegram. This workflow is the primary interface , orchestrating all internal reasoning, trading logic, and output formatting.


โš™๏ธ Core Features

  • ๐Ÿง  LLM-Powered Intelligence : Built on GPT-4o with advanced reasoning
  • โฑ๏ธ Multi-Timeframe Support : 15m, 1h, 4h, and 1d indicator logic
  • ๐Ÿงฉ Self-Contained Multi-Agent Workflow : No external subflows required
  • ๐Ÿงฎ Real-Time HTX Market Data : Live spot price, volume, 24h stats, and order book
  • ๐Ÿ“ฒ Telegram Bot Integration : Interact via chat or schedule
  • ๐Ÿ”„ Autonomous Runs : Support for webhook, schedule, or Telegram triggers

๐Ÿ“ฅ Input Examples

User InputAgent Action
btcReturns 15m + 1h analysis for BTC
eth 4hReturns 4-hour swing data for ETH
bnbusdt todayFull day snapshot with technicals + 24h stats

๐Ÿ–ฅ๏ธ Telegram Output Sample

๐Ÿ“Š BTC/USDT Market Summary

๐Ÿ’ฐ Price: $62,400  
๐Ÿ“‰ 24h Stats: High $63,020 | Low $60,780 | Volume: 89,000 BTC

๐Ÿ“ˆ 1h Indicators:
โ€ข RSI: 68.1 โ†’ Overbought  
โ€ข MACD: Bearish crossover  
โ€ข BB: Tight squeeze forming  
โ€ข ADX: 26.5 โ†’ Strengthening trend

๐Ÿ“‰ Support: $60,200  
๐Ÿ“ˆ Resistance: $63,800

๐Ÿ› ๏ธ Setup Instructions

  1. Create your Telegram Bot using @BotFather

  2. Add Bot Token in n8n Telegram credentials

  3. Add your GPT-4o or OpenAI-compatible key under HTTP credentials in n8n

  4. (Optional) Add your HTX API credentials if expanding to authenticated endpoints

  5. Deploy this main workflow using:

    • โœ… Webhook (HTTP Request Trigger)
    • โœ… Telegram messages
    • โœ… Cron / Scheduled automation

๐ŸŽฅ Live Demo

Watch the Live Demo


๐Ÿง  Internal Architecture

ComponentRole
๐Ÿ”„ Telegram TriggerEntry point for external or manual signal
๐Ÿง  GPT-4oSymbol + timeframe extraction + strategy generation
๐Ÿ“Š Data CollectorInternal tools fetch price, indicators, order book, etc.
๐Ÿงฎ Reasoning LayerMerges everything into a trading signal summary
๐Ÿ’ฌ Telegram OutputSends formatted HTML report via Telegram

๐Ÿ“Œ Use Case Examples

ScenarioOutcome
Auto-run every 4 hoursSends new HTX signal summary to Telegram
Human requests โ€œeth 1hโ€Bot replies with real-time 1h chart-based summary
System-wide trigger from another agentInvokes webhook and returns response to parent workflow

๐Ÿงพ Licensing & Attribution

ยฉ 2025 Treasurium Capital Limited Company
Architecture, prompts, and trade report structure are IP-protected.

No unauthorized rebranding permitted.

๐Ÿ”— For support: Don Jayamaha โ€“ LinkedIn