Apama Capital Markets Foundation Documentation : Capital Markets Foundation : Analytics : Creating and configuring a currency converter : Configuring currency converter instances : Setting symbol values in the currency converter cache
Setting symbol values in the currency converter cache
You can set a default symbol value in the currency converter's cache. For example, you might want to set initial symbol values before a currency converter starts to use its calculation extension. You would do this in the application code that uses the currency converter.
The currency converter provides two actions for setting default symbol values in its cache:
*CurrencyConverter.setValue(string, float) — Specify the symbol whose value you want to set and then the value itself. The value you specify becomes the current default value for that symbol. By default, the extension stores the value in a field whose name is "VALUE". If the extension that the currency converter uses does not use the default "VALUE" field, it is an error.
Use the format "CCY1/CCY2" to specify the symbol.
*CurrencyConverter.setCustomValue(string, string, float) — Specify the symbol whose value you want to set, the name of the field that holds the value for this symbol, and then the value itself. The value you specify becomes the current default value for that symbol. The extension stores the value in the field whose name you specify and does not store it in the default "VALUE" field.
Use the format "CCY1/CCY2" to specify the symbol.
Typically, extensions provide a single value for each symbol. But it is possible for an extension to provide more than one value. Use the setCustomValue() action when the calculation extension provides a schema and value for fields other than the default "VALUE" field. For example, in DepthPriceExtension.mon, the extension uses the "Bid" and "Ask" fields to contain values for the Best Bid and Ask from the Depth market data source.
Copyright © 2013-2017 Software AG, Darmstadt, Germany. (Innovation Release)

Product LogoContact Support   |   Community   |   Feedback