← Terminal
Simulation Only — No Real Funds

₿TC-BOT
Technical Reference

A high-fidelity crypto paper-trading simulator. Real-time Binance data, multi-strategy engine (EMA Cross + Supertrend), and a Supabase-backed $1,000 virtual wallet — with zero financial risk.

Starting Balance
$1,000
Market Data
Binance
Strategies
EMA · ST
Max Leverage
10×

Strategy & Backtesting

EMA Cross and Supertrend strategies, ATR-based SL/TP, MACD/volume filters, and multi-token walk-forward backtesting.

API Reference

All six Cloudflare Pages Function endpoints — status, history, settings, execute-trade, backtest, and reset — with request and response shapes.

Risk Management

Position sizing (95% of balance as margin), leveraged PnL formula, and how stop loss and take profit are enforced intra-candle.

Database Schema

Supabase PostgreSQL tables: wallet (single-row balance), positions (every trade), and bot_settings (JSONB strategy config).

System Architecture

How the three layers talk to each other.

Browser
Vanilla TypeScript
TradingView Charts
WebSocket
Binance
Public API
BTC/USDT stream
/api/*
Cloudflare
Pages Functions
TypeScript
SDK
Supabase
PostgreSQL
wallet · positions
Strategy calculation (EMA Cross / Supertrend), signal detection, SL/TP monitoring — all run in the browser via WebSocket feed.
Trade execution is persisted server-side through Cloudflare Functions (Supabase service key never reaches the browser).