Public
HF Binance Testnet trading bot - VSA & Liquidity strategy
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data โ€“ all from the browser, and deployed in milliseconds.

๐Ÿค– BotTrader2 โ€” High-Frequency Binance Testnet Trading Bot

A professional-grade high-frequency scalping bot for Binance Spot Testnet using VSA (Volume Spread Analysis) and Liquidity Grab strategies with real-time Telegram alerts.

Architecture

Rendering mermaid diagram...

Strategy

StepFilterDescription
1Liquidity FilterOnly pairs with 24h volume > 500,000 USDT
2VSA Volume SpikeCurrent 5m candle volume > 1.5ร— average of last 10 candles
3Liquidity GrabPrice wicked below recent support then recovered
4RSI ReversalRSI(7) reversing from oversold territory (< 30)
5EntryMarket buy with balance/50 position sizing
6ExitAuto-sell at 0.7% TP or 0.7% SL

Trading Parameters

ParameterValue
Position SizeBalance รท 50
Max Concurrent50 trades
Take Profit0.7%
Stop Loss0.7%
Scan Interval15 seconds
TP/SL Monitor5 seconds
Telegram SummaryEvery 15 minutes

API Endpoints

EndpointMethodDescription
/GETLive dashboard (auto-refreshes every 15s)
/startPOSTStart the bot
/stopPOSTStop the bot
/statusGETBot status JSON
/tradesGETActive & completed trades JSON
/test-connectionGETTest Binance connectivity
/sourceGETView source code

Telegram Reports

  • ๐ŸŸข Instant BUY alerts โ€” Price, Qty, RSI, Volume Ratio, TP/SL levels
  • ๐Ÿ”ด Instant SELL alerts โ€” Entry/Exit, PnL, Reason (TP/SL)
  • ๐Ÿ“Š 15-min summary โ€” Active Trades, Total PnL, Capital Utilization %, Daily Count

โš ๏ธ Geo-Restriction Note

Binance Testnet (testnet.binance.vision) blocks requests from many cloud server IPs with HTTP 451. If you see this error:

  1. Set the HTTPS_PROXY environment variable to a residential proxy URL
  2. The bot will automatically route traffic through the proxy
  3. All bot logic (strategy, execution, monitoring, Telegram) is fully operational

Files

FilePurpose
config.tsCredentials, trading params, timing, retry settings
types.tsTypeScript interfaces (ActiveTrade, BotState, etc.)
exchange.tsCCXT Binance init, sandbox mode, retry with backoff
indicators.tsRSI(7), VSA Volume Spike, Liquidity Grab detection
strategy.tsMarket scanner, signal analysis, buy/sell execution
telegram.tsBuy/Sell/Summary Telegram message formatting
dashboard.tsxServer-rendered React dashboard with Twind
main.tsHono HTTP server, bot loop orchestration