Class BlotterPartsDef.QuoteBlotterLegFields.Builder
java.lang.Object
com.caplin.generated.motif.fx.blotter.BlotterPartsDef.QuoteBlotterLegFields.Builder
- Enclosing class:
- BlotterPartsDef.QuoteBlotterLegFields
-
Method Summary
Modifier and TypeMethodDescriptionbuild()setAllInMidRate(@NotNull String allInMidRate) setAllInMidRate(@NotNull BigDecimal allInMidRate) setAllInRate(@NotNull String allInRate) setAllInRate(@NotNull BigDecimal allInRate) setAmount(@NotNull BigDecimal amount) setBuySell(@NotNull String buySell) setContraAmount(@NotNull String contraAmount) setContraAmount(@NotNull BigDecimal contraAmount) setFwdPoints(@NotNull String fwdPoints) setFwdPoints(@NotNull BigDecimal fwdPoints) setSettlementDate(@NotNull String settlementDate) @NotNull StringtoString()
-
Method Details
-
addField
@NotNull public @NotNull BlotterPartsDef.QuoteBlotterLegFields.Builder addField(@NotNull @NotNull String key, @NotNull @NotNull String value) -
build
-
toString
-
setAmount
@NotNull public @NotNull BlotterPartsDef.QuoteBlotterLegFields.Builder setAmount(@NotNull @NotNull BigDecimal amount) - Returns:
- The amount of a trade or order in the DealtCurrency.
-
setAmount
@NotNull public @NotNull BlotterPartsDef.QuoteBlotterLegFields.Builder setAmount(@NotNull @NotNull String amount) - Returns:
- The amount of a trade or order in the DealtCurrency.
-
setContraAmount
@NotNull public @NotNull BlotterPartsDef.QuoteBlotterLegFields.Builder setContraAmount(@NotNull @NotNull BigDecimal contraAmount) - Parameters:
contraAmount- e.g. 350- Returns:
- The amount that is exchanged for the Amount. This will be defined in the contra currency of the DealtCurrency.
-
setContraAmount
@NotNull public @NotNull BlotterPartsDef.QuoteBlotterLegFields.Builder setContraAmount(@NotNull @NotNull String contraAmount) - Parameters:
contraAmount- e.g. 350- Returns:
- The amount that is exchanged for the Amount. This will be defined in the contra currency of the DealtCurrency.
-
setAllInRate
@NotNull public @NotNull BlotterPartsDef.QuoteBlotterLegFields.Builder setAllInRate(@NotNull @NotNull BigDecimal allInRate) - Parameters:
allInRate- e.g. 1.091790- Returns:
- The final client rate that is made up of the spot rate + any additional costs or adjustments such as swap points or margin.
-
setAllInRate
@NotNull public @NotNull BlotterPartsDef.QuoteBlotterLegFields.Builder setAllInRate(@NotNull @NotNull String allInRate) - Parameters:
allInRate- e.g. 1.091790- Returns:
- The final client rate that is made up of the spot rate + any additional costs or adjustments such as swap points or margin.
-
setFwdPoints
@NotNull public @NotNull BlotterPartsDef.QuoteBlotterLegFields.Builder setFwdPoints(@NotNull @NotNull BigDecimal fwdPoints) - Parameters:
fwdPoints- e.g. 0.001198- Returns:
- The number of pips to be added or subtracted from the spot rate to form the forward rate.
-
setFwdPoints
@NotNull public @NotNull BlotterPartsDef.QuoteBlotterLegFields.Builder setFwdPoints(@NotNull @NotNull String fwdPoints) - Parameters:
fwdPoints- e.g. 0.001198- Returns:
- The number of pips to be added or subtracted from the spot rate to form the forward rate.
-
setAllInMidRate
@NotNull public @NotNull BlotterPartsDef.QuoteBlotterLegFields.Builder setAllInMidRate(@NotNull @NotNull BigDecimal allInMidRate) - Parameters:
allInMidRate- e.g. 1.091790- Returns:
- The mid rate used in charging customers for accepting banker's acceptances, consisting of the discount interest rate plus the commission.
-
setAllInMidRate
@NotNull public @NotNull BlotterPartsDef.QuoteBlotterLegFields.Builder setAllInMidRate(@NotNull @NotNull String allInMidRate) - Parameters:
allInMidRate- e.g. 1.091790- Returns:
- The mid rate used in charging customers for accepting banker's acceptances, consisting of the discount interest rate plus the commission.
-
setSettlementDate
@NotNull public @NotNull BlotterPartsDef.QuoteBlotterLegFields.Builder setSettlementDate(@NotNull @NotNull String settlementDate) - Parameters:
settlementDate- e.g. 20160314- Returns:
- The date on which the two currencies in the FX trade are exchanged. Can be a tenor or a broken date, i.e. SPOT or 20160314.
-
setTenor
@NotNull public @NotNull BlotterPartsDef.QuoteBlotterLegFields.Builder setTenor(@NotNull @NotNull String tenor) - Parameters:
tenor- e.g. 1M- Returns:
- Supported types are [ON, [TODAY, TOD, TD], TN, [TOM, ND], SPOT, SN, 1D, 1W, 2W, 3W, 4W, 1M, 2M, 4M, 5M, 6M, 7M, 8M, 9M, 10M, 11M, [1Y, 12M], 15M, 18M, 21M, [2Y, 24M], [3Y, 36M], [4Y, 48M], [5Y, 60M], broken]. 'broken' indicates that the settlement date does not fall onto a tenor.
-
setBuySell
@NotNull public @NotNull BlotterPartsDef.QuoteBlotterLegFields.Builder setBuySell(@NotNull @NotNull String buySell) - Returns:
- The direction of the trade or trade leg, from the client's perspective. This always refers to the BaseCurrency, NOT the DealtCurrency.
-