FIZZ

The demo floor / the lake

Ask the lake

Every order, trade and cancel this floor has kept is also a row of columns in a lake (DuckLake: Parquet files and a small catalog). Each panel below is a question in SQL, asked again with every change and every choice.

So there's a month to ask about, this floor's thirty days before 27 November 2026 were written in one go: its bots trading as they do live, every change decided by the floor's own rules. Since then it's live.

5 questions · 495 ms · 162.3 MB read

The floor and the lakeThey agree.as of change 1,208,520

eventsorderstradesmarketsmembers
The floor's own countFloor1,208,482632,116232,142659
The lake's, in SQLLake1,208,482632,116232,142659
Span
15m1h6h24h7dAll39,935 events asked about
Market
Every marketWill the build be green by lunch?Will the next deploy need a rollback?Will the standup run over ten minutes?Will the flaky test pass three times running?Will the office be more than half full on Monday?Will the design review ask for another round?Will the quarterly numbers beat the forecast?Will the on-call handoff happen on time?
Member
EveryoneAda (bot)Bayes (bot)Euler (bot)Gauss (bot)JordanFisher (bot)Hayek (bot)Coase (bot)

Order flowshares bid at each price; the line, what it traded atfewermore shares bid

125507599traded, by priceorders: YES over NOline: trades
2026-11-21 06:44:10 UTCright: traded, by price2026-11-28 06:44:10 UTC
one question, four parts · 112 ms · 32.5 MB read · 437 rowsSQL
WITH w AS (SELECT greatest(max(at_ms) - 604800000, min(at_ms)) AS t0, max(at_ms) AS t1 FROM events),
e AS (
  SELECT events.*, w.t0, w.t1, least((at_ms - w.t0) * 48 // greatest(w.t1 - w.t0, 1), 47) AS stretch
  FROM events, w WHERE at_ms >= w.t0 AND (market = 'ca73f99f1f264b9c' OR kind = 'OrderCancelled' AND "order" IN (SELECT "order" FROM events WHERE kind = 'OrderPlaced' AND market = 'ca73f99f1f264b9c'))
)
SELECT 'flow' AS part, NULL AS market, stretch AS a,
    (CASE side WHEN 'Yes' THEN "limit" ELSE 100 - "limit" END - 1) // 3 AS b,
    sum(shares) AS c, NULL AS d, NULL AS e, NULL AS f, NULL AS g
  FROM e WHERE kind = 'OrderPlaced' GROUP BY ALL
UNION ALL
SELECT 'lines', market, stretch, sum(price * shares) / sum(shares), NULL, NULL, NULL, NULL, NULL
  FROM e WHERE kind = 'Traded' GROUP BY ALL
UNION ALL
SELECT 'busy', NULL, stretch,
    count(*) FILTER (WHERE kind = 'OrderPlaced' AND side = 'Yes'),
    count(*) FILTER (WHERE kind = 'OrderPlaced' AND side = 'No'),
    count(*) FILTER (WHERE kind = 'Traded'), count(*), min(t0), min(t1)
  FROM e GROUP BY ALL
UNION ALL
SELECT 'profile', NULL, (price - 1) // 3, sum(shares), count(*), NULL, NULL, NULL, NULL
  FROM e WHERE kind = 'Traded' GROUP BY ALL
ORDER BY part, market, a

Who trades with whomshares

from whose resting order
who tookHayeCoasDutcFishEuleGausBayeAda
Hayek (bot)
Coase (bot)
Dutch (bot)
Fisher (bot)
Euler (bot)
Gauss (bot)
Bayes (bot)
Ada (bot)
a join · 164 ms · 32.5 MB read · 56 rowsSQL
WITH w AS (SELECT greatest(max(at_ms) - 604800000, min(at_ms)) AS t0, max(at_ms) AS t1 FROM events),
e AS (
  SELECT events.*, w.t0, w.t1, least((at_ms - w.t0) * 48 // greatest(w.t1 - w.t0, 1), 47) AS stretch
  FROM events, w WHERE at_ms >= w.t0 AND (market = 'ca73f99f1f264b9c' OR kind = 'OrderCancelled' AND "order" IN (SELECT "order" FROM events WHERE kind = 'OrderPlaced' AND market = 'ca73f99f1f264b9c'))
)
, placed AS (SELECT "order", "by" AS owner FROM events WHERE kind = 'OrderPlaced')
SELECT t."by" AS taker,
  CASE WHEN y.owner = t."by" THEN n.owner ELSE y.owner END AS maker,
  sum(t.shares) AS shares, count(*) AS trades
FROM e t JOIN placed y ON y."order" = t.yes JOIN placed n ON n."order" = t."no"
WHERE t.kind = 'Traded' GROUP BY 1, 2 ORDER BY shares DESC LIMIT 200

Membersthe busiest first

MemberOrdersShares bidTookCancelled
Hayek (bot)3,0018,7431,0381,456
Coase (bot)2,7207,2661,0751,441
Dutch (bot)2,6727,1569411,403
Fisher (bot)2,6146,6189581,443
Euler (bot)2,6086,4571,0191,406
Gauss (bot)2,4945,9649731,343
Bayes (bot)2,4405,6509021,338
Ada (bot)2,3775,2158991,372
by member · 102 ms · 32.5 MB read · 8 rowsSQL
WITH w AS (SELECT greatest(max(at_ms) - 604800000, min(at_ms)) AS t0, max(at_ms) AS t1 FROM events),
e AS (
  SELECT events.*, w.t0, w.t1, least((at_ms - w.t0) * 48 // greatest(w.t1 - w.t0, 1), 47) AS stretch
  FROM events, w WHERE at_ms >= w.t0 AND (market = 'ca73f99f1f264b9c' OR kind = 'OrderCancelled' AND "order" IN (SELECT "order" FROM events WHERE kind = 'OrderPlaced' AND market = 'ca73f99f1f264b9c'))
)
SELECT "by" AS member,
  count(*) FILTER (WHERE kind = 'OrderPlaced') AS orders,
  sum(shares) FILTER (WHERE kind = 'OrderPlaced') AS bid,
  count(*) FILTER (WHERE kind = 'Traded') AS took,
  count(*) FILTER (WHERE kind = 'OrderCancelled') AS cancelled
FROM e GROUP BY 1 HAVING count(*) FILTER (WHERE kind = 'OrderPlaced') > 0 ORDER BY orders DESC, member LIMIT 12

Marketsthe most traded first

MarketOrdersTradesSharesAvgFirstLast
Will the office be more than half full on Monday?20,9267,80512,70039.46051
Will the design review ask for another round?20,0517,59512,34841.24737
Will the pager stay quiet tonight?17,3346,34110,46020.84812
Will the incident review name one root cause?17,6276,26910,41263.05771
Will support tickets drop next week?11,6184,1166,96345.54874
Will the big refactor land before the freeze?10,2923,8936,51064.14869
Will the demo work the first time?9,5493,5065,94155.64491
Will the meeting end with a decision?8,4123,0065,06777.35677
Will the build be green by lunch?7,1693,0695,01147.25864
Will the dashboard load in under a second by Friday?7,6743,0094,79367.23952
Will the release ship this week?5,6872,4473,96553.26222
Will the next deploy need a rollback?5,4712,3723,76957.05863
by market · 83 ms · 32.5 MB read · 12 rowsSQL
WITH w AS (SELECT greatest(max(at_ms) - 604800000, min(at_ms)) AS t0, max(at_ms) AS t1 FROM events),
e AS (
  SELECT events.*, w.t0, w.t1, least((at_ms - w.t0) * 48 // greatest(w.t1 - w.t0, 1), 47) AS stretch
  FROM events, w WHERE at_ms >= w.t0
)
SELECT market,
  count(*) FILTER (WHERE kind = 'OrderPlaced') AS orders,
  count(*) FILTER (WHERE kind = 'Traded') AS trades,
  sum(shares) FILTER (WHERE kind = 'Traded') AS traded,
  sum(price * shares) FILTER (WHERE kind = 'Traded') / sum(shares) FILTER (WHERE kind = 'Traded') AS average,
  arg_min(price, seq) FILTER (WHERE kind = 'Traded') AS first,
  arg_max(price, seq) FILTER (WHERE kind = 'Traded') AS last
FROM e WHERE market IS NOT NULL GROUP BY 1 ORDER BY traded DESC NULLS LAST, market LIMIT 12