Instantly access live OKX Spot Market data directly in Telegram!
This workflow integrates the OKX REST v5 API with Telegram and optional GPT-4.1-mini formatting, delivering real-time insights such as latest prices, order book depth, candlesticks, trades, and mark prices — all in clean, structured reports.
A Telegram Trigger node listens for incoming user commands.
The User Authentication node validates the Telegram ID to allow only authorized users.
The workflow creates a Session ID from chat.id
to manage session memory.
The OKX AI Agent orchestrates data retrieval via HTTP requests to OKX endpoints:
/api/v5/market/ticker?instId=BTC-USDT
)/api/v5/market/ticker?instId=BTC-USDT
)/api/v5/market/books?instId=BTC-USDT&sz=50
)/api/v5/market/candles?instId=BTC-USDT&bar=15m
)/api/v5/market/mark-price?instType=SPOT&instId=BTC-USDT
)/api/v5/market/trades?instId=BTC-USDT&limit=100
)Utility tools refine the data:
sessionId
, symbol, and state for multi-turn interactions.A message splitter ensures Telegram output stays under 4000 characters.
Final results are sent to Telegram in structured, human-readable format.
1m
→ 1M
).Create a Telegram Bot
Configure in n8n
OKX AI Agent v1.02.json
.Deploy and Test
BTC-USDT
to your bot.Watch the full setup guide on YouTube:
⚡ Unlock real-time OKX Spot Market insights directly in Telegram — no private API keys required!
© 2025 Treasurium Capital Limited Company
Architecture, prompts, and trade report structure are IP-protected.
No unauthorized rebranding permitted.
🔗 For support: Don Jayamaha – LinkedIn