Class BlotterPartsDef.CommonBlotterFields.Builder
- java.lang.Object
-
- com.caplin.generated.motif.fx.blotter.BlotterPartsDef.CommonBlotterFields.Builder
-
- Enclosing class:
- BlotterPartsDef.CommonBlotterFields
public static final class BlotterPartsDef.CommonBlotterFields.Builder extends java.lang.Object
-
-
Method Summary
-
-
-
Method Detail
-
addField
@NotNull public @NotNull BlotterPartsDef.CommonBlotterFields.Builder addField(@NotNull @NotNull java.lang.String key, @NotNull @NotNull java.lang.String value)
-
build
@NotNull public @NotNull BlotterPartsDef.CommonBlotterFields build()
-
toString
@NotNull public @NotNull java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
setBaseCurrency
@NotNull public @NotNull BlotterPartsDef.CommonBlotterFields.Builder setBaseCurrency(@NotNull @NotNull java.lang.String baseCurrency)
- Parameters:
baseCurrency
- e.g. USD- Returns:
- baseCurrency
-
setTradingType
@NotNull public @NotNull BlotterPartsDef.CommonBlotterFields.Builder setTradingType(@NotNull @NotNull java.lang.String tradingType)
- 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.
-
setStatus
@NotNull public @NotNull BlotterPartsDef.CommonBlotterFields.Builder setStatus(@NotNull @NotNull java.lang.String status)
- Returns:
- Use OrderStatus instead.
-
setIsReversible
@NotNull public @NotNull BlotterPartsDef.CommonBlotterFields.Builder setIsReversible(boolean isReversible)
- Returns:
- Whether a trade can be reversed.
-
setIsReversible
@NotNull public @NotNull BlotterPartsDef.CommonBlotterFields.Builder setIsReversible(@NotNull @NotNull java.lang.String isReversible)
- Returns:
- Whether a trade can be reversed.
-
setIsAmendable
@NotNull public @NotNull BlotterPartsDef.CommonBlotterFields.Builder setIsAmendable(boolean isAmendable)
- Returns:
- Whether a trade can be amended.
-
setIsAmendable
@NotNull public @NotNull BlotterPartsDef.CommonBlotterFields.Builder setIsAmendable(@NotNull @NotNull java.lang.String isAmendable)
- Returns:
- Whether a trade can be amended.
-
setIsCancellable
@NotNull public @NotNull BlotterPartsDef.CommonBlotterFields.Builder setIsCancellable(boolean isCancellable)
- Returns:
- Whether a trade can be cancelled.
-
setIsCancellable
@NotNull public @NotNull BlotterPartsDef.CommonBlotterFields.Builder setIsCancellable(@NotNull @NotNull java.lang.String isCancellable)
- Returns:
- Whether a trade can be cancelled.
-
-