assert_compatible_timestamp#

API documentation for tradingstrategy.utils.time.assert_compatible_timestamp Python function.

assert_compatible_timestamp(ts)[source]#

Check we do not get in bad input timestamps.

Raise:

AssertionError if the timestamp object is incompatible

Parameters:

ts (Timestamp) –