Re: [Quickfix-developers] RES: Create an ExecutionReport based on QuickFix.Message
Brought to you by:
orenmnero
From: Draupnir G. - L. <dra...@li...> - 2011-01-05 16:12:47
|
Hi, You can use the procedure setString on the message class. QuickFix42.ExecutionReport msg = new QuickFix42.ExecutionReport (); msg.setString(messageString); or msg.setString(sourceMessage.ToString()); Best regards Draupnir Guðmundsson Libra dra...@li... www.librasoft.is +354 595 8724 direct +354 664 8724 mobile On Wed, Jan 5, 2011 at 15:31, Clebson Derivan Ferreira Paz < Cle...@cm...> wrote: > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > void OmsConnection::copyField ( FIX::Message & msgTarget, > const FIX::Message & msgSource, int iField ) > { > if (msgSource.isSetField(iField)) > > msgTarget.setField(iField,msgSource.getField(iField)); > } > > ///////////////////////// > > FIX::Message er, msgSource(ORIGINAL_STRING); > er.getHeader().setField( FIX::MsgType( > FIX::MsgType_ExecutionReport ) ); > > copyField(er, msgSource, FIX::FIELD::ClOrdID); > copyField(er, msgSource, FIX::FIELD::Symbol); > copyField(er, msgSource, FIX::FIELD::Account); > copyField(er, msgSource, FIX::FIELD::Side); > copyField(er, msgSource, FIX::FIELD::OrdType); > copyField(er, msgSource, FIX::FIELD::Price); > copyField(er, msgSource, FIX::FIELD::TimeInForce); > copyField(er, msgSource, FIX::FIELD::ExpireDate); > copyField(er, msgSource, FIX::FIELD::ExpireTime); > copyField(er, msgSource, FIX::FIELD::OrderQty); > copyField(er, msgSource, FIX::FIELD::MinQty); > copyField(er, msgSource, FIX::FIELD::MaxFloor); > copyField(er, msgSource, FIX::FIELD::StopPx); > copyField(er, msgSource, FIX::FIELD::HandlInst); > copyField(er, msgSource, FIX::FIELD::ExecInst); > copyField(er, msgSource, FIX::FIELD::SecurityID); > copyField(er, msgSource, FIX::FIELD::IDSource); > copyField(er, msgSource, FIX::FIELD::SecurityExchange); > > FIX::Session::sendToTarget( msgReport, sessionID /* if u > have it */ ); > > > > cheers, > Clebson > > -----Mensagem original----- > De: Dominik Brack [mailto:dom...@gm...] > Enviada em: quarta-feira, 5 de janeiro de 2011 11:52 > Para: qui...@li... > Assunto: [Quickfix-developers] Create an ExecutionReport based on > QuickFix.Message > > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, > and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > |