Skip to main content

Module run

Module run 

Source
Expand description

A watchlist run: ticks on the watchlist’s schedule, through the one repeat runner, with the CSV trail and the final report.

Functions§

csv_header
The CSV header of a watchlist run (one row per cell per tick).
csv_rows
The CSV rows of one tick: every cell of every target. source is preset for a preset check and the metric’s group for a rule.
report_text
The report of a run: one market summary --report section per row with a summary (one per venue), then every cell’s last value.
run
Runs ready on its schedule. After each tick, on_tick gets the run number, the tick and the events since the tick before. The CSV gets one row per cell per tick; at the end of the duration, the report is written. A CSV or report write error ends the run and is returned.
schedule
The run’s schedule; a run with no duration goes until cancelled.
write_report
Writes the report of last to path.