Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

fixflyer

FIX Flyer connection

Description

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

Creation

Syntax

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

Description

example

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

example

c = fixflyer(username,password,ipaddress,port,orderport) also specifies a port number orderport 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 where the FIX Flyer Engine is running.

Example: '127.0.0.1'

Data Types: char | string

Port number, specified as a numeric scalar to indicate the port number on the computer where the FIX Flyer Engine is running.

Example: 12001

Data Types: double

Order information port number, specified as a numeric scalar to indicate the port number on the computer where the FIX Flyer Engine is running. You can retrieve order information for active and closed orders by creating a FIX Flyer Engine connection using orderport.

Example: 13001

Data Types: double

Properties

expand all

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

Example: 'guest'

Data Types: char | string

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

Example: '127.0.0.1'

Data Types: char | string

Port number of the computer where the FIX Flyer Engine is running, specified as a double.

Example: 12001

Data Types: double

Order information port number of the computer where the FIX Flyer Engine is running, specified as a double. This property appears only when you run fixflyer with the orderport input argument.

Example: 13001

Data Types: double

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

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

expand all

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:

  • 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)
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

  • FIX Flyer application manager instance

  • FIX Flyer session identifier

Close the FIX Flyer connection.

close(c)

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:

  • User name username

  • Password password

  • IP address ipaddress

  • Port number port

  • Order information port number 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

To retrieve order information for active and closed orders, see orderInfo.

Close the FIX Flyer connection.

close(c)

Introduced in R2015b

Was this topic helpful?