Class QuotePartsDef.CommonFields
- java.lang.Object
-
- com.caplin.generated.motif.fx.rates.QuotePartsDef.CommonFields
-
- All Implemented Interfaces:
BuilderMessage
,Message
- Enclosing class:
- QuotePartsDef
public static final class QuotePartsDef.CommonFields extends java.lang.Object implements BuilderMessage
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QuotePartsDef.CommonFields.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static @NotNull QuotePartsDef.CommonFields
from(@NotNull java.util.Map<java.lang.String,java.lang.String> fields)
static @NotNull QuotePartsDef.CommonFields
from(@NotNull java.util.Map<java.lang.String,java.lang.String> fields, @NotNull java.lang.String fieldPrefix)
@Nullable java.math.BigDecimal
getAskContraCostAmount()
@Nullable java.math.BigDecimal
getAskContraCostPercentage()
@Nullable java.math.BigDecimal
getAskContraCostRate()
@Nullable java.math.BigDecimal
getAskCostAmount()
@Nullable java.math.BigDecimal
getAskCostPercentage()
@Nullable java.math.BigDecimal
getAskCostRate()
@Nullable java.lang.Boolean
getAskIndicative()
@Nullable java.lang.String
getAskPips()
Deprecated.@Nullable java.lang.String
getAskQuoteID()
@Nullable java.math.BigDecimal
getBidContraCostAmount()
@Nullable java.math.BigDecimal
getBidContraCostPercentage()
@Nullable java.math.BigDecimal
getBidContraCostRate()
@Nullable java.math.BigDecimal
getBidCostAmount()
@Nullable java.math.BigDecimal
getBidCostPercentage()
@Nullable java.math.BigDecimal
getBidCostRate()
@Nullable java.lang.Boolean
getBidIndicative()
@Nullable java.lang.String
getBidPips()
Deprecated.@Nullable java.lang.String
getBidQuoteID()
@Nullable java.math.BigDecimal
getContraCostAmount()
@Nullable java.math.BigDecimal
getContraCostCurrency()
@Nullable java.math.BigDecimal
getContraCostPercentage()
@Nullable java.lang.String
getCostCurrency()
@Nullable java.lang.Integer
getCostCurrencyDPS()
@Nullable java.lang.String
getCurrencyPair()
@Nullable java.lang.Integer
getDigitsBeforePips()
@NotNull java.util.Map<java.lang.String,java.util.Collection<java.lang.String>>
getFieldFlags()
@NotNull java.util.Map<java.lang.String,java.lang.String>
getFields()
@NotNull java.util.Map<java.lang.String,java.util.Collection<java.lang.String>>
getFlagFields()
@Nullable java.lang.String
getGFA()
@Nullable java.lang.String
getNumberOfFractionalPips()
Deprecated.@Nullable java.lang.Integer
getNumberOfPips()
@Nullable java.lang.Integer
getOverallTimeOut()
@Nullable java.lang.String
getPriceUpdateSource()
@Nullable java.lang.Integer
getRemainingTimeOutMillis()
@Nullable java.math.BigDecimal
getSpotAskRate()
@Nullable java.math.BigDecimal
getSpotBidRate()
@Nullable java.math.BigDecimal
getSpotMidRate()
@Nullable java.lang.Integer
getSpotRateDPS()
@Nullable java.lang.String
getSwapGFA()
Deprecated.@Nullable java.lang.String
getTimePriceReceived()
@Nullable java.lang.String
getWarningCode()
@Nullable java.lang.String
getWarningMessage()
static @NotNull QuotePartsDef.CommonFields.Builder
newBuilder()
@NotNull java.lang.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 Detail
-
getBidQuoteID
@Nullable public @Nullable java.lang.String getBidQuoteID()
- Returns:
- A unique ID that identifies the bid side of this quote.
-
getAskQuoteID
@Nullable public @Nullable java.lang.String getAskQuoteID()
- Returns:
- A unique ID that identifies the ask side of this quote.
-
getBidIndicative
@Nullable public @Nullable java.lang.Boolean getBidIndicative()
- Returns:
- Determines whether the Bid price is indicative. Indicative prices cannot be executed upon
-
getAskIndicative
@Nullable public @Nullable java.lang.Boolean getAskIndicative()
- Returns:
- Determines whether the Ask price is indicative. Indicative prices cannot be executed upon
-
getGFA
@Nullable public @Nullable java.lang.String getGFA()
- Returns:
- The maximum amount that a quote can be executed for. If the client wishes to quote for more than this, they must perform an RFS
-
getTimePriceReceived
@Nullable public @Nullable java.lang.String getTimePriceReceived()
- Returns:
- The time a price was received from the liquidity provider
-
getDigitsBeforePips
@Nullable public @Nullable java.lang.Integer 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 bla 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
@Nullable public @Nullable java.lang.Integer 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.
-
getSpotBidRate
@Nullable public @Nullable java.math.BigDecimal getSpotBidRate()
- Returns:
- For SPOT quotes this value will be identical to the L1_AllInBidRate. For forward quotes this will contain the SPOT rate that the forward all-in rate was derived from. For forward quotes the value in this field should always equal L1_AllInBidRate - L1_FwdBidPoints.
-
getSpotMidRate
@Nullable public @Nullable java.math.BigDecimal getSpotMidRate()
- Returns:
- The mid rate between the SpotAskRate and SpotBidRate. Note that this will not always be precisely between.
-
getSpotAskRate
@Nullable public @Nullable java.math.BigDecimal getSpotAskRate()
- Returns:
- For SPOT quotes this value will be identical to the L1_AllInAskRate. For forward quotes this will contain the SPOT rate that the forward all-in rate was derived from. For forward quotes the value in this field should always equal L1_AllInAskRate - L1_FwdAskPoints.
-
getSpotRateDPS
@Nullable public @Nullable java.lang.Integer getSpotRateDPS()
- Returns:
- The number of decimal places to display after the decimal point.
-
getOverallTimeOut
@Nullable public @Nullable java.lang.Integer getOverallTimeOut()
- Returns:
- The number of seconds remaining before this stream (not this individual quote) is timed out. This is not present for standard price updates.
-
getRemainingTimeOutMillis
@Nullable public @Nullable java.lang.Integer getRemainingTimeOutMillis()
- Returns:
- The number of seconds remaining of the OverallTimeOut before this stream is timed out. This is not present for standard price updates.
-
getWarningCode
@Nullable public @Nullable java.lang.String getWarningCode()
- Returns:
- The code for the warning regarding a quote request.
-
getWarningMessage
@Nullable public @Nullable java.lang.String getWarningMessage()
- Returns:
- The message to display for any warnings regarding a quote request
-
getNumberOfFractionalPips
@Deprecated @Nullable public @Nullable java.lang.String getNumberOfFractionalPips()
Deprecated.- Returns:
- Precision-related field that tells the client how to display rates. This is the number of digits after the pips. For example, for a USDGBP rate of 1.23456 the pips are the 45 and there is one digit (the 6) after the pips, so the value of the NumberOfFractionalPips field should be 1. There are typically more fractional pips on forward rates than spot rates.
-
getBidPips
@Deprecated @Nullable public @Nullable java.lang.String getBidPips()
Deprecated.- Returns:
- bidPips e.g. 11.98
-
getAskPips
@Deprecated @Nullable public @Nullable java.lang.String getAskPips()
Deprecated.- Returns:
- askPips e.g. 11.98
-
getSwapGFA
@Deprecated @Nullable public @Nullable java.lang.String getSwapGFA()
Deprecated.- Returns:
- swapGFA e.g. 1 000 000
-
getCurrencyPair
@Nullable public @Nullable java.lang.String getCurrencyPair()
- Returns:
- The currency pair for the trade. For example, EURUSD
-
getBidCostAmount
@Nullable public @Nullable java.math.BigDecimal getBidCostAmount()
- Returns:
- The total amount on the bid side of the trade when requesting a quote
-
getBidCostPercentage
@Nullable public @Nullable java.math.BigDecimal getBidCostPercentage()
- Returns:
- Percentage of the overall price which is the transactional cost to the client of performing the trade, displayed on the bid side. This number should be out of 100, where 100.0 represents 100%.
-
getCostCurrency
@Nullable public @Nullable java.lang.String getCostCurrency()
- Returns:
- The currency that the cost is displayed in, this could be any currency but will typically be set to the home currency
-
getAskCostAmount
@Nullable public @Nullable java.math.BigDecimal getAskCostAmount()
- Returns:
- The total amount on the ask side of the trade when requesting a quote
-
getAskCostPercentage
@Nullable public @Nullable java.math.BigDecimal getAskCostPercentage()
- Returns:
- Percentage of the overall price which is the transactional cost to the client of performing the trade, displayed on the ask side. This number should be out of 100, where 100.0 represents 100%.
-
getAskCostRate
@Nullable public @Nullable java.math.BigDecimal getAskCostRate()
- Returns:
- The rate to multiply by the margin (in home currency), to get the cost in the CostCurrency.
-
getBidCostRate
@Nullable public @Nullable java.math.BigDecimal getBidCostRate()
- Returns:
- The rate to multiply by the margin (in home currency), to get the cost in the CostCurrency.
-
getCostCurrencyDPS
@Nullable public @Nullable java.lang.Integer getCostCurrencyDPS()
- Returns:
- The number of decimal places to display after the decimal point.
-
getPriceUpdateSource
@Nullable public @Nullable java.lang.String getPriceUpdateSource()
- Returns:
- The name of the adapter a particular price update originated from.
-
getAskContraCostAmount
@Nullable public @Nullable java.math.BigDecimal getAskContraCostAmount()
- Returns:
- The total amount on the ask side of the trade when requesting a quote seen in contra currency
-
getAskContraCostPercentage
@Nullable public @Nullable java.math.BigDecimal getAskContraCostPercentage()
- Returns:
- Percentage of the overall price which is the transactional cost to the client of performing the trade, displayed on the ask side in contra currency. This number should be out of 100, where 100.0 represents 100%.
-
getAskContraCostRate
@Nullable public @Nullable java.math.BigDecimal getAskContraCostRate()
- Returns:
- The rate to multiply by the margin (in contra currency), to get the cost in the CostCurrency.
-
getBidContraCostAmount
@Nullable public @Nullable java.math.BigDecimal getBidContraCostAmount()
- Returns:
- The total amount on the bid side of the trade when requesting a quote seen in contra currency
-
getBidContraCostPercentage
@Nullable public @Nullable java.math.BigDecimal getBidContraCostPercentage()
- Returns:
- Percentage of the overall price which is the transactional cost to the client of performing the trade, displayed on the bid side in cost currency. This number should be out of 100, where 100.0 represents 100%.
-
getBidContraCostRate
@Nullable public @Nullable java.math.BigDecimal getBidContraCostRate()
- Returns:
- The rate to multiply by the margin (in contra currency), to get the cost in the CostCurrency.
-
getContraCostAmount
@Nullable public @Nullable java.math.BigDecimal getContraCostAmount()
- Returns:
- The actual transactional cost of performing the trade to the client on the contra currency
-
getContraCostPercentage
@Nullable public @Nullable java.math.BigDecimal 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%.
-
getContraCostCurrency
@Nullable public @Nullable java.math.BigDecimal getContraCostCurrency()
- Returns:
- The contra currency that the cost is displayed in
-
getFields
@NotNull public @NotNull java.util.Map<java.lang.String,java.lang.String> getFields()
-
getFieldFlags
@NotNull public @NotNull java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> getFieldFlags()
- Specified by:
getFieldFlags
in interfaceBuilderMessage
- Returns:
- Get the flags for all fields.
-
getFlagFields
@NotNull public @NotNull java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> getFlagFields()
- Specified by:
getFlagFields
in interfaceBuilderMessage
- Returns:
- Get the fields for all flags.
-
toString
@NotNull public @NotNull java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
from
@NotNull public static @NotNull QuotePartsDef.CommonFields from(@NotNull @NotNull java.util.Map<java.lang.String,java.lang.String> fields)
-
from
@NotNull public static @NotNull QuotePartsDef.CommonFields from(@NotNull @NotNull java.util.Map<java.lang.String,java.lang.String> fields, @NotNull @NotNull java.lang.String fieldPrefix)
-
newBuilder
@NotNull public static @NotNull QuotePartsDef.CommonFields.Builder newBuilder()
-
-