Order flow
A symbol's live book and tape as a liquidity heatmap, trade bubbles, best bid and ask lines, the latest book at the chart's right edge and a cumulative delta script. It serves five products from the depth and trades Taji already streams for equity, future and crypto items, stored once a binding streams the item.
What it needs
A live order book (TradeStation, Interactive Brokers, Schwab, Robinhood Agentic; Alpaca for crypto) for Liquidity, Best bid and ask and Book, and live trades (Alpaca, TradeStation, Massive, Interactive Brokers) for Prints and the cumulative delta.
| Data | Stocks | Futures | Crypto |
|---|---|---|---|
Live order book (depth) | TradeStation, Interactive Brokers, Schwab, Robinhood Agentic | TradeStation, Interactive Brokers | Alpaca, Interactive Brokers |
Live trades (trades) | Alpaca, TradeStation, Massive, Interactive Brokers | TradeStation, Massive, Interactive Brokers | Alpaca, Massive, Interactive Brokers |
Databento serves both as history read per request, not live. Yahoo Finance's free stream is not a tape (a frame is not a print), so it feeds neither. Every provider's cells: data coverage.
You get order flow by building it, not by installing it: no registry serves it and taji-open does not compile it in, so build it in its own directory (cargo build --locked there) and stage it, with its taji-plugin.toml, SKILL.md and indicators/, in a directory TAJI_PLUGINS names, the way the GEX recipe stages GEX. Once staged, add its layers or the cvd script from the chart's Indicators list: layers are under the Plugins category, cvd under taji-orderflow. The catalog marks each "needs a link" until a linked provider serves the order book or trades it reads.
Use
| Product | One row is |
|---|---|
taji-orderflow.depth | a second's column of the book: step, price and value (the second's peak resting size at each price, both sides), levels and venues where the book states them; stamped at the start of the second it sums |
taji-orderflow.prints | a print: price, size and side |
taji-orderflow.delta | a second with prints: buy, sell and unknown sizes, delta (buy - sell) and gap, the rows the feed dropped; stamped at the second |
taji-orderflow.bbo | the best bid and ask at a second's close |
taji-orderflow.book | the resting book at a second's close, price and value, bids positive and asks negative |
taji-orderflow.footprint | a second's traded size at each price: value, and its buy, sell and unknown parts, and gap; read with timeframe (intraday), the kernel sums the seconds into the chart's bars |
GET /get/taji-orderflow.delta?symbols=future:ESZ26
Five chart layers draw them:
Liquidity(taji.heatmap, behind the bars):depth.Prints(taji.bubbles):prints.Best bid and ask(taji.levels):bbo.Footprint(taji.footprint, under the candles, which narrow to a thin body):footprinton the chart's bars, intraday only.Book(taji.profile, in the dock):book.
golden/ holds each layer's capture: taji plugin check . --bless rewrites it.
The cvd script is the running sum of delta rows per bar, reset at each session's first bar. It plots cvd and takes the session input.
The side is an estimate where the feed does not state it. A print's side is the kernel's (trades.side): the venue's where it states one, else the quote standing at it, else the tick rule, and 0 where none decides; a print can be inferred, so side, buy, sell, unknown and delta stay marked estimated.
Limits:
- A book states N levels a side (
levels: 10 on the fixture's ES-like book); prices outside them draw as outside the book, never as empty. - The newest second's
deltalands a grace (250 ms) after the second closes, so a quiet tape does not hold it back. A print that reaches the plugin later than that, for a second already closed, is not folded into it. - A print with no size is no row and no part of
delta. Rows the feed dropped count ingapof the next row of a second with a sized print.
Try it with taji plugin dev . --headless, which plays fixtures/ live, and taji plugin check ., which also holds the feed-gap line fixtures/trades.jsonl states. Build a feature plugin says how both read.
References
plugins/taji-orderflow/taji-plugin.tomlplugins/taji-orderflow/AGENTS.md