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); }
public bool SendTakeProfitAndStopLimitOrder(StopOrderTradeParams tradeParams) { var txn = this.transactionBuilder.NewTakeProfitAndStopLimitOrder(tradeParams); return(this.SendTransaction(txn.ToString())); }