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.
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.
Rendering mermaid diagram...
| Step | Filter | Description |
|---|---|---|
| 1 | Liquidity Filter | Only pairs with 24h volume > 500,000 USDT |
| 2 | VSA Volume Spike | Current 5m candle volume > 1.5ร average of last 10 candles |
| 3 | Liquidity Grab | Price wicked below recent support then recovered |
| 4 | RSI Reversal | RSI(7) reversing from oversold territory (< 30) |
| 5 | Entry | Market buy with balance/50 position sizing |
| 6 | Exit | Auto-sell at 0.7% TP or 0.7% SL |
| Parameter | Value |
|---|---|
| Position Size | Balance รท 50 |
| Max Concurrent | 50 trades |
| Take Profit | 0.7% |
| Stop Loss | 0.7% |
| Scan Interval | 15 seconds |
| TP/SL Monitor | 5 seconds |
| Telegram Summary | Every 15 minutes |
| Endpoint | Method | Description |
|---|---|---|
/ | GET | Live dashboard (auto-refreshes every 15s) |
/start | POST | Start the bot |
/stop | POST | Stop the bot |
/status | GET | Bot status JSON |
/trades | GET | Active & completed trades JSON |
/test-connection | GET | Test Binance connectivity |
/source | GET | View source code |
- ๐ข 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
Binance Testnet (testnet.binance.vision) blocks requests from many cloud server IPs with HTTP 451. If you see this error:
- Set the
HTTPS_PROXYenvironment variable to a residential proxy URL - The bot will automatically route traffic through the proxy
- All bot logic (strategy, execution, monitoring, Telegram) is fully operational
| File | Purpose |
|---|---|
config.ts | Credentials, trading params, timing, retry settings |
types.ts | TypeScript interfaces (ActiveTrade, BotState, etc.) |
exchange.ts | CCXT Binance init, sandbox mode, retry with backoff |
indicators.ts | RSI(7), VSA Volume Spike, Liquidity Grab detection |
strategy.ts | Market scanner, signal analysis, buy/sell execution |
telegram.ts | Buy/Sell/Summary Telegram message formatting |
dashboard.tsx | Server-rendered React dashboard with Twind |
main.ts | Hono HTTP server, bot loop orchestration |