added external_order_id to our order def for echo back in order state to facilitate incoming FIX

This commit is contained in:
Kevin Darby committed 2020-02-19 10:48:57 -05:00
1 parent fb8c603b18
commit 995b4cbefe
2 files changed
+4

No files matched your search

+2
View File
@@ -74,6 +74,7 @@ message OrderDefinition {
OrderSubType sub_type = 12;
uint32 attach_target_order_key = 16;
CustomOrderDefinition custom_def = 11;
string external_order_id = 20;
}
message CustomOrderDefinition
@@ -392,6 +393,7 @@ message OrderState {
HIDDEN = 1;
}
DisplayStatus display_status=23;
string external_order_id = 105;
oneof custom {
// native order types
@@ -92,6 +92,8 @@ class OrderStateUpdateEvent : public mercury::Event<OrderStateUpdateEvent> {
result.set_filled_at_attach_time_quantity(filled_at_attach_time_quantity);
result.set_last_msg(last_msg);
result.set_display_status(display_status);
if(definition)
result.set_external_order_id(definition->external_order_id());
return result;
}