Class PositionSnapshot
java.lang.Object
com.wualabs.qtsurfer.engine.strategy.execution.PositionSnapshot
Immutable snapshot of an aggregated multi-entry position
-
Constructor Summary
ConstructorsConstructorDescriptionPositionSnapshot(@NonNull Instrument instrument, @NonNull BigDecimal totalBaseAmount, @NonNull BigDecimal totalCounterAmount, @NonNull BigDecimal totalFeeAmount, int entryCount, @NonNull List<ExecutionResult> enterResults) -
Method Summary
-
Constructor Details
-
PositionSnapshot
public PositionSnapshot(@NonNull @NonNull Instrument instrument, @NonNull @NonNull BigDecimal totalBaseAmount, @NonNull @NonNull BigDecimal totalCounterAmount, @NonNull @NonNull BigDecimal totalFeeAmount, int entryCount, @NonNull @NonNull List<ExecutionResult> enterResults)
-
-
Method Details
-
toString
-
getInstrument
-
getTotalBaseAmount
-
getTotalCounterAmount
-
getAverageEntryPrice
-
getTotalFeeAmount
-
getEntryCount
public int getEntryCount() -
getEnterResults
-