{{Quickfixn}} Quick Question

ringbretson at keplp.com ringbretson at keplp.com
Wed Mar 1 09:42:21 PST 2023


I’ve downloaded QuickFix.net by Quant Edge JSC Version 1.8.0 using NuGet.

Is there a better version that you can recommend?

 

 

 

 

From: Quickfixn [mailto:quickfixn-bounces at lists.quickfixn.com] On Behalf Of Grant Birchmeier
Sent: Wednesday, March 1, 2023 9:22 AM
To: Mailing list for QuickFIX/n
Subject: Re: {{Quickfixn}} Quick Question

 

First: Are you sure you're using QuickFIX/n?  Your call to "setField" with a lower-case "s" implies that you're using something that hasn't been supported in a very long time.

 

Besides that, I see some other red flags:

 

Some of your value.setField calls are incorrect, as some of those fields are Header fields, thus must be set like "value.Header.SetField()".

 

TargetSubId and SenderSubId should not be set manually in code; if you have them set in your config, the app will automatically set them.  PossDup flag is another one that is governed by a config setting (IgnorePossDupResendRequests).  Generally, you shouldn't often be manually setting fields in the Header. 

 

However, all of this only becomes a factor AFTER the socket connection is set up and one side attempts a FIX logon (have you set up a FileLogFactory?  Do you see anything in the log?).  If you're not even that far, then it's probably a Stunnel config problem.

 

On Wed, Feb 22, 2023 at 11:22 AM <ringbretson at keplp.com> wrote:



Hi:

 

I’m restarting a project to pull trades from ICE using QuickFix 4.4, stunnel and C#.

So far I haven’t been able to get the products to talk to each other and I’m hoping you can help.  I suspect the issue is in my configuration files.

The QuickFix, stunnel and C# programs are running on the same server.

Can you take a quick look at the three files below and let me know if you see any issues.

I should also point out that the “logon” portion of “toAdmin” specifies no encryption with the following command.

value.setField(new EncryptMethod(EncryptMethod.NONE));

value.setField(new PossDupFlag(true));

value.setField(new SenderSubID("0921"));

value.setField(new TargetSubID(" "));

value.setField(new Username("xxxxxxx"));

value.setField(new Password("xxxxxxx"));

value.setField(new StringField(9001, "1"));

value.setField(new StringField(9006, "1"));

value.setField(new StringField(9007, "1"));

value.setField(new StringField(9008, "1"));

value.setField(new StringField(9009, "1"));

value.setField(new StringField(9010, "1"));

value.setField(new StringField(9450, "WebIceInitiator"));

value.setField(new StringField(9451, "Version 1.0"));

value.setField(new StringField(9452, "Ingbretson"));

******************************************************************************************************************************

 

*** Stunnel.config ***

debug = info

output = stunnel.log

 

[fix_acceptor_session1_tunnel]

client = yes

accept = 127.0.0.1:84                      {What is this parm?  Acceptor socket accept ip and port?}

connect = 127.0.0.1:5001               {What is this parm?  Acceptor socket accept ip and port?}

verifyChain = yes

CAfile = ca-certs.pem

checkHost = kepvm3dt1                 {Acceptor server name?]

 

[fix_initiator_session1_tunnel]

client = yes

accept = 127.0.0.1:83

connect = 63.247.113.201:443

cert = stunnel.pem                           {Certificate contains both certificate and private key}

 

*** FIX Initiator config ***

[DEFAULT]

ConnectionType=initiator

ReconnectInterval=60

FileStorePath=c:\Temp\WebIce_Initiator

FileLogPath=c:\Temp\WebIce_Initiator

StartTime=00:00:00

EndTime=23:59:59

ResetOnLogon=Y

ResetOnLogout=Y

ResetOnDisconnect=Y

CheckLatency=N

 

[SESSION]

BeginString=FIX.4.4

SenderCompID=8655

SenderSubID=0921

TargetCompID=ICE

HeartBtInt=30

SocketConnectHost=127.0.0.1

SocketConnectPort=83

ValidateFieldsOutOfOrder=N

UseDataDictionary=Y

DataDictionary=C:\Applications\WebIceInitiator_Pub\FIX44.xml

ScreenLogEvents=N

ScreenLogShowIncoming=N

ScreenLogShowOutgoing=N

ScreenLogShowHeartBeats=N

******************************************************************************************************************************

 

*** FIX acceptor config ***

[DEFAULT]

ConnectionType=acceptor

SocketAcceptPort=5001

SocketReuseAddress=Y

StartTime=00:00:00

EndTime=20:00:00

FileLogPath=log

FileStorePath=c:\Temp\WebIce_Acceptor

 

[SESSION]

BeginString=FIX.4.4

SenderCompID=FixServer

TargetCompID=CLIENT1

DataDictionary=C:\Applications\WebIceAcceptor_Pub\FIX44.xml

******************************************************************************************************************************

 

 



 

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




 

-- 

Grant Birchmeier

Connamara Systems, LLC

http://connamara.com


This email, along with any attachments, is confidential. If you believe you received this message in error, please contact the sender immediately and delete all copies of the message. Thank you from Connamara Systems, LLC.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20230301/cbe35fec/attachment-0002.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 2310 bytes
Desc: not available
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20230301/cbe35fec/attachment-0002.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 11700 bytes
Desc: not available
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20230301/cbe35fec/attachment-0002.jpg>


More information about the Quickfixn mailing list