Documentation Hub

Everything you need to master Trading Glass — from first launch to advanced API integration

API Reference

Integrate with the Trading Glass backend via REST endpoints and real-time WebSocket streams. The API server runs on port 3333.

GET

/binance/:symbol/trades

Retrieve historical trade data from the Redis-backed store for any supported symbol.

GET

/binance/:symbol/series

Fetch pre-aggregated OHLCV series data with configurable roller intervals.

GET

/binance/:symbol/status

Check the health and connection status of the Binance WebSocket bridge.

WS

/ws

Real-time WebSocket endpoint streaming depth snapshots and aggregated trades as they occur.

WebSocket Message Format

{ "type": "trade", "symbol": "BTCUSDT", "data": [timestamp, price, qty, isBuy, id, firstId, keyFromRoller] }

Trade data arrives as tuple arrays for maximum throughput. The roller key groups trades into configurable time windows (1s, 5s, 30s, 1m, 5m, 30m, 4h, 1d).

Integrations

Trading Glass connects seamlessly with industry-leading data sources and infrastructure.

Binance

Native integration with Binance spot and futures markets via WebSocket for real-time order flow data.

Redis

High-performance Redis caching layer for historical trade storage and fast series retrieval.

WebSocket API

Connect your own applications to Trading Glass via our WebSocket API for custom dashboards and bots.

REST API

Programmatic access to historical trades, aggregated series, and platform status via REST endpoints.

Can't Find What You Need?

Visit our Support Center or explore the full feature list to get the most out of Trading Glass.