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
- An active context (Switch context). The views only read.
Steps¶
-
Open a value.
- On Infra › States (
5in the default layout), highlight a key and pressEnter(/narrows the list first, e.g.kind:orderbook). - On Infra › Events (
9), pressTfor the topic tree andEnteron 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.
- On Infra › States (
-
Switch representation:
vshows the next one that fits the value, in order (an order book: ladder, then JSON tree), and wraps around. -
Open the stream:
hswitches between the value and its stream (each value read while the pane is shown, or each event of the topic), and back.vthen 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). -
An indicator's stream: on Trading › Indicators (
4), pick the scenario and indicator, highlight a pair and pressEnter: its saved value, then each change, as a plot first (unitsfor TradeFlow,midfor BookImbalance,valuefor a single value).vandhas above. -
Back:
Escreturns 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/.