Package com.caplin.motif.fx.config
Class DefaultDisplayFields
- java.lang.Object
-
- com.caplin.motif.fx.config.DefaultDisplayFields
-
public final class DefaultDisplayFields extends java.lang.Object
Static builder methods to build standard DisplayField items
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DisplayFields
addAccount(DisplayFields displayFields, java.lang.String account)
Adds the Account field to your display-fields configurationstatic DisplayFields
addAllInRate(DisplayFields displayFields, FormattedRate allInRate)
Adds the All-In-Rate field to your display-fields configurationstatic DisplayFields
addAmount(DisplayFields displayFields, FormattedAmount amount)
Adds the Amount field to your display-fields configurationstatic DisplayFields
addAmountWithBuySell(DisplayFields DisplayFields, FormattedAmount amount, java.lang.String buySell)
Adds the Amount field to your display-fields configurationstatic DisplayFields
addClient(DisplayFields displayFields, java.lang.String client)
Adds the client field i.e.static DisplayFields
addClient(DisplayFields displayFields, java.lang.String entityDescription, java.lang.String fullName)
Adds the Client field to your display-fields configurationstatic DisplayFields
addClientSpotRate(DisplayFields displayFields, FormattedRate clientSpotRate)
Adds the Client Spot Rate field to your display-fields configurationstatic DisplayFields
addContraAmount(DisplayFields displayFields, FormattedAmount contraAmount)
Adds the Contra Amount field to your display-fields configurationstatic DisplayFields
addCostOfInstrumentContraCurrency(DisplayFields displayFields, FormattedAmount contraCostAmount)
Adds the Cost of Instrument (Contra Currency) field to your display-fields configurationstatic DisplayFields
addCostOfInstrumentHomeCurrency(DisplayFields displayFields, FormattedAmount costAmount)
Adds the Cost of Instrument (Home Currency) field to your display-fields configurationstatic DisplayFields
addCostOfServicesContraCurrency(DisplayFields displayFields, FormattedAmount serviceContraCostAmount)
Adds the Cost of Services (Contra Currency) field to your display-fields configurationstatic DisplayFields
addCostOfServicesHomeCurrency(DisplayFields displayFields, FormattedAmount serviceCostAmount)
Adds the Cost of Services (Home Currency) field to your display-fields configurationstatic DisplayFields
addCurrencyPair(DisplayFields displayFields, java.lang.String currencyPair)
Adds the Currency Pair field to your display-fields configurationstatic DisplayFields
addDate(DisplayFields displayFields, java.time.LocalDate date)
Adds a Date field to your display-fields configurationstatic DisplayFields
addDefaultAllocationConfirmationFields(DisplayFields displayFields, java.lang.String entityDescription, java.lang.String fullName, java.lang.String currencyPair, java.time.LocalDate executionDate, java.time.Instant executionDateTime, FormattedRate spotRate, java.lang.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 DisplayFields
addDefaultAllocationDetailsUpdateFields(DisplayFields displayFields, FormattedAmount originalAmount, FormattedAmount originalContraAmount, java.lang.String currencyPair, java.time.LocalDate originalSettlementDate, java.lang.String originalTenor, java.lang.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 DisplayFields
addDefaultAllocationDetailsUpdateFields(DisplayFields displayFields, FormattedAmount originalAmount, FormattedAmount originalContraAmount, java.lang.String currencyPair, java.time.LocalDate originalSettlementDate, java.lang.String originalTenor, java.lang.String originalAccount, FormattedRate originalRate, java.time.LocalDate fixingDate)
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 DisplayFields
addDefaultDrawdownFields(DisplayFields displayFields, FormattedRate rate, java.time.LocalDate startDate, java.time.LocalDate endDate)
static DisplayFields
addDefaultFwdSummaryDisplayFields(DisplayFields displayFields, java.lang.String entity, java.lang.String account, java.lang.String tradeId, java.time.Instant executionDateTime, java.lang.String currencyPair, java.lang.String submittedBy, BuySell buySell, FormattedAmount amount, FormattedAmount contraAmount, FormattedPoints fwdPoints, FormattedPoints fwdMidPoints, FormattedRate spotRate, FormattedRate spotMidRate, FormattedRate allInRate, java.time.LocalDate settlementDate, FormattedAmount serviceCostAmount, FormattedAmount serviceContraCostAmount, FormattedAmount costAmount, FormattedAmount contraCostAmount, java.lang.String settlementTenor)
Creates the default display fields for a forward confirmation message:static DisplayFields
addDefaultNdfSummaryDisplayFields(DisplayFields displayFields, java.lang.String entity, java.lang.String account, java.lang.String tradeId, java.time.Instant executionDateTime, java.lang.String currencyPair, java.lang.String submittedBy, BuySell buySell, FormattedAmount amount, FormattedAmount contraAmount, FormattedPoints fwdPoints, FormattedPoints fwdMidPoints, FormattedRate spotRate, FormattedRate spotMidRate, FormattedRate allInRate, java.time.LocalDate settlementDate, FormattedAmount serviceCostAmount, FormattedAmount serviceContraCostAmount, FormattedAmount costAmount, FormattedAmount contraCostAmount, java.lang.String settlementTenor, java.time.LocalDate fixingDate)
Creates the default display fields for a NDF confirmation message:static DisplayFields
addDefaultPostTradeHistoryFields(DisplayFields displayFields, FormattedAmount originalAmount, java.time.LocalDate settlementDate, java.lang.String settlementTenor, FormattedAmount remainingAmount)
Adds the post trade history fields to your display fields configurationstatic DisplayFields
addDefaultSalesAllocationConfirmationFields(DisplayFields displayFields, java.lang.String entityDescription, java.lang.String fullName, java.lang.String currencyPair, java.time.LocalDate executionDate, java.time.Instant executionDateTime, FormattedRate traderSpotRate, FormattedPoints spotMargin, FormattedRate clientSpotRate, java.lang.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 DisplayFields
addDefaultSalesAllocationConfirmationFields(DisplayFields displayFields, java.lang.String entityDescription, java.lang.String fullName, java.lang.String currencyPair, java.time.LocalDate executionDate, java.time.Instant executionDateTime, FormattedRate traderSpotRate, FormattedPoints spotMargin, FormattedRate clientSpotRate, java.lang.Integer totalDeals, FormattedAmount profit, java.lang.String settlementCurrency, java.lang.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 DisplayFields
addDefaultSalesAllocationDetailsUpdateFields(DisplayFields displayFields, FormattedAmount originalAmount, FormattedAmount originalContraAmount, java.lang.String currencyPair, java.time.LocalDate originalSettlementDate, java.lang.String originalTenor, java.lang.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 DisplayFields
addDefaultSalesAllocationDetailsUpdateFields(DisplayFields displayFields, FormattedAmount originalAmount, FormattedAmount originalContraAmount, java.lang.String currencyPair, java.time.LocalDate originalSettlementDate, java.lang.String originalTenor, java.lang.String originalAccount, FormattedRate originalRate, java.time.LocalDate fixingDate, java.lang.String settlementCurrency, java.lang.String fixingSource)
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 DisplayFields
addDefaultSalesFwdSummaryDisplayFields(java.lang.String client, java.lang.String account, java.time.LocalDate executionDate, java.time.Instant executionDateTime, java.lang.String purpose, FormattedAmount amount, BuySell buySell, FormattedAmount contraAmount, java.time.LocalDate settlementDate, java.lang.String settlementTenor, FormattedAmount remainingAmount)
Creates the default display fields for a Sales forward confirmation message:static DisplayFields
addDefaultSalesNDFSummaryDisplayFields(java.lang.String client, java.lang.String account, java.time.LocalDate executionDate, java.time.Instant executionDateTime, java.lang.String purpose, java.time.LocalDate fixingDate, java.lang.String fixingSource, java.lang.String settlementCurrency, FormattedAmount amount, BuySell buySell, FormattedAmount contraAmount, java.time.LocalDate settlementDate, java.lang.String settlementTenor, FormattedAmount remainingAmount)
Creates the default display fields for a Sales NDF confirmation message:static DisplayFields
addDefaultSalesNDSSummaryDisplayFields(java.lang.String client, java.lang.String account, java.time.LocalDate executionDate, java.time.Instant executionDateTime, java.lang.String purpose, java.lang.String fixingSource, java.lang.String settlementCurrency, FormattedAmount nearAmount, BuySell nearBuySell, FormattedAmount nearContraAmount, java.time.LocalDate nearSettlementDate, java.lang.String nearSettlementTenor, java.time.LocalDate nearFixingDate, FormattedRate nearAllInRate, FormattedAmount farAmount, BuySell farBuySell, FormattedAmount farContraAmount, java.time.LocalDate farSettlementDate, java.lang.String farSettlementTenor, java.time.LocalDate farFixingDate, FormattedRate farAllInRate)
Creates the default display fields for a Sales NDS confirmation message:static DisplayFields
addDefaultSalesSpotSummaryDisplayFields(java.lang.String client, java.lang.String account, java.time.LocalDate executionDate, java.time.Instant executionDateTime, java.lang.String purpose, FormattedAmount amount, BuySell buySell, FormattedAmount contraAmount, java.time.LocalDate settlementDate, java.lang.String settlementTenor, FormattedAmount remainingAmount)
Creates the default display fields for a Sales spot confirmation message:static DisplayFields
addDefaultSalesSwapSummaryDisplayFields(java.lang.String client, java.lang.String account, java.time.LocalDate executionDate, java.time.Instant executionDateTime, java.lang.String purpose, FormattedAmount nearAmount, BuySell nearBuySell, FormattedAmount nearContraAmount, java.time.LocalDate nearSettlementDate, java.lang.String nearSettlementTenor, FormattedRate nearAllInRate, FormattedAmount farAmount, BuySell farBuySell, FormattedAmount farContraAmount, java.time.LocalDate farSettlementDate, java.lang.String farSettlementTenor, FormattedRate farAllInRate, FormattedAmount remainingAmount)
Creates the default display fields for a Sales swap confirmation message:static DisplayFields
addDefaultSalesTimeOptionSummaryDisplayFields(java.lang.String client, java.lang.String account, java.time.LocalDate executionDate, java.time.Instant executionDateTime, java.lang.String purpose, java.time.LocalDate startDate, java.time.LocalDate endDate, FormattedRate spotRate, FormattedPoints riskPoints, FormattedAmount amount, BuySell buySell, FormattedAmount contraAmount, FormattedAmount remainingAmount, FormattedAmount filledAmount)
Creates the default display fields for a Sales time option confirmation message:static DisplayFields
addDefaultSpotSummaryDisplayFields(DisplayFields displayFields, java.lang.String entity, java.lang.String account, java.lang.String tradeId, java.time.Instant executionDateTime, java.lang.String currencyPair, java.lang.String submittedBy, BuySell buySell, FormattedAmount amount, FormattedAmount contraAmount, FormattedRate spotRate, FormattedRate spotMidRate, java.time.LocalDate settlementDate, FormattedAmount serviceCostAmount, FormattedAmount serviceContraCostAmount, FormattedAmount costAmount, FormattedAmount contraCostAmount, java.lang.String settlementTenor)
Creates the default display fields for a spot confirmation message:static DisplayFields
addDefaultSwapSummaryDisplayFields(DisplayFields displayFields, java.lang.String entity, java.lang.String account, java.lang.String tradeId, java.time.Instant executionDateTime, java.lang.String currencyPair, java.lang.String submittedBy, FormattedRate spotRate, FormattedRate spotMidRate, FormattedPoints swapPoints, FormattedPoints swapMidPoints, BuySell nearBuySell, FormattedAmount nearAmount, FormattedAmount nearContraAmount, FormattedPoints nearFwdPoints, FormattedPoints nearFwdMidPoints, FormattedRate nearAllInRate, java.time.LocalDate nearSettlementDate, FormattedAmount nearServiceCostAmount, FormattedAmount nearServiceContraCostAmount, FormattedAmount nearCostAmount, FormattedAmount nearContraCostAmount, java.lang.String nearSettlementTenor, BuySell farBuySell, FormattedAmount farAmount, FormattedAmount farContraAmount, FormattedPoints farFwdPoints, FormattedPoints farFwdMidPoints, FormattedRate farAllInRate, java.time.LocalDate farSettlementDate, FormattedAmount farServiceCostAmount, FormattedAmount farServiceContraCostAmount, FormattedAmount farCostAmount, FormattedAmount farContraCostAmount, java.lang.String farSettlementTenor)
Creates the default display fields for a time option confirmation message:static DisplayFields
addDefaultTimeOptionSummaryDisplayFields(DisplayFields displayFields, java.lang.String entity, java.lang.String account, java.lang.String tradeId, java.time.Instant executionDateTime, java.lang.String currencyPair, java.lang.String submittedBy, BuySell buySell, FormattedAmount amount, FormattedAmount contraAmount, FormattedPoints fwdPoints, FormattedPoints fwdMidPoints, FormattedRate spotRate, FormattedRate spotMidRate, java.time.LocalDate startDate, java.time.LocalDate settlementDate, FormattedAmount serviceCostAmount, FormattedAmount serviceContraCostAmount, FormattedAmount costAmount, FormattedAmount contraCostAmount)
Creates the default display fields for a time option confirmation message:static DisplayFields
addEndDate(DisplayFields displayFields, java.time.LocalDate endDate)
Adds the End date field to your display-fields configurationstatic DisplayFields
addEntity(DisplayFields displayFields, java.lang.String entity)
Adds the Entity field to your display-fields configurationstatic DisplayFields
addEstimatedProfit(DisplayFields displayFields, FormattedAmount profit)
Adds the Estimated Profit field to your display-fields configurationstatic DisplayFields
addExecutionDateTime(DisplayFields DisplayFields, java.time.Instant executionDateTime)
Adds the Execution time field to your display-fields configurationstatic DisplayFields
addFilledAmount(DisplayFields displayFields, FormattedAmount filledAmount)
Adds the Filled Amount field to your display-fields configurationstatic DisplayFields
addFixingDate(DisplayFields displayFields, java.time.LocalDate date)
Adds the Fixing Date field to your display-fields configurationstatic DisplayFields
addFixingSource(DisplayFields displayFields, java.lang.String fixingSource)
Adds the Fixing Source field to your display-fields configurationstatic DisplayFields
addForwardMidPoints(DisplayFields DisplayFields, FormattedPoints midPoints)
Adds the Mid Points field to your display-fields configurationstatic DisplayFields
addForwardPoints(DisplayFields displayFields, FormattedPoints forwardPoints)
Adds the Forward Points field to your display-fields configurationstatic DisplayFields
addGeneralOutrightFields(DisplayFields DisplayFields, java.lang.String entity, java.lang.String account, java.lang.String tradeID, java.time.Instant executionDateTime, java.lang.String currencyPair, java.lang.String user)
Adds the leg independent display fields for an outright tradestatic DisplayFields
addGenericFwdLegFields(DisplayFields displayFields, BuySell buySell, FormattedAmount amount, FormattedAmount contraAmount, FormattedPoints forwardPoints, FormattedPoints forwardMidPoints)
Adds generic fwd leg fields (look at other adders to see what it can be combined with):static DisplayFields
addNdfLegFields(DisplayFields displayFields, java.time.LocalDate fixingDate)
adds ndf specific leg fields can be used with addOtherFwdLegFields and addGenericFwdLegFields to create ndf leg fieldsstatic DisplayFields
addOriginalAmount(DisplayFields displayFields, FormattedAmount originalAmount)
Adds the Original Amount field to your display-fields configurationstatic DisplayFields
addOriginalSettlement(DisplayFields displayFields, java.time.LocalDate date, java.lang.String tenor)
Adds the Original Settlement field to your display-fields configurationstatic DisplayFields
addOtherFwdLegFields(DisplayFields displayFields, FormattedRate spotRate, FormattedRate spotMidRate, FormattedRate allInRate, java.time.LocalDate settlementDate, FormattedAmount serviceCostAmount, FormattedAmount serviceContraCostAmount, FormattedAmount costAmount, FormattedAmount contraCostAmount, java.lang.String settlementTenor)
adds fwd specific leg fields use with addGenericFwdLegFields to create fwd leg fieldsstatic DisplayFields
addPurpose(DisplayFields displayFields, java.lang.String purpose)
Adds the Purpose field to your display-fields configurationstatic DisplayFields
addRate(DisplayFields displayFields, FormattedRate rate)
Adds the Rate field to your display-fields configurationstatic DisplayFields
addRemainingAmount(DisplayFields displayFields, FormattedAmount remainingAmount)
Adds the Remaining Amount field to your display-fields configurationstatic DisplayFields
addRiskPoints(DisplayFields displayFields, FormattedPoints riskPoints)
Adds the Risk Points field to your display-fields configurationstatic DisplayFields
addSettlement(DisplayFields displayFields, java.time.LocalDate date, java.lang.String tenor)
Adds the Settlement field to your display-fields configurationstatic DisplayFields
addSettlementCurrency(DisplayFields displayFields, java.lang.String currency)
Adds the Settlement Currency field to your display-fields configurationstatic DisplayFields
addSpotMargin(DisplayFields displayFields, FormattedPoints spotMargin)
Adds the Spot Margin field to your display-fields configurationstatic DisplayFields
addSpotMidRate(DisplayFields DisplayFields, FormattedRate spotMidRate)
Adds the Mid Spot-Rate field to your display-fields configurationstatic DisplayFields
addSpotRate(DisplayFields displayFields, FormattedRate spotRate)
Adds the Spot Rate field to your display-fields configurationstatic DisplayFields
addSpotTradeDetailsFields(DisplayFields displayFields, BuySell buySell, FormattedAmount amount, FormattedAmount contraAmount, FormattedRate spotRate, FormattedRate spotMidRate, java.time.LocalDate settlementDate, FormattedAmount serviceCostAmount, FormattedAmount serviceContraCostAmount, FormattedAmount costAmount, FormattedAmount contraCostAmount, java.lang.String settlementTenor)
Adds spot trade leg fieldsstatic DisplayFields
addStartDate(DisplayFields displayFields, java.time.LocalDate startDate)
Adds the Start date field to your display-fields configurationstatic DisplayFields
addSubmittedBy(DisplayFields displayFields, java.lang.String user)
Adds the Submitted by field to your display-fields configurationstatic DisplayFields
addSwapLegFields(DisplayFields displayFields, FormattedRate allInRate, java.time.LocalDate settlementDate, FormattedAmount serviceCostAmount, FormattedAmount serviceContraCostAmount, FormattedAmount costAmount, FormattedAmount contraCostAmount, java.lang.String settlementTenor)
Adds swap specific leg fields use with addGenericFwdLegFields to create a set of swap leg fieldsstatic DisplayFields
addSwapMidPoints(DisplayFields DisplayFields, FormattedPoints swapMidPoints)
Adds the Mid Swap Points field to your display-fields configurationstatic DisplayFields
addSwapPoints(DisplayFields DisplayFields, FormattedPoints swapPoints)
Adds the Swap Points field to your display-fields configurationstatic DisplayFields
addSwapSpotFields(DisplayFields displayFields, FormattedRate spotRate, FormattedRate spotMidRate, FormattedPoints swapPoints, FormattedPoints swapMidPoints)
Adds swap specific leg independent fieldsstatic DisplayFields
addTime(DisplayFields displayFields, java.time.Instant time)
Adds a Time field to your display-fields configurationstatic DisplayFields
addTimeOptionFields(DisplayFields displayFields, FormattedRate spotRate, FormattedRate spotMidRate, java.time.LocalDate startDate, java.time.LocalDate endDate, 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 DisplayFields
addTotalDeals(DisplayFields displayFields, int totalDeals)
Adds the Total Deals field to your display-fields configurationstatic DisplayFields
addTradeID(DisplayFields DisplayFields, java.lang.String tradeID)
Adds the Trade ID field to your display-fields configurationstatic DisplayFields
addTraderSpotRate(DisplayFields displayFields, FormattedRate traderSpotRate)
Adds the Trader Spot Rate field to your display-fields configurationstatic DisplayFields
fromFieldsMap(java.util.Map<java.lang.String,java.lang.String> fieldsMap, java.lang.String messageClassName)
Derive a complete display-fields configuration from a confirmation message.
-
-
-
Method Detail
-
addClient
public static DisplayFields addClient(DisplayFields displayFields, java.lang.String entityDescription, java.lang.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
public static DisplayFields addCurrencyPair(DisplayFields displayFields, java.lang.String currencyPair)
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 java.lang.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
-
addDate
public static DisplayFields addDate(DisplayFields displayFields, @Nullable java.time.LocalDate date)
Adds a Date field to your display-fields configuration- Parameters:
displayFields
- The DisplayFields to add the field todate
- Date
-
addTime
public static DisplayFields addTime(DisplayFields displayFields, @Nullable java.time.Instant time)
Adds a Time field to your display-fields configuration- Parameters:
displayFields
- The DisplayFields to add the field totime
- Time instant
-
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
public static DisplayFields addSpotMargin(DisplayFields displayFields, FormattedPoints spotMargin)
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
public static DisplayFields addTotalDeals(DisplayFields displayFields, int totalDeals)
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
public static DisplayFields addEstimatedProfit(DisplayFields displayFields, FormattedAmount profit)
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
-
addOriginalAmount
public static DisplayFields addOriginalAmount(DisplayFields displayFields, FormattedAmount originalAmount)
Adds the Original Amount field to your display-fields configuration- Parameters:
displayFields
- The DisplayFields to add the field tooriginalAmount
- The original amount
-
addRemainingAmount
public static DisplayFields addRemainingAmount(DisplayFields displayFields, @Nullable FormattedAmount remainingAmount)
Adds the Remaining Amount field to your display-fields configuration- Parameters:
displayFields
- The DisplayFields to add the field toremainingAmount
- The remaining amount
-
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, @Nullable java.time.LocalDate date, @Nullable java.lang.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, java.time.LocalDate date, @Nullable java.lang.String tenor)
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
-
addFixingDate
public static DisplayFields addFixingDate(DisplayFields displayFields, @Nullable java.time.LocalDate date)
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 java.lang.String fixingSource)
Adds the Fixing Source field to your display-fields configuration- Parameters:
displayFields
- The DisplayFields to add the field tofixingSource
- The fixing source
-
addEntity
public static DisplayFields addEntity(DisplayFields displayFields, java.lang.String entity)
Adds the Entity field to your display-fields configuration- Parameters:
displayFields
- The DisplayFields to add the field toentity
- The entity description
-
addAccount
public static DisplayFields addAccount(DisplayFields displayFields, @Nullable java.lang.String account)
Adds the Account field to your display-fields configuration- Parameters:
displayFields
- The DisplayFields to add the field toaccount
- The account description
-
addRate
public static DisplayFields addRate(DisplayFields displayFields, @Nullable FormattedRate rate)
Adds the Rate field to your display-fields configuration- Parameters:
displayFields
- The DisplayFields to add the field torate
- The rate value
-
addTradeID
public static DisplayFields addTradeID(DisplayFields DisplayFields, java.lang.String tradeID)
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
public static DisplayFields addSubmittedBy(DisplayFields displayFields, @Nullable java.lang.String user)
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
public static DisplayFields addSpotMidRate(DisplayFields DisplayFields, FormattedRate spotMidRate)
Adds the Mid Spot-Rate field to your display-fields configuration- Parameters:
DisplayFields
- The DisplayFields to add the field tospotMidRate
- The Mid-Spot Rate.
-
addAmountWithBuySell
public static DisplayFields addAmountWithBuySell(DisplayFields DisplayFields, FormattedAmount amount, @Nonnull java.lang.String buySell)
Adds the Amount field to your display-fields configuration- Parameters:
DisplayFields
- The DisplayFields to add the field toamount
- The amountbuySell
- Whether the amount is bought or sold
-
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.
-
addStartDate
public static DisplayFields addStartDate(DisplayFields displayFields, @Nullable java.time.LocalDate startDate)
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, java.time.LocalDate endDate)
Adds the End date field to your display-fields configuration- Parameters:
displayFields
- The DisplayFields to add the field toendDate
- The End date.
-
addSwapPoints
public static DisplayFields addSwapPoints(DisplayFields DisplayFields, FormattedPoints swapPoints)
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, java.time.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"
-
addPurpose
public static DisplayFields addPurpose(DisplayFields displayFields, @Nullable java.lang.String purpose)
Adds the Purpose field to your display-fields configuration- Parameters:
displayFields
- The DisplayFields to add the field topurpose
- The purpose of the trade, e.g. "Commercial"
-
addClient
public static DisplayFields addClient(DisplayFields displayFields, @Nullable java.lang.String client)
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
-
addDefaultSalesSpotSummaryDisplayFields
public static DisplayFields addDefaultSalesSpotSummaryDisplayFields(@Nullable java.lang.String client, @Nullable java.lang.String account, @Nullable java.time.LocalDate executionDate, @Nullable java.time.Instant executionDateTime, @Nullable java.lang.String purpose, @Nullable FormattedAmount amount, @Nonnull BuySell buySell, @Nullable FormattedAmount contraAmount, @Nullable java.time.LocalDate settlementDate, @Nullable java.lang.String settlementTenor, @Nullable FormattedAmount remainingAmount)
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 timepurpose
- The purpose of a tradeamount
- The amountbuySell
- Whether the amount is bought or soldcontraAmount
- The contra amountsettlementDate
- The settlement datesettlementTenor
- Optional tenor, to be displayed in brackets after the settlement dateremainingAmount
- The remaining amount
-
addDefaultSalesFwdSummaryDisplayFields
public static DisplayFields addDefaultSalesFwdSummaryDisplayFields(@Nullable java.lang.String client, @Nullable java.lang.String account, @Nullable java.time.LocalDate executionDate, @Nullable java.time.Instant executionDateTime, @Nullable java.lang.String purpose, @Nullable FormattedAmount amount, @Nonnull BuySell buySell, @Nullable FormattedAmount contraAmount, @Nullable java.time.LocalDate settlementDate, @Nullable java.lang.String settlementTenor, @Nullable FormattedAmount remainingAmount)
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 timepurpose
- The purpose of a tradeamount
- The amountbuySell
- Whether the amount is bought or soldcontraAmount
- The contra amountsettlementDate
- The settlement datesettlementTenor
- Optional tenor, to be displayed in brackets after the settlement dateremainingAmount
- The remaining amount
-
addDefaultSalesTimeOptionSummaryDisplayFields
public static DisplayFields addDefaultSalesTimeOptionSummaryDisplayFields(@Nullable java.lang.String client, @Nullable java.lang.String account, @Nullable java.time.LocalDate executionDate, @Nullable java.time.Instant executionDateTime, @Nullable java.lang.String purpose, @Nullable java.time.LocalDate startDate, @Nullable java.time.LocalDate endDate, @Nullable FormattedRate spotRate, @Nullable FormattedPoints riskPoints, @Nullable FormattedAmount amount, @Nonnull BuySell buySell, @Nullable FormattedAmount contraAmount, @Nullable FormattedAmount remainingAmount, @Nullable FormattedAmount filledAmount)
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 timepurpose
- The purpose of a tradestartDate
- The start date.endDate
- The end date.spotRate
- The (client) spot rate, e.g. 1.23456riskPoints
- The risk points.amount
- The amountbuySell
- Whether the amount is bought or soldcontraAmount
- The contra amountremainingAmount
- The remaining amountfilledAmount
- The filled amount
-
addDefaultSalesNDFSummaryDisplayFields
public static DisplayFields addDefaultSalesNDFSummaryDisplayFields(@Nullable java.lang.String client, @Nullable java.lang.String account, @Nullable java.time.LocalDate executionDate, @Nullable java.time.Instant executionDateTime, @Nullable java.lang.String purpose, @Nullable java.time.LocalDate fixingDate, @Nullable java.lang.String fixingSource, @Nullable java.lang.String settlementCurrency, @Nullable FormattedAmount amount, @Nonnull BuySell buySell, @Nullable FormattedAmount contraAmount, @Nullable java.time.LocalDate settlementDate, @Nullable java.lang.String settlementTenor, @Nullable FormattedAmount remainingAmount)
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 timepurpose
- The purpose of a tradefixingDate
- The fixing datefixingSource
- The fixing sourcesettlementCurrency
- The settlement currency for a non-deliverable tradeamount
- The amountbuySell
- Whether the amount is bought or soldcontraAmount
- The contra amountsettlementDate
- The settlement datesettlementTenor
- Optional tenor, to be displayed in brackets after the settlement dateremainingAmount
- The remaining amount
-
addDefaultSalesSwapSummaryDisplayFields
public static DisplayFields addDefaultSalesSwapSummaryDisplayFields(@Nullable java.lang.String client, @Nullable java.lang.String account, @Nullable java.time.LocalDate executionDate, @Nullable java.time.Instant executionDateTime, @Nullable java.lang.String purpose, @Nullable FormattedAmount nearAmount, @Nonnull BuySell nearBuySell, @Nullable FormattedAmount nearContraAmount, @Nullable java.time.LocalDate nearSettlementDate, @Nullable java.lang.String nearSettlementTenor, @Nullable FormattedRate nearAllInRate, @Nullable FormattedAmount farAmount, @Nonnull BuySell farBuySell, @Nullable FormattedAmount farContraAmount, @Nullable java.time.LocalDate farSettlementDate, @Nullable java.lang.String farSettlementTenor, @Nullable FormattedRate farAllInRate, @Nullable FormattedAmount remainingAmount)
Creates the default display fields for a Sales swap confirmation message:- Parameters:
client
- The client i.e. TOBOUseraccount
- The account descriptionexecutionDate
- The execution dateexecutionDateTime
- The execution date timepurpose
- The purpose of a tradenearAmount
- The near amountnearBuySell
- Whether the amount 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-Rate.farAmount
- The far amountfarBuySell
- Whether the amount 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-Rate.remainingAmount
- The remaining amount
-
addDefaultSalesNDSSummaryDisplayFields
public static DisplayFields addDefaultSalesNDSSummaryDisplayFields(@Nullable java.lang.String client, @Nullable java.lang.String account, @Nullable java.time.LocalDate executionDate, @Nullable java.time.Instant executionDateTime, @Nullable java.lang.String purpose, @Nullable java.lang.String fixingSource, @Nullable java.lang.String settlementCurrency, @Nullable FormattedAmount nearAmount, @Nonnull BuySell nearBuySell, @Nullable FormattedAmount nearContraAmount, @Nullable java.time.LocalDate nearSettlementDate, @Nullable java.lang.String nearSettlementTenor, @Nullable java.time.LocalDate nearFixingDate, @Nullable FormattedRate nearAllInRate, @Nullable FormattedAmount farAmount, @Nonnull BuySell farBuySell, @Nullable FormattedAmount farContraAmount, @Nullable java.time.LocalDate farSettlementDate, @Nullable java.lang.String farSettlementTenor, @Nullable java.time.LocalDate farFixingDate, @Nullable FormattedRate farAllInRate)
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 timepurpose
- The purpose of a tradenearAmount
- The amountnearBuySell
- Whether the amount 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-Rate.farAmount
- The far amountfarBuySell
- Whether the amount 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-Rate.
-
addDefaultSalesAllocationConfirmationFields
public static DisplayFields addDefaultSalesAllocationConfirmationFields(DisplayFields displayFields, @Nullable java.lang.String entityDescription, @Nullable java.lang.String fullName, @Nullable java.lang.String currencyPair, @Nullable java.time.LocalDate executionDate, @Nullable java.time.Instant executionDateTime, @Nullable FormattedRate traderSpotRate, @Nullable FormattedPoints spotMargin, @Nullable FormattedRate clientSpotRate, @Nullable java.lang.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 java.lang.String entityDescription, @Nullable java.lang.String fullName, @Nullable java.lang.String currencyPair, @Nullable java.time.LocalDate executionDate, @Nullable java.time.Instant executionDateTime, @Nullable FormattedRate traderSpotRate, @Nullable FormattedPoints spotMargin, @Nullable FormattedRate clientSpotRate, @Nullable java.lang.Integer totalDeals, @Nullable FormattedAmount profit, @Nullable java.lang.String settlementCurrency, @Nullable java.lang.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 java.lang.String entityDescription, @Nullable java.lang.String fullName, @Nullable java.lang.String currencyPair, @Nullable java.time.LocalDate executionDate, @Nullable java.time.Instant executionDateTime, @Nullable FormattedRate spotRate, @Nullable java.lang.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 java.lang.String currencyPair, @Nullable java.time.LocalDate originalSettlementDate, @Nullable java.lang.String originalTenor, @Nullable java.lang.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 java.lang.String currencyPair, @Nullable java.time.LocalDate originalSettlementDate, @Nullable java.lang.String originalTenor, @Nullable java.lang.String originalAccount, @Nullable FormattedRate originalRate, @Nullable java.time.LocalDate fixingDate, @Nullable java.lang.String settlementCurrency, @Nullable java.lang.String fixingSource)
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 trade
-
addDefaultAllocationDetailsUpdateFields
public static DisplayFields addDefaultAllocationDetailsUpdateFields(DisplayFields displayFields, @Nullable FormattedAmount originalAmount, @Nullable FormattedAmount originalContraAmount, @Nullable java.lang.String currencyPair, @Nullable java.time.LocalDate originalSettlementDate, @Nullable java.lang.String originalTenor, @Nullable java.lang.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 java.lang.String currencyPair, @Nullable java.time.LocalDate originalSettlementDate, @Nullable java.lang.String originalTenor, @Nullable java.lang.String originalAccount, @Nullable FormattedRate originalRate, @Nullable java.time.LocalDate fixingDate)
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 trade
-
addGeneralOutrightFields
public static DisplayFields addGeneralOutrightFields(DisplayFields DisplayFields, @Nullable java.lang.String entity, @Nullable java.lang.String account, @Nullable java.lang.String tradeID, @Nullable java.time.Instant executionDateTime, @Nullable java.lang.String currencyPair, @Nullable java.lang.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 buySell, @Nullable FormattedAmount amount, @Nullable FormattedAmount contraAmount, @Nullable FormattedRate spotRate, @Nullable FormattedRate spotMidRate, @Nullable java.time.LocalDate settlementDate, @Nullable FormattedAmount serviceCostAmount, @Nullable FormattedAmount serviceContraCostAmount, @Nullable FormattedAmount costAmount, @Nullable FormattedAmount contraCostAmount, @Nullable java.lang.String settlementTenor)
Adds spot trade leg fields- Parameters:
displayFields
- The DisplayFields to add the field to.buySell
- Whether the amount is bought or soldamount
- 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 date
-
addGenericFwdLegFields
public static DisplayFields addGenericFwdLegFields(DisplayFields displayFields, @Nonnull BuySell buySell, @Nullable FormattedAmount amount, @Nullable FormattedAmount contraAmount, @Nullable FormattedPoints forwardPoints, @Nullable FormattedPoints forwardMidPoints)
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.buySell
- Whether the amount is bought or soldamount
- The dealt amountcontraAmount
- The dealt amountforwardPoints
- The Forward points.forwardMidPoints
- The Forward Mid points.
-
addOtherFwdLegFields
public static DisplayFields addOtherFwdLegFields(DisplayFields displayFields, @Nullable FormattedRate spotRate, @Nullable FormattedRate spotMidRate, @Nullable FormattedRate allInRate, @Nullable java.time.LocalDate settlementDate, @Nullable FormattedAmount serviceCostAmount, @Nullable FormattedAmount serviceContraCostAmount, @Nullable FormattedAmount costAmount, @Nullable FormattedAmount contraCostAmount, @Nullable java.lang.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.settlementDate
- The settlement datesettlementTenor
- Optional tenor, to be displayed in brackets after the settlement date
-
addNdfLegFields
public static DisplayFields addNdfLegFields(DisplayFields displayFields, @Nullable java.time.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
public static DisplayFields addTimeOptionFields(DisplayFields displayFields, @Nullable FormattedRate spotRate, @Nullable FormattedRate spotMidRate, @Nullable java.time.LocalDate startDate, @Nullable java.time.LocalDate endDate, @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.endDate
- The Start date.
-
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 java.time.LocalDate settlementDate, @Nullable FormattedAmount serviceCostAmount, @Nullable FormattedAmount serviceContraCostAmount, @Nullable FormattedAmount costAmount, @Nullable FormattedAmount contraCostAmount, @Nullable java.lang.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
-
addDefaultPostTradeHistoryFields
public static DisplayFields addDefaultPostTradeHistoryFields(DisplayFields displayFields, @Nullable FormattedAmount originalAmount, @Nullable java.time.LocalDate settlementDate, @Nullable java.lang.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
-
addDefaultDrawdownFields
public static DisplayFields addDefaultDrawdownFields(DisplayFields displayFields, @Nullable FormattedRate rate, @Nullable java.time.LocalDate startDate, @Nullable java.time.LocalDate endDate)
-
fromFieldsMap
public static DisplayFields fromFieldsMap(java.util.Map<java.lang.String,java.lang.String> fieldsMap, java.lang.String messageClassName)
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 java.lang.String entity, @Nullable java.lang.String account, @Nullable java.lang.String tradeId, @Nullable java.time.Instant executionDateTime, @Nullable java.lang.String currencyPair, @Nullable java.lang.String submittedBy, @Nonnull BuySell buySell, @Nullable FormattedAmount amount, @Nullable FormattedAmount contraAmount, @Nullable FormattedRate spotRate, @Nullable FormattedRate spotMidRate, @Nullable java.time.LocalDate settlementDate, @Nullable FormattedAmount serviceCostAmount, @Nullable FormattedAmount serviceContraCostAmount, @Nullable FormattedAmount costAmount, @Nullable FormattedAmount contraCostAmount, @Nullable java.lang.String settlementTenor)
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 tradebuySell
- whether the amount is bought or soldamount
- the amountcontraAmount
- the contra amountspotRate
- the spot ratespotMidRate
- the spot mid ratesettlementDate
- the settlement datesettlementTenor
- optional tenor, to be displayed in brackets after the settlement date
-
addDefaultFwdSummaryDisplayFields
public static DisplayFields addDefaultFwdSummaryDisplayFields(DisplayFields displayFields, @Nullable java.lang.String entity, @Nullable java.lang.String account, @Nullable java.lang.String tradeId, @Nullable java.time.Instant executionDateTime, @Nullable java.lang.String currencyPair, @Nullable java.lang.String submittedBy, @Nonnull BuySell buySell, @Nullable FormattedAmount amount, @Nullable FormattedAmount contraAmount, @Nullable FormattedPoints fwdPoints, @Nullable FormattedPoints fwdMidPoints, @Nullable FormattedRate spotRate, @Nullable FormattedRate spotMidRate, @Nullable FormattedRate allInRate, @Nullable java.time.LocalDate settlementDate, @Nullable FormattedAmount serviceCostAmount, @Nullable FormattedAmount serviceContraCostAmount, @Nullable FormattedAmount costAmount, @Nullable FormattedAmount contraCostAmount, @Nullable java.lang.String settlementTenor)
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 tradebuySell
- whether the amount is bought or soldamount
- the 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 date
-
addDefaultNdfSummaryDisplayFields
public static DisplayFields addDefaultNdfSummaryDisplayFields(DisplayFields displayFields, @Nullable java.lang.String entity, @Nullable java.lang.String account, @Nullable java.lang.String tradeId, @Nullable java.time.Instant executionDateTime, @Nullable java.lang.String currencyPair, @Nullable java.lang.String submittedBy, @Nonnull BuySell buySell, @Nullable FormattedAmount amount, @Nullable FormattedAmount contraAmount, @Nullable FormattedPoints fwdPoints, @Nullable FormattedPoints fwdMidPoints, @Nullable FormattedRate spotRate, @Nullable FormattedRate spotMidRate, @Nullable FormattedRate allInRate, @Nullable java.time.LocalDate settlementDate, @Nullable FormattedAmount serviceCostAmount, @Nullable FormattedAmount serviceContraCostAmount, @Nullable FormattedAmount costAmount, @Nullable FormattedAmount contraCostAmount, @Nullable java.lang.String settlementTenor, @Nullable java.time.LocalDate fixingDate)
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 tradebuySell
- whether the amount is bought or soldamount
- the 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 date
-
addDefaultTimeOptionSummaryDisplayFields
public static DisplayFields addDefaultTimeOptionSummaryDisplayFields(DisplayFields displayFields, @Nullable java.lang.String entity, @Nullable java.lang.String account, @Nullable java.lang.String tradeId, @Nullable java.time.Instant executionDateTime, @Nullable java.lang.String currencyPair, @Nullable java.lang.String submittedBy, @Nonnull BuySell buySell, @Nullable FormattedAmount amount, @Nullable FormattedAmount contraAmount, @Nullable FormattedPoints fwdPoints, @Nullable FormattedPoints fwdMidPoints, @Nullable FormattedRate spotRate, @Nullable FormattedRate spotMidRate, @Nullable java.time.LocalDate startDate, @Nullable java.time.LocalDate settlementDate, @Nullable FormattedAmount serviceCostAmount, @Nullable FormattedAmount serviceContraCostAmount, @Nullable FormattedAmount costAmount, @Nullable FormattedAmount contraCostAmount)
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 tradebuySell
- whether the amount is bought or soldamount
- the amountcontraAmount
- the contra amountfwdPoints
- the forward pointsfwdMidPoints
- the forward mid pointsspotRate
- the spot ratespotMidRate
- the spot mid ratestartDate
- the start datesettlementDate
- the end date
-
addDefaultSwapSummaryDisplayFields
public static DisplayFields addDefaultSwapSummaryDisplayFields(DisplayFields displayFields, @Nullable java.lang.String entity, @Nullable java.lang.String account, @Nullable java.lang.String tradeId, @Nullable java.time.Instant executionDateTime, @Nullable java.lang.String currencyPair, @Nullable java.lang.String submittedBy, @Nullable FormattedRate spotRate, @Nullable FormattedRate spotMidRate, @Nullable FormattedPoints swapPoints, @Nullable FormattedPoints swapMidPoints, @Nonnull BuySell nearBuySell, @Nullable FormattedAmount nearAmount, @Nullable FormattedAmount nearContraAmount, @Nullable FormattedPoints nearFwdPoints, @Nullable FormattedPoints nearFwdMidPoints, @Nullable FormattedRate nearAllInRate, @Nullable java.time.LocalDate nearSettlementDate, @Nullable FormattedAmount nearServiceCostAmount, @Nullable FormattedAmount nearServiceContraCostAmount, @Nullable FormattedAmount nearCostAmount, @Nullable FormattedAmount nearContraCostAmount, @Nullable java.lang.String nearSettlementTenor, @Nonnull BuySell farBuySell, @Nullable FormattedAmount farAmount, @Nullable FormattedAmount farContraAmount, @Nullable FormattedPoints farFwdPoints, @Nullable FormattedPoints farFwdMidPoints, @Nullable FormattedRate farAllInRate, @Nullable java.time.LocalDate farSettlementDate, @Nullable FormattedAmount farServiceCostAmount, @Nullable FormattedAmount farServiceContraCostAmount, @Nullable FormattedAmount farCostAmount, @Nullable FormattedAmount farContraCostAmount, @Nullable java.lang.String farSettlementTenor)
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 pointsnearBuySell
- whether the amount is bought or sold for the near legnearAmount
- the 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 datefarBuySell
- whether the amount is bought or sold for the far legfarAmount
- the 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 date
-
-