Skip to main content

Module fetch

Module fetch 

Source
Expand description

One tick: read every target’s metrics and judge its rules.

Each source is read once per target per tick, however many rules use it. A failed read makes that source’s cells Error with the exact error text; other sources and other targets go on. The metrics that compare with the tick before read the run’s History.

Structs§

Clock
When a tick reads: now, and how far back the first tick looks for trades (one interval), both in ms.
TargetReading
One row’s results.
Tick
One tick’s results.

Constants§

PRESET_ERROR_LABEL
The cell a preset shows when its summary could not be read.

Functions§

read_target
Reads and judges one target: one reading per row of Target::rows. Each venue’s market is read once; the token and the address sources once for the target.
tick
Reads and judges every target of ready, in order. history holds what the ticks before read; this tick adds its reading.