Farm Terminal
santori GitHub
Abstract market topology represented as a moss landscape and data mesh
Farm Terminal

Turn market noise
into executable edges.

system online

Trading infrastructure / 2026

Data always
moves.

A multi-exchange futures terminal that turns live market data into positions, spreads and automated execution.

01 6 venues

One terminal for balances, positions and execution.

02 O(n) scanner

Cross-venue spread discovery over a shared event bus.

Connected system / exchanges + infrastructure

Product tour

See the flow in one pass.

Overview → Trade → Spread → Auto-trading — captured from the running stack.

Farm Terminal product tour

How it works

From keys to execution.

Full path — not a disconnected UI mock.

01

Connect accounts

API keys in envelope encryption via KMS. Multi-account per venue.

02

Watch live

ws-service streams prices, positions and PnL into the terminal.

03

Catch spreads

O(n) min/max across six connectors → open/close signals.

04

Execute

Manual orders or Telegram signals → NATS → trading-worker.

Product

Terminal surfaces.

Screenshots from the live Docker stack.

Overview
01 Overview
Trade
02 Trade

Shipped

What actually shipped.

Exchanges

Six venues, one terminal.

MEXC, Gate, Bitget, BingX, Bybit, Binance — TypeScript REST + WebSocket adapters.

  • Multi-account
  • Encrypted credentials
  • Live balances & positions

Spread HFT

O(n) scan. LIVE gateway.

Array cache, thresholds, Go connectors → NATS → signal path.

  • Pair builder in Redis
  • Open / close signals
  • Telegram auto-trading

Architecture

System shape.

Browser → nginx → API / WS · NATS · workers.

Browser nginx API ws-service NATS trading-worker key-service spread-engine pnl-engine PostgreSQL Redis farm-spa edge proxy node-service prices / positions event bus order execution KMS decrypt HFT min/max stats / trades
Swipe to explore the full system →

Stack

Built with.

Stop waiting to show the stack.

Tour the terminal, then open the repo — production path, not a mock.