TableReplayer
TableReplayer is used to replay historical data with timestamps in a new, in-memory table.
Syntax
Parameters
| Parameter | Type | Description |
|---|---|---|
| start_time | InstantLike | Historical data start time. Can be an |
| end_time | InstantLike | Historical data end time. Can be an |
Returns
A TableReplayer 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.