Package com.caplin.motif.fx.config
Class DefaultDisplayFields
java.lang.Object
com.caplin.motif.fx.config.DefaultDisplayFields
Static builder methods to build standard DisplayField items
-
Method Summary
Modifier and TypeMethodDescriptionstatic DisplayFieldsaddAccount(DisplayFields displayFields, String account) Adds the Account field to your display-fields configurationstatic DisplayFieldsaddAllInMidRate(DisplayFields displayFields, FormattedRate allInMidRate) Adds the All-In Mid Rate field to your display-fields configurationstatic DisplayFieldsaddAllInRate(DisplayFields displayFields, FormattedRate allInRate) Adds the All-In-Rate field to your display-fields configurationstatic DisplayFieldsaddAmendmentAdditionalInformation(DisplayFields displayFields, String information) Adds the amendment type field to your display-fields configurationstatic DisplayFieldsaddAmendmentReason(DisplayFields displayFields, String amendmentReason) Adds the amendment reason field to your display-fields configurationstatic DisplayFieldsaddAmendmentType(DisplayFields displayFields, String amendmentType) Adds the amendment type field to your display-fields configurationstatic DisplayFieldsaddAmount(DisplayFields displayFields, FormattedAmount amount) Adds the Amount field to your display-fields configurationstatic DisplayFieldsaddAmountOfDays(DisplayFields displayFields, String amountOfDays) Adds the Amount-of-days field to your display-fields configurationstatic DisplayFieldsaddAmountRelativeToBase(DisplayFields displayFields, FormattedAmount amount, BuySell clientBaseBuySell, String currencyPair) Adds the Amount field with a buy/sell calculated from the provided base buy/sell.static DisplayFieldsaddBrokerageInterventionField(DisplayFields displayFields, String brokerage) Adds the brokerage field to your display-fields configurationstatic DisplayFieldsaddClient(DisplayFields displayFields, String client) Adds the client field i.e.static DisplayFieldsaddClient(DisplayFields displayFields, String entityDescription, String fullName) Adds the Client field to your display-fields configurationstatic DisplayFieldsaddClientSpotRate(DisplayFields displayFields, FormattedRate clientSpotRate) Adds the Client Spot Rate field to your display-fields configurationstatic DisplayFieldsaddCompetitionInterventionField(DisplayFields displayFields, Boolean competition) Adds the competition field to your display-fields configurationstatic DisplayFieldsaddContraAmount(DisplayFields displayFields, FormattedAmount contraAmount) Adds the Contra Amount field to your display-fields configurationstatic DisplayFieldsaddCostOfInstrumentContraCurrency(DisplayFields displayFields, FormattedAmount contraCostAmount) Adds the Cost of Instrument (Contra Currency) field to your display-fields configurationstatic DisplayFieldsaddCostOfInstrumentHomeCurrency(DisplayFields displayFields, FormattedAmount costAmount) Adds the Cost of Instrument (Home Currency) field to your display-fields configurationstatic DisplayFieldsaddCostOfServicesContraCurrency(DisplayFields displayFields, FormattedAmount serviceContraCostAmount) Adds the Cost of Services (Contra Currency) field to your display-fields configurationstatic DisplayFieldsaddCostOfServicesHomeCurrency(DisplayFields displayFields, FormattedAmount serviceCostAmount) Adds the Cost of Services (Home Currency) field to your display-fields configurationstatic DisplayFieldsaddCurrencyPair(DisplayFields displayFields, String currencyPair) Adds the Currency Pair field to your display-fields configurationstatic DisplayFieldsaddDate(DisplayFields displayFields, LocalDate date) Adds a Date field to your display-fields configurationstatic DisplayFieldsaddDateTime(DisplayFields displayFields, LocalDate date, Instant time) Adds a Date - Time field to your display-fields configurationstatic DisplayFieldsaddDefaultAlgoInterventionFields(DisplayFields displayFields, String clientName, String user, String source, Boolean competition, LocalDate settlementDate, String settlementTenor) Creates the default display fields for the Algo Intervention information section:static DisplayFieldsaddDefaultAllocationConfirmationFields(DisplayFields displayFields, String entityDescription, String fullName, String currencyPair, LocalDate executionDate, Instant executionDateTime, FormattedRate spotRate, Integer totalDeals, FormattedAmount profit) Adds the default display fields for an Allocation confirmation message: - Client - Currency Pair - Date - Time - Spot Rate - Total Deals - Estimated Profitstatic DisplayFieldsaddDefaultAllocationDetailsUpdateFields(DisplayFields displayFields, FormattedAmount originalAmount, FormattedAmount originalContraAmount, String currencyPair, LocalDate originalSettlementDate, String originalTenor, String originalAccount, FormattedRate originalRate) Adds the default deliverable deal display fields for an Allocation details-update message: - Original Amount - Original Contra - Currency Pair - Settlement - Account - Original Ratestatic DisplayFieldsaddDefaultAllocationDetailsUpdateFields(DisplayFields displayFields, FormattedAmount originalAmount, FormattedAmount originalContraAmount, String currencyPair, LocalDate originalSettlementDate, String originalTenor, String originalAccount, FormattedRate originalRate, LocalDate fixingDate, LocationType locationType) Adds the default display fields for an Allocation details-update message: - Original Amount - Original Contra - Currency Pair - Settlement - Original Fixing Date (if non-deliverable) - Account - Original Ratestatic DisplayFieldsaddDefaultAllocationInterventionFields(DisplayFields displayFields, String clientName, String user, String source, Boolean competition, LocalDate settlementDate, String settlementTenor) Creates the default display fields for the Allocation Intervention information section:static DisplayFieldsaddDefaultBlockNoSwapInterventionFields(DisplayFields displayFields, String clientName, String user, Boolean competition, String source) Creates the default display fields for the Block (No Swap) Intervention information section:static DisplayFieldsaddDefaultBlockSwapInterventionFields(DisplayFields displayFields, String clientName, String user, Boolean competition, FormattedAmount netSpotValue) Creates the default display fields for the Block (Swap) Intervention information section:static DisplayFieldsaddDefaultDrawdownTradeDetailsFields(DisplayFields displayFields, FormattedRate rate, LocalDate startDate, String startTenor, LocalDate endDate, String endTenor) Adds the post trade history fields to your display fields configurationstatic DisplayFieldsaddDefaultForwardInterventionFields(DisplayFields displayFields, String clientName, String user, Boolean competition, LocalDate settlementDate, String settlementTenor, String source) Creates the default display fields for the Fwd Intervention information section:static DisplayFieldsaddDefaultFwdSummaryDisplayFields(DisplayFields displayFields, String entity, String account, String tradeId, Instant executionDateTime, String currencyPair, String submittedBy, BuySell clientBaseBuySell, FormattedAmount dealtAmount, FormattedAmount contraAmount, FormattedPoints fwdPoints, FormattedPoints fwdMidPoints, FormattedRate spotRate, FormattedRate spotMidRate, FormattedRate allInRate, FormattedRate allInMidRate, LocalDate settlementDate, FormattedAmount serviceCostAmount, FormattedAmount serviceContraCostAmount, FormattedAmount costAmount, FormattedAmount contraCostAmount, String settlementTenor, String remarks, String isCommercial) Creates the default display fields for a forward confirmation message:static DisplayFieldsaddDefaultNDFInterventionFields(DisplayFields displayFields, String clientName, Boolean competition, LocalDate fixingDate, String fixingSource, String settlementCurrency, String source) Creates the default display fields for the NDF Intervention information section:static DisplayFieldsaddDefaultNdfSummaryDisplayFields(DisplayFields displayFields, String entity, String account, String tradeId, Instant executionDateTime, String currencyPair, String submittedBy, BuySell clientBaseBuySell, FormattedAmount dealtAmount, FormattedAmount contraAmount, FormattedPoints fwdPoints, FormattedPoints fwdMidPoints, FormattedRate spotRate, FormattedRate spotMidRate, FormattedRate allInRate, FormattedRate allInMidRate, LocalDate settlementDate, FormattedAmount serviceCostAmount, FormattedAmount serviceContraCostAmount, FormattedAmount costAmount, FormattedAmount contraCostAmount, String settlementTenor, LocalDate fixingDate, String remarks, String isCommercial, LocationType locationType) Creates the default display fields for a NDF confirmation message:static DisplayFieldsaddDefaultNDSInterventionFields(DisplayFields displayFields, String clientName, String user, Boolean competition, FormattedAmount netSpotValue, LocalDate nearFixingDate, LocalDate farFixingDate, LocalDate nearSettlementDate, String nearSettlementTenor, LocalDate farSettlementDate, String farSettlementTenor, String source) Creates the default display fields for the NDS Intervention information section:static DisplayFieldsaddDefaultOutrightPostTradeHistoryFields(DisplayFields displayFields, FormattedAmount originalAmount, LocalDate settlementDate, String settlementTenor, FormattedAmount remainingAmount) Adds the post trade history fields to your display fields configurationstatic DisplayFieldsaddDefaultSalesAllocationConfirmationFields(DisplayFields displayFields, String entityDescription, String fullName, String currencyPair, LocalDate executionDate, Instant executionDateTime, FormattedRate traderSpotRate, FormattedPoints spotMargin, FormattedRate clientSpotRate, Integer totalDeals, FormattedAmount profit) Adds the default deliverable deal display fields for a Sales Allocation confirmation message: - Client - Currency Pair - Execution Date Time - Trader Spot Rate - Spot Margin - Client Spot Rate - Total Deals - Estimated Profitstatic DisplayFieldsaddDefaultSalesAllocationConfirmationFields(DisplayFields displayFields, String entityDescription, String fullName, String currencyPair, List<DisplayField> submitFields, LocalDate executionDate, Instant executionDateTime, FormattedRate traderSpotRate, FormattedPoints spotMargin, FormattedRate clientSpotRate, Integer totalDeals, FormattedAmount profit, String settlementCurrency, String fixingSource) Adds the default display fields for a Sales Allocation confirmation message: - Client - Currency Pair - Settlement Currency (if non-deliverable) - Fixing Source (if non-deliverable) - Date - Time - Trader Spot Rate - Spot Margin - Client Spot Rate - Total Deals - Estimated Profitstatic DisplayFieldsaddDefaultSalesAllocationDetailsUpdateFields(DisplayFields displayFields, FormattedAmount originalAmount, FormattedAmount originalContraAmount, String currencyPair, LocalDate originalSettlementDate, String originalTenor, String originalAccount, FormattedRate originalRate) Adds the default deliverable deal display fields for a Sales Allocation details-update message: - Original Amount - Original Contra - Currency Pair - Settlement - Account - Original Ratestatic DisplayFieldsaddDefaultSalesAllocationDetailsUpdateFields(DisplayFields displayFields, FormattedAmount originalAmount, FormattedAmount originalContraAmount, String currencyPair, LocalDate originalSettlementDate, String originalTenor, String originalAccount, FormattedRate originalRate, LocalDate fixingDate, String settlementCurrency, String fixingSource, LocationType locationType) Adds the default display fields for a Sales Allocation details-update message: - Amount - Contra Amount - Currency Pair - Settlement Currency (if non-deliverable) - Settlement - Fixing Date (if non-deliverable) - Fixing Source (if non-deliverable) - Account - Original Ratestatic DisplayFieldsaddDefaultSalesAmendmentDisplayFields(LocalDate executionDate, Instant executionTime, LocalDate settlementDate, FormattedAmount amount, String tenor, String amendmentType, BigDecimal xva, BigDecimal xvaNet, FormattedAmount profit) Display Fields for amends on summary screenstatic DisplayFieldsaddDefaultSalesAmendmentReasonDisplayFields(String amendmentType, String amendmentReason) static DisplayFieldsaddDefaultSalesFwdSummaryDisplayFields(String client, String account, LocalDate executionDate, Instant executionDateTime, List<DisplayField> submitFields, FormattedAmount dealtAmount, BuySell clientBaseBuySell, FormattedAmount contraAmount, LocalDate settlementDate, String settlementTenor, String remarks, String traderRemarks, String spotTrader, String forwardPointsTrader, String currencyPair, FormattedAmount profit, BigDecimal xvaTotalAmount, BigDecimal xvaNetProfit) Creates the default display fields for a Sales forward confirmation message:static DisplayFieldsaddDefaultSalesNDFSummaryDisplayFields(String client, String account, LocalDate executionDate, Instant executionDateTime, List<DisplayField> submitFields, LocalDate fixingDate, String fixingSource, String settlementCurrency, FormattedAmount dealtAmount, BuySell clientBaseBuySell, FormattedAmount contraAmount, LocalDate settlementDate, String settlementTenor, String remarks, String traderRemarks, String spotTrader, String forwardPointsTrader, String currencyPair, LocationType locationType, FormattedAmount profit, BigDecimal xvaTotalAmount, BigDecimal xvaNetProfit) Creates the default display fields for a Sales NDF confirmation message:static DisplayFieldsaddDefaultSalesNDSSummaryDisplayFields(String client, String account, LocalDate executionDate, Instant executionDateTime, List<DisplayField> submitFields, String fixingSource, String settlementCurrency, FormattedAmount nearDealtAmount, BuySell nearClientBaseBuySell, FormattedAmount nearContraAmount, LocalDate nearSettlementDate, String nearSettlementTenor, LocalDate nearFixingDate, FormattedRate nearAllInRate, FormattedAmount farDealtAmount, BuySell farClientBaseBuySell, FormattedAmount farContraAmount, LocalDate farSettlementDate, String farSettlementTenor, LocalDate farFixingDate, FormattedRate farAllInRate, String remarks, String traderRemarks, String spotTrader, String forwardPointsTrader, String currencyPair, String amountOfDays, LocationType locationType, FormattedAmount profit, BigDecimal xvaTotalAmount, BigDecimal xvaNetProfit) Creates the default display fields for a Sales NDS confirmation message:static DisplayFieldsaddDefaultSalesSpotSummaryDisplayFields(String client, String account, LocalDate executionDate, Instant executionDateTime, List<DisplayField> submitFields, FormattedAmount dealtAmount, BuySell clientBaseBuySell, FormattedAmount contraAmount, LocalDate settlementDate, String settlementTenor, String remarks, String traderRemarks, String spotTrader, String forwardPointsTrader, String currencyPair) Creates the default display fields for a Sales spot confirmation message:static DisplayFieldsaddDefaultSalesSwapSummaryDisplayFields(String client, String nearAccount, String farAccount, LocalDate executionDate, Instant executionDateTime, List<DisplayField> submitFields, FormattedAmount nearDealtAmount, BuySell nearClientBaseBuySell, FormattedAmount nearContraAmount, LocalDate nearSettlementDate, String nearSettlementTenor, FormattedRate nearAllInRate, FormattedAmount farDealtAmount, BuySell farClientBaseBuySell, FormattedAmount farContraAmount, LocalDate farSettlementDate, String farSettlementTenor, FormattedRate farAllInRate, String remarks, String traderRemarks, String spotTrader, String forwardPointsTrader, String currencyPair, String amountOfDays, FormattedAmount profit, BigDecimal xvaTotalAmount, BigDecimal xvaNetProfit) Creates the default display fields for a Sales swap confirmation message:static DisplayFieldsaddDefaultSalesTimeOptionSummaryDisplayFields(String client, String account, LocalDate executionDate, Instant executionDateTime, List<DisplayField> submitFields, LocalDate startDate, String startTenor, LocalDate endDate, String endTenor, FormattedRate spotRate, FormattedPoints riskPoints, FormattedAmount dealtAmount, BuySell clientBaseBuySell, FormattedAmount contraAmount, FormattedAmount filledAmount, String remarks, String traderRemarks, String spotTrader, String forwardPointsTrader, String currencyPair, FormattedAmount profit, BigDecimal xvaTotalAmount, BigDecimal xvaNetProfit) Creates the default display fields for a Sales time option confirmation message:static DisplayFieldsaddDefaultSplitInterventionFields(DisplayFields displayFields, String clientName, String user, String source, Boolean competition, LocalDate settlementDate, String settlementTenor) Creates the default display fields for the Split Intervention information section:static DisplayFieldsaddDefaultSpotInterventionFields(DisplayFields displayFields, String clientName, String user, Boolean competition, LocalDate settlementDate, String settlementTenor, String source) Creates the default display fields for the Spot Intervention information section:static DisplayFieldsaddDefaultSpotSummaryDisplayFields(DisplayFields displayFields, String entity, String account, String tradeId, Instant executionDateTime, String currencyPair, String submittedBy, BuySell clientBaseBuySell, FormattedAmount dealtAmount, FormattedAmount contraAmount, FormattedRate spotRate, FormattedRate spotMidRate, LocalDate settlementDate, FormattedAmount serviceCostAmount, FormattedAmount serviceContraCostAmount, FormattedAmount costAmount, FormattedAmount contraCostAmount, String settlementTenor, String remarks) Creates the default display fields for a spot confirmation message:static DisplayFieldsaddDefaultSwapAllocationDetailsUpdateFields(DisplayFields displayFields, String originalAccount, String currencyPair, LocalDate originalNearSettlementDate, String originalNearTenor, FormattedAmount originalNearAmount, FormattedAmount originalNearContraAmount, LocalDate originalFarSettlementDate, String originalFarTenor, FormattedAmount originalFarAmount, FormattedAmount originalFarContraAmount, FormattedPoints swapPoints) Adds the default display fields for an Allocation details-update message: - Original Amount - Original Contra - Currency Pair - Settlement - Original Fixing Date (if non-deliverable) - Account - Original Ratestatic DisplayFieldsaddDefaultSwapInterventionFields(DisplayFields displayFields, String clientName, String user, Boolean competition, FormattedAmount netSpotValue, LocalDate nearSettlementDate, String nearSettlementTenor, LocalDate farSettlementDate, String farSettlementTenor, String source) Creates the default display fields for the Swap Intervention information section:static DisplayFieldsaddDefaultSwapPostTradeHistoryFields(DisplayFields displayFields, FormattedAmount originalAmount, LocalDate settlementDate, String settlementTenor, FormattedAmount remainingAmount, Boolean isFarLeg) Adds the swap-specific post trade history fields to your display fields configurationstatic DisplayFieldsaddDefaultSwapSummaryDisplayFields(DisplayFields displayFields, String entity, String account, String tradeId, Instant executionDateTime, String currencyPair, String submittedBy, FormattedRate spotRate, FormattedRate spotMidRate, FormattedPoints swapPoints, FormattedPoints swapMidPoints, BuySell nearClientBaseBuySell, FormattedAmount nearDealtAmount, FormattedAmount nearContraAmount, FormattedPoints nearFwdPoints, FormattedPoints nearFwdMidPoints, FormattedRate nearAllInRate, FormattedRate nearAllInMidRate, LocalDate nearSettlementDate, FormattedAmount nearServiceCostAmount, FormattedAmount nearServiceContraCostAmount, FormattedAmount nearCostAmount, FormattedAmount nearContraCostAmount, String nearSettlementTenor, BuySell farClientBaseBuySell, FormattedAmount farDealtAmount, FormattedAmount farContraAmount, FormattedPoints farFwdPoints, FormattedPoints farFwdMidPoints, FormattedRate farAllInRate, FormattedRate farAllInMidRate, LocalDate farSettlementDate, FormattedAmount farServiceCostAmount, FormattedAmount farServiceContraCostAmount, FormattedAmount farCostAmount, FormattedAmount farContraCostAmount, String farSettlementTenor, String remarks, String isCommercial) Creates the default display fields for a time option confirmation message:static DisplayFieldsaddDefaultTimeOptionInterventionFields(DisplayFields displayFields, String clientName, String user, LocalDate startDate, String startTenor, LocalDate endDate, String endTenor, Boolean competition, String source) Creates the default display fields for the TimeOption Intervention information section:static DisplayFieldsaddDefaultTimeOptionPostTradeHistoryFields(DisplayFields displayFields, FormattedAmount originalAmount, LocalDate startDate, String startTenor, LocalDate endDate, String endTenor, FormattedAmount remainingAmount) Adds the post trade history fields to your display fields configurationstatic DisplayFieldsaddDefaultTimeOptionSummaryDisplayFields(DisplayFields displayFields, String entity, String account, String tradeId, Instant executionDateTime, String currencyPair, String submittedBy, BuySell clientBaseBuySell, FormattedAmount dealtAmount, FormattedAmount contraAmount, FormattedPoints fwdPoints, FormattedPoints fwdMidPoints, FormattedRate spotRate, FormattedRate spotMidRate, FormattedRate allInRate, FormattedRate allInMidRate, LocalDate startDate, String startTenor, LocalDate settlementDate, String settlementTenor, FormattedAmount serviceCostAmount, FormattedAmount serviceContraCostAmount, FormattedAmount costAmount, FormattedAmount contraCostAmount, String remarks, String isCommercial) Creates the default display fields for a swap confirmation message:static DisplayFieldsaddDefaultTimeOptionSummaryDisplayFields(DisplayFields displayFields, String entity, String account, String tradeId, Instant executionDateTime, String currencyPair, String submittedBy, BuySell clientBaseBuySell, FormattedAmount dealtAmount, FormattedAmount contraAmount, FormattedPoints fwdPoints, FormattedPoints fwdMidPoints, FormattedRate spotRate, FormattedRate spotMidRate, LocalDate startDate, String startTenor, LocalDate settlementDate, String settlementTenor, FormattedAmount serviceCostAmount, FormattedAmount serviceContraCostAmount, FormattedAmount costAmount, FormattedAmount contraCostAmount, String remarks, String isCommercial) Deprecated.static DisplayFieldsaddEndDate(DisplayFields displayFields, LocalDate endDate, String endTenor) Adds the End date field to your display-fields configurationstatic DisplayFieldsaddEntity(DisplayFields displayFields, String entity) Adds the Entity field to your display-fields configurationstatic DisplayFieldsaddEntity(DisplayFields displayFields, String entity, String label) Adds the Entity/Client/Customer field to your display-fields configurationstatic DisplayFieldsaddEstimatedProfit(DisplayFields displayFields, FormattedAmount profit) Adds the Estimated Profit field to your display-fields configurationstatic DisplayFieldsaddExecutionDateTime(DisplayFields DisplayFields, Instant executionDateTime) Adds the Execution time field to your display-fields configurationstatic DisplayFieldsaddExtraFields(DisplayFields displayFields, String remarks, String isCommercial) Adds additional fields that are not specific to a trade type (eg.static voidaddExtraFieldsToDisplay(DisplayFields displayFields, String remarks, String traderRemarks) Adds an extra field to the display fields container.static DisplayFieldsaddFilledAmount(DisplayFields displayFields, FormattedAmount filledAmount) Adds the Filled Amount field to your display-fields configurationstatic DisplayFieldsaddFixingDate(DisplayFields displayFields, LocalDate date) Adds the Fixing Date field to your display-fields configurationstatic DisplayFieldsaddFixingDate(DisplayFields displayFields, LocalDate date, String label) Adds the Fixing Date field to your display-fields configurationstatic DisplayFieldsaddFixingSource(DisplayFields displayFields, String fixingSource) Adds the Fixing Source field to your display-fields configurationstatic DisplayFieldsaddFixingSource(DisplayFields displayFields, String fixingSource, String label) Adds the Fixing Source field to your display-fields configurationstatic DisplayFieldsaddForwardMidPoints(DisplayFields DisplayFields, FormattedPoints midPoints) Adds the Mid Points field to your display-fields configurationstatic DisplayFieldsaddForwardPoints(DisplayFields displayFields, FormattedPoints forwardPoints) Adds the Forward Points field to your display-fields configurationstatic DisplayFieldsaddForwardPointsTrader(DisplayFields displayFields, String forwardPointsTrader) Adds the Forward points traderstatic DisplayFieldsaddGeneralOutrightFields(DisplayFields DisplayFields, String entity, String account, String tradeID, Instant executionDateTime, String currencyPair, String user) Adds the leg independent display fields for an outright tradestatic DisplayFieldsaddGenericFwdLegFields(DisplayFields displayFields, BuySell clientBaseBuySell, FormattedAmount dealtAmount, FormattedAmount contraAmount, FormattedPoints forwardPoints, FormattedPoints forwardMidPoints, String currencyPair) Adds generic fwd leg fields (look at other adders to see what it can be combined with):static DisplayFieldsaddLocationType(DisplayFields displayFields, LocationType locationType) Adds the Settlement Currency field to your display-fields configurationstatic DisplayFieldsaddNdfLegFields(DisplayFields displayFields, LocalDate fixingDate) adds ndf specific leg fields can be used with addOtherFwdLegFields and addGenericFwdLegFields to create ndf leg fieldsstatic DisplayFieldsaddNetSpotValueInterventionField(DisplayFields displayFields, FormattedAmount netSpotValue) Adds the TOBO user field to your display-fields configurationstatic DisplayFieldsaddNonCommercialForward(DisplayFields displayFields, String isCommercial) Adds a non-commercial trade flag fieldstatic DisplayFieldsaddOriginalAmount(DisplayFields displayFields, FormattedAmount originalAmount) static DisplayFieldsaddOriginalAmount(DisplayFields displayFields, FormattedAmount originalAmount, String overrideLabel) Adds the Original Amount field to your display-fields configurationstatic DisplayFieldsaddOriginalFarAmount(DisplayFields displayFields, FormattedAmount amount) Adds the Original Far Amount field to your display-fields configurationstatic DisplayFieldsaddOriginalFarContraAmount(DisplayFields displayFields, FormattedAmount amount) Adds the Original Far Contra Amount field to your display-fields configurationstatic DisplayFieldsaddOriginalFarSettlement(DisplayFields displayFields, LocalDate date, String tenor) Adds the Original Far Settlement field to your display-fields configurationstatic DisplayFieldsaddOriginalNearAmount(DisplayFields displayFields, FormattedAmount amount) Adds the Original Near Amount field to your display-fields configurationstatic DisplayFieldsaddOriginalNearContraAmount(DisplayFields displayFields, FormattedAmount amount) Adds the Original Near Contra Amount field to your display-fields configurationstatic DisplayFieldsaddOriginalNearSettlement(DisplayFields displayFields, LocalDate date, String tenor) Adds the Original Near Settlement field to your display-fields configurationstatic DisplayFieldsaddOriginalSettlement(DisplayFields displayFields, LocalDate date, String tenor) static DisplayFieldsaddOriginalSettlement(DisplayFields displayFields, LocalDate date, String tenor, String overrideLabel) Adds the Original Settlement field to your display-fields configurationstatic DisplayFieldsaddOtherFwdLegFields(DisplayFields displayFields, FormattedRate spotRate, FormattedRate spotMidRate, FormattedRate allInRate, FormattedRate allInMidRate, LocalDate settlementDate, FormattedAmount serviceCostAmount, FormattedAmount serviceContraCostAmount, FormattedAmount costAmount, FormattedAmount contraCostAmount, String settlementTenor) adds fwd specific leg fields use with addGenericFwdLegFields to create fwd leg fieldsstatic DisplayFieldsaddRate(DisplayFields displayFields, FormattedRate rate) Adds the Rate field to your display-fields configurationstatic DisplayFieldsaddReasonHeader(DisplayFields displayFields, String tenor, String startDate) static DisplayFieldsaddReasonSecondaryHeader(DisplayFields displayFields) static DisplayFieldsaddRemainingAmount(DisplayFields displayFields, FormattedAmount remainingAmount) static DisplayFieldsaddRemainingAmount(DisplayFields displayFields, FormattedAmount remainingAmount, String overrideLabel) Adds the Remaining Amount field to your display-fields configurationstatic DisplayFieldsaddRemarks(DisplayFields displayFields, String remarks) Adds the remarks field i.e.static DisplayFieldsaddRiskPoints(DisplayFields displayFields, FormattedPoints riskPoints) Adds the Risk Points field to your display-fields configurationstatic DisplayFieldsaddSalesExtraFields(DisplayFields displayFields, String remarks, String traderRemarks) Adds additional fields that are not specific to a trade type (eg.static DisplayFieldsaddSettlement(DisplayFields displayFields, LocalDate date, String tenor) Adds the Settlement field to your display-fields configurationstatic DisplayFieldsaddSettlementCurrency(DisplayFields displayFields, String currency) Adds the Settlement Currency field to your display-fields configurationstatic DisplayFieldsaddSettlementCurrency(DisplayFields displayFields, String currency, String label) Adds the Settlement Currency field to your display-fields configurationstatic DisplayFieldsaddSourceInterventionField(DisplayFields displayFields, String source) Adds the source field to your display-fields configurationstatic DisplayFieldsaddSpotMargin(DisplayFields displayFields, FormattedPoints spotMargin) Adds the Spot Margin field to your display-fields configurationstatic DisplayFieldsaddSpotMidRate(DisplayFields DisplayFields, FormattedRate spotMidRate) Adds the Mid Spot-Rate field to your display-fields configurationstatic DisplayFieldsaddSpotRate(DisplayFields displayFields, FormattedRate spotRate) Adds the Spot Rate field to your display-fields configurationstatic DisplayFieldsaddSpotTradeDetailsFields(DisplayFields displayFields, BuySell clientBaseBuySell, FormattedAmount dealtAmount, FormattedAmount contraAmount, FormattedRate spotRate, FormattedRate spotMidRate, LocalDate settlementDate, FormattedAmount serviceCostAmount, FormattedAmount serviceContraCostAmount, FormattedAmount costAmount, FormattedAmount contraCostAmount, String settlementTenor, String currencyPair) Adds spot trade leg fieldsstatic DisplayFieldsaddSpotTrader(DisplayFields displayFields, String spotTrader) Adds the Spot traderstatic DisplayFieldsaddStartDate(DisplayFields displayFields, LocalDate startDate, String startTenor) Adds the Start date field to your display-fields configurationstatic DisplayFieldsaddSubmitFields(DisplayFields displayFields, List<DisplayField> submitFields) Adds the Submit fields to your display-fields configurationstatic DisplayFieldsaddSubmittedBy(DisplayFields displayFields, String user) Adds the Submitted by field to your display-fields configurationstatic DisplayFieldsaddSwapLegFields(DisplayFields displayFields, FormattedRate allInRate, FormattedRate allInMidRate, LocalDate settlementDate, FormattedAmount serviceCostAmount, FormattedAmount serviceContraCostAmount, FormattedAmount costAmount, FormattedAmount contraCostAmount, String settlementTenor) Adds swap specific leg fields use with addGenericFwdLegFields to create a set of swap leg fieldsstatic DisplayFieldsaddSwapMidPoints(DisplayFields DisplayFields, FormattedPoints swapMidPoints) Adds the Mid Swap Points field to your display-fields configurationstatic DisplayFieldsaddSwapPoints(DisplayFields DisplayFields, FormattedPoints swapPoints) Adds the Swap Points field to your display-fields configurationstatic DisplayFieldsaddSwapSpotFields(DisplayFields displayFields, FormattedRate spotRate, FormattedRate spotMidRate, FormattedPoints swapPoints, FormattedPoints swapMidPoints) Adds swap specific leg independent fieldsstatic DisplayFieldsaddTime(DisplayFields displayFields, Instant time) Adds a Time field to your display-fields configurationstatic DisplayFieldsaddTimeOptionFields(DisplayFields displayFields, FormattedRate spotRate, FormattedRate spotMidRate, FormattedRate allInRate, FormattedRate allInMidRate, LocalDate startDate, String startTenor, LocalDate endDate, String endTenor, FormattedAmount serviceCostAmount, FormattedAmount serviceContraCostAmount, FormattedAmount costAmount, FormattedAmount contraCostAmount) adds time option specific leg fields can be used with addGenericFwdLegFields to create time option leg fieldsstatic DisplayFieldsaddTimeOptionFields(DisplayFields displayFields, FormattedRate spotRate, FormattedRate spotMidRate, LocalDate startDate, String startTenor, LocalDate endDate, String endTenor, FormattedAmount serviceCostAmount, FormattedAmount serviceContraCostAmount, FormattedAmount costAmount, FormattedAmount contraCostAmount) Deprecated.static DisplayFieldsaddTotalDeals(DisplayFields displayFields, int totalDeals) Adds the Total Deals field to your display-fields configurationstatic DisplayFieldsaddTradeID(DisplayFields DisplayFields, String tradeID) Adds the Trade ID field to your display-fields configurationstatic DisplayFieldsaddTraderRemarks(DisplayFields displayFields, String remarks) Adds the remarks field i.e.static DisplayFieldsaddTraderSpotRate(DisplayFields displayFields, FormattedRate traderSpotRate) Adds the Trader Spot Rate field to your display-fields configurationstatic DisplayFieldsaddUserInterventionField(DisplayFields displayFields, String user) Adds the TOBO user field to your display-fields configurationstatic DisplayFieldsaddXvaNetProfit(DisplayFields displayFields, BigDecimal xvaNetProfit, FormattedAmount profit) Adds the XVA net profitstatic DisplayFieldsaddXvaTotalAmount(DisplayFields displayFields, BigDecimal xvaTotalAmount, FormattedAmount profit) Adds the XVA total amountstatic List<DisplayField>static DisplayFieldscreateReasonBlock(String tenor, String startDate) static DisplayFieldsfromFieldsMap(Map<String, String> fieldsMap, String messageClassName) Derive a complete display-fields configuration from a confirmation message.
-
Method Details
-
addClient
public static DisplayFields addClient(DisplayFields displayFields, String entityDescription, String fullName) Adds the Client field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field toentityDescription- The display name of the TOBO client's entity, e.g. "Caplin Systems Ltd"fullName- The display name of the TOBO client, e.g. "John Smith"
-
addCurrencyPair
Adds the Currency Pair field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field tocurrencyPair- The base and term currency e.g. GBPUSD
-
addSettlementCurrency
public static DisplayFields addSettlementCurrency(DisplayFields displayFields, @Nullable String currency) Adds the Settlement Currency field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field tocurrency- The settlement currency of a non-deliverable deal, e.g. GBP
-
addSettlementCurrency
public static DisplayFields addSettlementCurrency(DisplayFields displayFields, @Nullable String currency, String label) Adds the Settlement Currency field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field tocurrency- The settlement currency of a non-deliverable deal, e.g. GBPlabel- The label sent down
-
addLocationType
public static DisplayFields addLocationType(DisplayFields displayFields, @Nullable LocationType locationType) Adds the Settlement Currency field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field tolocationType- The location of a non-deliverable deal, e.g. OFFSHORE
-
addDate
Adds a Date field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field todate- Date
-
addTime
Adds a Time field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field totime- Time instant
-
addDateTime
public static DisplayFields addDateTime(DisplayFields displayFields, @Nullable LocalDate date, @Nullable Instant time) Adds a Date - Time field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field todate- Local date for the eventtime- Time instant for the event
-
addTraderSpotRate
public static DisplayFields addTraderSpotRate(DisplayFields displayFields, FormattedRate traderSpotRate) Adds the Trader Spot Rate field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field totraderSpotRate- The trader spot rate
-
addSpotMargin
Adds the Spot Margin field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field tospotMargin- The spot margin
-
addClientSpotRate
public static DisplayFields addClientSpotRate(DisplayFields displayFields, FormattedRate clientSpotRate) Adds the Client Spot Rate field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field toclientSpotRate- The client spot rate, e.g. 1.23456
-
addSpotRate
public static DisplayFields addSpotRate(DisplayFields displayFields, @Nullable FormattedRate spotRate) Adds the Spot Rate field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field tospotRate- The (client) spot rate, e.g. 1.23456
-
addTotalDeals
Adds the Total Deals field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field tototalDeals- The number of deals included in the confirmation, e.g. for an allocation or reprice.
-
addEstimatedProfit
Adds the Estimated Profit field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field toprofit- The profit amount
-
addAmount
public static DisplayFields addAmount(DisplayFields displayFields, @Nullable FormattedAmount amount) Adds the Amount field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field toamount- The amount
-
addOriginalNearAmount
public static DisplayFields addOriginalNearAmount(DisplayFields displayFields, @Nullable FormattedAmount amount) Adds the Original Near Amount field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field toamount- The amount
-
addOriginalFarAmount
public static DisplayFields addOriginalFarAmount(DisplayFields displayFields, @Nullable FormattedAmount amount) Adds the Original Far Amount field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field toamount- The amount
-
addOriginalNearContraAmount
public static DisplayFields addOriginalNearContraAmount(DisplayFields displayFields, @Nullable FormattedAmount amount) Adds the Original Near Contra Amount field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field toamount- The amount
-
addOriginalFarContraAmount
public static DisplayFields addOriginalFarContraAmount(DisplayFields displayFields, @Nullable FormattedAmount amount) Adds the Original Far Contra Amount field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field toamount- The amount
-
addOriginalAmount
public static DisplayFields addOriginalAmount(DisplayFields displayFields, FormattedAmount originalAmount, @Nullable String overrideLabel) Adds the Original Amount field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field tooriginalAmount- The original amount
-
addOriginalAmount
public static DisplayFields addOriginalAmount(DisplayFields displayFields, FormattedAmount originalAmount) -
addRemainingAmount
public static DisplayFields addRemainingAmount(DisplayFields displayFields, @Nullable FormattedAmount remainingAmount, @Nullable String overrideLabel) Adds the Remaining Amount field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field toremainingAmount- The remaining amount
-
addRemainingAmount
public static DisplayFields addRemainingAmount(DisplayFields displayFields, @Nullable FormattedAmount remainingAmount) -
addFilledAmount
public static DisplayFields addFilledAmount(DisplayFields displayFields, @Nullable FormattedAmount filledAmount) Adds the Filled Amount field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field tofilledAmount- The filled amount
-
addContraAmount
public static DisplayFields addContraAmount(DisplayFields displayFields, @Nullable FormattedAmount contraAmount) Adds the Contra Amount field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field tocontraAmount- The contra amount
-
addSettlement
public static DisplayFields addSettlement(DisplayFields displayFields, LocalDate date, @Nullable String tenor) Adds the Settlement field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field todate- The settlement datetenor- Optional tenor, to be displayed in brackets after the settlement date
-
addCostOfServicesHomeCurrency
public static DisplayFields addCostOfServicesHomeCurrency(DisplayFields displayFields, FormattedAmount serviceCostAmount) Adds the Cost of Services (Home Currency) field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field toserviceCostAmount- The cost amount
-
addCostOfInstrumentHomeCurrency
public static DisplayFields addCostOfInstrumentHomeCurrency(DisplayFields displayFields, FormattedAmount costAmount) Adds the Cost of Instrument (Home Currency) field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field tocostAmount- The cost amount
-
addCostOfServicesContraCurrency
public static DisplayFields addCostOfServicesContraCurrency(DisplayFields displayFields, FormattedAmount serviceContraCostAmount) Adds the Cost of Services (Contra Currency) field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field toserviceContraCostAmount- The service contra cost amount
-
addCostOfInstrumentContraCurrency
public static DisplayFields addCostOfInstrumentContraCurrency(DisplayFields displayFields, FormattedAmount contraCostAmount) Adds the Cost of Instrument (Contra Currency) field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field tocontraCostAmount- The service contra cost amount
-
addOriginalSettlement
public static DisplayFields addOriginalSettlement(DisplayFields displayFields, LocalDate date, @Nullable String tenor, @Nullable String overrideLabel) Adds the Original Settlement field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field todate- The original settlement datetenor- Optional tenor, to be displayed in brackets after the settlement date
-
addOriginalSettlement
public static DisplayFields addOriginalSettlement(DisplayFields displayFields, LocalDate date, @Nullable String tenor) -
addOriginalNearSettlement
public static DisplayFields addOriginalNearSettlement(DisplayFields displayFields, LocalDate date, @Nullable String tenor) Adds the Original Near Settlement field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field todate- The original near settlement datetenor- Optional tenor, to be displayed in brackets after the settlement date
-
addOriginalFarSettlement
public static DisplayFields addOriginalFarSettlement(DisplayFields displayFields, LocalDate date, @Nullable String tenor) Adds the Original Far Settlement field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field todate- The original far settlement datetenor- Optional tenor, to be displayed in brackets after the settlement date
-
addFixingDate
Adds the Fixing Date field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field todate- The fixing date
-
addFixingDate
public static DisplayFields addFixingDate(DisplayFields displayFields, @Nullable LocalDate date, String label) Adds the Fixing Date field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field todate- The fixing date
-
addFixingSource
public static DisplayFields addFixingSource(DisplayFields displayFields, @Nullable String fixingSource) Adds the Fixing Source field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field tofixingSource- The fixing source
-
addFixingSource
public static DisplayFields addFixingSource(DisplayFields displayFields, @Nullable String fixingSource, String label) Adds the Fixing Source field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field tofixingSource- The fixing source
-
addEntity
Adds the Entity field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field toentity- The entity description
-
addEntity
Adds the Entity/Client/Customer field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field toentity- The entity descriptionlabel- Label of the Display Field
-
addAccount
Adds the Account field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field toaccount- The account description
-
addRate
Adds the Rate field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field torate- The rate value
-
addTradeID
Adds the Trade ID field to your display-fields configuration- Parameters:
DisplayFields- The DisplayFields to add the field totradeID- The Trade ID, e.g. "75e4073d040f"
-
addSubmittedBy
Adds the Submitted by field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field touser- The user that submitted the trade, e.g. "Autotrader"
-
addSpotMidRate
Adds the Mid Spot-Rate field to your display-fields configuration- Parameters:
DisplayFields- The DisplayFields to add the field tospotMidRate- The Mid-Spot Rate.
-
addAmountRelativeToBase
public static DisplayFields addAmountRelativeToBase(@Nonnull DisplayFields displayFields, @Nullable FormattedAmount amount, @Nonnull BuySell clientBaseBuySell, @Nonnull String currencyPair) Adds the Amount field with a buy/sell calculated from the provided base buy/sell.- Parameters:
displayFields- The DisplayFields to add the field toamount- The amount (Must be one of the products in the currency pair)clientBaseBuySell- Whether the base amount is bought or soldcurrencyPair- The currency pair.
-
addForwardPoints
public static DisplayFields addForwardPoints(DisplayFields displayFields, @Nullable FormattedPoints forwardPoints) Adds the Forward Points field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field toforwardPoints- The Forward points.
-
addRiskPoints
public static DisplayFields addRiskPoints(DisplayFields displayFields, @Nullable FormattedPoints riskPoints) Adds the Risk Points field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field toriskPoints- The Risk points.
-
addForwardMidPoints
public static DisplayFields addForwardMidPoints(DisplayFields DisplayFields, FormattedPoints midPoints) Adds the Mid Points field to your display-fields configuration- Parameters:
DisplayFields- The DisplayFields to add the field tomidPoints- The Mid points.
-
addAllInRate
public static DisplayFields addAllInRate(DisplayFields displayFields, @Nullable FormattedRate allInRate) Adds the All-In-Rate field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field toallInRate- The All-In-Rate.
-
addAmountOfDays
public static DisplayFields addAmountOfDays(DisplayFields displayFields, @Nullable String amountOfDays) Adds the Amount-of-days field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field toamountOfDays- The All-In-Rate.
-
addAllInMidRate
public static DisplayFields addAllInMidRate(DisplayFields displayFields, @Nullable FormattedRate allInMidRate) Adds the All-In Mid Rate field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field toallInMidRate- The All-In Mid Rate.
-
addStartDate
public static DisplayFields addStartDate(DisplayFields displayFields, @Nullable LocalDate startDate, @Nullable String startTenor) Adds the Start date field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field tostartDate- The Start date.
-
addEndDate
public static DisplayFields addEndDate(DisplayFields displayFields, LocalDate endDate, @Nullable String endTenor) Adds the End date field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field toendDate- The End date.
-
addSwapPoints
Adds the Swap Points field to your display-fields configuration- Parameters:
DisplayFields- The DisplayFields to add the field toswapPoints- The Swap points.
-
addSwapMidPoints
public static DisplayFields addSwapMidPoints(DisplayFields DisplayFields, FormattedPoints swapMidPoints) Adds the Mid Swap Points field to your display-fields configuration- Parameters:
DisplayFields- The DisplayFields to add the field toswapMidPoints- The Swap points.
-
addExecutionDateTime
public static DisplayFields addExecutionDateTime(DisplayFields DisplayFields, Instant executionDateTime) Adds the Execution time field to your display-fields configuration- Parameters:
DisplayFields- The DisplayFields to add the field toexecutionDateTime- The date and time of the trade, e.g. "12/07/2022 10:21:46"
-
addSubmitFields
public static DisplayFields addSubmitFields(DisplayFields displayFields, @Nullable List<DisplayField> submitFields) Adds the Submit fields to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the fields tosubmitFields- List of fields
-
addClient
Adds the client field i.e. TOBOUser to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field toclient- The client i.e. TOBOUser
-
addRemarks
Adds the remarks field i.e. Remarks to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field toremarks- The remarks i.e. Remarks
-
addTraderRemarks
Adds the remarks field i.e. Remarks to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field toremarks- The remarks i.e. Remarks
-
addAmendmentType
public static DisplayFields addAmendmentType(DisplayFields displayFields, @Nullable String amendmentType) Adds the amendment type field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field toamendmentType- The type of amendment
-
addAmendmentReason
public static DisplayFields addAmendmentReason(DisplayFields displayFields, @Nullable String amendmentReason) Adds the amendment reason field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field toamendmentReason- The reason for the amendment
-
addDefaultSalesAmendmentReasonDisplayFields
public static DisplayFields addDefaultSalesAmendmentReasonDisplayFields(@Nullable String amendmentType, @Nullable String amendmentReason) -
addAmendmentAdditionalInformation
public static DisplayFields addAmendmentAdditionalInformation(DisplayFields displayFields, @Nullable String information) Adds the amendment type field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field toinformation- Any additional information to be displayed for amends display fields
-
addDefaultSalesAmendmentDisplayFields
public static DisplayFields addDefaultSalesAmendmentDisplayFields(LocalDate executionDate, Instant executionTime, LocalDate settlementDate, FormattedAmount amount, @Nullable String tenor, @Nullable String amendmentType, @Nullable BigDecimal xva, @Nullable BigDecimal xvaNet, @Nullable FormattedAmount profit) Display Fields for amends on summary screen -
addDefaultSpotInterventionFields
public static DisplayFields addDefaultSpotInterventionFields(DisplayFields displayFields, @Nullable String clientName, String user, Boolean competition, @Nullable LocalDate settlementDate, @Nullable String settlementTenor, @Nullable String source) Creates the default display fields for the Spot Intervention information section:- Parameters:
displayFields- The DisplayFields to add the fieldclientName- The entity name / description of a TOBO user e.g. CompanyABCuser- The TOBO user e.g. user1@caplin.comcompetition- Whether there is competition to price the trade to be intervenedsettlementDate- The settlement datesettlementTenor- Optional tenor, to be displayed in brackets after the settlement datesource- Where the trade to be intervened originated
-
addDefaultForwardInterventionFields
public static DisplayFields addDefaultForwardInterventionFields(DisplayFields displayFields, @Nullable String clientName, String user, Boolean competition, @Nullable LocalDate settlementDate, @Nullable String settlementTenor, @Nullable String source) Creates the default display fields for the Fwd Intervention information section:- Parameters:
displayFields- The DisplayFields to add the fieldclientName- The entity name / description of a TOBO user e.g. CompanyABCuser- The TOBO user e.g. user1@caplin.comcompetition- Whether there is competition to price the trade to be intervenedsettlementDate- The settlement datesettlementTenor- Optional tenor, to be displayed in brackets after the settlement datesource- Where the trade to be intervened originated
-
addDefaultNDFInterventionFields
public static DisplayFields addDefaultNDFInterventionFields(DisplayFields displayFields, @Nullable String clientName, Boolean competition, LocalDate fixingDate, String fixingSource, String settlementCurrency, @Nullable String source) Creates the default display fields for the NDF Intervention information section:- Parameters:
displayFields- The DisplayFields to add the fieldclientName- The entity name / description of a TOBO user e.g. CompanyABCcompetition- Whether there is competition to price the trade to be intervenedfixingDate- The fixing datefixingSource- The fixing sourcesettlementCurrency- The settlement currency for a non-deliverable tradesource- Where the trade to be intervened originated
-
addDefaultSwapInterventionFields
public static DisplayFields addDefaultSwapInterventionFields(DisplayFields displayFields, @Nullable String clientName, String user, Boolean competition, FormattedAmount netSpotValue, @Nullable LocalDate nearSettlementDate, @Nullable String nearSettlementTenor, @Nullable LocalDate farSettlementDate, @Nullable String farSettlementTenor, @Nullable String source) Creates the default display fields for the Swap Intervention information section:- Parameters:
displayFields- The DisplayFields to add the fieldclientName- The entity name / description of a TOBO user e.g. CompanyABCuser- The TOBO user e.g. user1@caplin.comcompetition- Whether there is competition to price the trade to be intervenednearSettlementDate- The near settlement datenearSettlementTenor- Optional tenor, to be displayed in brackets after the settlement datefarSettlementDate- The far settlement datefarSettlementTenor- Optional tenor, to be displayed in brackets after the settlement datesource- Where the trade to be intervened originatednetSpotValue- The net spot value: when you do an uneven swap, the difference in the two legs it's booked against the spot rate
-
addDefaultNDSInterventionFields
public static DisplayFields addDefaultNDSInterventionFields(DisplayFields displayFields, @Nullable String clientName, String user, Boolean competition, FormattedAmount netSpotValue, @Nullable LocalDate nearFixingDate, @Nullable LocalDate farFixingDate, @Nullable LocalDate nearSettlementDate, @Nullable String nearSettlementTenor, @Nullable LocalDate farSettlementDate, @Nullable String farSettlementTenor, @Nullable String source) Creates the default display fields for the NDS Intervention information section:- Parameters:
displayFields- The DisplayFields to add the fieldclientName- The entity name / description of a TOBO user e.g. CompanyABCuser- The TOBO user e.g. user1@caplin.comcompetition- Whether there is competition to price the trade to be intervenednearSettlementDate- The near settlement datenearSettlementTenor- Optional tenor, to be displayed in brackets after the settlement datefarSettlementDate- The far settlement datefarSettlementTenor- Optional tenor, to be displayed in brackets after the settlement datenearFixingDate- The near fixing datefarFixingDate- The far fixing datesource- Where the trade to be intervened originatednetSpotValue- The net spot value: when you do an uneven swap, the difference in the two legs it's booked against the spot rate
-
addDefaultBlockNoSwapInterventionFields
public static DisplayFields addDefaultBlockNoSwapInterventionFields(DisplayFields displayFields, @Nullable String clientName, String user, Boolean competition, @Nullable String source) Creates the default display fields for the Block (No Swap) Intervention information section:- Parameters:
displayFields- The DisplayFields to add the fieldclientName- The entity name / description of a TOBO user e.g. CompanyABCuser- The TOBO user e.g. user1@caplin.comcompetition- Whether there is competition to price the trade to be intervenedsource- Where the trade to be intervened originated
-
addDefaultBlockSwapInterventionFields
public static DisplayFields addDefaultBlockSwapInterventionFields(DisplayFields displayFields, @Nullable String clientName, String user, Boolean competition, FormattedAmount netSpotValue) Creates the default display fields for the Block (Swap) Intervention information section:- Parameters:
displayFields- The DisplayFields to add the fieldclientName- The entity name / description of a TOBO user e.g. CompanyABCuser- The TOBO user e.g. user1@caplin.comcompetition- Whether there is competition to price the trade to be intervenednetSpotValue- The net spot value: when you do an uneven swap, the difference in the two legs it's booked against the spot rate
-
addDefaultAllocationInterventionFields
public static DisplayFields addDefaultAllocationInterventionFields(DisplayFields displayFields, @Nullable String clientName, String user, String source, @Nullable Boolean competition, @Nullable LocalDate settlementDate, @Nullable String settlementTenor) Creates the default display fields for the Allocation Intervention information section:- Parameters:
displayFields- The DisplayFields to add the fieldclientName- The entity name / description of a TOBO user e.g. CompanyABCuser- The TOBO user e.g. user1@caplin.comcompetition- Whether there is competition to price the trade to be intervenedsource- Where the trade to be intervened originatedsettlementDate- The settlement datesettlementTenor- Optional tenor, to be displayed in brackets after the settlement date
-
addDefaultTimeOptionInterventionFields
public static DisplayFields addDefaultTimeOptionInterventionFields(DisplayFields displayFields, @Nullable String clientName, String user, LocalDate startDate, String startTenor, LocalDate endDate, String endTenor, Boolean competition, String source) Creates the default display fields for the TimeOption Intervention information section:- Parameters:
displayFields- The DisplayFields to add the fieldclientName- The entity name / description of a TOBO user e.g. CompanyABCuser- The TOBO user e.g. user1@caplin.comcompetition- Whether there is competition to price the trade to be intervenedsource- Where the trade to be intervened originatedstartDate- The start date.startTenor- The start Tenor.endDate- The end date.endTenor- The end Tenor.
-
addDefaultSplitInterventionFields
public static DisplayFields addDefaultSplitInterventionFields(DisplayFields displayFields, @Nullable String clientName, String user, String source, @Nullable Boolean competition, @Nullable LocalDate settlementDate, @Nullable String settlementTenor) Creates the default display fields for the Split Intervention information section:- Parameters:
displayFields- The DisplayFields to add the fieldclientName- The entity name / description of a TOBO user e.g. CompanyABCuser- The TOBO user e.g. user1@caplin.comcompetition- Whether there is competition to price the trade to be intervenedsource- Where the trade to be intervened originatedsettlementDate- The settlement datesettlementTenor- Optional tenor, to be displayed in brackets after the settlement date
-
addDefaultAlgoInterventionFields
public static DisplayFields addDefaultAlgoInterventionFields(DisplayFields displayFields, @Nullable String clientName, String user, String source, @Nullable Boolean competition, @Nullable LocalDate settlementDate, @Nullable String settlementTenor) Creates the default display fields for the Algo Intervention information section:- Parameters:
displayFields- The DisplayFields to add the fieldclientName- The entity name / description of a TOBO user e.g. CompanyABCuser- The TOBO user e.g. user1@caplin.comcompetition- Whether there is competition to price the trade to be intervenedsource- Where the trade to be intervened originatedsettlementDate- The settlement datesettlementTenor- Optional tenor, to be displayed in brackets after the settlement date
-
addUserInterventionField
Adds the TOBO user field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field touser- The TOBO user e.g. user1@caplin.com
-
addNetSpotValueInterventionField
public static DisplayFields addNetSpotValueInterventionField(DisplayFields displayFields, FormattedAmount netSpotValue) Adds the TOBO user field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field tonetSpotValue- The net spot value: when you do an uneven swap, the difference in the two legs it's booked against the spot rate
-
addCompetitionInterventionField
public static DisplayFields addCompetitionInterventionField(DisplayFields displayFields, Boolean competition) Adds the competition field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field tocompetition- Whether there is competition to price the trade to be intervened
-
addSourceInterventionField
Adds the source field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field tosource- Where the trade to be intervened originated
-
addBrokerageInterventionField
public static DisplayFields addBrokerageInterventionField(DisplayFields displayFields, String brokerage) Adds the brokerage field to your display-fields configuration- Parameters:
displayFields- The DisplayFields to add the field tobrokerage- This is a field that indicates the service charge applied to a trade. It needs to be displayed in case a dealer wants to add zero margin for a trade and in reality after the brokerage is applied it makes a loss for the bank.
-
convertSubmitFieldsToDisplayFields
-
addDefaultSalesSpotSummaryDisplayFields
public static DisplayFields addDefaultSalesSpotSummaryDisplayFields(@Nullable String client, @Nullable String account, @Nullable LocalDate executionDate, @Nullable Instant executionDateTime, @Nullable List<DisplayField> submitFields, @Nullable FormattedAmount dealtAmount, @Nonnull BuySell clientBaseBuySell, @Nullable FormattedAmount contraAmount, @Nullable LocalDate settlementDate, @Nullable String settlementTenor, @Nullable String remarks, @Nullable String traderRemarks, @Nullable String spotTrader, @Nullable String forwardPointsTrader, @Nonnull String currencyPair) Creates the default display fields for a Sales spot confirmation message:- Parameters:
client- The client i.e. TOBOUseraccount- The account descriptionexecutionDate- The execution dateexecutionDateTime- The execution date timesubmitFields- Custom Submit fieldsdealtAmount- the dealt amountclientBaseBuySell- Whether the base is bought or soldcontraAmount- The contra amountsettlementDate- The settlement datesettlementTenor- Optional tenor, to be displayed in brackets after the settlement dateremarks- The commentstraderRemarks- The trader commentsspotTrader- The Spot traderforwardPointsTrader- The Forward points trader
-
addDefaultSalesFwdSummaryDisplayFields
public static DisplayFields addDefaultSalesFwdSummaryDisplayFields(@Nullable String client, @Nullable String account, @Nullable LocalDate executionDate, @Nullable Instant executionDateTime, @Nullable List<DisplayField> submitFields, @Nullable FormattedAmount dealtAmount, @Nonnull BuySell clientBaseBuySell, @Nullable FormattedAmount contraAmount, @Nullable LocalDate settlementDate, @Nullable String settlementTenor, @Nullable String remarks, @Nullable String traderRemarks, @Nullable String spotTrader, @Nullable String forwardPointsTrader, @Nonnull String currencyPair, @Nullable FormattedAmount profit, @Nullable BigDecimal xvaTotalAmount, @Nullable BigDecimal xvaNetProfit) Creates the default display fields for a Sales forward confirmation message:- Parameters:
client- The client i.e. TOBOUseraccount- The account descriptionexecutionDate- The execution dateexecutionDateTime- The execution date timesubmitFields- Custom Submit fieldsdealtAmount- The dealt amountclientBaseBuySell- Whether the base is bought or soldcontraAmount- The contra amountsettlementDate- The settlement datesettlementTenor- Optional tenor, to be displayed in brackets after the settlement dateremarks- The commentstraderRemarks- The trader commentsspotTrader- The Spot traderforwardPointsTrader- The Forward points trader
-
addDefaultSalesTimeOptionSummaryDisplayFields
public static DisplayFields addDefaultSalesTimeOptionSummaryDisplayFields(@Nullable String client, @Nullable String account, @Nullable LocalDate executionDate, @Nullable Instant executionDateTime, @Nullable List<DisplayField> submitFields, @Nullable LocalDate startDate, @Nullable String startTenor, @Nullable LocalDate endDate, @Nullable String endTenor, @Nullable FormattedRate spotRate, @Nullable FormattedPoints riskPoints, @Nullable FormattedAmount dealtAmount, @Nonnull BuySell clientBaseBuySell, @Nullable FormattedAmount contraAmount, @Nullable FormattedAmount filledAmount, @Nullable String remarks, @Nullable String traderRemarks, @Nullable String spotTrader, @Nullable String forwardPointsTrader, @Nonnull String currencyPair, @Nullable FormattedAmount profit, @Nullable BigDecimal xvaTotalAmount, @Nullable BigDecimal xvaNetProfit) Creates the default display fields for a Sales time option confirmation message:- Parameters:
client- The client i.e. TOBOUseraccount- The account descriptionexecutionDate- The execution dateexecutionDateTime- The execution date timesubmitFields- Custom Submit fieldsstartDate- The start datestartTenor- The start TenorendDate- The end dateendTenor- The end TenorspotRate- The (client) spot rate, e.g. 1.23456riskPoints- The risk pointsdealtAmount- the dealt amountclientBaseBuySell- Whether the base is bought or soldcontraAmount- The contra amountfilledAmount- The filled amountremarks- The commentstraderRemarks- The trader commentsspotTrader- The Spot traderforwardPointsTrader- The Forward points trader
-
addDefaultSalesNDFSummaryDisplayFields
public static DisplayFields addDefaultSalesNDFSummaryDisplayFields(@Nullable String client, @Nullable String account, @Nullable LocalDate executionDate, @Nullable Instant executionDateTime, @Nullable List<DisplayField> submitFields, @Nullable LocalDate fixingDate, @Nullable String fixingSource, @Nullable String settlementCurrency, @Nullable FormattedAmount dealtAmount, @Nonnull BuySell clientBaseBuySell, @Nullable FormattedAmount contraAmount, @Nullable LocalDate settlementDate, @Nullable String settlementTenor, @Nullable String remarks, @Nullable String traderRemarks, @Nullable String spotTrader, @Nullable String forwardPointsTrader, @Nonnull String currencyPair, @Nullable LocationType locationType, @Nullable FormattedAmount profit, @Nullable BigDecimal xvaTotalAmount, @Nullable BigDecimal xvaNetProfit) Creates the default display fields for a Sales NDF confirmation message:- Parameters:
client- The client i.e. TOBOUseraccount- The account descriptionexecutionDate- The execution dateexecutionDateTime- The execution date timesubmitFields- Custom submit fieldsfixingDate- The fixing datefixingSource- The fixing sourcesettlementCurrency- The settlement currency for a non-deliverable tradedealtAmount- the dealt amountclientBaseBuySell- Whether the base is bought or soldcontraAmount- The contra amountsettlementDate- The settlement datesettlementTenor- Optional tenor, to be displayed in brackets after the settlement dateremarks- The commentstraderRemarks- The trader commentsspotTrader- The Spot traderforwardPointsTrader- The Forward points traderlocationType- The location type for an NDF trade
-
addDefaultSalesSwapSummaryDisplayFields
public static DisplayFields addDefaultSalesSwapSummaryDisplayFields(@Nullable String client, @Nullable String nearAccount, @Nullable String farAccount, @Nullable LocalDate executionDate, @Nullable Instant executionDateTime, @Nullable List<DisplayField> submitFields, @Nullable FormattedAmount nearDealtAmount, @Nonnull BuySell nearClientBaseBuySell, @Nullable FormattedAmount nearContraAmount, @Nullable LocalDate nearSettlementDate, @Nullable String nearSettlementTenor, @Nullable FormattedRate nearAllInRate, @Nullable FormattedAmount farDealtAmount, @Nonnull BuySell farClientBaseBuySell, @Nullable FormattedAmount farContraAmount, @Nullable LocalDate farSettlementDate, @Nullable String farSettlementTenor, @Nullable FormattedRate farAllInRate, @Nullable String remarks, @Nullable String traderRemarks, @Nullable String spotTrader, @Nullable String forwardPointsTrader, @Nonnull String currencyPair, @Nullable String amountOfDays, @Nullable FormattedAmount profit, @Nullable BigDecimal xvaTotalAmount, @Nullable BigDecimal xvaNetProfit) Creates the default display fields for a Sales swap confirmation message:- Parameters:
client- The client i.e. TOBOUserexecutionDate- The execution dateexecutionDateTime- The execution date timesubmitFields- Custom submit fieldsnearDealtAmount- The near dealt amountnearClientBaseBuySell- Whether the base is bought or soldnearContraAmount- The near contra amountnearSettlementDate- The near settlement datenearSettlementTenor- Optional tenor, to be displayed in brackets after the settlement datenearAllInRate- The near All-In-RatenearAccount- The near account descriptionfarDealtAmount- The far dealt amountfarClientBaseBuySell- Whether the base is bought or soldfarContraAmount- The far contra amountfarSettlementDate- The far settlement datefarSettlementTenor- Optional tenor, to be displayed in brackets after the settlement datefarAllInRate- The far All-In-RatefarAccount- The far account descriptionremarks- The commentstraderRemarks- The trader commentsspotTrader- The Spot traderforwardPointsTrader- The Forward points traderamountOfDays- The days between near settlement and far settlement dates
-
addDefaultSalesNDSSummaryDisplayFields
public static DisplayFields addDefaultSalesNDSSummaryDisplayFields(@Nullable String client, @Nullable String account, @Nullable LocalDate executionDate, @Nullable Instant executionDateTime, @Nullable List<DisplayField> submitFields, @Nullable String fixingSource, @Nullable String settlementCurrency, @Nullable FormattedAmount nearDealtAmount, @Nonnull BuySell nearClientBaseBuySell, @Nullable FormattedAmount nearContraAmount, @Nullable LocalDate nearSettlementDate, @Nullable String nearSettlementTenor, @Nullable LocalDate nearFixingDate, @Nullable FormattedRate nearAllInRate, @Nullable FormattedAmount farDealtAmount, @Nonnull BuySell farClientBaseBuySell, @Nullable FormattedAmount farContraAmount, @Nullable LocalDate farSettlementDate, @Nullable String farSettlementTenor, @Nullable LocalDate farFixingDate, @Nullable FormattedRate farAllInRate, @Nullable String remarks, @Nullable String traderRemarks, @Nullable String spotTrader, @Nullable String forwardPointsTrader, @Nonnull String currencyPair, @Nullable String amountOfDays, @Nullable LocationType locationType, @Nullable FormattedAmount profit, @Nullable BigDecimal xvaTotalAmount, @Nullable BigDecimal xvaNetProfit) Creates the default display fields for a Sales NDS confirmation message:- Parameters:
client- The client i.e. TOBOUseraccount- The account descriptionexecutionDate- The execution dateexecutionDateTime- The execution date timesubmitFields- Custom submit fieldsnearDealtAmount- the dealt amountnearClientBaseBuySell- Whether the base is bought or soldnearContraAmount- The contra amountnearSettlementDate- The settlement datenearSettlementTenor- Optional tenor, to be displayed in brackets after the settlement datenearAllInRate- The near All-In-RatefarDealtAmount- The far amountfarClientBaseBuySell- Whether the base is bought or soldfarContraAmount- The far contra amountfarSettlementDate- The far settlement datefarSettlementTenor- Optional tenor, to be displayed in brackets after the settlement datefarAllInRate- The far All-In-Rateremarks- The commentstraderRemarks- The trader commentsspotTrader- The Spot traderforwardPointsTrader- The Forward points traderamountOfDays- The days between near settlement and far settlement dateslocationType- The location type for the NDS trade
-
addDefaultSalesAllocationConfirmationFields
public static DisplayFields addDefaultSalesAllocationConfirmationFields(DisplayFields displayFields, @Nullable String entityDescription, @Nullable String fullName, @Nullable String currencyPair, @Nullable LocalDate executionDate, @Nullable Instant executionDateTime, @Nullable FormattedRate traderSpotRate, @Nullable FormattedPoints spotMargin, @Nullable FormattedRate clientSpotRate, @Nullable Integer totalDeals, @Nullable FormattedAmount profit) Adds the default deliverable deal display fields for a Sales Allocation confirmation message: - Client - Currency Pair - Execution Date Time - Trader Spot Rate - Spot Margin - Client Spot Rate - Total Deals - Estimated Profit- Parameters:
displayFields- The DisplayFields to add the field toentityDescription- The value matching the EntityDescription fields on a trade confirmation.fullName- The value matching the FullName field on a trade confirmationcurrencyPair- The value matching the CurrencyPair field on a trade confirmation.executionDate- The execution dateexecutionDateTime- The execution date timetraderSpotRate- The value matching the TraderSpotRate field on your Sales trade confirmationspotMargin- The value matching the SpotMargin field on your Sales trade confirmation@param spotMarginclientSpotRate- The value matching the SpotRate field on your trade confirmationtotalDeals- The number of allocated or repriced deals.profit- The value matching the Profit field on your trade confirmation
-
addDefaultSalesAllocationConfirmationFields
public static DisplayFields addDefaultSalesAllocationConfirmationFields(DisplayFields displayFields, @Nullable String entityDescription, @Nullable String fullName, @Nullable String currencyPair, @Nullable List<DisplayField> submitFields, @Nullable LocalDate executionDate, @Nullable Instant executionDateTime, @Nullable FormattedRate traderSpotRate, @Nullable FormattedPoints spotMargin, @Nullable FormattedRate clientSpotRate, @Nullable Integer totalDeals, @Nullable FormattedAmount profit, @Nullable String settlementCurrency, @Nullable String fixingSource) Adds the default display fields for a Sales Allocation confirmation message: - Client - Currency Pair - Settlement Currency (if non-deliverable) - Fixing Source (if non-deliverable) - Date - Time - Trader Spot Rate - Spot Margin - Client Spot Rate - Total Deals - Estimated Profit- Parameters:
displayFields- The DisplayFields to add the field toentityDescription- The value matching the EntityDescription fields on a trade confirmation.fullName- The value matching the FullName field on a trade confirmationcurrencyPair- The value matching the CurrencyPair field on a trade confirmation.executionDate- The execution date in ISO format.executionDateTime- The execution date time in ISO format. May optionally contain milliseconds.traderSpotRate- The value matching the TraderSpotRate field on your Sales trade confirmationspotMargin- The value matching the SpotMargin field on your Sales trade confirmation@param spotMarginclientSpotRate- The value matching the SpotRate field on your trade confirmationtotalDeals- The number of allocated or repriced deals.profit- The value matching the Profit field on your trade confirmationsettlementCurrency- The settlement currency for a non-deliverable dealfixingSource- The fixing source for a non-deliverable deal
-
addDefaultAllocationConfirmationFields
public static DisplayFields addDefaultAllocationConfirmationFields(DisplayFields displayFields, @Nullable String entityDescription, @Nullable String fullName, @Nullable String currencyPair, @Nullable LocalDate executionDate, @Nullable Instant executionDateTime, @Nullable FormattedRate spotRate, @Nullable Integer totalDeals, @Nullable FormattedAmount profit) Adds the default display fields for an Allocation confirmation message: - Client - Currency Pair - Date - Time - Spot Rate - Total Deals - Estimated Profit- Parameters:
displayFields- The DisplayFields to add the field toentityDescription- The value matching the EntityDescription fields on a trade confirmation.fullName- The value matching the FullName field on a trade confirmationcurrencyPair- The value matching the CurrencyPair field on a trade confirmation.executionDate- The date the trade was executed.executionDateTime- The execution date time in ISO format. May optionally contain milliseconds.param executionDateTimespotRate- The value matching the SpotRate field on your trade confirmationtotalDeals- The number of allocated or repriced deals.profit- The value matching the Profit field on your trade confirmation
-
addDefaultSalesAllocationDetailsUpdateFields
public static DisplayFields addDefaultSalesAllocationDetailsUpdateFields(DisplayFields displayFields, @Nullable FormattedAmount originalAmount, @Nullable FormattedAmount originalContraAmount, @Nullable String currencyPair, @Nullable LocalDate originalSettlementDate, @Nullable String originalTenor, @Nullable String originalAccount, @Nullable FormattedRate originalRate) Adds the default deliverable deal display fields for a Sales Allocation details-update message: - Original Amount - Original Contra - Currency Pair - Settlement - Account - Original Rate- Parameters:
displayFields- The DisplayFields to add the field tooriginalAmount- The original amountoriginalContraAmount- The original contra amountcurrencyPair- The currency pairoriginalSettlementDate- The original settlement dateoriginalTenor- Optional original tenororiginalAccount- The original accountoriginalRate- The original rate
-
addDefaultSalesAllocationDetailsUpdateFields
public static DisplayFields addDefaultSalesAllocationDetailsUpdateFields(DisplayFields displayFields, @Nullable FormattedAmount originalAmount, @Nullable FormattedAmount originalContraAmount, @Nullable String currencyPair, @Nullable LocalDate originalSettlementDate, @Nullable String originalTenor, @Nullable String originalAccount, @Nullable FormattedRate originalRate, @Nullable LocalDate fixingDate, @Nullable String settlementCurrency, @Nullable String fixingSource, @Nullable LocationType locationType) Adds the default display fields for a Sales Allocation details-update message: - Amount - Contra Amount - Currency Pair - Settlement Currency (if non-deliverable) - Settlement - Fixing Date (if non-deliverable) - Fixing Source (if non-deliverable) - Account - Original Rate- Parameters:
displayFields- The DisplayFields to add the field tooriginalAmount- The original amountoriginalContraAmount- The original contra amountcurrencyPair- The currency pairoriginalSettlementDate- The original settlement dateoriginalTenor- Optional original tenororiginalAccount- The original accountoriginalRate- The original ratefixingDate- The fixing date for a non-deliverable tradesettlementCurrency- The settlement currency for a non-deliverable tradefixingSource- The fixing source for a non-deliverable tradelocationType- The location type for a non-deliverable trade
-
addDefaultAllocationDetailsUpdateFields
public static DisplayFields addDefaultAllocationDetailsUpdateFields(DisplayFields displayFields, @Nullable FormattedAmount originalAmount, @Nullable FormattedAmount originalContraAmount, @Nullable String currencyPair, @Nullable LocalDate originalSettlementDate, @Nullable String originalTenor, @Nullable String originalAccount, @Nullable FormattedRate originalRate) Adds the default deliverable deal display fields for an Allocation details-update message: - Original Amount - Original Contra - Currency Pair - Settlement - Account - Original Rate- Parameters:
displayFields- The DisplayFields to add the field tooriginalAmount- The original amountoriginalContraAmount- The original contra amountcurrencyPair- The currency pairoriginalSettlementDate- The original settlement dateoriginalTenor- Optional original tenororiginalAccount- The original accountoriginalRate- The original rate
-
addDefaultAllocationDetailsUpdateFields
public static DisplayFields addDefaultAllocationDetailsUpdateFields(DisplayFields displayFields, @Nullable FormattedAmount originalAmount, @Nullable FormattedAmount originalContraAmount, @Nullable String currencyPair, @Nullable LocalDate originalSettlementDate, @Nullable String originalTenor, @Nullable String originalAccount, @Nullable FormattedRate originalRate, @Nullable LocalDate fixingDate, @Nullable LocationType locationType) Adds the default display fields for an Allocation details-update message: - Original Amount - Original Contra - Currency Pair - Settlement - Original Fixing Date (if non-deliverable) - Account - Original Rate- Parameters:
displayFields- The DisplayFields to add the field tooriginalAmount- The original amountoriginalContraAmount- The original contra amountcurrencyPair- The currency pairoriginalSettlementDate- The original settlement dateoriginalTenor- Optional original tenororiginalAccount- The original accountoriginalRate- The original ratefixingDate- The fixing date for a non-deliverable tradelocationType- The location for a non-deliverable trade
-
addDefaultSwapAllocationDetailsUpdateFields
public static DisplayFields addDefaultSwapAllocationDetailsUpdateFields(DisplayFields displayFields, @Nullable String originalAccount, @Nullable String currencyPair, @Nullable LocalDate originalNearSettlementDate, @Nullable String originalNearTenor, @Nullable FormattedAmount originalNearAmount, @Nullable FormattedAmount originalNearContraAmount, @Nullable LocalDate originalFarSettlementDate, @Nullable String originalFarTenor, @Nullable FormattedAmount originalFarAmount, @Nullable FormattedAmount originalFarContraAmount, @Nullable FormattedPoints swapPoints) Adds the default display fields for an Allocation details-update message: - Original Amount - Original Contra - Currency Pair - Settlement - Original Fixing Date (if non-deliverable) - Account - Original Rate- Parameters:
displayFields- The DisplayFields to add the field tooriginalAccount- The original accountcurrencyPair- The currency pairoriginalNearSettlementDate- The original settlement dateoriginalNearTenor- Optional original near tenororiginalNearAmount- The original near leg amountoriginalNearContraAmount- The original near leg contra amountoriginalFarSettlementDate- The original settlement dateoriginalFarTenor- Optional original near tenororiginalFarAmount- The original near leg amountoriginalFarContraAmount- The original near leg contra amount
-
addGeneralOutrightFields
public static DisplayFields addGeneralOutrightFields(DisplayFields DisplayFields, @Nullable String entity, @Nullable String account, @Nullable String tradeID, @Nullable Instant executionDateTime, @Nullable String currencyPair, @Nullable String user) Adds the leg independent display fields for an outright trade- Parameters:
DisplayFields- The DisplayFields to add the field to.account- The account that completed the trade.tradeID- The trade ID.executionDateTime- The date and time of executioncurrencyPair- The currency pair in the trade.user- The user associated with the trade.
-
addSpotTradeDetailsFields
public static DisplayFields addSpotTradeDetailsFields(DisplayFields displayFields, @Nonnull BuySell clientBaseBuySell, @Nullable FormattedAmount dealtAmount, @Nullable FormattedAmount contraAmount, @Nullable FormattedRate spotRate, @Nullable FormattedRate spotMidRate, @Nullable LocalDate settlementDate, @Nullable FormattedAmount serviceCostAmount, @Nullable FormattedAmount serviceContraCostAmount, @Nullable FormattedAmount costAmount, @Nullable FormattedAmount contraCostAmount, @Nullable String settlementTenor, @Nonnull String currencyPair) Adds spot trade leg fields- Parameters:
displayFields- The DisplayFields to add the field to.clientBaseBuySell- Whether the base is bought or solddealtAmount- The dealt amountcontraAmount- The dealt amountspotRate- The (client) spot rate, e.g. 1.23456spotMidRate- The Mid-Spot Rate.settlementDate- The settlement datesettlementTenor- Optional tenor, to be displayed in brackets after the settlement datecurrencyPair- The currency pair
-
addGenericFwdLegFields
public static DisplayFields addGenericFwdLegFields(DisplayFields displayFields, @Nonnull BuySell clientBaseBuySell, @Nullable FormattedAmount dealtAmount, @Nullable FormattedAmount contraAmount, @Nullable FormattedPoints forwardPoints, @Nullable FormattedPoints forwardMidPoints, @Nonnull String currencyPair) Adds generic fwd leg fields (look at other adders to see what it can be combined with):- Parameters:
displayFields- The DisplayFields to add the field to.clientBaseBuySell- Whether the base is bought or solddealtAmount- The dealt amountcontraAmount- The dealt amountforwardPoints- The Forward points.forwardMidPoints- The Forward Mid points.currencyPair- The currency pair
-
addNonCommercialForward
public static DisplayFields addNonCommercialForward(DisplayFields displayFields, String isCommercial) Adds a non-commercial trade flag field- Parameters:
displayFields- The DisplayFields to add the field toisCommercial- The commercial trade flag
-
addOtherFwdLegFields
public static DisplayFields addOtherFwdLegFields(DisplayFields displayFields, @Nullable FormattedRate spotRate, @Nullable FormattedRate spotMidRate, @Nullable FormattedRate allInRate, @Nullable FormattedRate allInMidRate, @Nullable LocalDate settlementDate, @Nullable FormattedAmount serviceCostAmount, @Nullable FormattedAmount serviceContraCostAmount, @Nullable FormattedAmount costAmount, @Nullable FormattedAmount contraCostAmount, @Nullable String settlementTenor) adds fwd specific leg fields use with addGenericFwdLegFields to create fwd leg fields- Parameters:
displayFields- The DisplayFields to add the field to.spotRate- The (client) spot rate, e.g. 1.23456spotMidRate- The Mid-Spot Rate.allInRate- The All-In-Rate.allInMidRate- The All-In-Mid-Rate.settlementDate- The settlement datesettlementTenor- Optional tenor, to be displayed in brackets after the settlement date
-
addNdfLegFields
public static DisplayFields addNdfLegFields(DisplayFields displayFields, @Nullable LocalDate fixingDate) adds ndf specific leg fields can be used with addOtherFwdLegFields and addGenericFwdLegFields to create ndf leg fields- Parameters:
displayFields- The DisplayFields to add the field tofixingDate- The fixing date
-
addTimeOptionFields
@Deprecated public static DisplayFields addTimeOptionFields(DisplayFields displayFields, @Nullable FormattedRate spotRate, @Nullable FormattedRate spotMidRate, @Nullable LocalDate startDate, @Nullable String startTenor, @Nullable LocalDate endDate, @Nullable String endTenor, @Nullable FormattedAmount serviceCostAmount, @Nullable FormattedAmount serviceContraCostAmount, @Nullable FormattedAmount costAmount, @Nullable FormattedAmount contraCostAmount) Deprecated.This overload is deprecated and will be removed in an upcoming major release. Please use the overload that contains the new parameters allInRate and allInMidRate. If you do not wish to display these values, you can set them to null.adds time option specific leg fields can be used with addGenericFwdLegFields to create time option leg fields
- Parameters:
displayFields- The DisplayFields to add the field to.spotRate- The (client) spot rate, e.g. 1.23456spotMidRate- The Mid-Spot Rate.startDate- The Start date.startTenor- The Start Tenor.endDate- The End date.endTenor- The End Tenor.
-
addTimeOptionFields
public static DisplayFields addTimeOptionFields(DisplayFields displayFields, @Nullable FormattedRate spotRate, @Nullable FormattedRate spotMidRate, @Nullable FormattedRate allInRate, @Nullable FormattedRate allInMidRate, @Nullable LocalDate startDate, @Nullable String startTenor, @Nullable LocalDate endDate, @Nullable String endTenor, @Nullable FormattedAmount serviceCostAmount, @Nullable FormattedAmount serviceContraCostAmount, @Nullable FormattedAmount costAmount, @Nullable FormattedAmount contraCostAmount) adds time option specific leg fields can be used with addGenericFwdLegFields to create time option leg fields- Parameters:
displayFields- The DisplayFields to add the field to.spotRate- The (client) spot rate, e.g. 1.23456spotMidRate- The Mid-Spot Rate.startDate- The Start date.startTenor- The Start Tenor.endDate- The End date.endTenor- The End Tenor.
-
addSwapSpotFields
public static DisplayFields addSwapSpotFields(DisplayFields displayFields, @Nullable FormattedRate spotRate, @Nullable FormattedRate spotMidRate, @Nullable FormattedPoints swapPoints, @Nullable FormattedPoints swapMidPoints) Adds swap specific leg independent fields- Parameters:
displayFields- The DisplayFields to add the field to.spotRate- The (client) spot rate, e.g. 1.23456spotMidRate- The Mid-Spot Rate.swapPoints- The Swap points.
-
addSwapLegFields
public static DisplayFields addSwapLegFields(DisplayFields displayFields, @Nullable FormattedRate allInRate, @Nullable FormattedRate allInMidRate, @Nullable LocalDate settlementDate, @Nullable FormattedAmount serviceCostAmount, @Nullable FormattedAmount serviceContraCostAmount, @Nullable FormattedAmount costAmount, @Nullable FormattedAmount contraCostAmount, @Nullable String settlementTenor) Adds swap specific leg fields use with addGenericFwdLegFields to create a set of swap leg fields- Parameters:
displayFields- The DisplayFields to add the field to.allInRate- The All-In-Rate.settlementDate- The settlement datesettlementTenor- Optional tenor, to be displayed in brackets after the settlement date
-
addExtraFields
public static DisplayFields addExtraFields(DisplayFields displayFields, @Nullable String remarks, @Nullable String isCommercial) Adds additional fields that are not specific to a trade type (eg. Comments)- Parameters:
displayFields- The DisplayFields to add the field to.remarks- The comments.
-
addSalesExtraFields
public static DisplayFields addSalesExtraFields(DisplayFields displayFields, @Nullable String remarks, @Nullable String traderRemarks) Adds additional fields that are not specific to a trade type (eg. Comments)- Parameters:
displayFields- The DisplayFields to add the field to.remarks- The comments.traderRemarks- The trader comments.
-
addDefaultSwapPostTradeHistoryFields
public static DisplayFields addDefaultSwapPostTradeHistoryFields(DisplayFields displayFields, @Nullable FormattedAmount originalAmount, @Nullable LocalDate settlementDate, @Nullable String settlementTenor, @Nullable FormattedAmount remainingAmount, Boolean isFarLeg) Adds the swap-specific post trade history fields to your display fields configuration- Parameters:
displayFields- The DisplayFields to add the field to.originalAmount- The original amount of the parent trade on the chosen legsettlementDate- The settlement date of the parent trade on the chosen legsettlementTenor- Optional tenor, to be displayed in brackets after the settlement dateisFarLeg- Whether the chosen leg is the near or far legremainingAmount- The remaining amount
-
addDefaultOutrightPostTradeHistoryFields
public static DisplayFields addDefaultOutrightPostTradeHistoryFields(DisplayFields displayFields, @Nullable FormattedAmount originalAmount, @Nullable LocalDate settlementDate, @Nullable String settlementTenor, @Nullable FormattedAmount remainingAmount) Adds the post trade history fields to your display fields configuration- Parameters:
displayFields- The DisplayFields to add the field to.originalAmount- The original amount of the parent tradesettlementDate- The settlement date of the parent tradesettlementTenor- Optional tenor, to be displayed in brackets after the settlement dateremainingAmount- The remaining amount of the parent trade
-
addDefaultTimeOptionPostTradeHistoryFields
public static DisplayFields addDefaultTimeOptionPostTradeHistoryFields(DisplayFields displayFields, @Nullable FormattedAmount originalAmount, @Nullable LocalDate startDate, @Nullable String startTenor, @Nullable LocalDate endDate, @Nullable String endTenor, @Nullable FormattedAmount remainingAmount) Adds the post trade history fields to your display fields configuration- Parameters:
displayFields- The DisplayFields to add the field to.originalAmount- The original amount of the parent tradestartDate- The start date of the tradestartTenor- Optional tenor, to be displayed in brackets after the start dateendDate- The end date of the tradeendTenor- Optional tenor, to be displayed in brackets after the end dateremainingAmount- The remaining amount of the parent trade
-
addDefaultDrawdownTradeDetailsFields
public static DisplayFields addDefaultDrawdownTradeDetailsFields(DisplayFields displayFields, @Nullable FormattedRate rate, @Nullable LocalDate startDate, @Nullable String startTenor, @Nullable LocalDate endDate, @Nullable String endTenor) Adds the post trade history fields to your display fields configuration- Parameters:
displayFields- The DisplayFields to add the field to.rate- The rate of the original time optionstartDate- The start date of the original time optionstartTenor- Optional tenor, to be displayed in brackets after the start dateendDate- The end date of the original time optionendTenor- Optional tenor, to be displayed in brackets after the end date
-
fromFieldsMap
Derive a complete display-fields configuration from a confirmation message.Currently only confirmation messages for FX Professional are supported. Confirmation messages for FX Sales will be supported in a future release. With this, the possible values for messageClassName are "TicketSpotTradeConfirmation", "TicketForwardTradeConfirmation" and "TicketSwapTradeConfirmation".
- Parameters:
fieldsMap- the confirmation message, where the keys are the confirmation message fields and the values ate the confirmation message field valuesmessageClassName- the name of a builder from com.caplin.generated.motif.fx.tradeconfirmation as a string- Returns:
- a complete display-fields configuration, or null if messageClassName is not one of the supported values listed above
-
addDefaultSpotSummaryDisplayFields
public static DisplayFields addDefaultSpotSummaryDisplayFields(DisplayFields displayFields, @Nullable String entity, @Nullable String account, @Nullable String tradeId, @Nullable Instant executionDateTime, @Nonnull String currencyPair, @Nullable String submittedBy, @Nonnull BuySell clientBaseBuySell, @Nullable FormattedAmount dealtAmount, @Nullable FormattedAmount contraAmount, @Nullable FormattedRate spotRate, @Nullable FormattedRate spotMidRate, @Nullable LocalDate settlementDate, @Nullable FormattedAmount serviceCostAmount, @Nullable FormattedAmount serviceContraCostAmount, @Nullable FormattedAmount costAmount, @Nullable FormattedAmount contraCostAmount, @Nullable String settlementTenor, @Nullable String remarks) Creates the default display fields for a spot confirmation message:- Parameters:
account- the account descriptiontradeId- the trade IDexecutionDateTime- the execution date timecurrencyPair- the currency pairsubmittedBy- the user who submitted the tradeclientBaseBuySell- Whether the base is bought or solddealtAmount- the dealt amountcontraAmount- the contra amountspotRate- the spot ratespotMidRate- the spot mid ratesettlementDate- the settlement datesettlementTenor- optional tenor, to be displayed in brackets after the settlement dateremarks- optional comments
-
addDefaultFwdSummaryDisplayFields
public static DisplayFields addDefaultFwdSummaryDisplayFields(DisplayFields displayFields, @Nullable String entity, @Nullable String account, @Nullable String tradeId, @Nullable Instant executionDateTime, @Nonnull String currencyPair, @Nullable String submittedBy, @Nonnull BuySell clientBaseBuySell, @Nullable FormattedAmount dealtAmount, @Nullable FormattedAmount contraAmount, @Nullable FormattedPoints fwdPoints, @Nullable FormattedPoints fwdMidPoints, @Nullable FormattedRate spotRate, @Nullable FormattedRate spotMidRate, @Nullable FormattedRate allInRate, @Nullable FormattedRate allInMidRate, @Nullable LocalDate settlementDate, @Nullable FormattedAmount serviceCostAmount, @Nullable FormattedAmount serviceContraCostAmount, @Nullable FormattedAmount costAmount, @Nullable FormattedAmount contraCostAmount, @Nullable String settlementTenor, @Nullable String remarks, @Nullable String isCommercial) Creates the default display fields for a forward confirmation message:- Parameters:
account- the account descriptiontradeId- the trade IDexecutionDateTime- the execution date timecurrencyPair- the currency pairsubmittedBy- the user who submitted the tradeclientBaseBuySell- Whether the base is bought or solddealtAmount- the dealt amountcontraAmount- the contra amountfwdPoints- the forward pointsfwdMidPoints- the forward mid pointsspotRate- the spot ratespotMidRate- the spot mid rateallInRate- the all in ratesettlementDate- the settlement datesettlementTenor- optional tenor, to be displayed in brackets after the settlement dateremarks- optional commentsisCommercial- flag indicating whether the trade is a commercial trade or not
-
addDefaultNdfSummaryDisplayFields
public static DisplayFields addDefaultNdfSummaryDisplayFields(DisplayFields displayFields, @Nullable String entity, @Nullable String account, @Nullable String tradeId, @Nullable Instant executionDateTime, @Nonnull String currencyPair, @Nullable String submittedBy, @Nonnull BuySell clientBaseBuySell, @Nullable FormattedAmount dealtAmount, @Nullable FormattedAmount contraAmount, @Nullable FormattedPoints fwdPoints, @Nullable FormattedPoints fwdMidPoints, @Nullable FormattedRate spotRate, @Nullable FormattedRate spotMidRate, @Nullable FormattedRate allInRate, @Nullable FormattedRate allInMidRate, @Nullable LocalDate settlementDate, @Nullable FormattedAmount serviceCostAmount, @Nullable FormattedAmount serviceContraCostAmount, @Nullable FormattedAmount costAmount, @Nullable FormattedAmount contraCostAmount, @Nullable String settlementTenor, @Nullable LocalDate fixingDate, @Nullable String remarks, @Nullable String isCommercial, @Nullable LocationType locationType) Creates the default display fields for a NDF confirmation message:- Parameters:
account- the account descriptiontradeId- the trade IDexecutionDateTime- the execution date timecurrencyPair- the currency pairsubmittedBy- the user who submitted the tradeclientBaseBuySell- Whether the base is bought or solddealtAmount- the dealt amountcontraAmount- the contra amountfwdPoints- the forward pointsfwdMidPoints- the forward mid pointsspotRate- the spot ratespotMidRate- the spot mid rateallInRate- the all in ratesettlementDate- the settlement datesettlementTenor- optional tenor, to be displayed in brackets after the settlement datefixingDate- the fixing dateremarks- optional commentsisCommercial- flag indicating whether the trade is a commercial trade or notlocationType- The location type for an NDF trade
-
addDefaultTimeOptionSummaryDisplayFields
@Deprecated public static DisplayFields addDefaultTimeOptionSummaryDisplayFields(DisplayFields displayFields, @Nullable String entity, @Nullable String account, @Nullable String tradeId, @Nullable Instant executionDateTime, @Nonnull String currencyPair, @Nullable String submittedBy, @Nonnull BuySell clientBaseBuySell, @Nullable FormattedAmount dealtAmount, @Nullable FormattedAmount contraAmount, @Nullable FormattedPoints fwdPoints, @Nullable FormattedPoints fwdMidPoints, @Nullable FormattedRate spotRate, @Nullable FormattedRate spotMidRate, @Nullable LocalDate startDate, @Nullable String startTenor, @Nullable LocalDate settlementDate, @Nullable String settlementTenor, @Nullable FormattedAmount serviceCostAmount, @Nullable FormattedAmount serviceContraCostAmount, @Nullable FormattedAmount costAmount, @Nullable FormattedAmount contraCostAmount, @Nullable String remarks, @Nullable String isCommercial) Deprecated.This overload is deprecated and will be removed in an upcoming major release. Please use the overload that contains the new parameters allInRate and allInMidRate. If you do not wish to display these values, you can set them to null.Creates the default display fields for a swap confirmation message:
- Parameters:
account- the account descriptiontradeId- the trade IDexecutionDateTime- the execution date timecurrencyPair- the currency pairsubmittedBy- the user who submitted the tradeclientBaseBuySell- Whether the base is bought or solddealtAmount- the dealt amountcontraAmount- the contra amountfwdPoints- the forward pointsfwdMidPoints- the forward mid pointsspotRate- the spot ratespotMidRate- the spot mid ratestartDate- the start datesettlementDate- the end dateremarks- optional commentsisCommercial- flag indicating whether the trade is a commercial trade or not
-
addDefaultTimeOptionSummaryDisplayFields
public static DisplayFields addDefaultTimeOptionSummaryDisplayFields(DisplayFields displayFields, @Nullable String entity, @Nullable String account, @Nullable String tradeId, @Nullable Instant executionDateTime, @Nonnull String currencyPair, @Nullable String submittedBy, @Nonnull BuySell clientBaseBuySell, @Nullable FormattedAmount dealtAmount, @Nullable FormattedAmount contraAmount, @Nullable FormattedPoints fwdPoints, @Nullable FormattedPoints fwdMidPoints, @Nullable FormattedRate spotRate, @Nullable FormattedRate spotMidRate, @Nullable FormattedRate allInRate, @Nullable FormattedRate allInMidRate, @Nullable LocalDate startDate, @Nullable String startTenor, @Nullable LocalDate settlementDate, @Nullable String settlementTenor, @Nullable FormattedAmount serviceCostAmount, @Nullable FormattedAmount serviceContraCostAmount, @Nullable FormattedAmount costAmount, @Nullable FormattedAmount contraCostAmount, @Nullable String remarks, @Nullable String isCommercial) Creates the default display fields for a swap confirmation message:- Parameters:
account- the account descriptiontradeId- the trade IDexecutionDateTime- the execution date timecurrencyPair- the currency pairsubmittedBy- the user who submitted the tradeclientBaseBuySell- Whether the base is bought or solddealtAmount- the dealt amountcontraAmount- the contra amountfwdPoints- the forward pointsfwdMidPoints- the forward mid pointsspotRate- the spot ratespotMidRate- the spot mid rateallInRate- the all-in rateallInMidRate- the all-in mid ratestartDate- the start datesettlementDate- the end dateremarks- optional commentsisCommercial- flag indicating whether the trade is a commercial trade or not
-
addDefaultSwapSummaryDisplayFields
public static DisplayFields addDefaultSwapSummaryDisplayFields(DisplayFields displayFields, @Nullable String entity, @Nullable String account, @Nullable String tradeId, @Nullable Instant executionDateTime, @Nonnull String currencyPair, @Nullable String submittedBy, @Nullable FormattedRate spotRate, @Nullable FormattedRate spotMidRate, @Nullable FormattedPoints swapPoints, @Nullable FormattedPoints swapMidPoints, @Nonnull BuySell nearClientBaseBuySell, @Nullable FormattedAmount nearDealtAmount, @Nullable FormattedAmount nearContraAmount, @Nullable FormattedPoints nearFwdPoints, @Nullable FormattedPoints nearFwdMidPoints, @Nullable FormattedRate nearAllInRate, @Nullable FormattedRate nearAllInMidRate, @Nullable LocalDate nearSettlementDate, @Nullable FormattedAmount nearServiceCostAmount, @Nullable FormattedAmount nearServiceContraCostAmount, @Nullable FormattedAmount nearCostAmount, @Nullable FormattedAmount nearContraCostAmount, @Nullable String nearSettlementTenor, @Nonnull BuySell farClientBaseBuySell, @Nullable FormattedAmount farDealtAmount, @Nullable FormattedAmount farContraAmount, @Nullable FormattedPoints farFwdPoints, @Nullable FormattedPoints farFwdMidPoints, @Nullable FormattedRate farAllInRate, @Nullable FormattedRate farAllInMidRate, @Nullable LocalDate farSettlementDate, @Nullable FormattedAmount farServiceCostAmount, @Nullable FormattedAmount farServiceContraCostAmount, @Nullable FormattedAmount farCostAmount, @Nullable FormattedAmount farContraCostAmount, @Nullable String farSettlementTenor, @Nullable String remarks, @Nullable String isCommercial) Creates the default display fields for a time option confirmation message:- Parameters:
account- the account descriptiontradeId- the trade IDexecutionDateTime- the execution date timecurrencyPair- the currency pairsubmittedBy- the user who submitted the tradespotRate- the spot ratespotMidRate- the spot mid rateswapPoints- the swap pointsswapMidPoints- the swap mid pointsnearClientBaseBuySell- Whether the base is bought or sold for the near legnearDealtAmount- the dealt amount for the near legnearContraAmount- the contra amount for the near legnearFwdPoints- the forward points for the near legnearFwdMidPoints- the forward mid points for the near legnearAllInRate- the all in rate for the near legnearSettlementDate- the settlement date for the near legnearSettlementTenor- optional tenor for the near leg, to be displayed in brackets after the settlement datefarClientBaseBuySell- Whether the base is bought or sold for the far legfarDealtAmount- the dealt amount for the far legfarContraAmount- the contra amount for the far legfarFwdPoints- the forward points for the far legfarFwdMidPoints- the forward mid points for the far legfarAllInRate- the all in rate for the far legfarSettlementDate- the settlement date for the far legfarSettlementTenor- optional tenor for the far leg, to be displayed in brackets after the settlement dateremarks- optional commentsisCommercial- flag indicating whether the trade is a commercial trade or not
-
addReasonHeader
public static DisplayFields addReasonHeader(DisplayFields displayFields, @Nullable String tenor, @Nullable String startDate) -
addReasonSecondaryHeader
-
createReasonBlock
-
addExtraFieldsToDisplay
public static void addExtraFieldsToDisplay(DisplayFields displayFields, String remarks, String traderRemarks) Adds an extra field to the display fields container.- Parameters:
displayFields- The container to which the extra fields will be addedremarks- The comments.traderRemarks- The trader comments.
-
addSpotTrader
Adds the Spot trader- Parameters:
displayFields- The DisplayFields to add the field tospotTrader- The Spot trader
-
addXvaTotalAmount
public static DisplayFields addXvaTotalAmount(DisplayFields displayFields, BigDecimal xvaTotalAmount, FormattedAmount profit) Adds the XVA total amount- Parameters:
displayFields- The DisplayFields to add the field toxvaTotalAmount- The xva total amount
-
addXvaNetProfit
public static DisplayFields addXvaNetProfit(DisplayFields displayFields, BigDecimal xvaNetProfit, FormattedAmount profit) Adds the XVA net profit- Parameters:
displayFields- The DisplayFields to add the field toxvaNetProfit- The xva net profit
-
addForwardPointsTrader
public static DisplayFields addForwardPointsTrader(DisplayFields displayFields, String forwardPointsTrader) Adds the Forward points trader- Parameters:
displayFields- The DisplayFields to add the field toforwardPointsTrader- The Forward points trader
-