fixflyer

Create FIX Flyer Engine connection

Description

The fixflyer function creates a fixflyer object, which represents a FIX Flyer™ Engine connection. After you create a fixflyer object, you can use the object functions to send FIX messages and retrieve order information and status.

Creation

Description

example

c = fixflyer(username,password,ipaddress,fixport) creates a connection c to the FIX Flyer Engine with a user name, password, and IP address, and sets the FIXPort property.

example

c = fixflyer(username,password,ipaddress,fixport,restport) also sets the RestPort property for order information retrieval.

Input Arguments

expand all

FIX Flyer user name, specified as a character vector or string scalar.

Example: 'guest'

Data Types: char | string

FIX Flyer password, specified as a character vector or string scalar.

Data Types: char | string

IP address, specified as a character vector or string scalar to indicate the IP address of the computer running the FIX Flyer Engine.

Example: '127.0.0.1'

Data Types: char | string

Properties

expand all

FIX Flyer user name, specified as a character vector.

The fixflyer function sets this property using the username input argument.

Example: 'guest'

Data Types: char

IP address of the computer running the FIX Flyer Engine, specified as a character vector.

The fixflyer function sets this property using the ipaddress input argument.

Example: '127.0.0.1'

Data Types: char

Port number of the computer running the FIX Flyer Engine, specified as a numeric scalar.

Example: 12001

Data Types: double

Order information port number of the computer running the FIX Flyer Engine, specified as a numeric scalar. This property appears only when you run the fixflyer function and specify the restport input argument.

Example: 13001

Data Types: double

FIX Flyer application, specified as a FIX Flyer application manager object.

Example: [1x1 flyer.apps.FlyerApplicationManager]

FIX Flyer session identifier, specified as a double.

Data Types: double

Object Functions

closeClose FIX Flyer connection
sendMessageSend FIX message to FIX Flyer Engine
orderInfoRetrieve FIX Flyer order status and information
addListenerAdd event handling listener to FIX Flyer connection

Examples

collapse all

Create a FIX Flyer connection and display the connection properties.

Note

To create a FIX Flyer connection for the first time, add the JAR file fix-flyer.jar to the static Java® class path. For details, see Installation.

Import the FIX Flyer Java libraries.

import flyer.apps.*;
import flyer.apps.FlyerApplicationManagerFactory.*;
import flyer.core.session.*;

Use these arguments to create the FIX Flyer Engine connection and display the connection properties:

  • username

  • password

  • ipaddress

  • port

username = 'user';
password = 'pwd';
ipaddress = '127.0.0.1';
port = 7002;

c = fixflyer(username,password,ipaddress,port)
c = 

  fixflyer with properties:

                       User: 'user'
                  Ipaddress: '127.0.0.1'
                    FIXPort: 7002.00
                   RestPort: []
    FlyerApplicationManager: [1x1 flyer.apps.FlyerApplicationManager]
                  SessionID: []

c is the FIX Flyer Engine connection object with these properties:

  • User name

  • IP address

  • Port number

  • Order information port number

  • FIX Flyer application manager instance

  • FIX Flyer session identifier

After creating a FIX Flyer connection, you can send a FIX message. For details, see sendMessage.

Close the FIX Flyer connection.

close(c)

Create a FIX Flyer connection and display the connection properties.

Note

To create a FIX Flyer connection for the first time, add the JAR file fix-flyer.jar to the static Java class path. For details, see Installation.

Import the FIX Flyer Java libraries.

import flyer.apps.*;
import flyer.apps.FlyerApplicationManagerFactory.*;
import flyer.core.session.*;

Use these arguments to create the FIX Flyer Engine connection and display the connection properties:

  • username

  • password

  • ipaddress

  • port

  • orderport

username = 'guest';
password = 'guest';
ipaddress = 'example.fixcomputeserver.com';
port = 12001;
orderport = 13001;

c = fixflyer(username,password,ipaddress,port,orderport)
c = 

  fixflyer with properties:

                       User: 'guest'
                  Ipaddress: 'example.fixcomputeserver.com'
                    FIXPort: 12001
                   RestPort: 13001
    FlyerApplicationManager: [1x1 flyer.apps.FlyerApplicationManager]
                  SessionID: []

c is the FIX Flyer Engine connection object with these properties:

  • User name

  • IP address

  • Port number

  • Order information port number

  • FIX Flyer application manager instance

  • FIX Flyer session identifier

After creating a FIX Flyer connection, you can retrieve order information for active and closed orders. For details, see orderInfo.

Close the FIX Flyer connection.

close(c)

Introduced in R2015b