140 lines
5.1 KiB
Protocol Buffer
140 lines
5.1 KiB
Protocol Buffer
syntax='proto2';
|
|
package bts.config;
|
|
|
|
message Shell
|
|
{
|
|
repeated string modules = 1;
|
|
//optional bool enable_diagnostics = 2 [default = false];
|
|
// optional int32 launcher_style = 3 [default = 3];
|
|
}
|
|
|
|
// Save the UI state every 5 minutes by default
|
|
message ShellSettingsConfig {
|
|
optional uint32 save_timer = 1 [default = 300];
|
|
}
|
|
|
|
message ShellRenderMode {
|
|
optional bool software_only = 1 [default = false];
|
|
}
|
|
|
|
message IShellModuleProps
|
|
{
|
|
message ModuleProps
|
|
{
|
|
optional string name = 1;
|
|
optional bool visible = 2 [default = true];
|
|
}
|
|
|
|
repeated ModuleProps module = 1;
|
|
}
|
|
|
|
message GridSettings {
|
|
optional string font_family = 1 [default = "Calibri"];
|
|
optional float font_size = 2 [default = 10];
|
|
optional string locale = 3 [default = "en-us"];
|
|
|
|
optional uint32 row_height = 10 [default = 16];
|
|
optional uint32 col_width = 11 [default = 75];
|
|
|
|
// Default grid colors
|
|
optional uint32 color_background = 20 [default = 0xFFFFFF]; // White
|
|
optional uint32 color_foreground = 21 [default = 0]; // Black
|
|
optional uint32 color_grid_line = 22 [default = 0x778899]; // LightSlateGray
|
|
}
|
|
|
|
message ShellLimits {
|
|
optional bool kill_on_close = 1 [default = true];
|
|
optional uint64 limit_memory_mb = 2;
|
|
optional uint64 limit_group_memory_mb = 3;
|
|
}
|
|
|
|
message MultiThreadedWindows {
|
|
optional bool market_view = 1 [default = true];
|
|
optional bool time_and_sales = 2 [default = true];
|
|
optional bool order_book = 3 [default = true];
|
|
optional bool fills = 4 [default = true];
|
|
optional bool pnl = 5 [default = true];
|
|
optional bool algo_studio = 6 [default = true];
|
|
optional bool ladder = 7 [default = true];
|
|
optional bool synthetic_management = 8 [default = true];
|
|
}
|
|
|
|
message LadderKnobs {
|
|
// priorities (ordered): SystemIdle, ApplicationIdle, ContextIdle, Background, Input, Loaded, Render, DataBind, Normal, Send
|
|
// It seems like all priorities higher than ApplicationIdle choke the main thread.
|
|
optional string priority = 1 [default = "ApplicationIdle"];
|
|
optional double interval_ms = 2 [default = 100];
|
|
optional uint32 seconds_to_recenter = 3 [default = 300];
|
|
optional uint32 max_open_ladders = 4 [default = 75];
|
|
optional uint32 security_timeout_secs = 5 [default = 60];
|
|
optional bool open_algo_popup_on_select = 6 [default = false];
|
|
optional bool use_algo_param_grid = 7 [default = true];
|
|
}
|
|
|
|
message OrderBookOptions {
|
|
optional bool animate_child_order_rows = 1 [default = false];
|
|
optional double status_color_opacity_when_selected = 2 [default = 0.35];
|
|
}
|
|
|
|
message ShellPingOptions {
|
|
optional bool shell_ping_is_enabled = 1 [default = true];
|
|
optional int32 workloop_milliseconds_interval = 2 [default = 5000];
|
|
// 4000 is default Windows ping timeout as specified here:
|
|
// https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-xp/bb490968(v=technet.10)
|
|
optional int32 timeout_milliseconds_threshold = 3 [default = 4000];
|
|
optional int32 logging_milliseconds_threshold = 4 [default = 50];
|
|
optional int32 maximum_backoff_milliseconds = 5 [default = 60000];
|
|
}
|
|
|
|
message AlgoStudioOptions {
|
|
enum ModelType {
|
|
FlatDefinitions = 0;
|
|
DefinitionsAndTemplates = 1;
|
|
}
|
|
|
|
enum AddTemplateButton {
|
|
None = 0;
|
|
MainToolBar = 1;
|
|
DefinitionContextMenu = 2;
|
|
}
|
|
|
|
optional bool can_modify_definition_name = 1 [default = true];
|
|
optional bool can_modify_definition_values = 2 [default = true];
|
|
optional bool can_modify_definition_structure = 3 [default = true];
|
|
optional bool can_save_specific = 4 [default = false];
|
|
optional bool can_undo_redo = 5 [default = false];
|
|
optional bool include_custom_templates = 6 [default = true];
|
|
optional bool include_legacy_custom_templates = 7 [default = true];
|
|
optional bool show_badges_in_tree_view = 8 [default = false];
|
|
optional AddTemplateButton add_template_button = 9 [default = None];
|
|
optional ModelType model_type = 10 [default = FlatDefinitions];
|
|
optional bool show_algo_toolbar_rename = 11 [default = false];
|
|
optional bool show_algo_toolbar_revert = 12 [default = false];
|
|
optional bool show_algo_toolbar_save = 13 [default = false];
|
|
optional bool show_algo_toolbar_undo_redo = 14 [default = false];
|
|
}
|
|
|
|
message AlgoStudioFlatDefinitionModelOptions {
|
|
optional bool enabled = 1 [default = true];
|
|
}
|
|
|
|
// TODO: The following algo-type specific attach ui messages should be consolidated into a single location, along with other algo-type metadata.
|
|
message CoverAttachUIOptions {
|
|
optional bool show_price = 1 [default = false];
|
|
optional bool show_quantity = 2 [default = false];
|
|
}
|
|
|
|
message JoinAttachUIOptions {
|
|
optional bool show_price = 1 [default = false];
|
|
optional bool show_quantity = 2 [default = false];
|
|
}
|
|
|
|
message LeanAttachUIOptions {
|
|
optional bool show_price = 1 [default = false];
|
|
optional bool show_quantity = 2 [default = false];
|
|
}
|
|
|
|
message TopAttachUIOptions {
|
|
optional bool show_price = 1 [default = false];
|
|
optional bool show_quantity = 2 [default = false];
|
|
} |