Class OrderBase
Encapsulates base data for any order types, never used directly by any code.
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 abstract class OrderBase
Constructors
| Improve this Doc View SourceOrderBase(OrderBase)
Creates new instance of the OrderBase class.
Declaration
protected OrderBase(OrderBase baseOrder)
Parameters
Type | Name | Description |
---|---|---|
OrderBase | baseOrder | Base order for getting parameters. |
OrderBase(String, OrderQuantity, OrderSide, OrderType)
Creates new instance of the OrderBase class.
Declaration
protected OrderBase(String symbol, OrderQuantity quantity, OrderSide side, OrderType type)
Parameters
Type | Name | Description |
---|---|---|
String | symbol | Alpaca symbol for order. |
Alpaca.Markets.OrderQuantity | quantity | Order quantity (absolute value). |
OrderSide | side | Order side (buy or sell). |
OrderType | type | Order type (market, limit, stop, stop-limit). |
Properties
| Improve this Doc View SourceClientOrderId
Gets or sets the client order ID. This is a user-specified ID that must be unique if provided.
Declaration
public String? ClientOrderId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<String> |
Duration
Gets the new order duration.
Declaration
public TimeInForce Duration { get; set; }
Property Value
Type | Description |
---|---|
TimeInForce |
ExtendedHours
Gets or sets flag indicating that order should be allowed to execute during extended hours trading.
Declaration
public Boolean? ExtendedHours { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Boolean> |
PositionIntent
Gets or sets the optional position intent for order placement.
Declaration
public PositionIntent? PositionIntent { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<PositionIntent> |
Quantity
Gets the new order quantity.
Declaration
public OrderQuantity Quantity { get; }
Property Value
Type | Description |
---|---|
Alpaca.Markets.OrderQuantity |
Side
Gets the new order side (buy or sell).
Declaration
public OrderSide Side { get; }
Property Value
Type | Description |
---|---|
OrderSide |
Symbol
Gets the new order asset symbol.
Declaration
public String Symbol { get; }
Property Value
Type | Description |
---|---|
String |
Type
Gets the new order type.
Declaration
public OrderType Type { get; }
Property Value
Type | Description |
---|---|
OrderType |