Interface StrategyYield
- All Superinterfaces:
Event<Strategy>, StrategyEvent
Represents a yield result from a Strategy
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionGets the output yield currencygetInput()Gets the instrument involved in this yielddefault BigDecimalgetYield()default BigDecimalstatic <T extends StrategyYield>
BigDecimaltotalAmount(List<T> yields) Add all yield's amountsstatic <T extends StrategyYield>
BigDecimaltotalPercent(List<T> yields) Add all yield's percentagesMethods inherited from interface StrategyEvent
getProperties, getSource, getStrategy, getTimestamp, getType
-
Field Details
-
DECIMAL8
-
-
Method Details
-
getInput
BigDecimal getInput() -
getOutput
BigDecimal getOutput() -
getYield
-
getYieldPercent
-
getCurrency
-
getInstrument
-
totalAmount
Add all yield's amounts- Type Parameters:
T-- Parameters:
yields- List of yields- Returns:
- Sum of all yield's amounts
-
totalPercent
Add all yield's percentages- Type Parameters:
T-- Parameters:
yields- List of yields- Returns:
- Sum of all yield's percents
-