otp.OneTickLib#
- class OneTickLib(*args, **kwargs)#
Bases:
object
Singleton class for
otq.OneTickLib
to initialize it once.Returns the same object if it was already initialized.
- cleanup()#
Destroy otq.OneTickLib instance and reset singleton class
- set_log_file(log_file)#
Set log file for given instance of OneTickLib
- Parameters
log_file – path to log file
- set_logging_level(lvl)#
Logging level can be specified by using LoggingLevel Enum class
- Parameters
lvl (onetick.lib.instance.LoggingLevel) – available values are LoggingLevel.MIN, LoggingLevel.LOW, LoggingLevel.MEDIUM or LoggingLevel.MAX
- Returns