Calculations › Market Breakdown

Show the top 10 stocks by latest trading volume

The query

WITH latest AS (
  SELECT DISTINCT ON (tp.ticketnameid) tp.ticketnameid, tp.price, tp.volume
  FROM ticketprice tp JOIN ticketname tn ON tn.id = tp.ticketnameid
  WHERE tn.tickettype = 'stock'
  ORDER BY tp.ticketnameid, tp.datetime DESC
)
SELECT tn.ticket AS symbol, l.price, l.volume
FROM latest l JOIN ticketname tn ON tn.id = l.ticketnameid
WHERE l.volume IS NOT NULL
ORDER BY l.volume DESC
LIMIT 10;

Runs against Cryptobi's market tables — ticketname (symbols), ticketprice (daily prices and volume) and symbolmetadata (sector, exchange, market cap and other reference fields).

Current output

SymbolPriceVolume
PMED.ST 0.00 776742592
ATORX.ST 0.01 221177655
NVDA 150.49 180940449
K33.ST 0.02 95821361
INTC 57.40 76206386
INTRUM.ST 1.91 46291568
CRNO-B.ST 0.18 33866613
NIO 2.85 31177319
AMZN 254.12 27148968
MU 646.95 26547049

Live output, first 10 rows, refreshed periodically. Model estimates are trend projections from recent prices, not financial advice.

Run this on your own holdings, change it, or write your own in SQL or Python — then put it on a dashboard or have it emailed on a schedule. Free, no credit card.

Sign Up Free

Related calculations