Show / Hide Table of Contents

Class NewOrderRequest

Encapsulates request parameters for PostOrderAsync(NewOrderRequest, CancellationToken) call.

Inheritance
System.Object
NewOrderRequest
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 NewOrderRequest

Constructors

| Improve this Doc View Source

NewOrderRequest(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 Source

ClientOrderId

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>
| Improve this Doc View Source

Duration

Gets the new order duration.

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

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>
| Improve this Doc View Source

LimitPrice

Gets or sets the new order limit price.

Declaration
public Decimal? LimitPrice { get; set; }
Property Value
Type Description
System.Nullable<Decimal>
| Improve this Doc View Source

OrderClass

Gets or sets the order class for advanced order types.

Declaration
public OrderClass? OrderClass { get; set; }
Property Value
Type Description
System.Nullable<OrderClass>
| Improve this Doc View Source

PositionIntent

Gets or sets the optional position intent for order placement.

Declaration
public PositionIntent? PositionIntent { get; set; }
Property Value
Type Description
System.Nullable<PositionIntent>
| Improve this Doc View Source

Quantity

Gets the new order quantity.

Declaration
public OrderQuantity Quantity { get; }
Property Value
Type Description
Alpaca.Markets.OrderQuantity
| Improve this Doc View Source

Side

Gets the new order side (buy or sell).

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

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>
| Improve this Doc View Source

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>
| Improve this Doc View Source

StopPrice

Gets or sets the new order stop price.

Declaration
public Decimal? StopPrice { get; set; }
Property Value
Type Description
System.Nullable<Decimal>
| Improve this Doc View Source

Symbol

Gets the new order asset symbol.

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

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>
| Improve this Doc View Source

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>
| Improve this Doc View Source

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>
| Improve this Doc View Source

Type

Gets the new order type.

Declaration
public OrderType Type { get; }
Property Value
Type Description
OrderType
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX