Class StopOrder
A stop (market) order is an order to buy or sell a security when its price moves past a particular point, ensuring a higher probability of achieving a predetermined entry or exit price.
See https://alpaca.markets/docs/trading/orders/#stop-order
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 StopOrder : SimpleOrderBase
Properties
| Improve this Doc View SourceStopPrice
Gets or sets the new order stop price.
Declaration
public Decimal StopPrice { get; }
Property Value
Type | Description |
---|---|
Decimal |
Methods
| Improve this Doc View SourceBuy(String, OrderQuantity, Decimal)
Creates new buy stop order using specified symbol and quantity.
Declaration
public static StopOrder Buy(String symbol, OrderQuantity quantity, Decimal stopPrice)
Parameters
Type | Name | Description |
---|---|---|
String | symbol | Order asset symbol. |
Alpaca.Markets.OrderQuantity | quantity | Order quantity. |
Decimal | stopPrice | Order stop price. |
Returns
Type | Description |
---|---|
StopOrder | The new StopOrder object instance. |
Sell(String, OrderQuantity, Decimal)
Creates new sell buy order using specified symbol and quantity.
Declaration
public static StopOrder Sell(String symbol, OrderQuantity quantity, Decimal stopPrice)
Parameters
Type | Name | Description |
---|---|---|
String | symbol | Order asset symbol. |
Alpaca.Markets.OrderQuantity | quantity | Order quantity. |
Decimal | stopPrice | Order stop price. |
Returns
Type | Description |
---|---|
StopOrder | The new StopOrder object instance. |