Class OrderProperties.Builder
java.lang.Object
com.caplin.motif.fx.ret.orders.strategy.builder.OrderProperties.Builder
- Enclosing class:
- OrderProperties
Helper class used to construct an
OrderProperties
object.-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns a configuredOrderProperties
object.withAmount
(String amount) Builds theOrderProperties
with the specified amount.Builds theOrderProperties
with the specified order.Builds theOrderProperties
with the specified unit.
-
Field Details
-
order
-
-
Method Details
-
withOrder
Builds theOrderProperties
with the specified order.- Parameters:
order
- The order.- Returns:
- this
-
withUnit
Builds theOrderProperties
with the specified unit.- Parameters:
unit
- The unit.- Returns:
- this
-
withAmount
Builds theOrderProperties
with the specified amount.- Parameters:
amount
- The Amount.- Returns:
- this
-
build
Returns a configuredOrderProperties
object.- Returns:
- The OrderProperties
-