TableReplayer

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

Syntax

Parameters

ParameterTypeDescription
start_timeInstantLike

Historical data start time. Can be an Instant, int (nanoseconds since the Epoch), str, datetime.datetime, numpy.datetime64, or pandas.Timestamp.

end_timeInstantLike

Historical data end time. Can be an Instant, int (nanoseconds since the Epoch), str, datetime.datetime, numpy.datetime64, or pandas.Timestamp.

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.