public bool CancelGroupOfOrders(DerivativesClasses cls, string baseContract)
        {
            string derivativeClass = cls == DerivativesClasses.FUTURES
                ? T2QParametres.CLASS_CODE_FUT
                : T2QParametres.CLASS_CODE_OPT;

            string inputParams = GetTransactionsInputParams(new string[]
            {
                "ACCOUNT=" + account,
                "TRANS_ID=" + GetNewTransactionId(),
                "CLASSCODE=" + derivativeClass,
                "ACTION=" + T2QParametres.ACTION_CANCEL_ALL_ORDERS,
                "BASE_CONTRACT=" + baseContract
            });

            double result = -1;

            result = SendSyncTransactionToQuik(inputParams);

            if (result != -1)
            {
                foreach (TerminalOrder order in OrderMap.Values)
                {
                    order.LastTime    = DateTime.Now;
                    order.OrderStatus = TerminalOrderStatus.CANCELED;
                }

                return(true);
            }

            return(false);
        }
 public TerminalPosEventArgs(DerivativesClasses cls, string ticker, int actualPos)
 {
     this.cls       = cls;
     this.ticker    = ticker;
     this.actualPos = actualPos;
 }