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


4.4 Forward.help

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

Class for setting up Forward and Future objects. Possible underlyings are bonds, equities and FX rates. Therefore the following Forward types are introduced:

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

Methods for Forward object obj:

Attributes of Forward objects:

For illustration see the following example: An equity forward with 10 years to maturity, an underlying index and a discount curve are set up and the forward value (-27.2118960639903) is calculated and retrieved:


c = Curve();
c = c.set('id','IR_EUR','nodes',[365,3650,7300]);
c = c.set('rates_base',[0.0001002070,0.0045624391,0.009346842]);
c = c.set('method_interpolation','linear');
i = Index();
i = i.set('value_base',326.900);
f = Forward();
f = f.set('name','EQ_Forward_Index_Test','maturity_date','26-Mar-2036');
f = f.set('strike_price',426.900);
f = f.set('compounding_freq','annual');
f = f.calc_value('31-Mar-2016','base',c,i);
f.getValue('base')

Dependencies of class:

Forward

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