示例#1
0
        internal StopOrder SetStopOrderTradeParams(StopOrderTradeParams stopOrderTradeParams)
        {
            if (stopOrderTradeParams == null)
            {
                return(this);
            }

            this.SetOrderTradeParams(stopOrderTradeParams.OrderTradeParams);
            this.StopPrice  = stopOrderTradeParams.StopPrice;
            this.ExpiryDate = stopOrderTradeParams.ExpiryDate;
            this.StopPrice2 = stopOrderTradeParams.StopPrice2;

            this.SetActiveTime(stopOrderTradeParams.ActiveTime);
            this.SetProfitCondition(stopOrderTradeParams.ProfitCondition);

            return(this);
        }
示例#2
0
        public bool SendTakeProfitAndStopLimitOrder(StopOrderTradeParams tradeParams)
        {
            var txn = this.transactionBuilder.NewTakeProfitAndStopLimitOrder(tradeParams);

            return(this.SendTransaction(txn.ToString()));
        }