Class TradeConfPartsDef.CommonTradeConfirmationFields
java.lang.Object
com.caplin.generated.motif.fx.tradeconfirmation.TradeConfPartsDef.CommonTradeConfirmationFields
- All Implemented Interfaces:
BuilderMessage
,Message
- Enclosing class:
- TradeConfPartsDef
public static final class TradeConfPartsDef.CommonTradeConfirmationFields
extends Object
implements BuilderMessage
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull TradeConfPartsDef.CommonTradeConfirmationFields
static @NotNull TradeConfPartsDef.CommonTradeConfirmationFields
@Nullable String
@Nullable String
@Nullable Integer
@Nullable String
@Nullable String
@Nullable String
@Nullable Boolean
@Nullable String
Deprecated.@Nullable Instant
@Nullable Integer
@Nullable BigDecimal
@Nullable String
@Nullable Integer
@Nullable BigDecimal
@Nullable BigDecimal
@Nullable String
@Nullable Integer
@Nullable BigDecimal
@Nullable String
@Nullable String
@Nullable String
@Nullable String
@Nullable Integer
@Nullable String
@Nullable String
@Nullable String
@NotNull Map<String,
Collection<String>> @NotNull Map<String,
Collection<String>> @Nullable String
@Nullable Boolean
@Nullable Boolean
Deprecated.@Nullable Boolean
@Nullable Boolean
@Nullable Boolean
@Nullable Boolean
@Nullable Boolean
@Nullable Integer
@Nullable String
@Nullable String
@Nullable String
@Nullable String
@Nullable String
@Nullable String
@Nullable Integer
@Nullable Integer
@Nullable BigDecimal
@Nullable BigDecimal
@Nullable Integer
@Nullable String
@Nullable String
getTags()
@Nullable String
@Nullable String
@Nullable String
@Nullable String
@Nullable String
@Nullable String
getUTI()
@Nullable String
getVenue()
@Nullable String
@Nullable String
static @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder
@NotNull String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.caplin.motif.datasource.BuilderMessage
getFieldFlags, getFlagFields
-
Method Details
-
getTradeID
- Returns:
- A unique identifier for this trade
-
getCurrencyPair
- Returns:
- The currency pair for the trade. For example, EURUSD
-
getDealtCurrency
- Returns:
- The currency of the Amount of a trade or order.
-
getSpotRate
- Returns:
- spotRate e.g. 1.08341
-
getSpotMidRate
- Returns:
- The mid rate between the SpotAskRate and SpotBidRate. Note that this will not always be precisely between.
-
getSpotRateDPS
- Returns:
- The number of decimal places to display after the decimal point.
-
getExecutionDateTime
- Returns:
- executionDateTime e.g. 20160322123621
-
getTradeDate
- Returns:
- tradeDate e.g. 20160314
-
getAccount
- Returns:
- The account a trade or order has been submitted against. The format is <description>|<name> or <name>|<name>
-
getTraderUsername
- Returns:
- The user who entered the trade. This may be on behalf of themselves, or on behalf of someone else. For example, if the logged in user dealer1@novobank.co.za wishes to make a trade on behalf of user client@customer.co.za, then the value of this field will be dealer1@novobank.co.za. If the user client@customer.co.za makes a trade on behalf of themselves it will be client@customer.co.za.
-
getTOBOUser
- Returns:
- The user the trade is on behalf of. For example, if the logged in user dealer1@novobank.co.za wishes to make a trade on behalf of user client@customer.co.za, then the value of this field will be client@customer.co.za.
-
getFullName
- Returns:
- The full name of the user the trade is on behalf of
-
getEntityId
- Returns:
- The entity the trade is on behalf of. For example, if the logged in user user1@customer.co.za wishes to make a trade on behalf of entity CUSTONE, then the value of this field will be CUSTONE. If this field is absent on a leg then the default entity should be presumed.
-
getEntityDescription
- Returns:
- The description of a trade on behalf of entity.
-
getAssetType
- Returns:
- A grouping of investments that exhibit similar characteristics and are subject to the same laws and regulations. Supported asset types are [FX, PM]
-
getTradingType
- Returns:
- Caplin supported values are [SPOT, FWD, NDF, NDF_FIXING, NDS, TIME_OPTION, DRAWDOWN, SWAP, BLOCK, PAR_FORWARD]. See the constants defined within com.caplin.motif.fx.trading.FXTradingType for further details.
-
getDeliverableType
- Returns:
- Caplin supported values are [DELIVERABLE, NON_DELIVERABLE]. Determines whether trade is deliverable or not (for ndfs etc)
-
getDigitsBeforePips
- Returns:
- Precision-related field that tells the client how to display rates. This is the number of digits between the decimal point and the pips (i.e the big digits that the client wants to look at). For most currency pairs the value of this field will be 2, i.e. for a USDGBP rate of 1.23456 the pips are 45 so there are two digits between the decimal point and the pips. For USDJPY the rate could be 103.256 and the pips are the 25, so in this case the value of DigitsBeforePips should be 0.
-
getNumberOfPips
- Returns:
- Precision-related field that tells the client how to display rates. This is the number of pips the client wants to look at. Normally this value is 2.
-
getOrderID
- Returns:
- The id of the order.
-
getWarningCode
- Returns:
- The code for the warning regarding a quote request.
-
getWarningMessage
- Returns:
- The message to display for any warnings regarding a quote request. Supports Markdown syntax for formatting.
-
getDetailedWarningMessage
- Returns:
- detailedWarningMessage e.g. color: {{theme:foreground.semantic.warning_inverse}}
-
getClient
Deprecated.- Returns:
- Client is a duplicate of TOBOUser
-
getCostAmount
- Returns:
- The actual transactional cost of performing the trade to the client in the home currency
-
getCostCurrency
- Returns:
- The currency that the cost is displayed in, this could be any currency but will typically be set to the home currency
-
getCostCurrencyDPS
- Returns:
- The number of decimal places to display after the decimal point.
-
getCostPercentage
- Returns:
- Percentage of the overall price which is the transactional cost to the client of performing the trade. This number should be out of 100, where 100.0 represents 100%.
-
getContraCostAmount
- Returns:
- The actual transactional cost of performing the trade to the client on the contra currency
-
getContraCostCurrency
- Returns:
- The contra currency that the cost is displayed in
-
getContraCostCurrencyDPS
- Returns:
- The number of decimal places to display after the decimal point.
-
getContraCostPercentage
- Returns:
- Percentage of the overall price which is the transactional cost to the client of performing the trade in contra currency. This number should be out of 100, where 100.0 represents 100%.
-
getServiceCostCurrencyDPS
- Returns:
- The number of decimal places to display after the decimal point.
-
getServiceContraCostCurrencyDPS
- Returns:
- The number of decimal places to display after the decimal point.
-
getCanAllocate
- Returns:
- Defines if a user can allocate a trade. Enum of: NONE, FULL, FULL_OR_PARTIAL
-
getCanDrawdown
- Returns:
- Ability to Drawdown a time option trade.
-
getAllocationSettlementDateOptions
- Returns:
- Comma-separated list, defines available settlement dates for an allocation.
-
getIsAllocated
Deprecated.- Returns:
- Deprecated, use HasPostTradeHistory instead.
-
getHasPostTradeHistory
- Returns:
- Define whether post-trade history (related deals e.g. drawdowns, allocations, early take ups and roll overs) is available.
-
getIsReversible
- Returns:
- Whether a trade can be reversed.
-
getIsAmendable
- Returns:
- Whether a trade can be amended.
-
getIsCancellable
- Returns:
- Whether a trade can be cancelled.
-
getAmountDPS
- Returns:
- The precision for a specified currency pair and dealt currency
-
getContraAmountDPS
- Returns:
- The precision for a specified currency pair and contra currency
-
getRemarks
- Returns:
- The text content of a comment left on a leg of a trade or order, visible to Client and sales and possibly the trader, set/edited by Client or sales
-
getUTI
- Returns:
- Unique Transaction Identifier.
-
getBackOfficeID
- Returns:
- Back office trade identifier.
-
getPriceSource
- Returns:
- Identifies the person or system that priced the trade.
-
getVenue
- Returns:
- Where the trade was placed.
-
getPurpose
- Returns:
- The purpose of a trade.
-
getTags
- Returns:
- Tags for a trade.
-
getClientAgreementDateTime
- Returns:
- Optional field that can be used to display the client agreement date time in a trade amend. This field can also be included in the Amend's EditableFields list to allow the user to edit it. This field can be used to allow the user to specify a client agreement time in scenarios where the execution time might have been different
-
getPostTradeType
- Returns:
- The post-trade action that created this trade. Enum of: ROLL_BACK, ROLL_FORWARD, ALLOCATION, DRAWDOWN
-
getOriginalTradeID
- Returns:
- TradeID of the trade that this trade was created from.
-
getStatus
- Returns:
- Status of the trade. Frontends may use this value for display purpose, but no logic is associated with it. Use Can* flags to drive post-trade logic.
-
getNaturalLanguageSummaryHidden
- Returns:
- When true, the natural language summary will be hidden on the RFS ticket summary.
-
getIsCommercial
- Returns:
- Indicates whether the given trade is commercial or not
-
getFields
-
getFieldFlags
- Specified by:
getFieldFlags
in interfaceBuilderMessage
- Returns:
- Get the flags for all fields.
-
getFlagFields
- Specified by:
getFlagFields
in interfaceBuilderMessage
- Returns:
- Get the fields for all flags.
-
toString
-
from
@NotNull public static @NotNull TradeConfPartsDef.CommonTradeConfirmationFields from(@NotNull @NotNull Map<String, String> fields) -
from
@NotNull public static @NotNull TradeConfPartsDef.CommonTradeConfirmationFields from(@NotNull @NotNull Map<String, String> fields, @NotNull @NotNull String fieldPrefix) -
newBuilder
@NotNull public static @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder newBuilder()
-