public override object GetField(Enums.Fields.Fields field) { PortfolioPositionTradeListRequestFields xrField = (PortfolioPositionTradeListRequestFields)field; if (xrField == PortfolioPositionTradeListRequestFields.PositionId) { return(PortfPostId); } else { return(ExecutionReportFields.NULL); } }
public override object GetField(Enums.Fields.Fields field) { ExecutionReportFields xrField = (ExecutionReportFields)field; if (xrField == ExecutionReportFields.ExecType) { return(ExecType.Rejected); } else if (xrField == ExecutionReportFields.OrdStatus) { return(OrdStatus.Rejected); } else if (xrField == ExecutionReportFields.OrdRejReason) { return(ExecutionReportFields.NULL); } else if (xrField == ExecutionReportFields.LeavesQty) { return(0); } else if (xrField == ExecutionReportFields.CumQty) { return(0); } else if (xrField == ExecutionReportFields.Text) { return(Error); } else if (xrField == ExecutionReportFields.TransactTime) { return(DateTime.Now); } else { return(ExecutionReportFields.NULL); } }