TableReplayer

TableReplayer is used to replay historical data with timestamps in a new, in-memory table.

Syntax

Parameters

ParameterTypeDescription
start_timeUnion[Instant, str]

Historical data start time.

end_timeUnion[Instant, str]

Historical data end time.

Returns

A Replayer object that can be used to replay historical data.

Methods

TableReplayer supports the following methods:

  • add_table() - Registers a table for replaying and returns the associated replay table.
  • start() - Starts replaying data.
  • shutdown() - Shuts the replayer down.

Example

The following example creates some fake historical data with timestamps and then replays it.

The following example replays two tables with the same replayer.