RE: [Quickfix-developers] NoRelatedSym Class
Brought to you by:
orenmnero
From: Oren M. <ore...@ya...> - 2003-04-25 15:54:59
|
You need to set those fields into the group, not the main message body. Your method should look more like this. FIX43::QuoteRequest Application::queryQuoteRequest43() { FIX43::QuoteRequest quoteRequest(FIX::QuoteReqID( genQuoteRequestID())); FIX43::QuoteRequest::NoRelatedSym relatedSym; relatedSym.set( queryStrikePrice() ); relatedSym.set( queryMaturityMonthYear() ); relatedSym.set( querySide() ); relatedSym.set( queryQuoteType() ); relatedSym.set( queryCFICode() ); quoteRequest.addGroup( relatedSym ); queryHeader(quoteRequest.getHeader()); return quoteRequest; } I don't believe that TimeInForce is a member of that message, but if you need to you can use setField to force it into the group. You don't need to explicitly set the NoRelatedSym as this will be done for you with the correct value. --- Jon Dahl <jd...@Li...> wrote: > Here is the QuoteRequest Function > FIX43::QuoteRequest > Application::queryQuoteRequest43() > { > FIX43::QuoteRequest quoteRequest(FIX::QuoteReqID( > genQuoteRequestID())); > > quoteRequest.set( queryStrikePrice() ); > quoteRequest.set( queryTimeInForce() ); > quoteRequest.set( queryMaturityMonthYear() ); > quoteRequest.set( querySide() ); > quoteRequest.set( queryQuoteType() ); > quoteRequest.set( queryNoRelatedSym() ); > quoteRequest.set( queryCFICode() ); > > queryHeader(quoteRequest.getHeader()); > > return quoteRequest; > > } > > And here is the compile error(s) abbreviated for > other fields because results are the same > Compiling... > Application.cpp > E:\quickfix\examples\tradeclient\Application.cpp(207) > : error C2664: 'void __thiscall > FIX43::QuoteRequest::set(const class FIX::QuoteReqID > &)' : cannot convert parameter 1 from 'class > FIX::StrikePrice' to 'const class FIX::QuoteReqID &' > Reason: cannot convert from 'class > FIX::StrikePrice' to 'const class FIX::QuoteReqID' > No constructor could take the source type, > or constructor overload resolution was ambiguous > > ... > > Obviously I am doing something wrong by not fully > understanding the lib -- "Tarter Sauce" > > -----Original Message----- > From: OM...@th... > [mailto:OM...@th...] > Sent: Friday, April 25, 2003 10:14 AM > To: Jon Dahl > Cc: qui...@li...; > qui...@li... > Subject: Re: [Quickfix-developers] NoRelatedSym > Class > > > > What is the nature of your problem? Are you getting > compilation errors? > Runtime errors? Any errors? Which API are you > using? Adding fields to a > group should be just like adding them to a message, > using the set or > setField methods. > > --oren > > > > |---------+-----------------------------------------------> > | | "Jon Dahl" > | > | | <jd...@Li...> > | > | | Sent by: > | > | | > qui...@li...ur| > | | ceforge.net > | > | | > | > | | > | > | | 04/25/2003 09:58 AM > | > | | > | > |---------+-----------------------------------------------> > > >----------------------------------------------------------------------------------------------| > | > | > | To: > <qui...@li...> > | > | cc: > | > | Subject: [Quickfix-developers] > NoRelatedSym Class > | > > >----------------------------------------------------------------------------------------------| > > > > > Hello All, > > I have been try to code a QuoteRequest message > and have run into a snag > with the NoRelatedSym class. What is the best way to > set the fields in this > class? > > For example I want to set the Symbol, > StrikePrice and some other fields > in that class. Anyone give me a pointer on how to > set those fields? > > Thanks, > > JD > > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers __________________________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo http://search.yahoo.com |