Class NewOrderRequest
Encapsulates request parameters for PostOrderAsync(NewOrderRequest, CancellationToken) call.
Inheritance
Inherited Members
Namespace: Alpaca.Markets
Assembly: Alpaca.Markets.dll
Syntax
public sealed class NewOrderRequest
Constructors
| Improve this Doc View SourceNewOrderRequest(String, OrderQuantity, OrderSide, OrderType, TimeInForce)
Creates new instance of NewOrderRequest object.
Declaration
public NewOrderRequest(String symbol, OrderQuantity quantity, OrderSide side, OrderType type, TimeInForce duration)
Parameters
Type | Name | Description |
---|---|---|
String | symbol | Order asset symbol. |
Alpaca.Markets.OrderQuantity | quantity | Order quantity. |
OrderSide | side | Order side (buy or sell). |
OrderType | type | Order type. |
TimeInForce | duration | Order duration. |
Properties
| Improve this Doc View SourceClientOrderId
Gets or sets the client order ID. This user-specified ID must be unique if set.
Declaration
public String? ClientOrderId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<String> |
Duration
Gets the new order duration.
Declaration
public TimeInForce Duration { get; }
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> |
LimitPrice
Gets or sets the new order limit price.
Declaration
public Decimal? LimitPrice { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Decimal> |
OrderClass
Gets or sets the order class for advanced order types.
Declaration
public OrderClass? OrderClass { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<OrderClass> |
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 |
StopLossLimitPrice
Gets or sets the stop loss limit price for advanced order types.
Declaration
public Decimal? StopLossLimitPrice { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Decimal> |
StopLossStopPrice
Gets or sets the stop loss stop price for advanced order types.
Declaration
public Decimal? StopLossStopPrice { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Decimal> |
StopPrice
Gets or sets the new order stop price.
Declaration
public Decimal? StopPrice { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Decimal> |
Symbol
Gets the new order asset symbol.
Declaration
public String Symbol { get; }
Property Value
Type | Description |
---|---|
String |
TakeProfitLimitPrice
Gets or sets the profit taking limit price for advanced order types.
Declaration
public Decimal? TakeProfitLimitPrice { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Decimal> |
TrailOffsetInDollars
Gets or sets the new trailing order trail price offset in dollars.
Declaration
public Decimal? TrailOffsetInDollars { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Decimal> |
TrailOffsetInPercent
Gets or sets the new trailing order trail price offset in percent.
Declaration
public Decimal? TrailOffsetInPercent { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Decimal> |
Type
Gets the new order type.
Declaration
public OrderType Type { get; }
Property Value
Type | Description |
---|---|
OrderType |