Interface OrderStrategyFactory<T extends OrderStrategy>

Type Parameters:
T - extends the OrderStrategy which contains the base getters and responders for Orders.
All Known Implementing Classes:
MotifOrderStrategyFactory

@Deprecated public interface OrderStrategyFactory<T extends OrderStrategy>
Deprecated.

The factory that will be asked to create the OrderStrategy for the given trade.

  • Method Summary

    Modifier and Type
    Method
    Description
    createOrderStrategy(com.caplin.trading.Trade trade)
    Deprecated.
    Returns an instance of OrderStrategy for the specified trade.
    void
    Deprecated.
    Takes the strategy type as well as the validator; so for a particular strategy (e.g OCO) the validation can be overridden.
  • Method Details

    • createOrderStrategy

      T createOrderStrategy(com.caplin.trading.Trade trade) throws OrderConfigurationException
      Deprecated.
      Returns an instance of OrderStrategy for the specified trade.
      Parameters:
      trade - The order trade containing all the legs of the order strategy.
      Returns:
      The OrderStrategy object representing the order trade.
      Throws:
      OrderConfigurationException - If there was a problem with the configuration of the Orders
    • registerOrderSubmissionValidator

      void registerOrderSubmissionValidator(String strategyType, OrderSubmissionValidator validator)
      Deprecated.
      Takes the strategy type as well as the validator; so for a particular strategy (e.g OCO) the validation can be overridden.
      Parameters:
      strategyType - The strategy type for which the validator will be asked to validate
      validator - The validator which will validate an OrderStrategy