Certain bonds will follow certain rounding conventions. For example, Thai government bonds will round accrued interest and cashflow values 2dp, whereas for French government bonds, the rounding is to 7dp.
More...
|
| decimal | FaceValue [get, set] |
| | The face value to round against. The number to be rounded is scaled to this face value before being rounded, and then re-scaled to the holding amount. For example if rounding an accrued interest value using a FaceValue of 1,000, but 10,000 units are held, then the initial calculated value would be divided by 10,000, then multiplied by 1,000 and rounded per the convention. The result of this would then be divided by 1,000 and multiplied by 10,000 to get the final value. More...
|
| |
| int | Precision [get, set] |
| | The precision of the rounding. The decimal places to which the rounding takes place. Defaults to 0 if not set. More...
|
| |
| string | RoundingTarget [get, set] |
| | The target of the rounding convention. Default value: All. Available values: All, AccruedInterest, Cashflows. More...
|
| |
| string | RoundingType [get, set] |
| | The type of rounding. Default value: Nearest. Available values: None, Down, Up, Nearest. More...
|
| |
Certain bonds will follow certain rounding conventions. For example, Thai government bonds will round accrued interest and cashflow values 2dp, whereas for French government bonds, the rounding is to 7dp.
◆ RoundingConvention()
| Lusid.Sdk.Model.RoundingConvention.RoundingConvention |
( |
decimal |
faceValue = default(decimal), |
|
|
int |
precision = default(int), |
|
|
string |
roundingTarget = default(string), |
|
|
string |
roundingType = default(string) |
|
) |
| |
|
inline |
Initializes a new instance of the RoundingConvention class.
- Parameters
-
| faceValue | The face value to round against. The number to be rounded is scaled to this face value before being rounded, and then re-scaled to the holding amount. For example if rounding an accrued interest value using a FaceValue of 1,000, but 10,000 units are held, then the initial calculated value would be divided by 10,000, then multiplied by 1,000 and rounded per the convention. The result of this would then be divided by 1,000 and multiplied by 10,000 to get the final value.. |
| precision | The precision of the rounding. The decimal places to which the rounding takes place. Defaults to 0 if not set.. |
| roundingTarget | The target of the rounding convention. Default value: All. Available values: All, AccruedInterest, Cashflows.. |
| roundingType | The type of rounding. Default value: Nearest. Available values: None, Down, Up, Nearest.. |
◆ Equals() [1/2]
| override bool Lusid.Sdk.Model.RoundingConvention.Equals |
( |
object |
input | ) |
|
|
inline |
Returns true if objects are equal
- Parameters
-
| input | Object to be compared |
- Returns
- Boolean
◆ Equals() [2/2]
◆ GetHashCode()
| override int Lusid.Sdk.Model.RoundingConvention.GetHashCode |
( |
| ) |
|
|
inline |
Gets the hash code
- Returns
- Hash code
◆ ToJson()
| virtual string Lusid.Sdk.Model.RoundingConvention.ToJson |
( |
| ) |
|
|
inlinevirtual |
Returns the JSON string presentation of the object
- Returns
- JSON string presentation of the object
◆ ToString()
| override string Lusid.Sdk.Model.RoundingConvention.ToString |
( |
| ) |
|
|
inline |
Returns the string presentation of the object
- Returns
- String presentation of the object
◆ FaceValue
| decimal Lusid.Sdk.Model.RoundingConvention.FaceValue |
|
getset |
The face value to round against. The number to be rounded is scaled to this face value before being rounded, and then re-scaled to the holding amount. For example if rounding an accrued interest value using a FaceValue of 1,000, but 10,000 units are held, then the initial calculated value would be divided by 10,000, then multiplied by 1,000 and rounded per the convention. The result of this would then be divided by 1,000 and multiplied by 10,000 to get the final value.
The face value to round against. The number to be rounded is scaled to this face value before being rounded, and then re-scaled to the holding amount. For example if rounding an accrued interest value using a FaceValue of 1,000, but 10,000 units are held, then the initial calculated value would be divided by 10,000, then multiplied by 1,000 and rounded per the convention. The result of this would then be divided by 1,000 and multiplied by 10,000 to get the final value.
100
◆ Precision
| int Lusid.Sdk.Model.RoundingConvention.Precision |
|
getset |
The precision of the rounding. The decimal places to which the rounding takes place. Defaults to 0 if not set.
The precision of the rounding. The decimal places to which the rounding takes place. Defaults to 0 if not set.
6
◆ RoundingTarget
| string Lusid.Sdk.Model.RoundingConvention.RoundingTarget |
|
getset |
The target of the rounding convention. Default value: All. Available values: All, AccruedInterest, Cashflows.
The target of the rounding convention. Default value: All. Available values: All, AccruedInterest, Cashflows.
◆ RoundingType
| string Lusid.Sdk.Model.RoundingConvention.RoundingType |
|
getset |
The type of rounding. Default value: Nearest. Available values: None, Down, Up, Nearest.
The type of rounding. Default value: Nearest. Available values: None, Down, Up, Nearest.
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/lusid-sdk-csharp/checkouts/latest/sdk/Lusid.Sdk/Model/RoundingConvention.cs