Class TakeProfitOrder
Encapsulates data required for placing take profit order on the Alpaca REST API.
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Alpaca.Markets
Assembly: Alpaca.Markets.dll
Syntax
public sealed class TakeProfitOrder : AdvancedOrderBase, ITakeProfit
Properties
| Improve this Doc View SourceLimitPrice
Gets the profit taking limit price.
Declaration
public Decimal LimitPrice { get; }
Property Value
Type | Description |
---|---|
Decimal |
Methods
| Improve this Doc View SourceStopLoss(Decimal)
Creates a new instance of the BracketOrder order from the current order.
Declaration
public BracketOrder StopLoss(Decimal stopLossStopPrice)
Parameters
Type | Name | Description |
---|---|---|
Decimal | stopLossStopPrice | Stop loss order stop price. |
Returns
Type | Description |
---|---|
BracketOrder | New advanced order representing pair of original order and stop loss order. |
StopLoss(Decimal, Decimal)
Creates a new instance of the BracketOrder order from the current order.
Declaration
public BracketOrder StopLoss(Decimal stopLossStopPrice, Decimal stopLossLimitPrice)
Parameters
Type | Name | Description |
---|---|---|
Decimal | stopLossStopPrice | Stop loss order stop price. |
Decimal | stopLossLimitPrice | Stop loss order limit price. |
Returns
Type | Description |
---|---|
BracketOrder | New advanced order representing pair of original order and stop loss order. |