Next: , Previous: , Up: Octave octarisk Classes   [Contents][Index]


4.6 Cash.help

Octarisk Class: object = Cash(id)
Octarisk Class: object = Cash()

Class for setting up Cash objects.

This class contains all attributes and methods related to the following Cash types:

In the following, all methods and attributes are explained and a code example is given.

Methods for Cash object obj:

Attributes of Cash objects:

For illustration see the following example: A THB Cash instrument is being generated and during value calculation the stress and MC scenario values with 20 resp. 1000 scenarios are derived from the base value:


c = Cash();
c = c.set('id','THB_CASH','name','Cash Position THB');
c = c.set('asset_class','cash','currency','THB');
c = c.set('value_base',346234.1256);
c = c.calc_value('stress',20);
c = c.calc_value('250d',1000);
value_stress = c.getValue('stress');

Dependencies of class:

Cash

Next: , Previous: , Up: Octave octarisk Classes   [Contents][Index]