bars()
The chart’s bars by default, or another market or interval.MarketInfo
IntervalInfo
Length in milliseconds for time bars (for months, the average month);
na for bars that close on trades.BarView
One bar. Values the source does not provide arena.
When the bar ends (exclusive). For time bars,
time + interval.ms; for months, the next month’s open.BarsOptions
Bars
The index of this stream’s newest bar, known on every bar of history (Pine’s
last_bar_index). It grows as new bars arrive; bars already run keep the value they saw.The footprint’s row size on the chart, in price: the reader’s own, or what Auto draws at the
chart’s zoom, so rows a script marks sit on the footprint’s rows. Pass it to a profile, as
profile.bar().rows({ rowSize: chart.rowSize }). A script that reads it runs again from its
first bar when the size changes. Without a footprint, the reader’s size for the market, or one
near a 5,000th of the price ($20 rows for BTC at 81,000). On the chart’s own bars only;
na on another market’s or interval’s.The bar
n bars ago on this stream; ago(0) is the current one. Fields are na before the first bar.The developing bar of this stream, read from another stream’s handler. It changes until the
bar closes (it repaints), which is why it has to be asked for by name.
Runs for every bar of history, once, and again on every update of the forming bar.
trades()
Trade
One trade (a taker fill), with the identities 0xArchive records.True when the same taker order filled the trade before this one on the stream (time order,
execution order within a millisecond), filters such as
minSize aside. False where the
source does not say. Join fills into orders with it when takerOrderId is null.The trade’s change in the venue’s open interest, in the market’s base unit, from both sides’
positions before it: positive where it opened positions, negative where it closed them, 0 where
one side opened and the other closed. Hyperliquid and HIP-3 count both sides of open interest,
Lighter longs only, as each venue’s own open interest does.
na where the venue does not know.Why the taker’s side of the trade traded, from the position it changed: see
Intent. null
where it is unknown (a position 0xArchive could not vouch for), on Lighter, and from a server
that does not send it.Intent
What one side of a trade did to its position, as 0xArchive’s who’s-trading series buckets it:open_long,open_short: opened or added to a long (short);tp_long,tp_short: reduced or closed a long (short) in profit, not forced;stop_long,stop_short: reduced or closed a long (short) at a loss, or forced out by a liquidation or auto-deleveraging;flip_ls,flip_sl: went from long to short (short to long) in the one fill;settlement: a settlement, which is no trade decision. New values are only ever added.
TradesOptions
Trades
Runs once per trade, in execution order, before the
onBar of the bar it falls in.Whether trades cover the current bar completely. Trade history is limited, so older bars have none.
takerOrders()
Taker orders joined from the market’s trades: the same history and live feed astrades().
TakerOrder
One taker order, joined from its fills: a trade withsameOrder false and the trades after it
with sameOrder true.
TakerOrdersOptions
TakerOrders
Runs once per taker order, once all its fills are in, in time order with other events and
before the
onBar of the bar it falls in. A forming bar never sees part of an order.liquidations()
Liquidation
Liquidations
Whether the current bar’s liquidations are all in. It says the bar is complete, not that the
feed is healthy. False on bars older than the 7 days of history. A closed bar waits for its
liquidations (about 2 seconds on the chart’s own market, a few minutes on another market,
which has no live feed) and reads false only past that wait; the script then runs again from
its first bar once they arrive. The forming bar reads true once everything before it is in.
How the stream stands now, whichever bar runs:
'loading' (nothing yet), 'live' (complete
to within seconds of now), 'delayed' (complete to a few minutes behind: normal for a market
other than the chart’s, for a moment while the chart’s live feed starts or reconnects, and for
a few minutes when the live server holds fewer minutes than that, as just after it restarts),
'retrying' (a read failed and is asked again, and the coverage is not keeping up meanwhile)
or 'unavailable' (the market has none).derivatives()
Derivatives
Perp state as of the current bar: the last sample at or before it.na when unknown.
breadth()
Breadth
The share of a venue’s markets trading above their session VWAP, as of the current bar.How complete the sample is: the percent of the venue’s markets that had data for it, 0 to 100.
universe
Universes picked point in time from every Hyperliquid perp, delisted ones included while they traded, so a backtest never trades a market for what it later became.(n: number, options?: UniverseOptions & { by?: 'volume' | 'openInterest'; window?: number; minHistory?: number; every?: number; anchor?: string | number }): Pool
The
n (at most 50) markets with the most dollar volume over the trailing window days (or
the most open interest on the last day, by: 'openInterest'), among those with minHistory
days of prices, re-picked every every days from anchor. Defaults: 30, 60, 30 and
2025-03-22, signal-lab’s rule; fewer than half the places filled is no universe.(select: (view: PickView) => readonly string[] | null, options?: UniverseOptions & { every?: number; anchor?: string | number }): Pool
A rule of your own:
select(view) returns the members best first (at most 50), or null to keep the last pick, every every days.UniverseReads
The universe history’s reads, for picking markets: every Hyperliquid perp’s daily rows, listed and delisted, as of the current moment, so a day is read once it has closed and never before. Days and counts are UTC days; returns are daily log returns exceptret. A rule’s
select(view) and pool.view read these; a pool’s own price reads use its members’ bars.
Whether the market has a close on the day read: listed then, and not yet delisted.
The close
ago days back (0, the default, is the last day read).The last
n closes, oldest first, na where a day has none.The standard deviation of the last
n daily log returns, not annualised.The least-squares beta of the last
n daily log returns on to’s.The sum over the last
n days of each return less to’s times the beta fitted over the last fit days.The mean hourly funding rate over the last
n days (1 by default); a day’s funding is about 24 times it.PickView
What auniverse.rule select reads: the days before its pick.
Pool
A universe: its members, picked point in time from the universe history, and reads of any market’s own bars at the pool’s interval (the chart’s unlessinterval names another), the bars
a portfolio trades on. Counts are bars of that interval; a bar is read once it has closed. A
market’s bars load the first time it is picked or read; until then its reads are na.
The universe history’s reads as of now, as a rule’s
select(view) gets them: markets, listed, openInterest, funding, historyDays…The close
ago bars back (0, the default, is the last closed bar).The last
n closes, oldest first, na where a bar is missing.The standard deviation of the last
n log returns, per bar, not annualised.The least-squares beta of the last
n log returns on to’s over the same bars.The sum over the last
n bars of each return less to’s times the beta fitted over the last fit bars.UniverseOptions
Days of the universe history loaded before the chart’s first bar (default 180, or what the first universe or portfolio asked for).
The interval of the pool’s price reads, such as
'1h' or '1d', from 1m to 1W. Default the chart’s.portfolio
Turning scores into a portfolio’s weights. Scores and weights are objects of market to number.The markets by score, best first;
na scores left out.(scores: Readonly<Record<string, number>>, options?: { quantile?: number; sides?: 'both' | 'long' | 'short'; gross?: number; by?: Readonly<Record<string, number>> }): Readonly<Record<string, number>>
Long the top
quantile (default 0.2) of the markets scored and short the bottom one, or one
side only (sides), each side’s weights summing to its share of gross (default 1), equal or
in proportion to by (such as 1 / vol).(weights: Readonly<Record<string, number>>, vols: Readonly<Record<string, number>>): Readonly<Record<string, number>>
Each weight over its market’s volatility, rescaled to the same gross.
depth()
Depth
Resting size in the book near the price, as of the current update.Total resting bid and ask size within
bandPct percent of the mid. bandPct must be one of the declared bands.Book views have no history until the terminal serves one; before that only live bars have them.
book()
The live order book of a market, level by level: the nearestlevels a side (100 by default),
ungrouped, from 0xArchive’s live book. Live only; history level by level is not served.
BookLevel
One price level of the live book.BookChange
A level an update changed.LiveBook
The live order book, level by level and ungrouped, as of the current moment: built from every update before it, as trades are delivered before it. Live only: before the page’s book arrived (every bar older than the page) it readsavailable false and empty lists.
Runs once per update of the book, in time order with trades and other events and before the
onBar of the bar it falls in. An update is one book the page received: about one per block
of the venue’s, coalesced to at most one per frame.The size resting at
price on a side: 0 where no level rests there, na past the deepest
level held on that side, where the book is not known.The levels the last update changed; in
onUpdate, the update running. A level that only came
into the levels held, or left them, as the book moved is not a change: the book holds only its
nearest levels a side.orderBook()
BookBand
A band around the mid, in basis points: 10 is 0.1%, 1000 is 10%.BookStat
avg, the default: the time-weighted mean over the bar. close: the book at the bar’s end.
OrderBook
The full-depth order book over each of the chart’s bars (Hyperliquid and HIP-3, from 2026-09-06): from 0xArchive’s book archive, and for the newest hour from the page’s live book. A bar the book was not known for readsna, never 0. Live, the page holds up to 400 levels a side, so a band
that reaches past them reads na until the archive has the hour.
Size resting at the best bid and the best ask (the best queues), in contracts.
Resting size within
band of the mid on one side: in contracts, or in USD with usd: true.Bids less asks over their sum, in USD within
band: -1 (all asks) to 1 (all bids).What a market order of
usd pays against the mid at the bar’s end, in basis points; na when the book cannot fill it.openInterest()
OpenInterest
Open interest over each of the chart’s bars, from 0xArchive’s one-minute open interest (Hyperliquid from 2025-03-01, HIP-3 and Lighter from their own starts). A bar opens at the close of the minute before it, soclose - open is its whole change; its high and low are over its
minutes. In the market’s base unit, or USD with { usd: true } (each minute’s open interest times
its mark).
The newest bars are built from the trades instead: each trade’s change in open interest
(Trade.oiDelta), summed and anchored to the one-minute open interest, so the forming bar moves
with every trade and each bar closes where its last trade left it. On time bars of a minute or
more that is every bar since the hour before the chart opened; on seconds bars and bars that close
on trades (tick, volume, range and the rest) it is every bar, as far back as those bars reach
(today and the two UTC days before). USD there is each level times the price of the
trade that set it.
The bar’s change, close less open. In USD it is the change in coins at the bar’s closing mark,
so it counts positions opened and closed, not the price moving the ones already open.
funding()
Funding
The funding rate over each of the chart’s bars, from 0xArchive’s one-minute funding readings (Hyperliquid from 2025-03-01, HIP-3 and Lighter from their own starts). A bar’s rate is the venue’s rate at its last minute: on Hyperliquid the predicted rate for the hour then running, which is what settles at the hour’s end, so a 1h bar holds the rate its hour paid. Positive: longs pay shorts. The forming bar moves as each minute closes, about 1 to 4 minutes behind. Only time charts of whole minutes, 1m or longer, have it: on seconds, tick, volume and range bars every value isna.
The rate as a fraction per hour, as the venues pay it, or per
hours hours (8 for an eight-hour rate, 8760 for a year’s).The premium at the bar’s last minute, the mark’s distance from the oracle the rate is built from;
na on Lighter.liquidationLevels()
Where open positions would be liquidated, from 0xArchive’s liquidation levels.Level
A price level with resting size on each side, such as a liquidation or stop cluster.USD notional that would trade if price reached the level: long and short positions, or buy and sell orders.
Levels
triggers()
Resting stop and trigger orders by price, where the data exists.dealerExposure()
BTC option dealers, every 5 minutes, whatever the chart’s market: their gamma, charm and vanna at BTC’s price, the gamma flip, and each strike’s net position. The last 7 days.StrikeExposure
One strike’s dealers at adealerExposure() snapshot.
Dealers’ net position in BTC of options at this strike, calls and puts together: + long, − short.
DealerExposure
The snapshot as of the current bar: when it was taken, and the BTC index then (the options’ underlying).
Dealers’ totals at spot. Gamma: BTC of delta per $1,000 of price; + dealers lean against moves
(sell rises, buy dips), − they chase them. Charm: BTC of delta per hour as time passes; + dealers
sell, − they buy. Vanna: BTC of delta per vol point of implied volatility; + dealers sell as IV
rises, − they buy.
DealerExposureOptions
How dealer positions are inferred from the options’ trades. ‘block’ (the default): dealers hold the
other side of block trades, where the taker asked for the quote. ‘all’: every trade, which counts
a dealer who lays a block off on screen twice.
Which options count. ‘next’ (the default): the nearest expiry still to come at each snapshot,
as the Dealer exposure panel opens; it dominates gamma near spot. ‘all’: every expiry.
optionTrades()
Every BTC option print, whatever the chart’s market: history back to the chart’s first bar, at most 7 days, then live.OptionTrade
One BTC option print, with every field the exchange sends.The order it belongs to: a block’s id,
COMBO-… for a screen combo, or TAKER-{time}-{side}.OptionTradesOptions
OptionTrades
Runs once per print, in time order with other events and before the
onBar of the bar it falls in.optionOrders()
BTC option orders joined from their prints: the same history and live feed asoptionTrades().
OptionOrder
One option order, joined from its prints: a block, a screen combo, or one taker order that took several prices or strikes in the same millisecond (a sweep).The premium in USD, and in BTC.
notional is the premium in USD too.How many prints, strikes and expiries it took, its first print’s strike, and its lowest and highest.
OptionOrders
volumeProfile()
ProfileRow
One row of a volume profile: what takers bought and sold betweenlow and high, in the
market’s base unit.
Where the row starts: a whole multiple of the row size, or the traded price itself without one.
ValueArea
The rows around the point of control holding a share of a profile’s volume.ProfileOptions
The height of each row in price, such as 10 for $10 rows on BTC. Rows sit on whole multiples
of it, so a row is the same row on every bar and in every profile. Defaults to the stream’s
rowSize; without either, each traded price is its own row.Profile
Volume by price over a span of trades, as of the moment the handler runs. Read it in the run that asked for it: asking the stream again for the same span gives the newer profile.Whether the trades cover the whole span. A span older than the trade history is missing its start.
The rows, lowest price first. With a row size, every row from the lowest to the highest
traded one, empty rows included; without, each traded price.
null past 4,096 rows: use a
larger row size.The point of control: the row with the most volume (the higher one on a tie);
null with no trades.The value area holding
percent (default 70) of the volume, by TradingView’s rule, the one the
footprint chart uses: from the point of control, add whichever neighbouring row holds more,
while the area stays at or under the share. null with no trades.VolumeProfile
Volume by price from the market’s trades (trades()): what takers bought and sold at each
price, over the current chart bar, the last few bars, or since a time such as the session’s
start. Trades reach back to the chart’s first bar, at most 7 UTC days. Before that, a span reads
the archive’s order flow by bar (orderFlow()) at the same row size, so it starts at the first
whole bar at or after its start; where neither covers it, it reads available: false.
Every trade from
time to now, such as the session so far: since(clock.startOf(chart.time, 'day')).orderFlow()
Order flow by bar (OrderFlow). rowSize puts the rows on whole multiples of it, floor(price / rowSize) as
volumeProfile() places them, and must be a whole multiple of the market’s price step; without it each traded price
is its own row, so a run never depends on the price when it ran. Every chart interval of a minute or more; seconds
bars and bars that close on trades read available: false.
FlowRow
One price row of a bar’s order flow: what takers bought and sold at that price. Sizes in the market’s base unit.FlowBar
One bar’s order flow: every trade that filled against the book in it, as the venue’s candles count them, so its volume and trade count equal the bar’s. Backstop liquidations and auto-deleveraging are counted beside it (offBookVolume), never in it. Sizes in the market’s base unit.
Whether the bar is whole and its rows are held. False for a bar the archive does not know, holds only part of (
partial), or past the rows kept.The running delta’s low and high after each trade, from 0 at the bar’s open, never clamped at 0;
na with no trade.Trades that did not fill against the book (backstop liquidations, auto-deleveraging), not in the rows or totals;
na on a bar from the live trades.The order of trades within a millisecond was inferred somewhere in the bar, so
minDelta/maxDelta may be approximate there.FlowProfile
Order flow rows summed over a run of whole bars.OrderFlow
Order flow by bar at the chart’s interval, from 0xArchive’s order flow archive: per bar and price, what takers bought and sold, with the bar’s delta, its running delta’s extremes, liquidations and busiest second. Built from every trade that filled against the book and checked minute by minute against the candles, so a bar’s volume and trade count equal the candle’s. Hyperliquid perps from 22 Mar 2025 12:00 UTC and HIP-3 from 22 Dec 2025 at the earliest; it reaches as far back as the chart, a year in a backtest, wheretrades() reaches 7 days.
A bar is read once it has closed, never before: in a bar’s own handler bar() is that bar. The forming bar is not
in it: live, its order flow is trades() or volumeProfile().bar(). On a chart, bars after the archive’s last closed hour
are folded from the live trades as they close (their offBookVolume is na: the live tape does not tell those
trades apart). What neither knows (before the archive’s start, a day it has not built) reads available: false and
na, never 0. Rows are kept for the last
2,000 bars or 500,000 rows, whichever is fewer; totals for the whole run.
The newest bar closed as of the handler (in a bar’s handler, that bar);
null before any.Rows summed from the first whole bar at or after
time to the newest closed bar.Cumulative delta in base units to the newest closed bar:
'session' (the default) from 00:00 UTC of its day,
'start' from the first bar the order flow covers. na when any bar from the anchor on is not known whole.intentFlow()
Intent flow by bar (IntentFlow) for the chart’s market, or market. Every chart interval of a minute or more;
seconds bars and bars that close on trades read available: false.
IntentCategory
What one side of a trade did to its position, astakerWhy and makerWhy name it, or unknown where 0xArchive
could not vouch for the position.
IntentCell
One category of a bar’s intent flow: the trades in it summed. Sizes in the market’s base unit.IntentSide
A side’s categories, andtotal: every trade of the bar, whatever its category, unknown included.
IntentBar
One bar’s intent flow: every trade that filled against the book in it, as the venue’s candles count them, by what each side did to its position. Each side counts every trade once, sotaker.total and maker.total are the bar’s
volume and trade count; all adds the two, every trade twice.
Whether the archive knows the whole bar. False for a bar it does not know (every number
na) or knows only the first part of (partial).The aggressors:
taker.stop_long is longs that sold out at a loss or were forced out, into the book.The resting orders they filled:
maker.open_short is shorts opened by resting sells that takers bought from.IntentFlow
Intent flow by bar at the chart’s interval, from 0xArchive’s intent flow archive: per bar, the book trades summed by what each side did to its position (open_long, tp_short, stop_long and the rest, as takerWhy and makerWhy
name it), with each category’s volume, notional, VWAP and count. “stop” is a losing or forced exit (closed at a loss,
liquidated or auto-deleveraged), not a stop order. Hyperliquid perps from 25 May 2025 14:24 UTC and HIP-3 from
22 Dec 2025 at the earliest; it reaches as far back as the chart, a year in a backtest, where trades() reaches 7 days.
A bar is read once it has closed, never before: in a bar’s own handler bar() is that bar. The forming bar is not in
it, and neither is any bar after the archive’s last closed hour: those read available: false and na, never 0, as
does a day the archive has not built and everything before its start. Live, sum trades() by takerWhy instead.
The newest bar closed as of the handler (in a bar’s handler, that bar);
null before any.sessions
Exchange session calendars for HIP-3 stock and commodity perps.The calendar id for a market, such as
nyse, or null for markets that trade around the clock.(calendar: string, time: Time): { readonly open: boolean; readonly regular: boolean; readonly start: Time; readonly end: Time }
Whether
calendar is in session at time (regular or extended hours), with that session’s
bounds; when closed, start is the last close and end the next open. regular says whether
the session is the regular one. Holidays and early closes included.