Show / Hide Table of Contents

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

Inheritance
System.Object
OrderBase
SimpleOrderBase
StopOrder
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 StopOrder : SimpleOrderBase

Properties

| 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)

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.

| Improve this Doc View Source

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.

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