Show / Hide Table of Contents

Class StopLossOrder

Encapsulates data required for placing stop loss order on the Alpaca REST API.

Inheritance
System.Object
OrderBase
AdvancedOrderBase
StopLossOrder
Implements
IStopLoss
Inherited Members
AdvancedOrderBase.OrderClass
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 StopLossOrder : AdvancedOrderBase, IStopLoss

Properties

| Improve this Doc View Source

LimitPrice

Gets the stop loss limit price.

Declaration
public Decimal? LimitPrice { get; }
Property Value
Type Description
System.Nullable<Decimal>
| Improve this Doc View Source

StopPrice

Gets the stop loss stop price.

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

Methods

| Improve this Doc View Source

TakeProfit(Decimal)

Creates a new instance of the BracketOrder order from the current order.

Declaration
public BracketOrder TakeProfit(Decimal takeProfitLimitPrice)
Parameters
Type Name Description
Decimal takeProfitLimitPrice

Take profit order limit price.

Returns
Type Description
BracketOrder

New advanced order representing pair of original order and take profit order.

Implements

IStopLoss

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