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.
Inherited Members
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 SourceStopLoss
Gets prices for stop loss order for the OCO order.
Declaration
public IStopLoss StopLoss { get; }
Property Value
Type | Description |
---|---|
IStopLoss |
TakeProfit
Gets prices for take profit order for the OCO order.
Declaration
public ITakeProfit TakeProfit { get; }
Property Value
Type | Description |
---|---|
ITakeProfit |