{{Quickfixn}} Please Help in maintaining 2 sessions

Nirjhar Jain nirjhar.jain at commdel.net
Wed Nov 13 05:13:57 PST 2013


Hi Fernando,

 

I have used 2 configuration files and login twice using each config file. I
have successfully login both the sessions. But I am unable to take data from
one session(quote) to another session(Trading). I have to carry the values
of quote from 1st session to 2nd session for entering trade order.

 

 

Thanks & Regards,

Nirjhar Jain

Software Engineer


COMMDEL

Commdel Consulting Services P Ltd, 

H-134, Sector-63, Noida - U.P. (India)   

               

 <http://www.commdel.net/> www.commdel.net   

A n   I S O     9 0 0 1 : 2 0 0 8      C e r t i f i e d     C o m p a n y

Payment           Enterprise            Mobility            Internet  

 

From: quickfixn-bounces at lists.quickfixn.com
[mailto:quickfixn-bounces at lists.quickfixn.com] On Behalf Of Fernando
Furukawa
Sent: Wednesday, November 13, 2013 6:14 PM
To: Mailing list for QuickFIX/n
Subject: Re: {{Quickfixn}} Please Help in maintaining 2 sessions

 

First of all, sorry my poor english

To handle more than one session, you can set the Default configuration in a
QuickFix.Dictionary object and set then to SessionSettings object. And then,
for each session you want to handle, set session configuration and add to
same SessionSEttings objecct. For example:

 

QuickFix.SessionSettings setting = new QuickFix.SessionSettings();

QuickFix.Dictionary main = new QuickFix.Dictionary();

main.SetString("HeartBtInt", 30);

.

.

.

setting.Set(main);

 

 

And then for each seach you have, you can create a session dictionary and
session id and add to main setting object...

 

for (int i=0; i<5;i++)

{

QuickFix.Dictionary ssDic = new QuickFix.Dictionary();

ssDic.SetString("DataDictionary", "c:\temp\xx.xml");

.

.

.

SessionID ss = new SessionID(begin, target, sender);

setting.Set(ss, ssDic);

}

 

PS: It's only an example how to implement, this code won't compile
correctly.

 

Fernando Furukawa

 

 

On Wed, Nov 13, 2013 at 10:28 AM, James Riehl <pete.riehl at gmail.com
<mailto:pete.riehl at gmail.com> > wrote:

I've handled this with 2 separate applications. Looking forward to hearing
about this.

Sent from my iPhone


On Nov 13, 2013, at 7:23, "Nirjhar Jain" <nirjhar.jain at commdel.net
<mailto:nirjhar.jain at commdel.net> > wrote:

But, they have not mentioned anything about the 2 separate logins for Price
quote and trading. For 2 separate logins, SenderCompId will be different for
both cases.

 

 

Thanks & Regards,

Nirjhar Jain

Software Engineer


COMMDEL

Commdel Consulting Services P Ltd, 

H-134, Sector-63, Noida - U.P. (India)   

               

 <http://www.commdel.net/> www.commdel.net   

A n   I S O     9 0 0 1 : 2 0 0 8      C e r t i f i e d     C o m p a n y

Payment           Enterprise            Mobility            Internet  

 

From: quickfixn-bounces at lists.quickfixn.com
<mailto:quickfixn-bounces at lists.quickfixn.com>
[mailto:quickfixn-bounces at lists.quickfixn.com] On Behalf Of James Riehl
Sent: Wednesday, November 13, 2013 5:28 PM
To: Mailing list for QuickFIX/n
Cc: <quickfixn at lists.quickfixn.com <mailto:quickfixn at lists.quickfixn.com> >
Subject: Re: {{Quickfixn}} Please Help in maintaining 2 sessions

 

In your implementation of the application class, simply define the OnMessage
handler for each type of message you expect to get. There is an example here
http://www.quickfixn.org/tutorial/creating-an-application and here

http://www.quickfixn.org/tutorial/receiving-messages read all the docs here
they are very useful.

 

Hope this helps

Sent from my iPhone


On Nov 13, 2013, at 6:48, "Nirjhar Jain" <nirjhar.jain at commdel.net
<mailto:nirjhar.jain at commdel.net> > wrote:

Hi All,

 

Do Quickfixn supports 2 sessions simultaneously, i.e. one for Quote(Quote
request, MarketData Request) and other for trading(order & execution
report)?

 

If yes, then How to implement it.

 

Please help

 

 

Thanks & Regards,

Nirjhar Jain

Software Engineer


COMMDEL

Commdel Consulting Services P Ltd, 

H-134, Sector-63, Noida - U.P. (India)   

               

 <http://www.commdel.net/> www.commdel.net   

A n   I S O     9 0 0 1 : 2 0 0 8      C e r t i f i e d     C o m p a n y

Payment           Enterprise            Mobility            Internet  

 

_______________________________________________
Quickfixn mailing list
Quickfixn at lists.quickfixn.com <mailto:Quickfixn at lists.quickfixn.com> 
http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com

_______________________________________________
Quickfixn mailing list
Quickfixn at lists.quickfixn.com <mailto:Quickfixn at lists.quickfixn.com> 
http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com


_______________________________________________
Quickfixn mailing list
Quickfixn at lists.quickfixn.com <mailto:Quickfixn at lists.quickfixn.com> 
http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20131113/c5ee9530/attachment-0002.htm>


More information about the Quickfixn mailing list