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.

createNotifier

Create instrument notifier for X_TRADER

Syntax

Description

example

createNotifier(X,S) creates the xtrdr instrument notifier defined by the structure S with fields corresponding to valid X_TRADER® API options. For details, see the Trading Technologies® X_TRADER API Programming Tutorial or X_TRADER API Class Reference.

example

createNotifier(X,Name,Value) creates the instrument notifier using X_TRADER API options specified by one or more Name,Value pair arguments with names and values corresponding to valid X_TRADER API options. For details, see the Trading Technologies X_TRADER API Programming Tutorial or X_TRADER API Class Reference.

Examples

collapse all

Start X_TRADER.

X = xtrdr;

Define an input structure, S, with fields corresponding to valid X_TRADER API options.

S = [];
S.Instrument = [];
S.UpdateFilter = '';
S.EnablePriceUpdates = -1;
S.EnableDepthUpdates = 0;
S.DebugLogLevel = 3;
S.EnableOrderSetUpdates = -1;
S.PriceList = [];
S.DeliverAllPriceUpdates = 0;
S
S = 

                Instrument: []
              UpdateFilter: ''
        EnablePriceUpdates: -1
        EnableDepthUpdates: 0
             DebugLogLevel: 3
     EnableOrderSetUpdates: -1
                 PriceList: []
    DeliverAllPriceUpdates: 0

Create an xtrdr instrument notifier.

createNotifier(X,S)

Close the connection.

close(X)

Start X_TRADER.

X = xtrdr;

Create an xtrdr instrument using name-value pairs corresponding to valid X_TRADER API options.

createNotifier(X,'Instrument',[],'UpdateFilter','',...
              'EnablePriceUpdates',-1,'EnableDepthUpdates',0,...
              'DebugLogLevel',3,'EnableOrderSetUpdates',-1,...
              'PriceList',[],'DeliverAllPriceUpdates',0)

Close the connection.

close(X)

Related Examples

Input Arguments

collapse all

X_TRADER connection, specified as a connection object created using xtrdr.

xtrdr input structure, specified with fields corresponding to valid X_TRADER API options. For details, see the Trading Technologies X_TRADER API Programming Tutorial or X_TRADER API Class Reference.

Example: S = [];
S.Exchange = 'Eurex';
S.Product = 'OGBM';
S.ProdType = 'Option';
S.Contract = 'Jan12 P12300';
S.Alias = 'TestInstrument3';

Data Types: struct

Name-Value Pair Arguments

Specify optional comma-separated pairs of Name,Value arguments. Name is the argument name and Value is the corresponding value. Name must appear inside single quotes (' '). You can specify several name and value pair arguments in any order as Name1,Value1,...,NameN,ValueN.

Example: createNotifier(X,'Instrument',[],'UpdateFilter','','EnablePriceUpdates',-1,'EnableDepthUpdates',0,'DebugLogLevel',3,'EnableOrderSetUpdates',-1,'PriceList',[],'DeliverAllPriceUpdates',0)

collapse all

Valid X_TRADER API options, specified as a character vector using the details described in Trading Technologies X_TRADER API Programming Tutorial or X_TRADER API Class Reference.

Example: createNotifier(X,'Instrument',[],'UpdateFilter','','EnablePriceUpdates',-1,'EnableDepthUpdates',0,'DebugLogLevel',3,'EnableOrderSetUpdates',-1,'PriceList',[],'DeliverAllPriceUpdates',0)

Data Types: char

Valid X_TRADER API options, specified as a character vector using the details described in Trading Technologies X_TRADER API Programming Tutorial or X_TRADER API Class Reference.

Example: createNotifier(X,'Instrument',[],'UpdateFilter','','EnablePriceUpdates',-1,'EnableDepthUpdates',0,'DebugLogLevel',3,'EnableOrderSetUpdates',-1,'PriceList',[],'DeliverAllPriceUpdates',0)

Data Types: char

Introduced in R2013a

Was this topic helpful?