{{Quickfixn}} Code explanation UI FIXap and UnitTest VS TradeClientApp.

Simone Cavallarin Simone.Cavallarin at banorcapital.com
Tue Oct 31 05:12:10 PDT 2017


Hi Grant,

Okay let’s give up with the UI. Into the TradeClient the file that contain the target host is on tradeclient.cfg correct?

So this code:

[DEFAULT]
ConnectionType=initiator
ReconnectInterval=2
FileStorePath=store
FileLogPath=log
StartTime=00:00:00
EndTime=00:00:00
UseDataDictionary=Y
DataDictionary=../../../../spec/fix/FIX44.xml
SocketConnectHost=127.0.0.1
SocketConnectPort=5001
LogoutTimeout=5
ResetOnLogon=Y
ResetOnDisconnect=Y

[SESSION]
# inherit ConnectionType, ReconnectInterval and SenderCompID from default
BeginString=FIX.4.4
SenderCompID=CLIENT1
TargetCompID=EXECUTOR
HeartBtInt=30

Can I even delete the QuickFix/Config/setting.cs ?

Thanks!

From: Quickfixn [mailto:quickfixn-bounces at lists.quickfixn.com] On Behalf Of Grant Birchmeier
Sent: 30 October 2017 19:20
To: Mailing list for QuickFIX/n <quickfixn at lists.quickfixn.com>
Subject: Re: {{Quickfixn}} Code explanation UI FIXap and UnitTest VS TradeClientApp.

The UIDemo was my first and only experiment into the C# MVVM UI design paradigm, and we (Connamara) ended up using it as a driver for some early proof-of-concept QF/n validation tests.  That was in late 2011.  Since then, I've barely thought about this thing.

Don't you see?  All the questions you've asked are not about QuickFIX, but about the non-QF parts of UIDemo.

You are spending your effort trying to understand my terrible UI implementation that uses a paradigm I barely understood and written in a UI framework (WPF) which MS doesn't seem to care about anymore.

As to your questions about the projects:

  *   FixApplication - this project contains all the QuickFIX stuff
  *   UIDemo - this project contains all the UI stuff, and references FixApplication for dependent QF features
  *   UnitTest - NUnit tests.  These do not "interact" with the app.  NUnit runs by itself.  It sounds like you may not be familiar with unit testing; I highly recommend you read more about it.  NUnit is just one framework for unit testing.
I'm not going to answer any more questions about UIDemo.  It's dead to me.

Stick to the Examples, and read the docs at quickfixn.org<http://quickfixn.org>.

TradeClient is a sample initiator (aka client), and SimpleAcceptor and Executor are sample acceptors (aka servers).

By default, TradeClient is configured to try to connect to Executor on localhost.  Start Executor first in a DOS prompt, then start TradeClient in another DOS prompt.  TC's simple command-line interface will let you send an order to Executor, and Executor will send an ExecReport message back to TC.

-Grant



On Mon, Oct 30, 2017 at 1:39 PM, Simone Cavallarin <Simone.Cavallarin at banorcapital.com<mailto:Simone.Cavallarin at banorcapital.com>> wrote:
Hi,

I’m a bit struggling to understand the logic behind the UI DEMO. (I’m sorry Grant!) When I have been working with NET I used many times form and clicking into a button
I was going into the code, so quite straight and easy.
In this app instead is quite different is much more advanced, and with my basic knowledge I’m a bit disorientated.

To understand how it works I’m trying to start from each button to get the actual code that is executed. Let me to do an example.

The “Connect” button has this code:

<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
                    <Button x:Name="bttnConnectu" Content="Connect" Width="80" Command="{Binding ConnectCommand}"
                        Style="{StaticResource EnableIfDisconnected}"/>]

What I’m looking to find is the action behind it, that should be link through the “Command” so "{binding ConnectCommand}".
I think that it is inside ConnectionViewModel.cs, (pls correct me if I’m wrong).

public class ConnectionViewModel : ViewModelBase

public ICommand ConnectCommand {get;set;}

I’m not able to understand what it run inside this class and how.

Then there are the

  *   FIX Application
  *   UIDemo
  *   UnitTest

“Fix Application” look like the proper engine that is creating the messages, but I don’t understand how it interact with the UI Demo.
The “UIdemo, okay is the code behind the form, but can It run by itself or does it need it the “FIX application” to work?
The “Unit Test” are test okay!, but how can you select which test you would like to run and how it interacts with the rest of the app?

And finally, last question where can I find the script that establish where to look for the connection? Now I’m running the “executor” and the “UI” on my pc so probably
There is a “look on local host” wrote somewhere, but let’s said that I would like to move the executor into another pc inside my network where should I write the new IP?

I know that you suggested to avoid the UIDemo but with it looks like is easier to understand. I had a look also to the “Examples.TradeClient” and okay maybe for you it looks much more easier but once I open the only script that I found is the “Trade Client App” things are not getting better … for example what is the IInitiator?


Many Thanks!



Simone
Simone Cavallarin
T. +44 203 002 1866<tel:+44%2020%203002%201866> | F. +44 203 002 1856<tel:+44%2020%203002%201856> | M. +44 741 387 6068<tel:+44%207413%20876068>
Simone.Cavallarin at banorcapital.com<mailto:simone.cavallarin at banorcapital.com> | www.banorcapital.com<http://www.banorcapital.com/>

[Logo]

Banor Capital Limited
6th Floor, 16 Berkeley Street, London W1J 8DZ (UK)

Banor Capital Limited is Authorised and Regulated by the Financial Conduct Authority. Please visit our website<http://www.banorcapital.com/Disclaimer.html> for important disclaimers/disclosures regarding Banor Capital’s services.


_______________________________________________
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
Simone Cavallarin
T. +44 203 002 1866 | F. +44 203 002 1856 | M. +44 741 387 6068
Simone.Cavallarin at banorcapital.com<mailto:simone.cavallarin at banorcapital.com> | www.banorcapital.com<http://www.banorcapital.com/>

[Logo]

Banor Capital Limited
6th Floor, 16 Berkeley Street, London W1J 8DZ (UK)

Banor Capital Limited is Authorised and Regulated by the Financial Conduct Authority. Please visit our website<http://www.banorcapital.com/Disclaimer.html> for important disclaimers/disclosures regarding Banor Capital’s services.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20171031/4b839310/attachment.htm>


More information about the Quickfixn mailing list