Skip to content

Open Exchange — Trading UI

Web-based trading interface for the Open Exchange ultra-low-latency matching engine. Built with React, TypeScript, and Vite.

Features

  • Real-time order book with depth visualization
  • Live trade feed via WebSocket
  • Interactive candlestick charts (lightweight-charts)
  • Order entry — limit, market, post-only, stop-loss, stop-limit, trailing stop, iceberg
  • Time-in-force options — GTC, IOC, FOK, GTD
  • Active orders panel with real-time status updates and cancel
  • Account management — balance display, deposit, and withdraw
  • Market statistics and ticker
  • Cluster administration panel
  • Responsive mobile layout

Tech Stack

  • React 19 + TypeScript
  • Vite — dev server and build tooling
  • lightweight-charts — financial charting
  • WebSocket — real-time market data streaming

Getting Started

Prerequisites

  • Node.js 22+
  • Running backend services (matching engine, OMS, market gateway)

Install & Run

npm install
npm run dev

The dev server starts on port 80 (override with npm run dev -- --port 5173 if you cannot bind privileged ports) with proxies configured for:

Path Target
/ws ws://localhost:8081 (market data)
/api/v1 http://localhost:8080 (order API)
/api/admin http://localhost:8082 (admin gateway)
/api/candles http://localhost:8081 (candles)

Build

npm run build
npm run preview

Project Structure

src/
  components/
    Chart/            — Candlestick chart
    ConnectionStatus/ — WebSocket connection indicator
    MarketSelector/   — Market pair picker
    MarketStats/      — 24h ticker stats
    OrderBook/        — Bid/ask depth display
    OrderForm/        — Order entry form
    OpenOrders/       — Active orders list
    Trades/           — Recent trade feed
  hooks/              — WebSocket, order book, trades, API hooks
  pages/
    AdminPage         — Cluster admin dashboard
  types/              — TypeScript type definitions

License

Licensed under the Apache License 2.0. See LICENSE for details.

About

React/TypeScript trading dashboard for Open Exchange matching engine

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages