Apama Capital Markets Foundation Documentation : Capital Markets Foundation : Market Data Management : Synthetic datasources : Forward to Spot Convertor : Set up data listeners
Set up data listeners
Once the connection to the datastream manager has been established, an application should set up listeners appropriate for the underlying stream type. For example, for the stream type BBA:
if streamType = localConsts.BBA() then {
com.apama.md.WrappedBBA wrappedBBA;

listener l1 := on com.apama.md.WrappedBBA(symbol=underlyingSymbol,
sessionId=uSessionId):wrappedBBA {

for conId in
conData[streamType].pricingParams[wrappedBBA.symbol].keys() {
transformSendBBA( wrappedBBA.bba, conId );



com.apama.md.BBA bbaInst;

listener l2 := on all com.apama.md.BBA(symbol=underlyingSymbol,

if enableTimestamps then {

timeMgr.getMicroTime() );


for conId in
conData[streamType].pricingParams[bbaInst.symbol].keys() {
transformSendBBA(bbaInst, conId );





Copyright © 2013-2017 Software AG, Darmstadt, Germany. (Innovation Release)

Product LogoContact Support   |   Community   |   Feedback