Class ResolveOrderService
- java.lang.Object
-
- de.gsi.financial.samples.service.order.ResolveOrderService
-
public class ResolveOrderService extends java.lang.Object- Author:
- afischer
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisPriceIncluded(OHLCVItem item, double price)Checks if the input price is included in the inserted OHLCV barstatic voidresolveOrder(OHLCVItem item, OHLCVItem dailyItem, Order order)Resolving the status of order by ohlcv itemstatic voidresolveOrder(OHLCVItem item, Order order)Resolving the status of order by ohlcv item
-
-
-
Method Detail
-
resolveOrder
public static void resolveOrder(OHLCVItem item, Order order)
Resolving the status of order by ohlcv item- Parameters:
item- ohlcvorder- 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- ohlcvdailyItem- item ohlcvorder- 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 barprice- the price for checking- Returns:
- true = the price is included in the bar
-
-