Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
EquityForward::arguments Class Reference

#include <qle/instruments/equityforward.hpp>

+ Inheritance diagram for EquityForward::arguments:
+ Collaboration diagram for EquityForward::arguments:

Public Member Functions

void validate () const override
 

Public Attributes

std::string name
 
Currency currency
 
Position::Type longShort
 
Real quantity
 
Date maturityDate
 
Real strike
 

Detailed Description

Definition at line 86 of file equityforward.hpp.

Member Function Documentation

◆ validate()

void validate ( ) const
override

Definition at line 44 of file equityforward.cpp.

44 {
45 QL_REQUIRE(quantity > 0, "quantity should be positive: " << quantity);
46 QL_REQUIRE(strike >= 0, "strike should be positive: " << strike);
47}

Member Data Documentation

◆ name

std::string name

Definition at line 88 of file equityforward.hpp.

◆ currency

Currency currency

Definition at line 89 of file equityforward.hpp.

◆ longShort

Position::Type longShort

Definition at line 90 of file equityforward.hpp.

◆ quantity

Real quantity

Definition at line 91 of file equityforward.hpp.

◆ maturityDate

Date maturityDate

Definition at line 92 of file equityforward.hpp.

◆ strike

Real strike

Definition at line 93 of file equityforward.hpp.