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 419465539
NVDA 150.61 146522577
K33.ST 0.01 135430047
INTC 58.94 54696229
SBB-B.ST 2.57 48217807
NIO 2.88 40903246
NOKIA.HE 7.32 37908831
INTRUM.ST 1.82 34467161
VSURE.ST 11.01 30980116

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