Show / Hide Table of Contents

Class TakeProfitOrder

Encapsulates data required for placing take profit order on the Alpaca REST API.

Inheritance
System.Object
OrderBase
AdvancedOrderBase
TakeProfitOrder
Implements
ITakeProfit
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 TakeProfitOrder : AdvancedOrderBase, ITakeProfit

Properties

| Improve this Doc View Source

LimitPrice

Gets the profit taking limit price.

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

Methods

| Improve this Doc View Source

StopLoss(Decimal)

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

Declaration
public BracketOrder StopLoss(Decimal stopLossStopPrice)
Parameters
Type Name Description
Decimal stopLossStopPrice

Stop loss order stop price.

Returns
Type Description
BracketOrder

New advanced order representing pair of original order and stop loss order.

| Improve this Doc View Source

StopLoss(Decimal, Decimal)

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

Declaration
public BracketOrder StopLoss(Decimal stopLossStopPrice, Decimal stopLossLimitPrice)
Parameters
Type Name Description
Decimal stopLossStopPrice

Stop loss order stop price.

Decimal stopLossLimitPrice

Stop loss order limit price.

Returns
Type Description
BracketOrder

New advanced order representing pair of original order and stop loss order.

Implements

ITakeProfit

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