From 564cd3e2734bc2ffc0b8ab210d021abf49581a4c Mon Sep 17 00:00:00 2001 From: Pedro Pinto Date: Tue, 26 Jun 2018 15:36:53 +0000 Subject: [PATCH] Made cme_market_segment_id mandatory in config to avoid mistakes. Its too easy to forget this value and end up routing orders incorrectly. Unfortunately mandatory fields are not yet enforced in config but we have a case to do it in a next cycle. --- src/lib/config/defaults/jetfix.conf | 19 ++++++++++++++++++- src/lib/config/protos/jetfix.proto | 2 +- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/src/lib/config/defaults/jetfix.conf b/src/lib/config/defaults/jetfix.conf index c2e8ab20c..645487577 100644 --- a/src/lib/config/defaults/jetfix.conf +++ b/src/lib/config/defaults/jetfix.conf @@ -9,13 +9,14 @@ JetFIX { # sender_compid: "MBX004N" # target_compid: "CME" # target_subid: "64" + # cme_market_segment_id: 64 # start_time: "00:30:00" # end_time: "23:30:00" # start_day: "sunday" # end_day: "friday" # sender_subid: "BTS" # raw_data: "T8F8F" - # use_cme_secure_logon: true + # use_cme_secure_logon: true # } # connection { # # cert @@ -26,6 +27,7 @@ JetFIX { # sender_compid: "MBX004N" # target_compid: "CME" # target_subid: "70" + # cme_market_segment_id: 70 # start_time: "00:30:00" # end_time: "23:30:00" # start_day: "sunday" @@ -42,6 +44,7 @@ JetFIX { # sender_compid: "MC1004N" # target_compid: "CME" # target_subid: "64" + # cme_market_segment_id: 64 # start_time: "00:30:00" # end_time: "23:30:00" # start_day: "sunday" @@ -58,12 +61,14 @@ JetFIX { # sender_compid: "MC1004N" # target_compid: "CME" # target_subid: "70" + # cme_market_segment_id: 70 # start_time: "00:30:00" # end_time: "23:30:00" # start_day: "sunday" # end_day: "friday" # sender_subid: "BTS" # raw_data: "S4PMA" + # cme_market_segment_id: 70 # } # connection { # # cert @@ -74,6 +79,7 @@ JetFIX { # sender_compid: "MC1004N" # target_compid: "CME" # target_subid: "72" + # cme_market_segment_id: 72 # start_time: "00:30:00" # end_time: "23:30:00" # start_day: "sunday" @@ -90,6 +96,7 @@ JetFIX { # sender_compid: "MC1004N" # target_compid: "CME" # target_subid: "76" + # cme_market_segment_id: 76 # start_time: "00:30:00" # end_time: "23:30:00" # start_day: "sunday" @@ -106,6 +113,7 @@ JetFIX { # sender_compid: "MC1004N" # target_compid: "CME" # target_subid: "84" + # cme_market_segment_id: 84 # start_time: "00:30:00" # end_time: "23:30:00" # start_day: "sunday" @@ -122,6 +130,7 @@ JetFIX { # sender_compid: "MC1004N" # target_compid: "CME" # target_subid: "82" + # cme_market_segment_id: 82 # start_time: "00:30:00" # end_time: "23:30:00" # start_day: "sunday" @@ -138,6 +147,7 @@ JetFIX { # sender_compid: "MC5004N" # target_compid: "CME" # target_subid: "64" + # cme_market_segment_id: 64 # start_time: "00:30:00" # end_time: "23:30:00" # start_day: "sunday" @@ -154,6 +164,7 @@ JetFIX { # sender_compid: "MC7004N" # target_compid: "CME" # target_subid: "64" + # cme_market_segment_id: 64 # start_time: "00:30:00" # end_time: "23:30:00" # start_day: "sunday" @@ -170,6 +181,7 @@ JetFIX { # sender_compid: "MC8004N" # target_compid: "CME" # target_subid: "64" + # cme_market_segment_id: 64 # start_time: "00:30:00" # end_time: "23:30:00" # start_day: "sunday" @@ -186,6 +198,7 @@ JetFIX { # sender_compid: "M5Y004N" # target_compid: "CME" # target_subid: "64" + # cme_market_segment_id: 64 # start_time: "00:30:00" # end_time: "23:30:00" # start_day: "sunday" @@ -202,6 +215,7 @@ JetFIX { # sender_compid: "ANS004N" # target_compid: "CME" # target_subid: "64" + # cme_market_segment_id: 64 # start_time: "00:30:00" # end_time: "23:30:00" # start_day: "sunday" @@ -218,6 +232,7 @@ JetFIX { # sender_compid: "T39004N" # target_compid: "CME" # target_subid: "64" + # cme_market_segment_id: 64 # start_time: "00:30:00" # end_time: "23:30:00" # start_day: "sunday" @@ -234,6 +249,7 @@ JetFIX { # sender_compid: "KTK004N" # target_compid: "CME" # target_subid: "99" + # cme_market_segment_id: 99 # start_time: "00:30:00" # end_time: "23:30:00" # start_day: "sunday" @@ -251,6 +267,7 @@ JetFIX { sender_subid: "BTS" target_compid: "BTS" target_subid: "BTS" + cme_market_segment_id: 0 end_time: "07:48:00" start_time: "07:52:00" raw_data: "1JE9X" diff --git a/src/lib/config/protos/jetfix.proto b/src/lib/config/protos/jetfix.proto index 257d66925..eef8f7f9f 100644 --- a/src/lib/config/protos/jetfix.proto +++ b/src/lib/config/protos/jetfix.proto @@ -71,7 +71,7 @@ message JetFIX { optional bool log_fix_stream = 260 [default=false]; optional bool use_persisted_quote_ids = 270 [default=true]; optional uint32 quote_id_reservation_size = 290 [default=100000]; - optional uint32 cme_market_segment_id = 320 [default=0]; + required uint32 cme_market_segment_id = 320; optional string trading_session_id = 330 [default=""]; optional int32 udf_support_indicator = 340 [default=1];