Skip to content

Site navigation

Pages of this site.

Centralized cryptocurrency exchange

BitBaax

A cryptocurrency exchange built from scratch, with spot trading, customer-fund custody, multi-chain deposits and withdrawals, identity verification and market making.

~25Mmainnet transactions monitored per day across four chains.

Context

What the system had to do

Dana Blockchain Solutions needed an exchange that could match orders, hold customer funds, handle deposits and withdrawals, and run market-making operations. We started with a new team and an empty repository.

The company also planned other products on the same engine. I needed to separate the shared trading and custody services from the rules and interface of each product.

What I built

Decisions and delivery

  • Led a two-month architecture and research phase, producing about 50 design documents before the twelve-month build.
  • Designed about 26 domain modules using Clean Architecture and domain-driven design, with RabbitMQ, MQTT and WebSocket for event-driven communication and replicated MongoDB and Redis for data.
  • Built authentication, the trade engine, wallets, treasury, asset management and blockchain integration. After encountering JavaScript floating-point precision limits, I rewrote the matching engine’s numeric core in C++ and Go.
  • Built market-making, hedging, price and index bots. Delivered live order books, price feeds and OHLCV chart data over WebSocket with sub-second propagation.
  • Built deposit and withdrawal infrastructure for Ethereum, BSC, Bitcoin and Tron. Used account abstraction, smart wallets and batched transactions to reduce gas costs.
  • Designed custody with separate hot and cold wallets, multi-sig Safe contracts and Vault-managed secrets, including protections against double-spend and chain reorganizations.
  • Built and ran the production infrastructure and GitLab CI pipeline, covering linting, unit and end-to-end tests, security scans and deployment.

Outcomes

Results and status

  • ~25M

    mainnet transactions monitored per day across four chains.

  • 40,000 TPS

    throughput reached in internal load tests of transaction ingestion and validation, rather than exchange trading volume.

  • 40% → 15%

    CI pipeline failure rate across 950 runs.

  • —

    TetherBaax launched on the same exchange core without a fork or changes to that core.

Project images