Apama Capital Markets Foundation  10.7.0.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
News Processing API

Functions

AP_MDM_API void AP_MDM_SetNewsData (AP_MDM_Interface *md, const char *subKey, const char *newsId, const StringSet &symbolSet, AP_int64 updateType, const char *headline, const char *story, const AP_float64 sourceTimestamp, const NewsDataList &newsDataList, const AP_float64 value=MDM_DEFAULT_FLOAT)
 
AP_MDM_API void AP_MDM_DeleteNewsData (AP_MDM_Interface *md, const char *subKey, const char *newsId, const StringSet &symbolSet, const AP_float64 sourceTimestamp, const NewsDataList &newsDataList)
 
AP_MDM_API void AP_MDM_DefineNewsSchema (AP_MDM_Interface *md, const char *subKey, const NewsDataList &newsDataList)
 

Detailed Description

News Processing API

Function Documentation

AP_MDM_API void AP_MDM_DefineNewsSchema ( AP_MDM_Interface md,
const char *  subKey,
const NewsDataList newsDataList 
)

Set the News Delete data to send at the next commit.

Parameters
mdThe AP_MDM_Interface to use for this News Delete.
subKeyThe subscription key this News Delete is for.
newsDataListThe list of NewsData Key:Value pairs for this News Feed. The type and description in NewsData should be set.
See also
AP_MDM_SubscriptionCommit
NewsData
NewsDataList
AP_MDM_API void AP_MDM_DeleteNewsData ( AP_MDM_Interface md,
const char *  subKey,
const char *  newsId,
const StringSet symbolSet,
const AP_float64  sourceTimestamp,
const NewsDataList newsDataList 
)

Set the News Delete data to send at the next commit.

Parameters
mdThe AP_MDM_Interface to use for this News Delete.
subKeyThe subscription key this News Delete is for.
newsIdThe id of this News Delete as supplied by the source feed. Can be blank.
symbolSetThe set of symbols this News Delete is for, used for filtering by symbol. Can be empty. The library always sends on if empty.
sourceTimestampThe timestamp for this News Delete as supplied by the source feed. Normalised to UTC.
newsDataListThe list of NewsData Key:Value pairs for this News Delete. The type and description in NewsData can be blank. If an unknown Key is supplied, a schema update will be sent before the News Data.
See also
AP_MDM_SubscriptionCommit
StringSet
NewsData
NewsDataList
AP_MDM_API void AP_MDM_SetNewsData ( AP_MDM_Interface md,
const char *  subKey,
const char *  newsId,
const StringSet symbolSet,
AP_int64  updateType,
const char *  headline,
const char *  story,
const AP_float64  sourceTimestamp,
const NewsDataList newsDataList,
const AP_float64  value = MDM_DEFAULT_FLOAT 
)

Set the News Data to send at the next commit.

Parameters
mdThe AP_MDM_Interface to use for this News Data.
subKeyThe subscription key this News Data is for.
newsIdThe id of this News Data as supplied by the source feed. Can be blank.
symbolSetThe set of symbols this News Data is for, used for filtering by symbol. Can be empty.
updateTypeThe update type (UPDATETYPE_ADD_INT, UPDATETYPE_MODIFY_INT, UPDATETYPE_REMOVE_INT from MDM_Constants.h) of this News Data.
headlineThe headline of this News Data. Can be blank.
storyThe story text of this News Data. Can be blank.
sourceTimestampThe timestamp for this News Data as supplied by the source feed. Normalised to UTC.
newsDataListThe list of NewsData Key:Value pairs for this News Data. The type and description in NewsData can be blank. If an unknown Key is supplied, a schema update will be sent before the News Data.
valueThe value of this News Data. Used for economic indicators. Can be set to MDM_DEFAULT_FLOAT.
See also
AP_MDM_SubscriptionCommit
StringSet
NewsData
NewsDataList