Class StopLimitOrder
A stop-limit order is a conditional trade over a set time frame that combines the features of a stop order with those of a limit order and is used to mitigate risk. The stop-limit order will be executed at a specified limit price, or better, after a given stop price has been reached.
See https://alpaca.markets/docs/trading/orders/#stop-limit-order
Inherited Members
Namespace: Alpaca.Markets
Assembly: Alpaca.Markets.dll
Syntax
public sealed class StopLimitOrder : SimpleOrderBase
Properties
| Improve this Doc View SourceLimitPrice
Gets or sets the new order limit price.
Declaration
public Decimal LimitPrice { get; set; }
Property Value
Type | Description |
---|---|
Decimal |
StopPrice
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, Decimal)
Creates new buy stop limit order using specified symbol and quantity.
Declaration
public static StopLimitOrder Buy(String symbol, OrderQuantity quantity, Decimal stopPrice, Decimal limitPrice)
Parameters
Type | Name | Description |
---|---|---|
String | symbol | Order asset symbol. |
Alpaca.Markets.OrderQuantity | quantity | Order quantity. |
Decimal | stopPrice | Order stop price. |
Decimal | limitPrice | Order limit price. |
Returns
Type | Description |
---|---|
StopLimitOrder | The new StopLimitOrder object instance. |
Sell(String, OrderQuantity, Decimal, Decimal)
Creates new sell stop limit order using specified symbol and quantity.
Declaration
public static StopLimitOrder Sell(String symbol, OrderQuantity quantity, Decimal stopPrice, Decimal limitPrice)
Parameters
Type | Name | Description |
---|---|---|
String | symbol | Order asset symbol. |
Alpaca.Markets.OrderQuantity | quantity | Order quantity. |
Decimal | stopPrice | Order stop price. |
Decimal | limitPrice | Order limit price. |
Returns
Type | Description |
---|---|
StopLimitOrder | The new StopLimitOrder object instance. |