Size of Tags 9, 35!

Imported from previous forum

Hi,

Has the size of tag9 (bodylength) and tag35 (messagetype) been specified somewhere?

Specs clearly states for e.g. size of tag10, to be 3 digits!

Nick

Some Tags like 10 (CheckSum), 75 (TradeDate), 52 (SendingTime) have fixed length / formats, other data types like int, char, float, RawData, XMLData etc do not have length restrictions. Refer Data Types section in FIX.4.0 specification.doc Page 7/67 shown as Page 3 in footer of page.

But consult your counterparty’s rules of engagement because some sell side applications place restrictions on length of 11 (ClOrdID), 41 (OrigClOrdID), some buy side applications place restrictions on length of 37 (OrderID), 17 (ExecID) etc.

Hi,

Has the size of tag9 (bodylength) and tag35 (messagetype) been specified somewhere?

Specs clearly states for e.g. size of tag10, to be 3 digits!

Nick

Thanks!

I am now only concerned about size of Bodylength field, so as to know how much data to read from socket!

What would be the maximum allowed value of Bodylength? (i.e. max size of FIX message)

In FIX.4.0, Tag 9 (BodyLength) is of data type int. Definition of int data type is

int: Sequence of digits without commas or decimals and optional sign character (ASCII characters “-” and “0” - “9” ). The sign character utilizes one byte (i.e. positive int is “99999” while negative int is “-99999”).

Examples: 723 in field 21 would be mapped int as |21=723|.
-723 in field 12 would be mapped int as |12=-723|"

Mote there is no specification of max value.

Definition of BodyLength is

Message length, in bytes, forward to the CheckSum field. ALWAYS SECOND FIELD IN MESSAGE. (Always unencrypted) Valid values : 0 - 9999

From FIX.4.2 onwards Definition of BodyLength is

Message length, in bytes, forward to the CheckSum field. ALWAYS SECOND FIELD IN MESSAGE. (Always unencrypted)

Thus in a FIX.4.2 Session a very large message can be accepted. I have come across FIX.4.0, FIX.4.1 “lenient” FIX engines which accept messages longer than 9999 bytes.

Thanks!

I am now only concerned about size of Bodylength field, so as to know how much data to read from socket!

What would be the maximum allowed value of Bodylength? (i.e. max size of FIX message)