Re: [Quickfix-users] how to configure/add session fields
Brought to you by:
orenmnero
From: Dan G. <dua...@ya...> - 2008-03-01 04:20:40
|
This is to further re-clarify my original question, in case that it is not clear. Can anyone tell me if the following code segment could work to set a non-standard session field, using QuickFix C++ API? ------------------ FIX::SessionSettings settings (fixSettingFile); // fixSettingFile is the standard config file for QuickFIX FIX::Dictionary & myDictionary = settings.get(); myDictionary.setString("7001", "Y"); //my intention is to have a Tag 7001 with value "Y", in the session setting; settings.set(myDictionary); initiator = new FIX::ThreadedSocketInitiator(*this, storeFactory, settings, logFactory ); initiator->start(); ------------------- thanks. Dan ----- Original Message ---- From: Dan Guo <dua...@ya...> To: qui...@li... Sent: Friday, February 29, 2008 3:42:54 PM Subject: Re: [Quickfix-users] how to configure/add session fields QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html QuickFIX Support: http://www.quickfixengine.org/services.html Hi, Let me clarify - i would hope the session field is set when a session is created. In other words, after session is created, each order msg does not need to set session field in the header, everytime for each new message. First, can some experienced QuickFix users confirm to me that I do not need the following line of codes in the route for crafting an order msg, after i create a confirguration file with SenderCompID=abc: newOrder.getHeader().setField(FIX::SenderCompID(senderCompID)); Second, is there a better way than "newOrder.getHeader.setField(7001,"Y"), in each order msg? " i would hope i just need it once for session header. By the way, it looks like HeartBtInt (108) is standard, not CancelAllOnDisconnect. thanks, Dan ----- Original Message ---- From: Dan Guo <dua...@ya...> To: qui...@li... Cc: Dan Guo <dua...@ya...> Sent: Friday, February 29, 2008 2:58:34 PM Subject: how to configure/add session fields Hi Everyone, I got one question about using Initiator. In configuration file, I use two fields for session settings, for enabling cancelling orders upon disconnecting and heartbeat duration of 20 seconds. CancelAllOnDisconnect=Y; HeartBtInt = 20; I create a ThreadedInitiator with FIX::SessionSettings: initiator = new FIX::ThreadedSocketInitiator(*this, storeFactory, settings, logFactory ); The problem, my counter-party expects tag 7001 is set to Y and tag 108 set to 20, for the same features. My setting above did not help at all. My questions are - 1. HeartBtInt and CancelAllOnDisconnect: are they standard tags, which are mapped to 108 and 7001? 2. if NOT, how can i set Tag 7001 and 108 to my session settings in C++? In fact, as a separate matter, how can i add a non-standard session field with QuickFIX in C++? Anyone can help? thanks, Dan ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Quickfix-users mailing list Qui...@li... https://lists.sourceforge.net/lists/listinfo/quickfix-users |