πŸ“ˆ Binance SM price-24hrStats-OrderBook-Kline tool

⚑ 4,179 views Β· πŸ“ˆ Crypto Trading & Stock Market

Description

A powerful sub-agent that collects real-time market structure data from Binance for any trading pair β€” including price, volume, order book depth, and candlestick snapshots across multiple timeframes (15m, 1h, 4h, 1d).


πŸŽ₯ Watch Tutorial: Click to Watch

🎯 Purpose

This workflow powers the Quant AI system with:

All outputs are parsed and formatted using GPT and returned to the parent agent (e.g., Financial Analyst Tool) as a Telegram-optimized summary.


βš™οΈ Workflow Architecture

NodeRole
πŸ”— Execute Workflow TriggerAccepts input from parent workflow
🧠 Simple MemoryStores session + symbol info
πŸ€– Binance SM Market AgentParses prompt, routes tool calls
πŸ’‘ OpenAI Chat Model (gpt-4o-mini)Converts raw data into a clean, readable format for Telegram
🌐 getCurrentPriceGets latest price
🌐 get24hrStatsGets OHLC/volume over past 24 hours
🌐 getOrderBookGets top 100 bids and asks
🌐 getKlinesGets latest 15m, 1h, 4h, and 1d candles

πŸ“₯ Input Requirements

This workflow is not called directly by the user. Instead, it is triggered by another workflow, such as:

{
  "message": "BTCUSDT",
  "sessionId": "539847013"
}

πŸ“€ Telegram Output Example

πŸ“Š BTCUSDT Market Overview

πŸ’° Price: $63,220  
πŸ“ˆ 24h Change: +2.3% | Volume: 45,210 BTC  

πŸ“‰ Order Book  
β€’ Top Bid: $63,190  
β€’ Top Ask: $63,230  

πŸ•°οΈ Latest Candles  
β€’ 15m: O: $63,000 | C: $63,220 | Vol: 320 BTC  
β€’ 1h : O: $62,700 | C: $63,300 | Vol: 980 BTC  
β€’ 4h : O: $61,800 | C: $63,500 | Vol: 2,410 BTC  
β€’ 1d : O: $59,200 | C: $63,220 | Vol: 7,850 BTC

βœ… Use Cases

ScenarioOutput Provided
β€œShow current BTC price and trend”Price, 24h stats, candles, and order book in one message
β€œCandles for SOL”15m, 1h, 4h, 1d candlesticks for SOLUSDT
Triggered by Quant AI systemClean Telegram-ready summary with all structure tools merged

🧩 Toolchain Breakdown

Tool NameEndpointPurpose
getCurrentPrice/api/v3/ticker/priceLatest trade price
get24hrStats/api/v3/ticker/24hr24h OHLC, % change, volume
getOrderBook/api/v3/depthTop 100 bids and asks
getKlines/api/v3/klines1-candle snapshot across 4 TFs

πŸš€ Installation Steps

  1. Import the JSON into your n8n instance

  2. Connect your OpenAI credentials for the Chat Model node

  3. No Binance API key needed β€” public endpoints

  4. Trigger this tool only via:

    • Binance SM Financial Analyst Tool
    • Binance Spot Market Quant AI Agent

πŸ” Licensing & Attribution

Β© 2025 Treasurium Capital Limited Company Architecture, prompts, and trade structure are IP-protected. No unauthorized rebranding permitted.

πŸ”— For support: Don Jayamaha – LinkedIn

πŸ”— Nodes Used

Execute Workflow Trigger, AI Agent, OpenAI Chat Model, Simple Memory, HTTP Request Tool

πŸ“₯ Import

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

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