Configuration parameters#
See otp.config for details.
- OptionsTable#
Name
Environment Variable
Description
OTP_DEFAULT_TZDefault timezone used for running queries and creating databases, e.g. with
otp.run. Default value is the local timezone of your machine.OTP_CONTEXTDefault context used for running queries, e.g. with
otp.run.OTP_DEFAULT_START_TIMEDefault start time used for running queries, e.g. with
otp.run.OTP_DEFAULT_END_TIMEDefault end time used for running queries, e.g. with
otp.run.OTP_DEFAULT_DBDefault database name used for running queries, e.g. with
otp.run.OTP_DEFAULT_SYMBOLDefault symbol name used for running queries, e.g. with
otp.run.OTP_DEFAULT_SYMBOLOGYDefault database symbology.
OTP_DEFAULT_CONCURRENCYDefault concurrency level used for running queries, e.g. with
otp.run. Default value is the number of cores/threads on your machine.OTP_DEFAULT_BATCH_SIZEDefault batch size used for running queries, e.g. with
otp.run. Batch size is the maximum number of symbols that are processed at once. The value of 0 means unlimited – works faster for simple queries, but may consume too much memory for complex queries.OTP_DEFAULT_LICENSE_DIRDefault path for license directory. Needed for user to be allowed to use OneTick API. Default value is system-dependent: /license for Linux systems and C:/OMD/client_data/config/license_repository for Windows systems.
OTP_DEFAULT_LICENSE_FILEDefault path for license file. Needed for user to be allowed to use OneTick API. Default value is system-dependent: /license/license.dat for Linux systems and C:/OMD/client_data/config/license.dat for Windows systems.
OTP_DEFAULT_FAULT_TOLERANCEDefault value for USE_FT query property.
OTP_DEFAULT_AUTH_USERNAMEDefault username used for authentication.
OTP_DEFAULT_PASSWORDDefault password used for authentication.
OTP_MAX_EXPECTED_TICKS_PER_SYMBOLExpected maximum number of ticks per symbol (used for performance optimizations).
OTP_SHOW_STACK_INFOShow stack info (filename and line or stack trace) in OneTick exceptions.
OTP_LOG_SYMBOLLog currently executed symbol. Note, this only works with unbound symbols. Note, in this case
otp.rundoes not produce the output so it should be used only for debugging purposes.OTP_IGNORE_TICKS_IN_UNENTITLED_TIME_RANGEDefault value for IGNORE_TICKS_IN_UNENTITLED_TIME_RANGE query property.
OTP_MAIN_QUERY_GENERATED_FILENAMEThe name of the .otq file with generated main query executed by otp.run.
OTP_LOGGINGThe logging level string or path to the file with configuration. Check the documentation of python logging module for the configuration formats. JSON format (in the file with .json suffix) and python configparser formats are supported.
OTP_OTQ_DEBUG_MODEEnable .otq files debug mode. If set to True, onetick.py will keep all generated otq files and log their paths to the console.
NoneAllow using lower case characters in field names that are being stored in Onetick databases. If set to False, onetick.py would not allow saving fields with lower case characters to a database.
Default symbol with database. Defined with
default_dbanddefault_symbolas string default_db::default_symbol.Default date. Defined as a date part of
default_start_time.