quantlib.instrument.Instrument

class Instrument

Bases: Observable

Abstract instrument class

This class is purely abstract and defines the interface of concrete instruments which will be derived from this one.

__init__()

Methods

__init__()

set_pricing_engine(self, PricingEngine engine)

Sets the pricing engine.

Attributes

is_expired

net_present_value

Instrument net present value.

npv

Shortcut to the net_present_value property.

valuation_date

net_present_value

Instrument net present value.

npv

Shortcut to the net_present_value property.

set_pricing_engine(self, PricingEngine engine)

Sets the pricing engine.