Re: [Quickfix-developers] where to send the logon username&password, and quote request messge and h
Brought to you by:
orenmnero
|
From: Oren M. <or...@qu...> - 2006-11-27 16:42:22
|
This is correct except you need to add the SenderSubID and OnBehalfOfCompID to the header. So: //SenderSubID m.getHeader().setField(50,"Forex"); //OnBehalfOfCompID m.getHeader().setField(115,"CorpFXQuote"); All application messages you receive will come through fromApp. You can send a message from anywhere you want. Session::sendToTarget will send your message from anywhere in the process. --oren On Nov 26, 2006, at 4:09 AM, Tect Lewis wrote: > QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/ > html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > Hi, Dear all: > I'm a freshman in using quickFix engine. > now I wanna develop a program just use user name, password to > logon, then request quote and receive it. so there r 2 questions: > 1. does the username & password for logon message is sent as > follows: > void Application::toAdmin( FIX::Message& m, const > FIX::SessionID& sessionID) > { > //SenderSubID > m.setField(50,"Forex"); > //OnBehalfOfCompID > m.setField(115,"CorpFXQuote"); > > //Username&Password > m.setField(553,"username"); > m.setField(554,"password"); > } > > then after send the logon message, the AP received a "Logon > response" message, does it mean logon successfully? > 2. after logon successfully, where to send the quote request > message, and where to receive the quote message? in toApp(...) and > fromApp(...)? and about the quote request message, I need ask for > several symbols, which class and methos should I use to define the > symbols in the message structure? > |