{"openapi":"3.0.4","info":{"title":"RoundingConvention","version":"0.0.1"},"paths":{},"components":{"schemas":{"RoundingConvention":{"type":"object","properties":{"faceValue":{"type":"number","description":"The face value to round against.\r\nThe number to be rounded is scaled to this face value before being rounded, and then re-scaled to the holding amount.\r\nFor example if rounding an accrued interest value using a FaceValue of 1,000, but 10,000 units are held,\r\nthen the initial calculated value would be divided by 10,000, then multiplied by 1,000 and rounded per the convention.\r\nThe result of this would then be divided by 1,000 and multiplied by 10,000 to get the final value.","format":"double","example":100},"precision":{"type":"integer","description":"The precision of the rounding.  The decimal places to which the rounding takes place.\r\nDefaults to 0 if not set.","format":"int32","example":6},"roundingTarget":{"type":"string","description":"The target of the rounding convention.\r\n\r\nDefault value: All. Available values: All, AccruedInterest, Cashflows.","nullable":true},"roundingType":{"type":"string","description":"The type of rounding.\r\nDefault value: Nearest. Available values: None, Down, Up, Nearest.","nullable":true}},"additionalProperties":false,"description":"Certain bonds will follow certain rounding conventions.\r\nFor example, Thai government bonds will round accrued interest and cashflow values 2dp, whereas for\r\nFrench government bonds, the rounding is to 7dp.","title":"RoundingConvention"}}}}