otp.OneTickLib#
- class OneTickLib(*args, log_file=None)[source]#
Bases:
object
Singleton class for
otq.OneTickLib
to initialize it once.Returns the same object if it was already initialized.
- set_log_file(log_file)[source]#
Set log file for given instance of OneTickLib
- Parameters
log_file – path to log file
- set_logging_level(lvl)[source]#
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