Show / Hide Table of Contents

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

Inheritance
System.Object
OrderBase
SimpleOrderBase
StopLimitOrder
Inherited Members
SimpleOrderBase.TakeProfit(Decimal)
SimpleOrderBase.StopLoss(Decimal)
SimpleOrderBase.StopLoss(Decimal, Decimal)
SimpleOrderBase.Bracket(Decimal, Decimal)
SimpleOrderBase.Bracket(Decimal, Decimal, Decimal)
OrderBase.Symbol
OrderBase.Quantity
OrderBase.Side
OrderBase.Type
OrderBase.Duration
OrderBase.ClientOrderId
OrderBase.ExtendedHours
OrderBase.PositionIntent
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 StopLimitOrder : SimpleOrderBase

Properties

| Improve this Doc View Source

LimitPrice

Gets or sets the new order limit price.

Declaration
public Decimal LimitPrice { get; set; }
Property Value
Type Description
Decimal
| Improve this Doc View Source

StopPrice

Gets or sets the new order stop price.

Declaration
public Decimal StopPrice { get; }
Property Value
Type Description
Decimal

Methods

| Improve this Doc View Source

Buy(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.

| Improve this Doc View Source

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.

Extension Methods

OrderBaseExtensions.WithDuration<TOrder>(TOrder, TimeInForce)
OrderBaseExtensions.WithClientOrderId<TOrder>(TOrder, String)
OrderBaseExtensions.WithExtendedHours<TOrder>(TOrder, Boolean)
OrderBaseExtensions.WithPositionIntent<TOrder>(TOrder, PositionIntent)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX