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.
创建修复传单引擎连接cusing these arguments:
用户名username
Passwordpassword
IP地址ipaddress
Port numberport
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 listenerFixExamplelistener.to listen for and display the FIX Flyer Engine event data in the Workspace browser. To access the code for the listener, enter编辑FixExamplelistener.m.。或者,要以另一种方式处理事件数据,您可以编写自定义事件处理侦听器功能。有关详细信息,请参阅Create Functions in Files(matlab)。
Process the FIX Flyer Engine eventseusing the sample event handling listenerFixExamplelistener.。Specifyeas any letter.FixExamplelistener.returns a handle to the listenerlh。
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固定装置。This table contains two FIX messages. The first row in the table represents a sell side transaction for 100 shares of symbolABC。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.
Sent message status, returned as an array of logical zeroes or ones. The array contains an entry for each FIX message infixmsg。If a FIX message is sent successfully,status包含一个zero. Otherwise,status包含一个1。
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.