LUSID C# SDK
|
For indicating a dependency on an fx rate. For example domestic-foreign for USD-JPY means that 1 unit (dollar) of domestic currency will buy you "X" units of foreign (Yen) currency; currently somewhere around 100. This is equivalently denoted as USDJPY and USD/JPY On the assumption that you wish to convert an amount in the domestic currency to the foreign, you would want the (dom,fgn) dependency; domfgn currency pair. On the assumption that you wish to convert an amount in the foreign currency to the domestic, you would want the (fgn,dom) dependency; fgndom currency pair. NB: There alternate descriptions for currency pairs that seem to vary between different banks and sectors of the industry, e.g. base and contract In pricing we are taking the convention that we will convert from FGN to DOM by DIVIDING through by the DOMFGN spot rate. More...
Public Member Functions | |
FxDependency (string domesticCurrency=default(string), string foreignCurrency=default(string), DateTimeOffset date=default(DateTimeOffset), DependencyTypeEnum dependencyType=default(DependencyTypeEnum)) | |
Initializes a new instance of the FxDependency class. More... | |
override string | ToString () |
Returns the string presentation of the object More... | |
override string | ToJson () |
Returns the JSON string presentation of the object More... | |
override bool | Equals (object input) |
Returns true if objects are equal More... | |
bool | Equals (FxDependency input) |
Returns true if FxDependency instances are equal More... | |
override int | GetHashCode () |
Gets the hash code More... | |
![]() | |
EconomicDependency (DependencyTypeEnum dependencyType=default(DependencyTypeEnum)) | |
Initializes a new instance of the EconomicDependency class. More... | |
override string | ToString () |
Returns the string presentation of the object More... | |
override bool | Equals (object input) |
Returns true if objects are equal More... | |
bool | Equals (EconomicDependency input) |
Returns true if EconomicDependency instances are equal More... | |
override int | GetHashCode () |
Gets the hash code More... | |
Protected Member Functions | |
FxDependency () | |
Initializes a new instance of the FxDependency class. More... | |
IEnumerable< System.ComponentModel.DataAnnotations.ValidationResult > | BaseValidate (ValidationContext validationContext) |
To validate all properties of the instance More... | |
![]() | |
EconomicDependency () | |
Initializes a new instance of the EconomicDependency class. More... | |
IEnumerable< System.ComponentModel.DataAnnotations.ValidationResult > | BaseValidate (ValidationContext validationContext) |
To validate all properties of the instance More... | |
Properties | |
string | DomesticCurrency [get, set] |
DomesticCurrency is the first currency in a currency pair quote e.g. eur-gbp, eur is the domestic currency. More... | |
string | ForeignCurrency [get, set] |
ForeignCurrency is the second currency in a currency pair quote e.g. eur-gbp, gbp is the foreign currency. More... | |
DateTimeOffset | Date [get, set] |
The effectiveAt of the fx rate. More... | |
![]() | |
DependencyTypeEnum | DependencyType [get, set] |
The available values are: OpaqueDependency, CashDependency, DiscountingDependency, EquityCurveDependency, EquityVolDependency, FxDependency, FxForwardsDependency, FxVolDependency, IndexProjectionDependency, IrVolDependency, QuoteDependency, Vendor, CalendarDependency, InflationFixingDependency More... | |
Additional Inherited Members | |
![]() | |
enum class | DependencyTypeEnum { OpaqueDependency = 1 , CashDependency = 2 , DiscountingDependency = 3 , EquityCurveDependency = 4 , EquityVolDependency = 5 , FxDependency = 6 , FxForwardsDependency = 7 , FxVolDependency = 8 , IndexProjectionDependency = 9 , IrVolDependency = 10 , QuoteDependency = 11 , Vendor = 12 , CalendarDependency = 13 , InflationFixingDependency = 14 } |
The available values are: OpaqueDependency, CashDependency, DiscountingDependency, EquityCurveDependency, EquityVolDependency, FxDependency, FxForwardsDependency, FxVolDependency, IndexProjectionDependency, IrVolDependency, QuoteDependency, Vendor, CalendarDependency, InflationFixingDependency More... | |
For indicating a dependency on an fx rate. For example domestic-foreign for USD-JPY means that 1 unit (dollar) of domestic currency will buy you "X" units of foreign (Yen) currency; currently somewhere around 100. This is equivalently denoted as USDJPY and USD/JPY On the assumption that you wish to convert an amount in the domestic currency to the foreign, you would want the (dom,fgn) dependency; domfgn currency pair. On the assumption that you wish to convert an amount in the foreign currency to the domestic, you would want the (fgn,dom) dependency; fgndom currency pair. NB: There alternate descriptions for currency pairs that seem to vary between different banks and sectors of the industry, e.g. base and contract In pricing we are taking the convention that we will convert from FGN to DOM by DIVIDING through by the DOMFGN spot rate.
|
inlineprotected |
Initializes a new instance of the FxDependency class.
|
inline |
Initializes a new instance of the FxDependency class.
domesticCurrency | DomesticCurrency is the first currency in a currency pair quote e.g. eur-gbp, eur is the domestic currency. (required). |
foreignCurrency | ForeignCurrency is the second currency in a currency pair quote e.g. eur-gbp, gbp is the foreign currency. (required). |
date | The effectiveAt of the fx rate. (required). |
dependencyType | The available values are: OpaqueDependency, CashDependency, DiscountingDependency, EquityCurveDependency, EquityVolDependency, FxDependency, FxForwardsDependency, FxVolDependency, IndexProjectionDependency, IrVolDependency, QuoteDependency, Vendor, CalendarDependency, InflationFixingDependency (required) (default to "FxDependency"). |
|
inlineprotected |
To validate all properties of the instance
validationContext | Validation context |
|
inline |
Returns true if FxDependency instances are equal
input | Instance of FxDependency to be compared |
|
inline |
Returns true if objects are equal
input | Object to be compared |
|
inline |
Gets the hash code
|
inlinevirtual |
Returns the JSON string presentation of the object
Reimplemented from Lusid.Sdk.Model.EconomicDependency.
|
inline |
Returns the string presentation of the object
|
getset |
The effectiveAt of the fx rate.
The effectiveAt of the fx rate.
|
getset |
DomesticCurrency is the first currency in a currency pair quote e.g. eur-gbp, eur is the domestic currency.
DomesticCurrency is the first currency in a currency pair quote e.g. eur-gbp, eur is the domestic currency.
|
getset |
ForeignCurrency is the second currency in a currency pair quote e.g. eur-gbp, gbp is the foreign currency.
ForeignCurrency is the second currency in a currency pair quote e.g. eur-gbp, gbp is the foreign currency.