Imported from previous forum
Does anyone have a sample message? I wasn’t able to locate one in the samples that are posted. Thanks.
Does anyone have a sample message? I wasn’t able to locate one in the
samples that are posted. Thanks.
See bellow:
BeginString=8 FIX.4.2
BodyLength=9
MsgType=35 D
MsgSeqNum=34
SenderCompID=49
SendingTime=52
TargetCompID=56
ClOrdID=11
HandlInst=21
OrderQty=38 100
OrdType=40 2
Price=44 405
Side=54 1
Symbol=55
TimeInForce=59 0
TransactTime=60 20070101-14:05:50
OrderCapacity=528
CheckSum=10
Please Note: Required tags are bellow
ClOrdID
HandlInst
Symbol
Side
TransactTime
OrdType
Does anyone have a sample message? I wasn’t able to locate one in the
samples that are posted. Thanks.
Here is a sample message I put together. Note that I’m using the pipe | character to represent SOH, which is non-printable.
8=FIX.4.2|9=130|35=D|34=659|49=BROKER04|56=REUTERS|52=20070123-19:09:43|38=1000|59=1|100=N|40=1|11=ORD10001|60=20070123-19:01:17|55=HPQ|54=1|21=2|10=004|
Let’s go through each field.
First we have the standard message header:
BeginString(8)
This field declares what version of FIX is being used
BodyLength(9)
This field tells you how long the message is
MsgType(35)
This denotes the message type, in this case a Order (D) message.
SenderCompID(49)
This is the CompID of the party sending the message, in this case BROKER04
TargetCompID(56)
This is the CompID of the party receiving the message, in this case REUTERS
MsgSeqNum(34)
This is the sequence number of the message
SendingTime(52)
This is the Timestamp from when the message was sent in UTC.
Then we have the following required fields:
ClOrdID(11)
This is the client order id. It is a unique ID generated by the party entering the order, and should be referenced in future messages for this order. In this case, I’ve used the string “ORD10001”
HandInst(21)
This is the handling instructions to the broker. 2 denotes “Automated execution order, public, Broker intervention OK.”
Symbol(55)
This is the ticker symbol. Here I’m using HPQ (Hewlett-Packard)
Side(54)
This is the side for the order. 1 means “buy.”
TransactTime(60)
This is the Timestamp for when the order was entered. Note this can be different from the time the message was sent.
OrdType(40)
This is the order type. 1 means a Market Order.
The message also must have either tag 38 (OrderQty) or tag 152 (CashOrderQty) present. Here I’ve used 38=1000, indicating 1,000 shares.
In addition to the required tags, there are many optional tags that can be used to describe further details about the order. Here’s a couple common ones I added:
ExDestination(100)
Instructions for what exchange to execute the order on. ‘N’ commonly denotes NYSE.
TimeInForce(59)
The time the order remains in force. ‘1’ means Good until canceled (GTC)
Finally, we have the checksum tag, #10
In addition to the FIXimate tool available on this site, we also provide a browser for the different FIX versions at http://www.transacttools.net/ttportal/datadict/browser.jsp