Files
spark/src/lib/config/protos/UI.proto
T

170 lines
6.4 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 manual_fills = 9 [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];
optional uint32 max_mbo_orders = 8 [default = 200];
}
message OrderBookOptions {
optional bool animate_child_order_rows = 1 [default = false];
optional double status_color_opacity_when_selected = 2 [default = 0.35];
}
message OrderTicketOptions {
optional bool close_on_send = 1 [default = true];
}
message OrderAlerts {
// when the client sees an order for the first time,
// this time period is used to determine if the order is actually new,
// or [presumably]just arrived bc shell is still initializing, or the server restarted.
optional int32 stale_order_threshold_seconds = 1 [default = 60];
}
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 PNLOptions {
optional bool show_new_pnl = 1 [default = true];
optional bool show_old_pnl = 2 [default = false];
optional bool show_pause_resume = 3 [default = false];
optional bool enable_animations = 4 [default = false];
}
message TimeAndSalesOptions {
// Adds a 'pause/resume updates' toggle button to the spark menu if set to true.
// This may be helpful when debugging, or diagnosing problems.
optional bool can_pause_updates = 1 [default = false];
}
message AlgoStudioOptions {
enum ModelType {
FlatDefinitions = 0;
DefinitionsAndTemplates = 1;
}
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];
// Props below are vestiges from the algo 'template' model in the original spec (as opposed to the 'flat' definition model used now).
// -------------------------------------------------------------------
// 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];
}
// 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];
}
message OffsetAttachUIOptions {
optional bool show_price = 1 [default = false];
optional bool show_quantity = 2 [default = false];
}
message ManualFillsOptions {
optional bool modal_transactions = 1 [default = true];
}