private static bool IsOrderSupported(Order nativeOrder)
		{
			return nativeOrder.orderType == "EQ" &&
				    _supportedPriceTypes.Contains(nativeOrder.priceType) &&
				    nativeOrder.legDetails != null &&
				    nativeOrder.legDetails.Count == 1 &&
				    _supportedActions.Contains(nativeOrder.legDetails[0].orderAction);
		}
Example #2
0
		public static bool IsOrderInFinalState(Order nativeOrder)
		{
			return !(nativeOrder.orderStatus == "OPEN" || nativeOrder.orderStatus == "CANCEL_REQUESTED");
		}