Re: [Quickfix-developers] Need some help regarding order request
Brought to you by:
orenmnero
|
From: Dale W. <wil...@oc...> - 2005-12-07 15:54:04
|
Hi, V.Kishore (what's the proper short form of your name?) >Dear all, > > I am in the initial state of developing the >application using QuikFix protocol. In my application >Initiator needs to send an order to Acceptor, and in >my order I have to send five fields. We have >successfully established connection between Initiator >and Acceptor, now I need to send an order via this >connection, but I am unable to do it. Please assist me >in transferring the data between Initiator and >Acceptor through this connection (I am working on JAVA >platform). > Please also assist me in creating session ID for the >above order. And I request to please help me in this >concern as soon as possible. > > > To get started with QuickFIX, take a look at the example programs that you installed when you installed quickfix. They are in quickfix/examples. You should also read the documentation that you can find starting from quickfix/doc/html/index.html (load this into your browser). To address your specific questions: To send an order you should create a FIXnn::NewOrderSingle object (nn is a protocol version like 42 or 43) and add the necessary fields to it, then send it via one of the FIX::Session methods. Receive the order by overriding the fromApp method of your implementation of the FIX::Application interface. You should probably pass the message to a FIX::MessageCracker and catch the result in an overidden onMessage method.. The documentation will help with the details. The session ID is assembled from the BeginString, SenderCompID, TargetCompID, and optional SessionQualifier fields from your fix configuration file. BeginStirng is determined by the version of the protocol you are using: i.e. FIX.4.2 SenderCompID and TargetCompID are determined by mutual agreement between the coparties (but in practice they are usually assigned by the acceptor which is often and exchange). SessionQualifier can be ignored unless you know why you need it. Dale FYI: My company offers an "Introduction to QuickFIX for C++ programmers" class to help new developers get started. Let me know if you'd like more details. >With Regards >V.Kishore Kumar > > > > >Thanks & Regards >V.Kishore Kumar >Software Engineer >GWN Communications Pvt.Ltd >Mail to:ki...@gw..., > kis...@ya... >Mobile :+91 9866023792 > > > -- ----------------------------------------------------- Dale Wilson, Senior Software Engineer Object Computing, Inc. (OCI) http://www.ociweb.com/ http://www.theaceorb.com/ ---------------------------------------------------- |