Class OrderProperties.Builder
- java.lang.Object
-
- com.caplin.motif.fx.ret.orders.strategy.builder.OrderProperties.Builder
-
- Enclosing class:
- OrderProperties
public static final class OrderProperties.Builder extends java.lang.Object
Helper class used to construct anOrderProperties
object.
-
-
Field Summary
Fields Modifier and Type Field Description com.caplin.motif.fx.trading.orders.submission.Order
order
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OrderProperties
build()
Returns a configuredOrderProperties
object.OrderProperties.Builder
withAmount(java.lang.String amount)
Builds theOrderProperties
with the specified amount.OrderProperties.Builder
withOrder(com.caplin.motif.fx.trading.orders.submission.Order order)
Builds theOrderProperties
with the specified order.OrderProperties.Builder
withUnit(java.lang.String unit)
Builds theOrderProperties
with the specified unit.
-
-
-
Method Detail
-
withOrder
public OrderProperties.Builder withOrder(com.caplin.motif.fx.trading.orders.submission.Order order)
Builds theOrderProperties
with the specified order.- Parameters:
order
- The order.- Returns:
- this
-
withUnit
public OrderProperties.Builder withUnit(java.lang.String unit)
Builds theOrderProperties
with the specified unit.- Parameters:
unit
- The unit.- Returns:
- this
-
withAmount
public OrderProperties.Builder withAmount(java.lang.String amount)
Builds theOrderProperties
with the specified amount.- Parameters:
amount
- The Amount.- Returns:
- this
-
build
public OrderProperties build()
Returns a configuredOrderProperties
object.- Returns:
- The OrderProperties
-
-