Re: [Quickfix-users] how to configure/add session fields
Brought to you by:
orenmnero
From: Dan G. <dua...@ya...> - 2008-02-29 20:43:04
|
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 |