Skip to content

Show a value or stream another way

Goal: see a state value, an event's data or a stream of values in the form that fits it: an object as a tree, an order book as a ladder, a series of numbers as a plot.

Prerequisites

Steps

  1. Open a value.

    • On Infra › States (5 in the default layout), highlight a key and press Enter (/ narrows the list first, e.g. kind:orderbook).
    • On Infra › Events (9), press T for the topic tree and Enter on a topic: its events since the last clear (c).

    The value shows in its first representation: a ladder for an order book, the number for a number, a JSON tree for an object, the Indicators pane's row for an indicator value.

    An order book key of States opened: its ladder

  2. Switch representation: v shows the next one that fits the value, in order (an order book: ladder, then JSON tree), and wraps around.

    The same key after v: its JSON tree

  3. Open the stream: h switches between the value and its stream (each value read while the pane is shown, or each event of the topic), and back. v then cycles the stream's representations: plot (a line of the number over time), latest (the newest value, redrawn) or log (one line per value, newest last).

    The key's stream after h

  4. An indicator's stream: on Trading › Indicators (4), pick the scenario and indicator, highlight a pair and press Enter: its saved value, then each change, as a plot first (units for TradeFlow, mid for BookImbalance, value for a single value). v and h as above.

    A pair's indicator stream as a plot

  5. Back: Esc returns to the list.

What you should see

  • A stream of numbers or indicator values opens as a plot that grows as values arrive.
  • A stream of objects opens as a log.
  • The value shown follows the stream: a new value replaces it while it is open.

Troubleshooting

Symptom Cause and fix
The plot stays empty or at one point Nothing new arrived while the value is open: is the producing worker running (Infra › Workers)? States rereads every 2 s only while the pane is shown.
A representation you expect is missing It does not fit this value (e.g. a tree for plain text), or your representations.json replaced the kind's list.
v does nothing The value has one representation only.
An event topic does not open Open the tree with T first; Enter on a node shows its events, on a topic its stream.

The representations of each kind and how to change them: Views › Representations. The web app's guide for the same task: https://app.docs.virtufin.com/.