{{Quickfixn}} FpML file
Walter Robert Ditzler
ditwal001 at gmail.com
Thu Oct 24 11:43:51 PDT 2013
Hi,
var file = @"C:\Initiator.cfg";
QuickFix.SessionSettings settings = new QuickFix.SessionSettings(file);
or
System.IO.Path.Combine("C:","Initiator.cfg");
System.IO.Path.Combine(System.IO.Directory.GetCurrentDirectory(),"Initiator.
cfg");
Thanks,
Walter
From: quickfixn-bounces at lists.quickfixn.com
[mailto:quickfixn-bounces at lists.quickfixn.com] On Behalf Of Ashutosh Mishra
Sent: Donnerstag, 24. Oktober 2013 20:23
To: Mailing list for QuickFIX/n
Subject: Re: {{Quickfixn}} FpML file
Tried the way you said, but It did not work either.
string file = "C:\\Initiator.cfg";
QuickFix.SessionSettings settings = new QuickFix.SessionSettings(@file);
TradeClientApp application = new TradeClientApp();
QuickFix.IMessageStoreFactory storeFactory = new
QuickFix.FileStoreFactory(settings);
QuickFix.ILogFactory logFactory = new QuickFix.ScreenLogFactory(settings);
QuickFix.Transport.SocketInitiator initiator = new
QuickFix.Transport.SocketInitiator(application, storeFactory, settings,
logFactory);
I realized the code breaks when it goes to
"QuickFix.Transport.SocketInitiator initiator = new
QuickFix.Transport.SocketInitiator(application, storeFactory, settings,
logFactory);"
and it directly goes to catch block after this and gives error. I tries lot
of things before posting my probem .. I am aware of C# and command line but
as I tried lot of things which did not work, so thought something tricky
might be involved. But I am certainly ner wto QuickFix.
Thanks & Regards,
Ashutosh Mishra
****************************************************************************
*****
This communication (including any attachments) is intended only or the use
of the individual whom it is addressed and may contain information that is
privileged, confidential or legally protected. If the reader of this
message is not the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this communication is strictly
prohibited. If you have received this communication in error, please notify
us immediately by replying to the message. Please also delete the message
and its attachments, if any, from your computer and destroy any hard copies
you may have created. Thank you for your cooperation.
****************************************************************************
*****
From: quickfixn-bounces at lists.quickfixn.com
[mailto:quickfixn-bounces at lists.quickfixn.com] On Behalf Of Grant Birchmeier
Sent: Thursday, October 24, 2013 2:05 PM
To: Mailing list for QuickFIX/n
Subject: Re: {{Quickfixn}} FpML file
I think you need to use "\Initiator.cfg" instead of "C:\Initiator.cfg".
It's a windows thing. Better get, use a relative path instead of an
absolute path.
As far as "args[]", that's just command-line arguments, which is a very
basic C# feature. It comes from the "Main" declaration:
static void Main(string[] args)
I highly recommend that you learn about
C# command-line args
. It's something
that is taught
quite early in any intro programming class.
Have a look at this tutorial:
http://msdn.microsoft.com/en-us/library/aa288457(v=vs.71).aspx
Forgive me if I'm mistaken, but I'm getting the impression that you are a
beginner to C#. That's totally okay, but please try to make sure your
questions are for QF/n problems and not for general C# help. There are many
other (and better!) places to get general C# help.
Thanks
-Grant
On Thu, Oct 24, 2013 at 12:47 PM, Ashutosh Mishra <A.Mishra at ny.tr.mufg.jp
<mailto:A.Mishra at ny.tr.mufg.jp> > wrote:
The file is stored in "C:". Get the following error:
"Configuration Failed: File Initiator.cfg not found(Could not find file.)"
Further, if I intend to use the code that is mentioned on official site:
if (args.Length != 1)
{ System.Console.WriteLine("usage: TradeClient.exe
CONFIG_FILENAME");
System.Environment.Exit(2);
}
string file = args[0];
Where should I place the config file as I am not getting the concept of
arg[0]?
Thanks & Regards,
Ashutosh Mishra
****************************************************************************
*****
This communication (including any attachments) is intended only or the use
of the individual whom it is addressed and may contain information that is
privileged, confidential or legally protected. If the reader of this
message is not the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this communication is strictly
prohibited. If you have received this communication in error, please notify
us immediately by replying to the message. Please also delete the message
and its attachments, if any, from your computer and destroy any hard copies
you may have created. Thank you for your cooperation.
****************************************************************************
*****
From: quickfixn-bounces at lists.quickfixn.com
<mailto:quickfixn-bounces at lists.quickfixn.com>
[mailto:quickfixn-bounces at lists.quickfixn.com
<mailto:quickfixn-bounces at lists.quickfixn.com> ] On Behalf Of Grant
Birchmeier
Sent: Thursday, October 24, 2013 1:41 PM
To: Mailing list for QuickFIX/n
Subject: Re: {{Quickfixn}} FpML file
Whereever you want. The code you used looks fine, assuming that the file
really is in "C:". Is it? You didn't say what the failure was.
The TradeClient lets you supply the path as a command-line argument.
There's nothing clever happening there.
On Thu, Oct 24, 2013 at 12:29 PM, Ashutosh Mishra <A.Mishra at ny.tr.mufg.jp
<mailto:A.Mishra at ny.tr.mufg.jp> > wrote:
Now I know that I have to use the Initiator..Where do I need to put the
Initiator.config file?
As if I use it like this : QuickFix.SessionSettings settings = new
QuickFix.SessionSettings(@"C:\Initiator.cfg") -- It gives error.
On the official website, the following code :
if (args.Length != 1)
{
System.Console.WriteLine("usage: TradeClient.exe
CONFIG_FILENAME");
System.Environment.Exit(2);
}
string file = args[0];
Where do I need to define the "file"?
Thanks & Regards,
Ashutosh Mishra
****************************************************************************
*****
This communication (including any attachments) is intended only or the use
of the individual whom it is addressed and may contain information that is
privileged, confidential or legally protected. If the reader of this
message is not the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this communication is strictly
prohibited. If you have received this communication in error, please notify
us immediately by replying to the message. Please also delete the message
and its attachments, if any, from your computer and destroy any hard copies
you may have created. Thank you for your cooperation.
****************************************************************************
*****
From: quickfixn-bounces at lists.quickfixn.com
<mailto:quickfixn-bounces at lists.quickfixn.com>
[mailto:quickfixn-bounces at lists.quickfixn.com
<mailto:quickfixn-bounces at lists.quickfixn.com> ] On Behalf Of Grant
Birchmeier
Sent: Wednesday, October 23, 2013 1:12 PM
To: Mailing list for QuickFIX/n
Subject: Re: {{Quickfixn}} FpML file
"Acceptor"/"Initiator" are just fancy FIX words that mean "server"/"client".
If you are connecting to someone else's FIX server, you need to write an
Initiator program.
TradeClient is just one of the example apps. You can look at it to see how
to implement an initiator app. (A lot of TradeClient's code is actually
just command-line processing; the QF-specific parts are actually pretty
simple.)
-Grant
On Wed, Oct 23, 2013 at 12:03 PM, Ashutosh Mishra <A.Mishra at ny.tr.mufg.jp
<mailto:A.Mishra at ny.tr.mufg.jp> > wrote:
Hi Walter,
went into the official website of quckFIX/n -- its very
helpful. In my scenario I need to pick up the execution report, so will have
to implement the Trade Client? Further, I do I need both the acceptor and
initiator config files? Can you please help me into it?
Thanks & Regards,
Ashutosh Mishra
--
Grant Birchmeier
Connamara Systems, LLC
Made-To-Measure Trading Solutions.
Exactly what you need. No more. No less.
http://connamara.com
_______________________________________________
Quickfixn mailing list
Quickfixn at lists.quickfixn.com <mailto:Quickfixn at lists.quickfixn.com>
http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com
--
Grant Birchmeier
Connamara Systems, LLC
Made-To-Measure Trading Solutions.
Exactly what you need. No more. No less.
http://connamara.com
_______________________________________________
Quickfixn mailing list
Quickfixn at lists.quickfixn.com <mailto:Quickfixn at lists.quickfixn.com>
http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com
--
Grant Birchmeier
Connamara Systems, LLC
Made-To-Measure Trading Solutions.
Exactly what you need. No more. No less.
http://connamara.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20131024/484697fe/attachment-0002.htm>
More information about the Quickfixn
mailing list