QuaiWhale logo
QuaiWhale
Markets

Exchange Markets

Collects normalized trades and builds market candles across centralized exchanges.

Unavailable
Runtime key
market_feed
Railway process
market-feed
Required production process
Last heartbeat
Not available
UTC
Last successful cycle
Not available
UTC
Runtime status
Not reported
Next scheduled run
Not available
No next_run_at exposed
Last cycle duration
Not available
No completed cycle timestamp
Process started
Not available
No process start exposed
Current runtime snapshot

Point-in-time operational summary

This worker exposes a current loop-state record in this view. No multi-run history is requested or inferred.

Unavailable
Runtime status
Not reported
Next scheduled
Not available
Checkpoint fields
0
Metadata fields
0
Exact data chain

Input to product surface

required process
Step 1Input
Exchange adapters

Consumes WebSocket and bounded REST trade streams from the configured centralized exchanges.

Step 2Normalization
Normalize and deduplicate

Converts source messages into the canonical trade format and removes duplicates.

Step 3Persistence
Batch persistence

Persists trades through the market-feed batch RPC with a safe per-trade fallback.

Step 4Aggregation
Trades and candles

Updates market trades, source connections, and 1m, 5m, 15m, 1h, and 1d candles.

Step 5Product
QuaiWhale markets

Powers market charts, volumes, pressure windows, source health, and the market snapshot on Overview.

Parallel live orderbook path
Aggregate orderbook
Ably orderbook/snapshot
Live client orderbook
Required dependencies

The chain cannot produce its canonical output without these dependencies.

Exchange WebSocket and REST APIs

Configured public trade feeds for QUAI markets.

Supabase service role

Required for trades, candles, connection state, and batch persistence.

Secondary and fallback paths

Recovery, enrichment, transport, or coordination paths that do not replace the canonical source of truth.

Ably

Optional low-latency orderbook and snapshot transport.

REST backfill adapters

Recovery and bounded historical fill when supported by an exchange.

Storage contract

Tables read or written by this worker chain.

Swipe horizontally to inspect all columns

TablePurpose
market_tradesNormalized and deduplicated exchange trades.
market_candlesAggregated OHLC and volume windows.
market_feed_connectionsPer-exchange runtime, message, trade, and reconnect health.

Product outputs

User-facing workspaces directly powered by this chain.

Runtime checkpoint

Latest exchange batch state

No checkpoint reported

The worker has not yet persisted a public checkpoint for this process instance.

Cycle metadata

No runtime metadata

This chain does not currently expose additional public cycle details.

Implementation map

Primary repository files implementing this worker chain and its product read path.

workers/market-feed/start.cjs
workers/market-feed/core.js
app/lib/market-feed/store.js