Flutter · BLoC · Clean Architecture

Trade spot, futures and OTC
from a single codebase.

BTCB Exchange is a cross-platform trading client with native candlestick charts, a live order book, leverage with SL/TP, a three-wallet balance system and instant OTC conversion — on iOS, Android, Web and Windows.

4
platforms
3
market types
32
listed assets in demo mode
0
backend needed

What is inside

Spot & Futures

Market and limit orders, leverage, stop-loss and take-profit, position lines drawn straight on the chart.

Native charts

A hand-written candlestick renderer with crosshair, watermark, indicators and fully customisable settings — no WebView.

Three wallets

Funding, spot and futures balances with transfers between them, deposits and withdrawals per network, and Auto-Earn rewards.

OTC quick convert

Instant asset swaps with live quotes, expiry countdown, conversion history and generated invoices.

Real-time data

WebSocket tickers, order book and trade tape, with a mark-price stream feeding the futures account.

Security

JWT with DPoP proof-of-possession, 2FA, pattern and biometric screen lock, secrets in secure storage.

The app itself

Captured on an iPhone simulator with USE_MOCK_DATA=true — every figure comes from the coherent demo dataset.

Architecture

Presentation

Flutter widgets · BLoC · GoRouter

Domain

Entities · Use cases · Repository contracts

Data

REST & WebSocket sources · DTOs · Repositories

Unidirectional data flow, immutable state, dependency injection with get_it, functional error handling with dartz. Mock mode swaps only the data sources, so the domain and presentation layers never know the backend is absent.

Run it in a minute

git clone <this-repo> && cd btcb
flutter pub get
flutter run --dart-define=USE_MOCK_DATA=true

Mock mode needs no API keys and no server: the demo exchange lives in lib/core/mock/.