otp.date#

class date(first_arg, month=None, day=None)#

Bases: onetick.py.types.datetime

Class date is used for representing date in onetick-py. It can be used both when specifying start and end time for queries and in column operations with onetick.py.Source.

Parameters

Note

Class otp.date share many methods that classes pandas.Timestamp and datetime.date have, but these objects are not fully interchangeable. Class otp.date should work in all onetick-py methods and classes, other classes should work too if documented, and may even work when not documented, but the users should not count on it.

Examples

Datetime guide.