convert_and_validate_timestamp#

convert_and_validate_timestamp(timestamp)[source]#

Ensure the timestamp is converted to our internal state format.

  • Strategies deal with Pandas timestamps

  • State stores internally datetime.datetime, no timezone, all UTC

Parameters:

timestamp (Union[Timestamp, datetime]) –

Return type:

datetime