com.apama.md.user
Event MDManager


The Market Data Manager (MDManager) is used to create new datastream manager interfaces for the various different datastream types available from the specified adapter/datasource.

The main context is also required as this is used to set up reflectors for the datastream events.
Since:
CMF 2.0.0

Action summary
 com.apama.md.user.AggregatedBookManagerInterfacecreateAggregatedBookManager()

Creates a new AggregatedBookManagerInterface from the Market Data Manager.
 com.apama.md.user.BBAManagerInterfacecreateBBAManager()

Creates a new BBAManagerInterface from the Market Data Manager.
 com.apama.md.user.DepthManagerInterfacecreateDepthManager()

Creates a new DepthManagerInterface from the Market Data Manager.
 com.apama.md.user.EPManagerInterfacecreateEPManager()

Creates a new EPManagerInterface from the Market Data Manager.
 voidcreateMDManager(context mainContext, com.apama.session.SessionKey sessionKey, action<integer, com.apama.md.user.MDManagerInterface> userOnSuccess, action<integer, com.apama.md.client.Error> userOnFailure)

This function is called by the user to create an instance of the Market Data Manager (MDManager) for a specified adapter/datasource. on the adapter name passed in.
 com.apama.md.user.NewsManagerInterfacecreateNewsManager()

Creates a new NewsManagerInterface from the Market Data Manager.
 com.apama.md.user.OrderbookManagerInterfacecreateOrderbookManager()

Creates a new OrderbookManagerInterface from the Market Data Manager.
 com.apama.md.user.QuotebookManagerInterfacecreateQuotebookManager()

Creates a new QuotebookManagerInterface from the Market Data Manager.
 com.apama.md.user.TradeManagerInterfacecreateTradeManager()

Creates a new TradeManagerInterface from the Market Data Manager.
 com.apama.md.client.ApiInterfacegetApiInterface()

Returns the underlying client Api interface required when constructing bespoke market data sources .
 integergetSessionId()

Returns the sessionId that the MDManager was created with.
 booleanhasA()

Check if the datasource we created the Market Data Manager with supports an AggregatedBook datastream.
 booleanhasBBA()

Check if the datasource we created the Market Data Manager with supports a BBA datastream.
 booleanhasDatastream(string streamType)

Check if the datasource we created the Market Data Manager with supports the supplied datastream.
 booleanhasDepth()

Check if the datasource we created the Market Data Manager with supports a Depth datastream.
 booleanhasEP()

Check if the datasource we created the Market Data Manager with supports an EP datastream.
 booleanhasNews()

Check if the datasource we created the Market Data Manager with supports a News datastream.
 booleanhasOrderbook()

Check if the datasource we created the Market Data Manager with supports an Orderbook datastream.
 booleanhasQuotebook()

Check if the datasource we created the Market Data Manager with supports a Quotebook datastream.
 booleanhasTrade()

Check if the datasource we created the Market Data Manager with supports a Trade datastream.
 
Action detail

createAggregatedBookManager

            com.apama.md.user.AggregatedBookManagerInterface createAggregatedBookManager()
        
Creates a new AggregatedBookManagerInterface from the Market Data Manager.
Returns:
The interface to the Orderbook manager that was created.
Since:
CMF 2.0.0
See Also:
com.apama.md.user.AggregatedBookManagerInterface - The interface to the Orderbook manager that will be created.

createBBAManager

            com.apama.md.user.BBAManagerInterface createBBAManager()
        
Creates a new BBAManagerInterface from the Market Data Manager.
Returns:
The interface to the BBA manager that was created.
Since:
CMF 2.0.0
See Also:
com.apama.md.user.BBAManagerInterface - The interface of a BBA Manager that will be created.

createDepthManager

            com.apama.md.user.DepthManagerInterface createDepthManager()
        
Creates a new DepthManagerInterface from the Market Data Manager.
Returns:
The interface to the Depth manager that was created.
Since:
CMF 2.0.0
See Also:
com.apama.md.user.DepthManagerInterface - The interface to the Depth manager that will be created.

createEPManager

            com.apama.md.user.EPManagerInterface createEPManager()
        
Creates a new EPManagerInterface from the Market Data Manager.
Returns:
The interface to the EP manager that was created.
Since:
CMF 2.0.0
See Also:
com.apama.md.user.EPManagerInterface - The interface to the Extra Params (EP) manager that will be created.

createMDManager

            void createMDManager(context mainContext, com.apama.session.SessionKey sessionKey, action<integer, com.apama.md.user.MDManagerInterface> userOnSuccess, action<integer, com.apama.md.client.Error> userOnFailure)
        
This function is called by the user to create an instance of the Market Data Manager (MDManager) for a specified adapter/datasource. on the adapter name passed in.

This function must be called before any other functions in this object in order to successfully create and initialised the relevant objects
Parameters:
mainContext - The main context the manager was created in
sessionKey
userOnSuccess - A callback action on successfully creating a new Market Data Manager
userOnFailure - A callback action on failure to create a new Market Data Manager
Since:
CMF 2.0.0

createNewsManager

            com.apama.md.user.NewsManagerInterface createNewsManager()
        
Creates a new NewsManagerInterface from the Market Data Manager.
Returns:
The interface to the News manager that was created.
Since:
CMF 5.0.2
See Also:
com.apama.md.user.NewsManagerInterface - The interface to the News manager that will be created.

createOrderbookManager

            com.apama.md.user.OrderbookManagerInterface createOrderbookManager()
        
Creates a new OrderbookManagerInterface from the Market Data Manager.
Returns:
The interface to the Orderbook manager that was created.
Since:
CMF 2.0.0
See Also:
com.apama.md.user.OrderbookManagerInterface - The interface to the Orderbook manager that will be created.

createQuotebookManager

            com.apama.md.user.QuotebookManagerInterface createQuotebookManager()
        
Creates a new QuotebookManagerInterface from the Market Data Manager.
Returns:
The interface to the Quotebook manager that was created.
Since:
CMF 5.0.1
See Also:
com.apama.md.user.QuotebookManagerInterface - The interface to the Quotebook manager that will be created.

createTradeManager

            com.apama.md.user.TradeManagerInterface createTradeManager()
        
Creates a new TradeManagerInterface from the Market Data Manager.
Returns:
The interface to the Trade manager that was created.
Since:
CMF 2.0.0
See Also:
com.apama.md.user.TradeManagerInterface - The interface to the Trade manager that will be created.

getApiInterface

            com.apama.md.client.ApiInterface getApiInterface()
        
Returns the underlying client Api interface required when constructing bespoke market data sources .
Returns:
The interface for the client API.
Since:
CMF 5.0.1

getSessionId

            integer getSessionId()
        
Returns the sessionId that the MDManager was created with.
Returns:
The sessionId that the MDManager was created with.
Since:
CMF 2.0.1

hasA

            boolean hasA()
        
Check if the datasource we created the Market Data Manager with supports an AggregatedBook datastream.
Returns:
true if supported, false otherwise.
Since:
CMF 2.0.0

hasBBA

            boolean hasBBA()
        
Check if the datasource we created the Market Data Manager with supports a BBA datastream.
Returns:
true if supported, false otherwise.
Since:
CMF 2.0.0

hasDatastream

            boolean hasDatastream(string streamType)
        
Check if the datasource we created the Market Data Manager with supports the supplied datastream.
Parameters:
streamType - The streamtype to check
Returns:
true if supported, false otherwise.
Since:
CMF 5.0.1

hasDepth

            boolean hasDepth()
        
Check if the datasource we created the Market Data Manager with supports a Depth datastream.
Returns:
true if supported, false otherwise.
Since:
CMF 2.0.0

hasEP

            boolean hasEP()
        
Check if the datasource we created the Market Data Manager with supports an EP datastream.
Returns:
true if supported, false otherwise.
Since:
CMF 2.0.0

hasNews

            boolean hasNews()
        
Check if the datasource we created the Market Data Manager with supports a News datastream.
Returns:
true if supported, false otherwise.
Since:
CMF 5.0.2

hasOrderbook

            boolean hasOrderbook()
        
Check if the datasource we created the Market Data Manager with supports an Orderbook datastream.
Returns:
true if supported, false otherwise.
Since:
CMF 2.0.0

hasQuotebook

            boolean hasQuotebook()
        
Check if the datasource we created the Market Data Manager with supports a Quotebook datastream.
Returns:
true if supported, false otherwise.
Since:
CMF 5.0.1

hasTrade

            boolean hasTrade()
        
Check if the datasource we created the Market Data Manager with supports a Trade datastream.
Returns:
true if supported, false otherwise.
Since:
CMF 2.0.0