Class ExecutionResult

java.lang.Object
com.wualabs.qtsurfer.engine.strategy.execution.ExecutionResult

public class ExecutionResult extends Object
Represents an execution result
  • Method Details

    • getExecutions

      public List<com.wualabs.qtsurfer.engine.exchange.trade.execution.OrderTradeExecution> getExecutions()
      Returns all underlying executions (for cancellation and internal use).
    • getTrades

      public List<Trade> getTrades()
      Returns all trades converted to the engine-canonical Trade model.
    • getErrors

      public List<Throwable> getErrors()
    • getRemainingAmount

      public BigDecimal getRemainingAmount()
    • getPercentCompleted

      public BigDecimal getPercentCompleted()
    • isFilled

      public boolean isFilled()
    • isPartialFilled

      public boolean isPartialFilled()
    • getEnterTradedAmount

      public BigDecimal getEnterTradedAmount()
      Returns the enter side amount in the output currency. For buy signals, this is the counter amount spent; for sell signals, the base amount sold.
    • getExitTradedAmount

      public BigDecimal getExitTradedAmount()
      Returns the exit side amount in the output currency. For sell signals, this is the counter amount received; for buy signals, the base amount bought.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getSignal

      public MarketHintSignal getSignal()
    • getOriginalAmount

      public BigDecimal getOriginalAmount()
    • getInstrument

      public Instrument getInstrument()
    • getTradedAmount

      public BigDecimal getTradedAmount()
    • getTradedCounterAmount

      public BigDecimal getTradedCounterAmount()
    • getTradedFeeAmount

      public BigDecimal getTradedFeeAmount()
    • getTradedFeeCounterAmount

      public BigDecimal getTradedFeeCounterAmount()
    • getFirstResultTime

      public Instant getFirstResultTime()