/// <summary> /// Converts a DKReason to a string. /// </summary> /// <param name="value">A DKReason value.</param> /// <returns>The FIX string representation of a CxlRejReason.</returns> public static string ConvertTo(DKReason enumType) { return((string)DKReasonConverter.toTable[enumType]); }
private void RejectExecution(string id, ExecutionReport executionReport) { if (!ordersAll.ContainsKey(id)) { OrderID ordid = executionReport.getOrderID(); ExecID execid = executionReport.getExecID(); QuickFix.Side side = executionReport.getSide(); Symbol symbol = executionReport.getSymbol(); DKReason dkreason = new DKReason (DKReason.NO_MATCHING_ORDER); QuickFix42.DontKnowTrade dk = new DontKnowTrade(ordid, execid, dkreason, symbol, side); _quickFixWrapper.Send(dk); } }