Skip to content

Globals

QuantConnect.Globals

Bases: Object

Provides application level constant values

api

api: str

The base api url address to use

user_id

user_id: int

The user Id

project_id

project_id: int

The project id

user_token

user_token: str

The user token

organization_id

organization_id: str

The organization id

results_destination_folder

results_destination_folder: str

The results destination folder

data_folder

data_folder: str

The root directory of the data folder for this application

live_mode

live_mode: bool

True if running in live mode

CACHE

CACHE: str = './cache/data'

The directory used for storing downloaded remote files

version

version: str

The version of lean

cache_data_folder

cache_data_folder: str

Data path to cache folder location

get_data_folder_path

get_data_folder_path(relative_path: str) -> str

Helper method that will build a data folder path checking if it exists on the cache folder else will return data folder

reset

reset() -> None

Resets global values with the Config data.