Package com.caplin.motif.fx.config
Class DefaultDisplayFields
- java.lang.Object
-
- com.caplin.motif.fx.config.DefaultDisplayFields
-
public final class DefaultDisplayFields extends 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, String account)
Adds the Account field to your display-fields configurationstatic DisplayFields
addAmount(DisplayFields displayFields, String amount, String currency, int dps)
Adds the Amount field to your display-fields configurationstatic DisplayFields
addClient(DisplayFields displayFields, String entityDescription, String fullName)
Adds the Client field to your display-fields configurationstatic DisplayFields
addClientSpotRate(DisplayFields displayFields, String clientSpotRate, int digitsBeforePips, int numberOfPips, int spotRateDPS)
Adds the Client Spot Rate field to your display-fields configurationstatic DisplayFields
addContraAmount(DisplayFields displayFields, String contraAmount, String currency, int dps)
Adds the Contra Amount field to your display-fields configurationstatic DisplayFields
addCurrencyPair(DisplayFields displayFields, String currencyPair)
Adds the Currency Pair field to your display-fields configurationstatic DisplayFields
addDate(DisplayFields displayFields, String date)
Adds a Date field to your display-fields configurationstatic DisplayFields
addDefaultAllocationConfirmationFields(DisplayFields displayFields, String entityDescription, String fullName, String currencyPair, String executionDate, String executionDateTime, String spotRate, int digitsBeforePips, int numberOfPips, int spotRateDPS, int totalDeals, String profit, String profitCurrency, int profitCurrencyDPS)
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, String originalAmount, String dealtCurrency, int dealtCurrencyDPS, String originalContraAmount, String contraCurrency, int contraCurrencyDPS, String currencyPair, String originalSettlementDate, String originalTenor, String originalAccount, String originalRate, int originalRateDigitsBeforePips, int originalRateNumberOfPips, int originalRateDPS)
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, String originalAmount, String dealtCurrency, int dealtCurrencyDPS, String originalContraAmount, String contraCurrency, int contraCurrencyDPS, String currencyPair, String originalSettlementDate, String originalTenor, String originalAccount, String originalRate, int originalRateDigitsBeforePips, int originalRateNumberOfPips, int originalRateDPS, boolean isNonDeliverable, String 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
addDefaultAllocationDetailsUpdateFields(DisplayFields displayFields, String originalAmount, String dealtCurrency, int dealtCurrencyDPS, String originalContraAmount, String contraCurrency, int contraCurrencyDPS, String currencyPair, String originalSettlementDate, String originalTenor, String originalAccount, String originalRate, int originalRateDigitsBeforePips, int originalRateNumberOfPips, int originalRateDPS, String fixingDate)
Adds the default non-deliverable deal display fields for an Allocation details-update message: - Original Amount - Original Contra - Currency Pair - Settlement - Original Fixing Date - Account - Original Ratestatic DisplayFields
addDefaultSalesAllocationConfirmationFields(DisplayFields displayFields, String entityDescription, String fullName, String currencyPair, String executionDate, String executionDateTime, String traderSpotRate, String spotMargin, String clientSpotRate, int digitsBeforePips, int numberOfPips, int spotRateDPS, int totalDeals, String profit, String profitCurrency, int profitCurrencyDPS)
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, String entityDescription, String fullName, String currencyPair, String executionDate, String executionDateTime, String traderSpotRate, String spotMargin, String clientSpotRate, int digitsBeforePips, int numberOfPips, int spotRateDPS, int totalDeals, String profit, String profitCurrency, int profitCurrencyDPS, boolean isNonDeliverable, 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 DisplayFields
addDefaultSalesAllocationConfirmationFields(DisplayFields displayFields, String entityDescription, String fullName, String currencyPair, String executionDate, String executionDateTime, String traderSpotRate, String spotMargin, String clientSpotRate, int digitsBeforePips, int numberOfPips, int spotRateDPS, int totalDeals, String profit, String profitCurrency, int profitCurrencyDPS, String settlementCurrency, String fixingSource)
Adds the default non-deliverable deal display fields for a Sales Allocation confirmation message: - Client - Currency Pair - Settlement Currency - Fixing Source - Date - Time - Trader Spot Rate - Spot Margin - Client Spot Rate - Total Deals - Estimated Profitstatic DisplayFields
addDefaultSalesAllocationDetailsUpdateFields(DisplayFields displayFields, String originalAmount, String dealtCurrency, int dealtCurrencyDPS, String originalContraAmount, String contraCurrency, int contraCurrencyDPS, String currencyPair, String originalSettlementDate, String originalTenor, String originalAccount, String originalRate, int originalRateDigitsBeforePips, int originalRateNumberOfPips, int originalRateDPS)
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, String originalAmount, String dealtCurrency, int dealtCurrencyDPS, String originalContraAmount, String contraCurrency, int contraCurrencyDPS, String currencyPair, String originalSettlementDate, String originalTenor, String originalAccount, String originalRate, int originalRateDigitsBeforePips, int originalRateNumberOfPips, int originalRateDPS, boolean isNonDeliverable, String fixingDate, String settlementCurrency, 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
addDefaultSalesAllocationDetailsUpdateFields(DisplayFields displayFields, String originalAmount, String dealtCurrency, int dealtCurrencyDPS, String originalContraAmount, String contraCurrency, int contraCurrencyDPS, String currencyPair, String originalSettlementDate, String originalTenor, String originalAccount, String originalRate, int originalRateDigitsBeforePips, int originalRateNumberOfPips, int originalRateDPS, String settlementCurrency, String fixingDate, String fixingSource)
Adds the default non-deliverable deal display fields for a Sales Allocation details-update message: - Original Amount - Original Contra - Currency Pair - Settlement Currency - Settlement - Original Fixing Date - Original Fixing Source - Account - Original Ratestatic DisplayFields
addEstimatedProfit(DisplayFields displayFields, String profit, String profitCurrency, int profitCurrencyDPS)
Adds the Estimated Profit field to your display-fields configurationstatic DisplayFields
addFixingDate(DisplayFields displayFields, String date)
Adds the Fixing Date field to your display-fields configurationstatic DisplayFields
addFixingSource(DisplayFields displayFields, String fixingSource)
Adds the Fixing Source field to your display-fields configurationstatic DisplayFields
addRate(DisplayFields displayFields, String rate, int digitsBeforePips, int numberOfPips, int dps)
Adds the Rate field to your display-fields configurationstatic DisplayFields
addSettlement(DisplayFields displayFields, String date, String tenor)
Adds the Settlement field to your display-fields configurationstatic DisplayFields
addSettlementCurrency(DisplayFields displayFields, String currency)
Adds the Settlement Currency field to your display-fields configurationstatic DisplayFields
addSpotMargin(DisplayFields displayFields, String spotMargin, int digitsBeforePips, int numberOfPips, int spotRateDPS)
Adds the Spot Margin field to your display-fields configurationstatic DisplayFields
addSpotRate(DisplayFields displayFields, String spotRate, int digitsBeforePips, int numberOfPips, int spotRateDPS)
Adds the Spot Rate field to your display-fields configurationstatic DisplayFields
addTime(DisplayFields displayFields, String time)
Adds a Time field to your display-fields configurationstatic DisplayFields
addTotalDeals(DisplayFields displayFields, int totalDeals)
Adds the Total Deals field to your display-fields configurationstatic DisplayFields
addTraderSpotRate(DisplayFields displayFields, String traderSpotRate, int digitsBeforePips, int numberOfPips, int spotRateDPS)
Adds the Trader Spot Rate field to your display-fields configuration
-
-
-
Method Detail
-
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
public static DisplayFields addCurrencyPair(DisplayFields displayFields, 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, 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, String date)
Adds a Date field to your display-fields configuration- Parameters:
displayFields
- The DisplayFields to add the field todate
- Date in ISO format YYYY-MM-DD.
-
addTime
public static DisplayFields addTime(DisplayFields displayFields, String time)
Adds a Time field to your display-fields configuration- Parameters:
displayFields
- The DisplayFields to add the field totime
- Time (or date-time) in ISO format. May optionally include milliseconds.
-
addTraderSpotRate
public static DisplayFields addTraderSpotRate(DisplayFields displayFields, String traderSpotRate, int digitsBeforePips, int numberOfPips, int spotRateDPS)
Adds the Trader Spot Rate field to your display-fields configuration- Parameters:
displayFields
- The DisplayFields to add the field totraderSpotRate
- The trader spot rate, e.g. 1.12345digitsBeforePips
- The number of digits between the decimal character and the pips, e.g. 2numberOfPips
- The number of pips digits, e.g. 2spotRateDPS
- The number of decimal places of the rate, e.g. 5
-
addSpotMargin
public static DisplayFields addSpotMargin(DisplayFields displayFields, String spotMargin, int digitsBeforePips, int numberOfPips, int spotRateDPS)
Adds the Spot Margin field to your display-fields configuration- Parameters:
displayFields
- The DisplayFields to add the field tospotMargin
- The spot margindigitsBeforePips
- The number of digits between the decimal character and the pips, e.g. 2numberOfPips
- The number of pips digits, e.g. 2spotRateDPS
- The number of decimal places of the rate, e.g. 5
-
addClientSpotRate
public static DisplayFields addClientSpotRate(DisplayFields displayFields, String clientSpotRate, int digitsBeforePips, int numberOfPips, int spotRateDPS)
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.23456digitsBeforePips
- The number of digits between the decimal character and the pips, e.g. 2numberOfPips
- The number of pips digits, e.g. 2spotRateDPS
- The number of decimal places of the rate, e.g. 5
-
addSpotRate
public static DisplayFields addSpotRate(DisplayFields displayFields, String spotRate, int digitsBeforePips, int numberOfPips, int spotRateDPS)
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.23456digitsBeforePips
- The number of digits between the decimal character and the pips, e.g. 2numberOfPips
- The number of pips digits, e.g. 2spotRateDPS
- The number of decimal places of the rate, e.g. 5
-
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, String profit, String profitCurrency, int profitCurrencyDPS)
Adds the Estimated Profit field to your display-fields configuration- Parameters:
displayFields
- The DisplayFields to add the field toprofit
- The profit amount, e.g. 20.99profitCurrency
- The currency of the profit amount, e.g. USDprofitCurrencyDPS
- The number of decimal places for the profit currency
-
addAmount
public static DisplayFields addAmount(DisplayFields displayFields, String amount, String currency, int dps)
Adds the Amount field to your display-fields configuration- Parameters:
displayFields
- The DisplayFields to add the field toamount
- The amountcurrency
- The currency of the amountdps
- The number of decimal places for the amount
-
addContraAmount
public static DisplayFields addContraAmount(DisplayFields displayFields, String contraAmount, String currency, int dps)
Adds the Contra Amount field to your display-fields configuration- Parameters:
displayFields
- The DisplayFields to add the field tocontraAmount
- The contra amountcurrency
- The currency of the contra amountdps
- The number of decimal places for the contra amount
-
addSettlement
public static DisplayFields addSettlement(DisplayFields displayFields, String date, String tenor)
Adds the Settlement field to your display-fields configuration- Parameters:
displayFields
- The DisplayFields to add the field todate
- The settlement date in ISO date format YYYY-MM-DDtenor
- Optional tenor, to be displayed in brackets after the settlement date
-
addFixingDate
public static DisplayFields addFixingDate(DisplayFields displayFields, String date)
Adds the Fixing Date field to your display-fields configuration- Parameters:
displayFields
- The DisplayFields to add the field todate
- The fixing date in ISO date format in ISO date format YYYY-MM-DD
-
addFixingSource
public static DisplayFields addFixingSource(DisplayFields displayFields, String fixingSource)
Adds the Fixing Source field to your display-fields configuration- Parameters:
displayFields
- The DisplayFields to add the field tofixingSource
- The fixing source
-
addAccount
public static DisplayFields addAccount(DisplayFields displayFields, 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, String rate, int digitsBeforePips, int numberOfPips, int dps)
Adds the Rate field to your display-fields configuration- Parameters:
displayFields
- The DisplayFields to add the field torate
- The rate value e.g. 1.12345digitsBeforePips
- Number of digits before pips, e.g. 2numberOfPips
- Number of pips, e.g. 2dps
- Number of decimal places, e.g. 5
-
addDefaultSalesAllocationConfirmationFields
public static DisplayFields addDefaultSalesAllocationConfirmationFields(DisplayFields displayFields, String entityDescription, String fullName, String currencyPair, String executionDate, String executionDateTime, String traderSpotRate, String spotMargin, String clientSpotRate, int digitsBeforePips, int numberOfPips, int spotRateDPS, int totalDeals, String profit, String profitCurrency, int profitCurrencyDPS, String settlementCurrency, String fixingSource)
Adds the default non-deliverable deal display fields for a Sales Allocation confirmation message: - Client - Currency Pair - Settlement Currency - Fixing Source - 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 date the trade was executed.executionDateTime
- The execution date time in ISO format. May optionally contain milliseconds.param executionDateTimetraderSpotRate
- 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 confirmationdigitsBeforePips
- The integer value matching the DigitsBeforePips value on your trade confirmationnumberOfPips
- The integer value matching the NumberOfPips value on your trade confirmationspotRateDPS
- The integer value matching the SpotRateDPS value on your trade confirmationtotalDeals
- The number of allocated or repriced deals.profit
- The value matching the Profit field on your trade confirmationprofitCurrency
- The value matching the ProfitCurrency field on your trade confirmationprofitCurrencyDPS
- The integer value matching the ProfitCurrencyDPS field on your trade confirmationsettlementCurrency
- The settlement currency for a non-deliverable dealfixingSource
- The fixing source for a non-deliverable deal
-
addDefaultSalesAllocationConfirmationFields
public static DisplayFields addDefaultSalesAllocationConfirmationFields(DisplayFields displayFields, String entityDescription, String fullName, String currencyPair, String executionDate, String executionDateTime, String traderSpotRate, String spotMargin, String clientSpotRate, int digitsBeforePips, int numberOfPips, int spotRateDPS, int totalDeals, String profit, String profitCurrency, int profitCurrencyDPS)
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 date in ISO format.executionDateTime
- The execution date time in ISO format. May optionally contain milliseconds.param executionDateTimetraderSpotRate
- 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 confirmationdigitsBeforePips
- The integer value matching the DigitsBeforePips value on your trade confirmationnumberOfPips
- The integer value matching the NumberOfPips value on your trade confirmationspotRateDPS
- The integer value matching the SpotRateDPS value on your trade confirmationtotalDeals
- The number of allocated or repriced deals.profit
- The value matching the Profit field on your trade confirmationprofitCurrency
- The value matching the ProfitCurrency field on your trade confirmationprofitCurrencyDPS
- The integer value matching the ProfitCurrencyDPS field on your trade confirmation
-
addDefaultSalesAllocationConfirmationFields
public static DisplayFields addDefaultSalesAllocationConfirmationFields(DisplayFields displayFields, String entityDescription, String fullName, String currencyPair, String executionDate, String executionDateTime, String traderSpotRate, String spotMargin, String clientSpotRate, int digitsBeforePips, int numberOfPips, int spotRateDPS, int totalDeals, String profit, String profitCurrency, int profitCurrencyDPS, boolean isNonDeliverable, @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 confirmationdigitsBeforePips
- The integer value matching the DigitsBeforePips value on your trade confirmationnumberOfPips
- The integer value matching the NumberOfPips value on your trade confirmationspotRateDPS
- The integer value matching the SpotRateDPS value on your trade confirmationtotalDeals
- The number of allocated or repriced deals.profit
- The value matching the Profit field on your trade confirmationprofitCurrency
- The value matching the ProfitCurrency field on your trade confirmationprofitCurrencyDPS
- The integer value matching the ProfitCurrencyDPS field on your trade confirmationisNonDeliverable
- Whether the allocation is for a non-deliverable dealsettlementCurrency
- The settlement currency for a non-deliverable dealfixingSource
- The fixing source for a non-deliverable deal
-
addDefaultAllocationConfirmationFields
public static DisplayFields addDefaultAllocationConfirmationFields(DisplayFields displayFields, String entityDescription, String fullName, String currencyPair, String executionDate, String executionDateTime, String spotRate, int digitsBeforePips, int numberOfPips, int spotRateDPS, int totalDeals, String profit, String profitCurrency, int profitCurrencyDPS)
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 confirmationdigitsBeforePips
- The integer value matching the DigitsBeforePips value on your trade confirmationnumberOfPips
- The integer value matching the NumberOfPips value on your trade confirmationspotRateDPS
- The integer value matching the SpotRateDPS value on your trade confirmationtotalDeals
- The number of allocated or repriced deals.profit
- The value matching the Profit field on your trade confirmationprofitCurrency
- The value matching the ProfitCurrency field on your trade confirmationprofitCurrencyDPS
- The integer value matching the ProfitCurrencyDPS field on your trade confirmation
-
addDefaultSalesAllocationDetailsUpdateFields
public static DisplayFields addDefaultSalesAllocationDetailsUpdateFields(DisplayFields displayFields, String originalAmount, String dealtCurrency, int dealtCurrencyDPS, String originalContraAmount, String contraCurrency, int contraCurrencyDPS, String currencyPair, String originalSettlementDate, String originalTenor, String originalAccount, String originalRate, int originalRateDigitsBeforePips, int originalRateNumberOfPips, int originalRateDPS)
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 amountdealtCurrency
- The dealt currency of the original tradedealtCurrencyDPS
- Decimal places of the dealt currencyoriginalContraAmount
- The original contra amountcontraCurrency
- The contra amount currencycontraCurrencyDPS
- Decimal places of the contra amount currencycurrencyPair
- The currency pairoriginalSettlementDate
- The original settlement dateoriginalTenor
- Optional original tenororiginalAccount
- The original accountoriginalRate
- The original rateoriginalRateDigitsBeforePips
- The DigitsBeforePips value for the original tradeoriginalRateNumberOfPips
- The NumberOfPips value for the original tradeoriginalRateDPS
- The decimal places for the original rate
-
addDefaultSalesAllocationDetailsUpdateFields
public static DisplayFields addDefaultSalesAllocationDetailsUpdateFields(DisplayFields displayFields, String originalAmount, String dealtCurrency, int dealtCurrencyDPS, String originalContraAmount, String contraCurrency, int contraCurrencyDPS, String currencyPair, String originalSettlementDate, String originalTenor, String originalAccount, String originalRate, int originalRateDigitsBeforePips, int originalRateNumberOfPips, int originalRateDPS, String settlementCurrency, String fixingDate, String fixingSource)
Adds the default non-deliverable deal display fields for a Sales Allocation details-update message: - Original Amount - Original Contra - Currency Pair - Settlement Currency - Settlement - Original Fixing Date - Original Fixing Source - Account - Original Rate- Parameters:
displayFields
- The DisplayFields to add the field tooriginalAmount
- The original amountdealtCurrency
- The dealt currency of the original tradedealtCurrencyDPS
- Decimal places of the dealt currencyoriginalContraAmount
- The original contra amountcontraCurrency
- The contra amount currencycontraCurrencyDPS
- Decimal places of the contra amount currencycurrencyPair
- The currency pairoriginalSettlementDate
- The original settlement dateoriginalTenor
- Optional original tenororiginalAccount
- The original accountoriginalRate
- The original rateoriginalRateDigitsBeforePips
- The DigitsBeforePips value for the original tradeoriginalRateNumberOfPips
- The NumberOfPips value for the original tradeoriginalRateDPS
- The decimal places for the original ratesettlementCurrency
- The settlement currency for a non-deliverable tradefixingDate
- The fixing date for a non-deliverable tradefixingSource
- The fixing source for a non-deliverable trade
-
addDefaultSalesAllocationDetailsUpdateFields
public static DisplayFields addDefaultSalesAllocationDetailsUpdateFields(DisplayFields displayFields, String originalAmount, String dealtCurrency, int dealtCurrencyDPS, String originalContraAmount, String contraCurrency, int contraCurrencyDPS, String currencyPair, String originalSettlementDate, String originalTenor, String originalAccount, String originalRate, int originalRateDigitsBeforePips, int originalRateNumberOfPips, int originalRateDPS, boolean isNonDeliverable, @Nullable String fixingDate, @Nullable String settlementCurrency, @Nullable 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 amountdealtCurrency
- The dealt currency of the original tradedealtCurrencyDPS
- Decimal places of the dealt currencyoriginalContraAmount
- The original contra amountcontraCurrency
- The contra amount currencycontraCurrencyDPS
- Decimal places of the contra amount currencycurrencyPair
- The currency pairoriginalSettlementDate
- The original settlement dateoriginalTenor
- Optional original tenororiginalAccount
- The original accountoriginalRate
- The original rateoriginalRateDigitsBeforePips
- The DigitsBeforePips value for the original tradeoriginalRateNumberOfPips
- The NumberOfPips value for the original tradeoriginalRateDPS
- The decimal places for the original rateisNonDeliverable
- Whether the fields are for a non-deliverable tradefixingDate
- 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, String originalAmount, String dealtCurrency, int dealtCurrencyDPS, String originalContraAmount, String contraCurrency, int contraCurrencyDPS, String currencyPair, String originalSettlementDate, String originalTenor, String originalAccount, String originalRate, int originalRateDigitsBeforePips, int originalRateNumberOfPips, int originalRateDPS)
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 amountdealtCurrency
- The dealt currency of the original tradedealtCurrencyDPS
- Decimal places of the dealt currencyoriginalContraAmount
- The original contra amountcontraCurrency
- The contra amount currencycontraCurrencyDPS
- Decimal places of the contra amount currencycurrencyPair
- The currency pairoriginalSettlementDate
- The original settlement dateoriginalTenor
- Optional original tenororiginalAccount
- The original accountoriginalRate
- The original rateoriginalRateDigitsBeforePips
- The DigitsBeforePips value for the original tradeoriginalRateNumberOfPips
- The NumberOfPips value for the original tradeoriginalRateDPS
- The decimal places for the original rate
-
addDefaultAllocationDetailsUpdateFields
public static DisplayFields addDefaultAllocationDetailsUpdateFields(DisplayFields displayFields, String originalAmount, String dealtCurrency, int dealtCurrencyDPS, String originalContraAmount, String contraCurrency, int contraCurrencyDPS, String currencyPair, String originalSettlementDate, String originalTenor, String originalAccount, String originalRate, int originalRateDigitsBeforePips, int originalRateNumberOfPips, int originalRateDPS, String fixingDate)
Adds the default non-deliverable deal display fields for an Allocation details-update message: - Original Amount - Original Contra - Currency Pair - Settlement - Original Fixing Date - Account - Original Rate- Parameters:
displayFields
- The DisplayFields to add the field tooriginalAmount
- The original amountdealtCurrency
- The dealt currency of the original tradedealtCurrencyDPS
- Decimal places of the dealt currencyoriginalContraAmount
- The original contra amountcontraCurrency
- The contra amount currencycontraCurrencyDPS
- Decimal places of the contra amount currencycurrencyPair
- The currency pairoriginalSettlementDate
- The original settlement dateoriginalTenor
- Optional original tenororiginalAccount
- The original accountoriginalRate
- The original rateoriginalRateDigitsBeforePips
- The DigitsBeforePips value for the original tradeoriginalRateNumberOfPips
- The NumberOfPips value for the original tradeoriginalRateDPS
- The decimal places for the original ratefixingDate
- The fixing date for a non-deliverable trade
-
addDefaultAllocationDetailsUpdateFields
public static DisplayFields addDefaultAllocationDetailsUpdateFields(DisplayFields displayFields, String originalAmount, String dealtCurrency, int dealtCurrencyDPS, String originalContraAmount, String contraCurrency, int contraCurrencyDPS, String currencyPair, String originalSettlementDate, String originalTenor, String originalAccount, String originalRate, int originalRateDigitsBeforePips, int originalRateNumberOfPips, int originalRateDPS, boolean isNonDeliverable, String 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 amountdealtCurrency
- The dealt currency of the original tradedealtCurrencyDPS
- Decimal places of the dealt currencyoriginalContraAmount
- The original contra amountcontraCurrency
- The contra amount currencycontraCurrencyDPS
- Decimal places of the contra amount currencycurrencyPair
- The currency pairoriginalSettlementDate
- The original settlement dateoriginalTenor
- Optional original tenororiginalAccount
- The original accountoriginalRate
- The original rateoriginalRateDigitsBeforePips
- The DigitsBeforePips value for the original tradeoriginalRateNumberOfPips
- The NumberOfPips value for the original tradeoriginalRateDPS
- The decimal places for the original rateisNonDeliverable
- Whether the fields are for a non-deliverable tradefixingDate
- The fixing date for a non-deliverable trade
-
-