tradoor-terminal/tradoor

Public

Open-source crypto trading terminal in the browser: charts, DOM, footprint, TPO market profile, liquidations and order flow from 15 exchanges, your own indicators in Frost Script, a journal and paper trading. Rust, WebAssembly, WebGL2.

  • Stars441+109 tuần này
  • Forks85
  • Watchers5
  • Issues0
  • Ngày tạo24/10/2026
  • Cập nhật gần nhất01/12/2026
  • Ngôn ngữTypeScript
  • Giấy phépAGPL-3.0
README.md37.7 KBRaw

tradoor: a lime door ajar on a dark tile

tradoor terminal

A trading terminal in the browser, built for speed.
Charts, market profile, footprints, a DOM, your own indicators and backtests, drawn by a Rust engine in WebAssembly, live from fifteen exchanges.

Rust and WebAssembly WebGL2 SolidJS PostgreSQL 18 License: AGPL-3.0 Latest release

Open tradoor terminal Join the tradoor Discord

Features · Frost Script · Run it · Self-hosting · Security · Disclaimer · Architecture · Discussions · Discord

A tour of the live site: a BTCUSDT chart panned and zoomed, a footprint up close in delta and bid × ask, TPO profiles by day, a Frost Script swing map, six charts on one screen, the DOM and tape, and the Community showcase

⚡ Light and fast. The chart engine is Rust in a Web Worker, drawing with WebGL2 on an OffscreenCanvas, so the page thread never touches a candle. A minute chart with months behind it costs what one opened today does.

📊 Order flow and market profile. A DOM and a tape on fifteen exchanges, TPO profiles by session, footprints with bid and ask at every price, liquidations and net taker flow.

🔥 Live from the source. Fifteen exchanges streamed straight to the browser: trades fold into the forming bar and order books fill the DOM.

❄️ Your own indicators. Frost Script, a small language that can only draw on its chart, with a Community to share scripts in.

🧪 Backtests in your browser. Rules picked from lists or a Frost Script strategy, filled with each exchange's fees, slippage and funding, beside the chart or under it.

📓 Journal and training. Every position you draw becomes a trade that price settles, and a paper account trades Binance's perpetuals at live prices.

🔓 Free and open. AGPL-3.0, and one Docker image to host it yourself.

A tool, not advice. tradoor terminal charts market data and works out technical studies from it. It is not a financial adviser or a broker, and every trade you make is your own decision. Read the disclaimer.

Features

Charts and workspace

Six charts on one screen: BTCUSDT as candles and as TPO profiles, ETHUSDT, SOLUSDT, BTCUSDT spot and BTCUSDT on Bybit, with the watchlist, liquidations and values beside them

  • Up to 20 charts at once; symbol, interval, crosshair and time kept in step
  • Panels split, tab and dock by drag; layouts saved by name
  • One minute to a year, linear or log, bar replay on any chart
  • Drawings belong to the market and show on every chart and timeframe of it
  • Watchlists, price alerts to Telegram, themes, a US economic calendar
  • Signed in with Telegram, the same workspace on every device
  • Thirteen languages, chosen in Settings: English, Spanish, French, Portuguese, Russian, Turkish, Chinese, Japanese, Korean, Thai, Vietnamese, Indonesian and Malay

Fifteen exchanges

The symbol search for BTC: fifteen exchanges' marks across the top, and BTC's markets on each of them, spot and perpetual, with price, change and volume, the busiest first

Binance, Bybit, OKX, Bitget, Kraken, Hyperliquid, Lighter, Gate, Aster, HTX, Bitfinex, Deribit, Coinbase, Bitstamp and BingX: some 17,700 markets in one search. Also TOTAL, TOTAL2, TOTAL3, BTC.D and the other market measures, the VIX, and the S&P 500 and Nasdaq-100 as trade.xyz perpetuals.

Indicators

The indicator picker: a search box, the Built-in, Community and My scripts tabs, favourites, the built-ins by what they are for, and New Frost Script

Built-in, Community and My scripts in one searchable picker, and New Frost Script to write your own. EMA ribbon, EMA 200, RSI, Stoch RSI, MACD, Bollinger Bands, Keltner, Ichimoku, VWAP and VWAP levels, anchored VWAP, volume delta, volume profile, key levels, swing structure map, sessions, moon phases and open interest, each with its own settings, and those saved as the default it starts with. VWAP takes its anchor, price source, offset, bands in deviations or percent, and a timeframe of its own.

DOM and tape

The DOM for BTCUSDT on Binance The tape for BTCUSDT

The order book by price on all fifteen exchanges: bids, asks, what traded at each price, a volume profile and Pull/Stack. The tape prints every trade and lights the big ones.

Market profile and footprint

BTCUSDT 30-minute bars as TPO profiles by day, each with its value area, point of control and single prints

A 15-minute BTCUSDT footprint chart with the delta at every price and a table of each bar's volume and delta

  • TPO profiles by day, week, month or session, with value area, POC, single prints and poor highs and lows
  • Footprints as delta, bid and ask, volume, cluster or ladder, with a per-bar table
  • Footprint history kept on the server for BTC and ETH; any other coin is recorded in your own browser

Liquidations, flow and signals

The liquidations panel for BTCUSDT: totals and a tape of each liquidation

  • Liquidations from eleven exchanges, as a tape, totals and a feed on the chart
  • Net taker flow per exchange, spot and perpetual
  • A screener for three-drive patterns across 200 coins, with Telegram alerts

Journal and training

The journal's dashboard: net P&L, win rate, equity curve, P&L calendar and the latest trades

  • Every long or short position you draw is a journal trade, settled by price
  • A dashboard: P&L, win rate, equity curve, calendar in money or R, by pair, side or strategy
  • Paper trading: 100,000 USDT on Binance's BTC, ETH and SOL perpetuals at live prices, from the chart or the DOM

Strategy tester

The strategy tester under a 4-hour ETHUSDT chart: MACD with the trend over two years, its longs and shorts drawn on the chart, and the summary: net profit, buy and hold, drawdown, profit factor, win rate, costs

The strategy tester beside the chart, on its Strategy tab: templates, which way it trades, and the buy and sell rules written out as sentences

  • Backtest any chart in your browser: start from a template, pick rules from lists, or write a Frost Script strategy
  • Each rule set reads back as a sentence, and the tester sits beside the chart or under it
  • Filled at the next open, with each exchange's fees, slippage, funding and liquidation; a bar that hit both stop and target is decided by its 1m bars
  • What the chart holds, a few months, years, a market's whole history or from a date, up to 100,000 bars
  • Report: figures against buy and hold, trades on the chart, equity, drawdown, months, Monte Carlo
  • Optimizer with a held-out part of the bars, the same strategy on other markets, forward testing, order notices and shareable links

On a phone

tradoor on a phone: a 15-minute BTCUSDT chart with its tools down the side

The same terminal with touch gestures, on any browser with WebGL2, and a 2D canvas where there is none.

Frost Script

input length = 20 min 2 max 500 "Length"
average = ema(close, length)
plot(average, "Average", blue)
mark(crossover(close, average), "Up", below, green)

tradoor's own language for indicators.

  • Draws: lines, histograms, levels, fills, marks, labels, boxes, a table, background shading and candle colours.
  • Language: texts, lists, your own functions, loops, and colours as #hex or rgb().
  • Settings: numbers, tick boxes, colours, choices and dates, like any built-in.
  • Built-ins as source: 18 built-ins are written in Frost Script. Open one's settings and the Source tab shows it, giving the same numbers. The six that need more than candles say why.
  • Strategies: long, short, exit, stop and target make a script a strategy for the strategy tester.
  • From Pine Script v6: the editor copies instructions for an AI chat (Claude, ChatGPT, Gemini…) that converts a Pine v6 indicator or strategy. A conversion pasted with its line breaks lost, or with Pine left in it, is mended on the spot.
  • Community: share a script under a username chosen once, with a description. Every public one is drawn live on the showcase.
  • Docs: the reference has the whole language.

A script can only draw on its chart. It runs in a WebAssembly module that imports nothing, has no way to reach the network, the page or an account, and is held to limits on depth, memory and work. The worst a script can do is draw a wrong line. How it is built: crates/frost-script.

Run it

Needs Rust 1.95 with wasm32-unknown-unknown, wasm-bindgen-cli 0.2.128, Deno 2 and Docker (wasm-opt optional).

cp .env.example .env          # choose a database password
docker compose up -d          # PostgreSQL 18 on 127.0.0.1:5438
./scripts/build-wasm.sh       # chart engine and Frost Script module
cargo build --release

set -a; . ./.env; set +a
./target/release/tradoor-backfill binance-perp:BTCUSDT --from 2021-09-01 --track
./target/release/tradoor-recorder &
./target/release/tradoor-server

cd web && deno install && deno task dev   # http://127.0.0.1:5173

Markets are written venue:SYMBOL, for example binance-perp:BTCUSDT. One not backfilled still charts, from the exchange's REST API.

Tests: cargo test, then in web/: deno task check, deno task test, and deno task size after deno task build.

Keys: a–z symbol · ← → timeframe · / or Ctrl K commands · ? help · Esc cancel · Delete remove a drawing.

How it's built

  • Engine: Rust to WebAssembly (about 142 kB gzip) in a Web Worker, WebGL2 on an OffscreenCanvas.
  • History: columnar partition files, about 16 bytes a minute: five years of BTCUSDT minutes in 42 MB, cached by the browser for a year.
  • Live: exchange WebSockets straight to the browser; the server relays only when a browser can't reach an exchange.
  • Frost Script: crates/frost-script, its own WebAssembly module; the server checks every saved script with the same crate.
  • Server: Rust (Axum, Tokio) and PostgreSQL 18 for metadata only. Candles never enter the database.
  • UI: SolidJS, about 67 kB brotli at start; the rest loads when it is first used.
crates/core          candles, timeframes, indicators and studies
crates/codec         the partition format (docs/format.md)
crates/venues        the exchanges
crates/store         the data directory and PostgreSQL metadata
crates/ingest        archive and REST sync
crates/render        the chart as a pure model
crates/wasm          the browser engine
crates/frost-script  Frost Script
bins/server          API, /data and the web app
bins/backfill        download history
bins/recorder        keep tracked markets current
web/                 the SolidJS app (Vite, Deno)
migrations/          PostgreSQL schema
deploy/              compose, systemd and nginx

More in docs/architecture.md.

Self-hosting

On a server

One image holds the binaries and the web app; deploy/compose.yml runs it beside PostgreSQL, and the host's nginx serves the app and proxies /api and /data.

# On your machine
docker build -t tradoor:latest .
ssh user@server 'sudo mkdir -p /var/www/tradoor && sudo chown $USER /var/www/tradoor'
docker save tradoor:latest | gzip | ssh user@server 'gunzip | docker load'
scp deploy/compose.yml deploy/nginx/tradoor.conf deploy/nginx/security-headers.conf deploy/nginx/http.conf user@server:/var/www/tradoor/
scp deploy/env.example user@server:/var/www/tradoor/.env

# On the server
cd /var/www/tradoor
nano .env        # POSTGRES_PASSWORD: openssl rand -hex 24
docker compose up -d
docker compose run --rm server tradoor-backfill binance-perp:BTCUSDT --from 2021-09-01 --track

sudo cp tradoor.conf /etc/nginx/sites-available/tradoor   # set server_name first
sudo cp security-headers.conf /etc/nginx/snippets/tradoor-security-headers.conf
sudo cp http.conf /etc/nginx/conf.d/tradoor.conf
sudo ln -s /etc/nginx/sites-available/tradoor /etc/nginx/sites-enabled/
sudo nginx -t && sudo systemctl reload nginx
sudo certbot --nginx -d tradoor.example.com

Migrations run when the server starts. To update, load a new image and run docker compose up -d. Without Docker, deploy/systemd runs the binaries directly.

CI and deploy

Every push runs the Rust tests, the WASM build, and the web app's type check, build and size budget. A push to main then builds the image, pushes it to ghcr.io/<owner>/tradoor:<commit>, points the server at it and waits for /api/health.

ssh-keygen -t ed25519 -N '' -C tradoor-github-actions -f ~/.ssh/tradoor_deploy
ssh -p <port> root@<server> 'cat >> ~/.ssh/authorized_keys' < ~/.ssh/tradoor_deploy.pub
gh secret set VPS_HOST --body <server>
gh secret set VPS_PORT --body <port>
gh secret set VPS_USER --body root
gh secret set VPS_SSH_KEY < ~/.ssh/tradoor_deploy
ssh-keyscan -p <port> <server> | gh secret set VPS_KNOWN_HOSTS

To roll back, set TRADOOR_IMAGE in .env to an earlier commit's tag and run docker compose up -d.

Options
  • SITE_URL (repository variable): canonical URL, Open Graph image, robots.txt and sitemap, and links in Telegram messages.
  • Analytics: none of tradoor's own. On Cloudflare, turn on Web Analytics for the site (Automatic setup) and Cloudflare adds its tag to each page; the page's policy allows it. Page views only, no cookie.
  • TRADOOR_ADMIN_KEY (server .env, openssl rand -hex 32): opens /online.html, the status page, with readers, accounts, server load, Frost Script moderation and announcements.
  • Partner exchanges: Rewards in the top bar lists referral links (web/src/components/Referrals.tsx), offered once per browser; ?noreferral turns the offer off on a device.
  • Flow of other coins: signed-in readers add up to seven coins of their own; the server records at most twenty at a time.
  • Indices: TOTAL, BTC.D and the rest are worked out by the server from CoinGecko's figures; the VIX is Cboe's, delayed.
Browser ids and moving data

Each browser makes a random id (Settings → Advanced) that its drawings, layout, watchlists, indicators and alerts are kept under. Sign in with Telegram to carry them to other devices.

docker compose exec server tradoor-server adopt <your-browser-id>   # claim drawings saved before ids existed
RSALIANTO_DATABASE_URL=postgres://… scripts/export-rsalianto-drawings.sh > drawings.jsonl
./target/release/tradoor-server import-drawings drawings.jsonl --owner <your-browser-id>
ssh user@server 'bash -s' < scripts/export-signals.sh > signals.tar.gz   # the screener's record
./target/release/tradoor-server signal-research signals.jsonl

Security

  • Sessions: a Telegram sign-in gives the browser a random token, and the server keeps only its hash. /signout to the bot ends every session.
  • Rate limits per address and per kind of request, and per exchange host for the relay (bins/server/src/limits.rs).
  • Relay: only the exchanges' market data calls, over HTTPS, without following redirects.
  • Database: every value goes in as a bound parameter.
  • Page: a strict Content Security Policy with no inline scripts, and user text is always shown as text, never as HTML.
  • Frost Script: limits on size, depth, memory and steps; the server checks scripts on a thread of their own, four at a time.

The server reads the visitor's address from nginx's X-Real-IP, so it must only be reachable through nginx; deploy/compose.yml publishes it on loopback. http.conf keys nginx's limits on Cloudflare's CF-Connecting-IP, which is trustworthy only where nginx admits nothing but Cloudflare (allow its ranges, deny all). After certbot adds its HTTPS block, merge tradoor.conf's locations into the site by hand.

Supporting tradoor

tradoor is free and open source, with nothing behind a paywall, and it stays that way. Keeping it running and growing still costs something: servers, history storage and bandwidth, the AI tools it's built with, and a lot of development time.

Three ways to help, if you want to:

  • Sponsor on GitHub, monthly or once.
  • Sign up on an exchange through tradoor's links (Rewards, in the top bar). You pay the same fees or less; the exchange shares a part with tradoor.
  • Star the repo and tell a trader friend.

Disclaimer

tradoor terminal (tradoorterminal.com) is software: a tool that charts market data and works out technical studies from it. It is not a financial adviser, an investment adviser, a broker or an exchange, and it is not licensed or registered as any of them.

  • Not advice. Nothing tradoor terminal shows is investment advice or a recommendation to buy, sell or hold anything: not its charts, indicators, market profile, signals, alerts or backtests, not the training account, and not the scripts people share in the Community. Signals and backtests tell you what a set of rules found in past data, and the past promises nothing about the future.
  • Your money stays with you. tradoor terminal never holds your funds and is not a party to any trade you make on an exchange.
  • Data as the exchanges send it. Prices, order books, trades and liquidations come straight from the exchanges and can be late, incomplete or wrong, and the site itself can be slow or unavailable.
  • Your decisions, your risk. Trading crypto can lose all you put in, and with leverage it can happen fast. Every decision and every trade is yours, and so is its result. tradoor terminal and its authors are not liable for any loss or damage that comes from using it.
  • Where you live. Not every exchange or product is allowed in every country. Making sure you may use them is up to you.
  • As is. The software comes with no warranty of any kind, as sections 15 and 16 of the license set out.

License

GNU Affero General Public License, version 3. If you run a modified version for others over a network, you must offer them its source.

Copyright © 2026 rsalianto.

Nội dung README thuộc về tradoor-terminal và cộng đồng đóng góp, giấy phép AGPL-3.0. Nguồn: github.com/tradoor-terminal/tradoor