|
General Q/A
< Previous Next >
Re: Deep Multileg Orders
Hanno Klein / Deutsche Börse Systems <> 23 Aug 2010 5:00AM ET Robert,
the simple answer is no. FIX only has one example where such a recursive structure is supported. This is the case for market segments in the Market Definition messages where you can implement a hierarchy of market segments and tag 1325 ParentMarketSegmentID can refer to a market segment on the next higher level.
Recursive structures are highly complex and to my knowledge only of theoretical value for multileg orders. Do you have examples from the real world for complex instruments that have legs which are complex instruments themselves?
Theoretically, FIX does allow you to define such nested complex instruments but a few restrictions apply for order handling, execution and trade messages. The SecurityDefinition message contains an instrument identifier (SecurityID) and <InstrmntLegGrp> to define the legs. Instead of defining legs, you could simply identify them with LegSecurityID and send another message which has the value of LegSecurityID in the field SecurityID and its own <InstrmntLegGrp>. Again, you can either define the legs (now at nested level 2) or continue nesting by only identifying them and sending yet another message with the nested LegSecurityID in the field SecurityID. Your recursive instrument needs an ID at every level down to the simple instrument. The receiver has to piece the tree back together.
The restrictions for order handling are that you can only use the fields of NewOrderMultileg that IDENTIFY the complex instrument because you can only send a single NewOrderMultileg message. In other words, you can only reference IDs that you have defined with SecurityDefintion.
The same applies to executions and trades that need to be broken down into their individual pieces as you never have more than one level of nesting for legs.
Recursive structures can be very elegant but are like icebergs, you don't see how much is underneath until you hit them...
Regards,
Hanno.
> Can I make a NewOrderMultileg wherein the legs themselves have legs?
Re: Deep Multileg Orders Hanno Klein / Deutsche Börse Systems 23 Aug 2010 5:00AM ET |