Class TradeDetailsPartsDef.InterventionTradeDetailsFields.Builder
java.lang.Object
com.caplin.generated.motif.mm.tradedetails.TradeDetailsPartsDef.InterventionTradeDetailsFields.Builder
- Enclosing class:
- TradeDetailsPartsDef.InterventionTradeDetailsFields
public static final class TradeDetailsPartsDef.InterventionTradeDetailsFields.Builder
extends Object
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
setCompetition
(boolean competition) setCompetition
(@NotNull String competition) setDealable
(boolean dealable) setDealable
(@NotNull String dealable) setEntityDescription
(@NotNull String entityDescription) setIntervenerUsername
(@NotNull String intervenerUsername) setPricingMode
(@NotNull String pricingMode) setTradeRequestID
(@NotNull String tradeRequestID) setTradeStatus
(@NotNull String tradeStatus) @NotNull String
toString()
-
Method Details
-
addField
@NotNull public @NotNull TradeDetailsPartsDef.InterventionTradeDetailsFields.Builder addField(@NotNull @NotNull String key, @NotNull @NotNull String value) -
build
-
toString
-
setTradeStatus
@NotNull public @NotNull TradeDetailsPartsDef.InterventionTradeDetailsFields.Builder setTradeStatus(@NotNull @NotNull String tradeStatus) - Parameters:
tradeStatus
- e.g. AWAITING-PRICE- Returns:
- The current status of the trade. Supported types are [AWAITING-TRADER, AWAITING-PRICE, PRICED, EXECUTING, CLOSED, REJECTED, ERRORED, COMPLETED]. CLOSED means the client cancelled the trade request, REJECTED indicates it was rejected by the dealer.
-
setDealable
@NotNull public @NotNull TradeDetailsPartsDef.InterventionTradeDetailsFields.Builder setDealable(boolean dealable) - Returns:
- Determines whether the trade is dealable or not.
-
setDealable
@NotNull public @NotNull TradeDetailsPartsDef.InterventionTradeDetailsFields.Builder setDealable(@NotNull @NotNull String dealable) - Returns:
- Determines whether the trade is dealable or not.
-
setPricingMode
@NotNull public @NotNull TradeDetailsPartsDef.InterventionTradeDetailsFields.Builder setPricingMode(@NotNull @NotNull String pricingMode) - Returns:
- Whether the price is automatically or manually priced. Supported types are [AUTO, MANUAL].
-
setCompetition
@NotNull public @NotNull TradeDetailsPartsDef.InterventionTradeDetailsFields.Builder setCompetition(boolean competition) - Returns:
- Whether there is competition to price the trade to be intervened
-
setCompetition
@NotNull public @NotNull TradeDetailsPartsDef.InterventionTradeDetailsFields.Builder setCompetition(@NotNull @NotNull String competition) - Returns:
- Whether there is competition to price the trade to be intervened
-
setTradeRequestID
@NotNull public @NotNull TradeDetailsPartsDef.InterventionTradeDetailsFields.Builder setTradeRequestID(@NotNull @NotNull String tradeRequestID) - Returns:
- The unique id identifying the trade to be picked up.
-
setIntervenerUsername
@NotNull public @NotNull TradeDetailsPartsDef.InterventionTradeDetailsFields.Builder setIntervenerUsername(@NotNull @NotNull String intervenerUsername) - Parameters:
intervenerUsername
- e.g. head_trader@novobank.co.za- Returns:
- The user who is currently intervening on and potentially pricing a trade.
-
setEntityDescription
@NotNull public @NotNull TradeDetailsPartsDef.InterventionTradeDetailsFields.Builder setEntityDescription(@NotNull @NotNull String entityDescription) - Parameters:
entityDescription
- e.g. Customer 1- Returns:
- The description of a trade on behalf of entity.
-