Class ResolveOrderService


  • public class ResolveOrderService
    extends java.lang.Object
    Author:
    afischer
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isPriceIncluded​(OHLCVItem item, double price)
      Checks if the input price is included in the inserted OHLCV bar
      static void resolveOrder​(OHLCVItem item, OHLCVItem dailyItem, Order order)
      Resolving the status of order by ohlcv item
      static void resolveOrder​(OHLCVItem item, Order order)
      Resolving the status of order by ohlcv item
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • resolveOrder

        public static void resolveOrder​(OHLCVItem item,
                                        Order order)
        Resolving the status of order by ohlcv item
        Parameters:
        item - ohlcv
        order - domain object for resolving
      • resolveOrder

        public static void resolveOrder​(OHLCVItem item,
                                        OHLCVItem dailyItem,
                                        Order order)
        Resolving the status of order by ohlcv item
        Parameters:
        item - ohlcv
        dailyItem - item ohlcv
        order - the order for execution by market
      • isPriceIncluded

        public static boolean isPriceIncluded​(OHLCVItem item,
                                              double price)
        Checks if the input price is included in the inserted OHLCV bar
        Parameters:
        item - the ohlcv bar
        price - the price for checking
        Returns:
        true = the price is included in the bar