Show / Hide Table of Contents

Class OneCancelsOtherOrder

OCO (One-Cancels-Other) is another type of advanced order type. This is a set of two orders with the same side (buy/buy or sell/sell) and currently only exit order is supported. In other words, this is the second part of the bracket orders where the entry order is already filled, and you can submit the take-profit and stop-loss in one order submission.

Inheritance
System.Object
OrderBase
AdvancedOrderBase
OneCancelsOtherOrder
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 OneCancelsOtherOrder : AdvancedOrderBase
Remarks

See Alpaca Order Documentation for more information.

Properties

| Improve this Doc View Source

StopLoss

Gets prices for stop loss order for the OCO order.

Declaration
public IStopLoss StopLoss { get; }
Property Value
Type Description
IStopLoss
| Improve this Doc View Source

TakeProfit

Gets prices for take profit order for the OCO order.

Declaration
public ITakeProfit TakeProfit { get; }
Property Value
Type Description
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