πŸ“ˆ Get exchange data with KuCoin AI Agent | GPT-4o + Telegram

⚑ 250 views Β· πŸ“ˆ Crypto Trading & Stock Market

Description

Access live KuCoin Spot Market data instantly in Telegram!

This workflow integrates the KuCoin REST API with Telegram and an optional GPT-4.1-mini formatter, delivering real-time insights like latest prices, 24h stats, order book depth, trades, and candlesticks β€” all structured into clean Telegram messages.


πŸ”Ž How It Works

  1. A Telegram Trigger listens for user commands.

  2. User Authentication validates the Telegram ID against an allowlist.

  3. A SessionId is generated from the chat ID to support memory across turns.

  4. The KuCoin AI Agent orchestrates API requests:

    • 24h Stats β†’ /api/v1/market/stats?symbol=BTC-USDT
    • Order Book Depth β†’ /api/v1/market/orderbook/level2_100?symbol=BTC-USDT
    • Latest Price β†’ /api/v1/market/orderbook/level1?symbol=BTC-USDT
    • Best Bid/Ask β†’ /api/v1/market/orderbook/level1?symbol=BTC-USDT
    • Klines (Candles) β†’ /api/v1/market/candles?symbol=BTC-USDT&type=15min&limit=20
    • Recent Trades β†’ /api/v1/market/histories?symbol=BTC-USDT
    • Average Price (via Ticker) β†’ /api/v1/market/orderbook/level1?symbol=BTC-USDT
  5. Utility Tools process results:

    • Calculator β†’ spreads, % changes, averages.
    • Think β†’ reshapes JSON, selects fields, formats outputs.
  6. Message Splitter breaks outputs >4000 chars (Telegram limit).

  7. Final report is sent back via Telegram SendMessage in human-readable format.


βœ… What You Can Do with This Agent


πŸ› οΈ Setup Steps

  1. Create a Telegram Bot

    • Use @BotFather to create a bot and copy its token.
  2. Configure in n8n

    • Import KuCoin AI Agent v1.02.json.
    • Update User Authentication node with your Telegram ID.
    • Add Telegram API credentials (bot token).
    • Add OpenAI API key.
  1. Deploy & Test

    • Activate the workflow in n8n.
    • Send a query like BTC-USDT to your bot.
    • Instantly receive structured KuCoin Spot Market insights in Telegram.

πŸ“€ Output Rules


πŸ“Ί Setup Video Tutorial

Watch the full setup guide on YouTube:

Watch on YouTube


If you want, I can also update embed links & thumbnails elsewhere to match this.


⚑ Unlock KuCoin Spot Market insights in Telegram β€” fast, reliable, and API-key free.


🧾 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

πŸ”— Nodes Used

Telegram, Telegram Trigger, AI Agent, OpenAI Chat Model, Simple Memory, Calculator

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup