Exemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        public bool BeginDecreaseVolume(int volumeDecrease, decimal?allowedSlippage, decimal?desiredPrice,
                                        out string operationResultMessage, OrderOperationDelegate operationFinishedDelegate)
        {
            operationResultMessage = string.Empty;

            GeneralHelper.FireAndForget(delegate()
            {
                string tmp;
                bool result = DecreaseVolume(volumeDecrease, allowedSlippage, desiredPrice, out tmp);

                if (operationFinishedDelegate != null)
                {
                    operationFinishedDelegate(this, result, tmp);
                }
            });

            return(true);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 
        /// </summary>
        public bool BeginDecreaseVolume(int volumeDecrease, decimal? allowedSlippage, decimal? desiredPrice,
            out string operationResultMessage, OrderOperationDelegate operationFinishedDelegate)
        {
            operationResultMessage = string.Empty;

            GeneralHelper.FireAndForget(delegate()
            {
                string tmp;
                bool result = DecreaseVolume(volumeDecrease, allowedSlippage, desiredPrice, out tmp);

                if (operationFinishedDelegate != null)
                {
                    operationFinishedDelegate(this, result, tmp);
                }
            });

            return true;
        }