First, create a FIX Flyer Engine connection.
Then, add a FIX Flyer event listener to the FIX Flyer Engine
connection. Subscribe to FIX sessions. Create and send two FIX messages.
Create the FIX Flyer Engine connection c using
these arguments:
User name username
Password password
IP address ipaddress
Port number port
username = 'user';
password = 'pwd';
ipaddress = '127.0.0.1';
port = 7002;
c = fixflyer(username,password,ipaddress,port);
Add the FIX Flyer event listener to the FIX Flyer Engine
connection. Use the sample event handling listener fixExampleListener to
listen for and display the FIX Flyer Engine event data in the
Workspace browser. To access the code for the listener, enter edit
fixExampleListener.m. Or, to process the event data in another
way, you can write a custom event handling listener function. For
details, see Create Functions in Files.
Process the FIX Flyer Engine events e using
the sample event handling listener fixExampleListener.
Specify e as any letter. fixExampleListener returns
a handle to the listener lh.
Subscribe to FIX sessions and set up the FIX Flyer Application
Manager. Register with the FIX Flyer session. Connect the FIX Flyer Application
Manager to the FIX Flyer Engine and start the internal receiving
thread.
Create a FIX message using table fixtable.
This table contains two FIX messages. The first row in the table represents
a sell side transaction for 100 shares of symbol ABC.
The order type is a previously quoted order. The order handling instruction
is a private automated execution. The order transaction time is the
current moment. The second row in the table has the same order field
variables, except that the order identifier is unique across orders.
The FIX protocol version is 4.4.
Send the FIX message using the FIX message fixtable.
status contains the FIX Flyer Engine
message status for each FIX message sent. If the FIX message is sent
successfully, status contains a logical zero. status has
an entry for each FIX message in fixtable.
status = sendMessage(c,fixtable)
status =
0
0
The MATLAB® Workspace variable fixResponseStruct contains
the returned FIX messages from the FIX Flyer Engine.
Sent message status, returned as an array of logical zeroes
or ones. The array contains an entry for each FIX message in fixmsg.
If a FIX message is sent successfully, status contains
a zero. Otherwise, status contains a 1.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.