Skip to content

Commit e622d84

Browse files
Regenerate Miax protocols
1 parent 452408b commit e622d84

25 files changed

Lines changed: 593 additions & 317 deletions

Miax/Miax_EmeraldOptions_Ais_Mach_v1_0_a_Dissector.lua

Lines changed: 31 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,13 @@ omi_miax_emeraldoptions_ais_mach_v1_0_a.fields.username = ProtoField.new("Userna
106106
-- Miax EmeraldOptions Mach Ais 1.0.a Application Messages
107107
omi_miax_emeraldoptions_ais_mach_v1_0_a.fields.complex_liquidity_seeking_event_notification_message = ProtoField.new("Complex Liquidity Seeking Event Notification Message", "miax.emeraldoptions.ais.mach.v1.0.a.complexliquidityseekingeventnotificationmessage", ftypes.STRING)
108108
omi_miax_emeraldoptions_ais_mach_v1_0_a.fields.complex_strategy_definition_update_message = ProtoField.new("Complex Strategy Definition Update Message", "miax.emeraldoptions.ais.mach.v1.0.a.complexstrategydefinitionupdatemessage", ftypes.STRING)
109-
omi_miax_emeraldoptions_ais_mach_v1_0_a.fields.emerald_system_time_message = ProtoField.new("Emerald System Time Message", "miax.emeraldoptions.ais.mach.v1.0.a.emeraldsystemtimemessage", ftypes.STRING)
110109
omi_miax_emeraldoptions_ais_mach_v1_0_a.fields.end_of_refresh_notification_message = ProtoField.new("End Of Refresh Notification Message", "miax.emeraldoptions.ais.mach.v1.0.a.endofrefreshnotificationmessage", ftypes.STRING)
111110
omi_miax_emeraldoptions_ais_mach_v1_0_a.fields.refresh_request_message = ProtoField.new("Refresh Request Message", "miax.emeraldoptions.ais.mach.v1.0.a.refreshrequestmessage", ftypes.STRING)
112111
omi_miax_emeraldoptions_ais_mach_v1_0_a.fields.refresh_response_message = ProtoField.new("Refresh Response Message", "miax.emeraldoptions.ais.mach.v1.0.a.refreshresponsemessage", ftypes.STRING)
113112
omi_miax_emeraldoptions_ais_mach_v1_0_a.fields.simple_liquidity_seeking_event_notification_message = ProtoField.new("Simple Liquidity Seeking Event Notification Message", "miax.emeraldoptions.ais.mach.v1.0.a.simpleliquidityseekingeventnotificationmessage", ftypes.STRING)
114113
omi_miax_emeraldoptions_ais_mach_v1_0_a.fields.simple_series_update_message = ProtoField.new("Simple Series Update Message", "miax.emeraldoptions.ais.mach.v1.0.a.simpleseriesupdatemessage", ftypes.STRING)
115114
omi_miax_emeraldoptions_ais_mach_v1_0_a.fields.system_state_message = ProtoField.new("System State Message", "miax.emeraldoptions.ais.mach.v1.0.a.systemstatemessage", ftypes.STRING)
115+
omi_miax_emeraldoptions_ais_mach_v1_0_a.fields.system_time_message = ProtoField.new("System Time Message", "miax.emeraldoptions.ais.mach.v1.0.a.systemtimemessage", ftypes.STRING)
116116
omi_miax_emeraldoptions_ais_mach_v1_0_a.fields.underlying_trading_status_notification_message = ProtoField.new("Underlying Trading Status Notification Message", "miax.emeraldoptions.ais.mach.v1.0.a.underlyingtradingstatusnotificationmessage", ftypes.STRING)
117117

118118
-- Miax EmeraldOptions Ais Mach 1.0.a generated fields
@@ -1027,7 +1027,7 @@ miax_emeraldoptions_ais_mach_v1_0_a.message_type.size = 1
10271027
-- Display: Message Type
10281028
miax_emeraldoptions_ais_mach_v1_0_a.message_type.display = function(value)
10291029
if value == "1" then
1030-
return "Message Type: Emerald System Time Message (1)"
1030+
return "Message Type: System Time Message (1)"
10311031
end
10321032
if value == "P" then
10331033
return "Message Type: Simple Series Update Message (P)"
@@ -3234,20 +3234,20 @@ miax_emeraldoptions_ais_mach_v1_0_a.simple_series_update_message.dissect = funct
32343234
end
32353235
end
32363236

3237-
-- Emerald System Time Message
3238-
miax_emeraldoptions_ais_mach_v1_0_a.emerald_system_time_message = {}
3237+
-- System Time Message
3238+
miax_emeraldoptions_ais_mach_v1_0_a.system_time_message = {}
32393239

3240-
-- Size: Emerald System Time Message
3241-
miax_emeraldoptions_ais_mach_v1_0_a.emerald_system_time_message.size =
3240+
-- Size: System Time Message
3241+
miax_emeraldoptions_ais_mach_v1_0_a.system_time_message.size =
32423242
miax_emeraldoptions_ais_mach_v1_0_a.seconds.size
32433243

3244-
-- Display: Emerald System Time Message
3245-
miax_emeraldoptions_ais_mach_v1_0_a.emerald_system_time_message.display = function(packet, parent, length)
3244+
-- Display: System Time Message
3245+
miax_emeraldoptions_ais_mach_v1_0_a.system_time_message.display = function(packet, parent, length)
32463246
return ""
32473247
end
32483248

3249-
-- Dissect Fields: Emerald System Time Message
3250-
miax_emeraldoptions_ais_mach_v1_0_a.emerald_system_time_message.fields = function(buffer, offset, packet, parent)
3249+
-- Dissect Fields: System Time Message
3250+
miax_emeraldoptions_ais_mach_v1_0_a.system_time_message.fields = function(buffer, offset, packet, parent)
32513251
local index = offset
32523252

32533253
-- Seconds: SecTime
@@ -3263,21 +3263,21 @@ miax_emeraldoptions_ais_mach_v1_0_a.emerald_system_time_message.fields = functio
32633263
return index
32643264
end
32653265

3266-
-- Dissect: Emerald System Time Message
3267-
miax_emeraldoptions_ais_mach_v1_0_a.emerald_system_time_message.dissect = function(buffer, offset, packet, parent)
3266+
-- Dissect: System Time Message
3267+
miax_emeraldoptions_ais_mach_v1_0_a.system_time_message.dissect = function(buffer, offset, packet, parent)
32683268
if show.application_messages then
32693269
-- Optionally add element to protocol tree
3270-
parent = parent:add(omi_miax_emeraldoptions_ais_mach_v1_0_a.fields.emerald_system_time_message, buffer(offset, 0))
3271-
local index = miax_emeraldoptions_ais_mach_v1_0_a.emerald_system_time_message.fields(buffer, offset, packet, parent)
3270+
parent = parent:add(omi_miax_emeraldoptions_ais_mach_v1_0_a.fields.system_time_message, buffer(offset, 0))
3271+
local index = miax_emeraldoptions_ais_mach_v1_0_a.system_time_message.fields(buffer, offset, packet, parent)
32723272
local length = index - offset
32733273
parent:set_len(length)
3274-
local display = miax_emeraldoptions_ais_mach_v1_0_a.emerald_system_time_message.display(packet, parent, length)
3274+
local display = miax_emeraldoptions_ais_mach_v1_0_a.system_time_message.display(packet, parent, length)
32753275
parent:append_text(display)
32763276

32773277
return index, parent
32783278
else
32793279
-- Skip element, add fields directly
3280-
return miax_emeraldoptions_ais_mach_v1_0_a.emerald_system_time_message.fields(buffer, offset, packet, parent)
3280+
return miax_emeraldoptions_ais_mach_v1_0_a.system_time_message.fields(buffer, offset, packet, parent)
32813281
end
32823282
end
32833283

@@ -3286,9 +3286,9 @@ miax_emeraldoptions_ais_mach_v1_0_a.data = {}
32863286

32873287
-- Dissect: Data
32883288
miax_emeraldoptions_ais_mach_v1_0_a.data.dissect = function(buffer, offset, packet, parent, message_type)
3289-
-- Dissect Emerald System Time Message
3289+
-- Dissect System Time Message
32903290
if message_type == "1" then
3291-
return miax_emeraldoptions_ais_mach_v1_0_a.emerald_system_time_message.dissect(buffer, offset, packet, parent)
3291+
return miax_emeraldoptions_ais_mach_v1_0_a.system_time_message.dissect(buffer, offset, packet, parent)
32923292
end
32933293
-- Dissect Simple Series Update Message
32943294
if message_type == "P" then
@@ -3805,6 +3805,18 @@ miax_emeraldoptions_ais_mach_v1_0_a.payload = {}
38053805

38063806
-- Dissect: Payload
38073807
miax_emeraldoptions_ais_mach_v1_0_a.payload.dissect = function(buffer, offset, packet, parent, packet_type)
3808+
-- Dissect Heartbeat
3809+
if packet_type == 0 then
3810+
return offset
3811+
end
3812+
-- Dissect Start Of Session
3813+
if packet_type == 1 then
3814+
return offset
3815+
end
3816+
-- Dissect End Of Session
3817+
if packet_type == 2 then
3818+
return offset
3819+
end
38083820
-- Dissect Application Message
38093821
if packet_type == 3 then
38103822
return miax_emeraldoptions_ais_mach_v1_0_a.application_message.dissect(buffer, offset, packet, parent)
@@ -3857,7 +3869,7 @@ miax_emeraldoptions_ais_mach_v1_0_a.mach_message.fields = function(buffer, offse
38573869
-- Session Number: 1 Byte Unsigned Fixed Width Integer
38583870
index, session_number = miax_emeraldoptions_ais_mach_v1_0_a.session_number.dissect(buffer, index, packet, parent)
38593871

3860-
-- Payload: Runtime Type with 1 branches
3872+
-- Payload: Runtime Type with 4 branches
38613873
index = miax_emeraldoptions_ais_mach_v1_0_a.payload.dissect(buffer, index, packet, parent, packet_type)
38623874

38633875
return index

Miax/Miax_EmeraldOptions_ComplexTopOfMarket_Mach_v1_0_a_Dissector.lua

Lines changed: 31 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,13 @@ omi_miax_emeraldoptions_complextopofmarket_mach_v1_0_a.fields.complex_top_of_mar
122122
omi_miax_emeraldoptions_complextopofmarket_mach_v1_0_a.fields.complex_top_of_market_best_bid_or_offer_compact_format_offer_message = ProtoField.new("Complex Top Of Market Best Bid Or Offer Compact Format Offer Message", "miax.emeraldoptions.complextopofmarket.mach.v1.0.a.complextopofmarketbestbidoroffercompactformatoffermessage", ftypes.STRING)
123123
omi_miax_emeraldoptions_complextopofmarket_mach_v1_0_a.fields.complex_top_of_market_best_bid_or_offer_wide_format_bid_message = ProtoField.new("Complex Top Of Market Best Bid Or Offer Wide Format Bid Message", "miax.emeraldoptions.complextopofmarket.mach.v1.0.a.complextopofmarketbestbidorofferwideformatbidmessage", ftypes.STRING)
124124
omi_miax_emeraldoptions_complextopofmarket_mach_v1_0_a.fields.complex_top_of_market_best_bid_or_offer_wide_format_offer_message = ProtoField.new("Complex Top Of Market Best Bid Or Offer Wide Format Offer Message", "miax.emeraldoptions.complextopofmarket.mach.v1.0.a.complextopofmarketbestbidorofferwideformatoffermessage", ftypes.STRING)
125-
omi_miax_emeraldoptions_complextopofmarket_mach_v1_0_a.fields.emerald_system_time_message = ProtoField.new("Emerald System Time Message", "miax.emeraldoptions.complextopofmarket.mach.v1.0.a.emeraldsystemtimemessage", ftypes.STRING)
126125
omi_miax_emeraldoptions_complextopofmarket_mach_v1_0_a.fields.end_of_refresh_notification_message = ProtoField.new("End Of Refresh Notification Message", "miax.emeraldoptions.complextopofmarket.mach.v1.0.a.endofrefreshnotificationmessage", ftypes.STRING)
127126
omi_miax_emeraldoptions_complextopofmarket_mach_v1_0_a.fields.refresh_request_message = ProtoField.new("Refresh Request Message", "miax.emeraldoptions.complextopofmarket.mach.v1.0.a.refreshrequestmessage", ftypes.STRING)
128127
omi_miax_emeraldoptions_complextopofmarket_mach_v1_0_a.fields.refresh_response_message = ProtoField.new("Refresh Response Message", "miax.emeraldoptions.complextopofmarket.mach.v1.0.a.refreshresponsemessage", ftypes.STRING)
129128
omi_miax_emeraldoptions_complextopofmarket_mach_v1_0_a.fields.simple_series_update_message = ProtoField.new("Simple Series Update Message", "miax.emeraldoptions.complextopofmarket.mach.v1.0.a.simpleseriesupdatemessage", ftypes.STRING)
130129
omi_miax_emeraldoptions_complextopofmarket_mach_v1_0_a.fields.strategy_last_sale_message = ProtoField.new("Strategy Last Sale Message", "miax.emeraldoptions.complextopofmarket.mach.v1.0.a.strategylastsalemessage", ftypes.STRING)
131130
omi_miax_emeraldoptions_complextopofmarket_mach_v1_0_a.fields.system_state_message = ProtoField.new("System State Message", "miax.emeraldoptions.complextopofmarket.mach.v1.0.a.systemstatemessage", ftypes.STRING)
131+
omi_miax_emeraldoptions_complextopofmarket_mach_v1_0_a.fields.system_time_message = ProtoField.new("System Time Message", "miax.emeraldoptions.complextopofmarket.mach.v1.0.a.systemtimemessage", ftypes.STRING)
132132
omi_miax_emeraldoptions_complextopofmarket_mach_v1_0_a.fields.underlying_trading_status_notification_message = ProtoField.new("Underlying Trading Status Notification Message", "miax.emeraldoptions.complextopofmarket.mach.v1.0.a.underlyingtradingstatusnotificationmessage", ftypes.STRING)
133133

134134
-- Miax EmeraldOptions ComplexTopOfMarket Mach 1.0.a generated fields
@@ -1119,7 +1119,7 @@ miax_emeraldoptions_complextopofmarket_mach_v1_0_a.message_type.size = 1
11191119
-- Display: Message Type
11201120
miax_emeraldoptions_complextopofmarket_mach_v1_0_a.message_type.display = function(value)
11211121
if value == "1" then
1122-
return "Message Type: Emerald System Time Message (1)"
1122+
return "Message Type: System Time Message (1)"
11231123
end
11241124
if value == "P" then
11251125
return "Message Type: Simple Series Update Message (P)"
@@ -3880,20 +3880,20 @@ miax_emeraldoptions_complextopofmarket_mach_v1_0_a.simple_series_update_message.
38803880
end
38813881
end
38823882

3883-
-- Emerald System Time Message
3884-
miax_emeraldoptions_complextopofmarket_mach_v1_0_a.emerald_system_time_message = {}
3883+
-- System Time Message
3884+
miax_emeraldoptions_complextopofmarket_mach_v1_0_a.system_time_message = {}
38853885

3886-
-- Size: Emerald System Time Message
3887-
miax_emeraldoptions_complextopofmarket_mach_v1_0_a.emerald_system_time_message.size =
3886+
-- Size: System Time Message
3887+
miax_emeraldoptions_complextopofmarket_mach_v1_0_a.system_time_message.size =
38883888
miax_emeraldoptions_complextopofmarket_mach_v1_0_a.seconds.size
38893889

3890-
-- Display: Emerald System Time Message
3891-
miax_emeraldoptions_complextopofmarket_mach_v1_0_a.emerald_system_time_message.display = function(packet, parent, length)
3890+
-- Display: System Time Message
3891+
miax_emeraldoptions_complextopofmarket_mach_v1_0_a.system_time_message.display = function(packet, parent, length)
38923892
return ""
38933893
end
38943894

3895-
-- Dissect Fields: Emerald System Time Message
3896-
miax_emeraldoptions_complextopofmarket_mach_v1_0_a.emerald_system_time_message.fields = function(buffer, offset, packet, parent)
3895+
-- Dissect Fields: System Time Message
3896+
miax_emeraldoptions_complextopofmarket_mach_v1_0_a.system_time_message.fields = function(buffer, offset, packet, parent)
38973897
local index = offset
38983898

38993899
-- Seconds: SecTime
@@ -3909,21 +3909,21 @@ miax_emeraldoptions_complextopofmarket_mach_v1_0_a.emerald_system_time_message.f
39093909
return index
39103910
end
39113911

3912-
-- Dissect: Emerald System Time Message
3913-
miax_emeraldoptions_complextopofmarket_mach_v1_0_a.emerald_system_time_message.dissect = function(buffer, offset, packet, parent)
3912+
-- Dissect: System Time Message
3913+
miax_emeraldoptions_complextopofmarket_mach_v1_0_a.system_time_message.dissect = function(buffer, offset, packet, parent)
39143914
if show.application_messages then
39153915
-- Optionally add element to protocol tree
3916-
parent = parent:add(omi_miax_emeraldoptions_complextopofmarket_mach_v1_0_a.fields.emerald_system_time_message, buffer(offset, 0))
3917-
local index = miax_emeraldoptions_complextopofmarket_mach_v1_0_a.emerald_system_time_message.fields(buffer, offset, packet, parent)
3916+
parent = parent:add(omi_miax_emeraldoptions_complextopofmarket_mach_v1_0_a.fields.system_time_message, buffer(offset, 0))
3917+
local index = miax_emeraldoptions_complextopofmarket_mach_v1_0_a.system_time_message.fields(buffer, offset, packet, parent)
39183918
local length = index - offset
39193919
parent:set_len(length)
3920-
local display = miax_emeraldoptions_complextopofmarket_mach_v1_0_a.emerald_system_time_message.display(packet, parent, length)
3920+
local display = miax_emeraldoptions_complextopofmarket_mach_v1_0_a.system_time_message.display(packet, parent, length)
39213921
parent:append_text(display)
39223922

39233923
return index, parent
39243924
else
39253925
-- Skip element, add fields directly
3926-
return miax_emeraldoptions_complextopofmarket_mach_v1_0_a.emerald_system_time_message.fields(buffer, offset, packet, parent)
3926+
return miax_emeraldoptions_complextopofmarket_mach_v1_0_a.system_time_message.fields(buffer, offset, packet, parent)
39273927
end
39283928
end
39293929

@@ -3932,9 +3932,9 @@ miax_emeraldoptions_complextopofmarket_mach_v1_0_a.data = {}
39323932

39333933
-- Dissect: Data
39343934
miax_emeraldoptions_complextopofmarket_mach_v1_0_a.data.dissect = function(buffer, offset, packet, parent, message_type)
3935-
-- Dissect Emerald System Time Message
3935+
-- Dissect System Time Message
39363936
if message_type == "1" then
3937-
return miax_emeraldoptions_complextopofmarket_mach_v1_0_a.emerald_system_time_message.dissect(buffer, offset, packet, parent)
3937+
return miax_emeraldoptions_complextopofmarket_mach_v1_0_a.system_time_message.dissect(buffer, offset, packet, parent)
39383938
end
39393939
-- Dissect Simple Series Update Message
39403940
if message_type == "P" then
@@ -4471,6 +4471,18 @@ miax_emeraldoptions_complextopofmarket_mach_v1_0_a.payload = {}
44714471

44724472
-- Dissect: Payload
44734473
miax_emeraldoptions_complextopofmarket_mach_v1_0_a.payload.dissect = function(buffer, offset, packet, parent, packet_type)
4474+
-- Dissect Heartbeat
4475+
if packet_type == 0 then
4476+
return offset
4477+
end
4478+
-- Dissect Start Of Session
4479+
if packet_type == 1 then
4480+
return offset
4481+
end
4482+
-- Dissect End Of Session
4483+
if packet_type == 2 then
4484+
return offset
4485+
end
44744486
-- Dissect Application Message
44754487
if packet_type == 3 then
44764488
return miax_emeraldoptions_complextopofmarket_mach_v1_0_a.application_message.dissect(buffer, offset, packet, parent)
@@ -4523,7 +4535,7 @@ miax_emeraldoptions_complextopofmarket_mach_v1_0_a.mach_message.fields = functio
45234535
-- Session Number: 1 Byte Unsigned Fixed Width Integer
45244536
index, session_number = miax_emeraldoptions_complextopofmarket_mach_v1_0_a.session_number.dissect(buffer, index, packet, parent)
45254537

4526-
-- Payload: Runtime Type with 1 branches
4538+
-- Payload: Runtime Type with 4 branches
45274539
index = miax_emeraldoptions_complextopofmarket_mach_v1_0_a.payload.dissect(buffer, index, packet, parent, packet_type)
45284540

45294541
return index

0 commit comments

Comments
 (0)