First, create a FIX Flyer Engine connection,
add a FIX Flyer event listener, and subscribe to FIX sessions
as in Create an Order Using FIX Flyer.
Then, create and send a FIX message for a new order. Display the order
information for all orders.
Create structure orderStruct to contain
the FIX message for a new order. This order is a market order to sell
1000 IBM® shares.
Send FIX message using the FIX Flyer connection and
the FIX message.
status = sendMessage(c,orderStruct);
Return and display the order information o for
all orders. The Variables editor displays the contents of o.
o = orderInfo(c);
openvar('o')
Close the FIX Flyer Engine connection.
close(c)
Return Order Information for All Open Orders
First, create a FIX Flyer Engine connection,
add a FIX Flyer event listener, and subscribe to FIX sessions
as in Create an Order Using FIX Flyer.
Then, create and send a FIX message for a new order. Display the order
information for all open orders.
Create structure orderStruct to contain
the FIX message for a new order. This order is a market order to sell
1000 IBM shares.
Send FIX message using the FIX Flyer connection and
the FIX message.
status = sendMessage(c,orderStruct);
Return and display the order information o for
all open orders. The Variables editor displays the contents of o.
o = orderInfo(c,'open');
openvar('o')
Close the FIX Flyer Engine connection.
close(c)
Return Order Information for Specific Symbol
First, create a FIX Flyer Engine connection,
add a FIX Flyer event listener, and subscribe to FIX sessions
as in Create an Order Using FIX Flyer.
Then, create and send a FIX message for a new order. Display the order
information for orders using a specific symbol.
Create structure orderStruct to contain
the FIX message for a new order. This order is a market order to sell
1000 IBM shares.
FIX Flyer Engine connection, specified as a fixflyer object.
status — Order status 'all' (default) | 'closed' | 'open'
Order status, specified as one of these values. Each value specifies
the order information to return.
Order Status Value
Description
'all'
All orders
'closed'
Closed orders only
'open'
Open orders only
Example: o = orderInfo(c,'all')
Data Types: char
infoterm — Order information term 'clientorderid' | 'orderstatus' | 'securityid' | 'symbol'
Order information term, specified as one of these values. Each
value filters the order information to return.
Value
Description
'clientorderid'
Client order identifier
'orderstatus'
Order status
'securityid'
Security identifier
'symbol'
Symbol
To filter order information, specify a corresponding order information
term value infovalue after infoterm.
For example, to specify a client order identifier of 10,
use 'clientorderid','10'.
Example: o = orderInfo(c,'orderstatus','1')
Data Types: char
infovalue — Order information term value character vector | string scalar
Order information term value, specified as a character vector or string scalar.
To filter order information, specify this value after a corresponding
order information term infoterm. For example,
to specify the IBM symbol, use 'symbol','IBM'.
Order information data, returned as a structure. The structure
contains many fields where each field is one piece of order information
data provided by FIX Flyer.
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.