time#
API documentation for tradingstrategy.utils.time Python module in Trading Strategy.
Module description#
Helpers to timestamp format and value conformity.
We are operating on naive Python datetimes, all in UTC timezone
Functions#
Check we do not get in bad input timestamps. |
|
Round Pandas timestamp to a start of a month. |
|
Round Pandas timestamp to a start of a week. |
|
|
Generate timestamps from the start to the end. |
|
Get the first timestamp in the index that is before the given timestamp. |
Ensure Pandas Timestamp is naive. |
|
|
Get naive UTC datetime from UNIX time. |
Get utcnow() but without timezone information. |
|
Get datetime as UTC seconds since epoch. |