Class LimitOrder
A limit order is an order to buy or sell at a specified price or better.
Inherited Members
Namespace: Alpaca.Markets
Assembly: Alpaca.Markets.dll
Syntax
public sealed class LimitOrder : SimpleOrderBaseRemarks
See Alpaca Order Documentation for more information.
Properties
| Improve this Doc View SourceLimitPrice
Gets or sets the new order limit price.
Declaration
public Decimal LimitPrice { get; }Property Value
| Type | Description | 
|---|---|
| Decimal | 
Methods
| Improve this Doc View SourceBuy(String, OrderQuantity, Decimal)
Creates new buy market order using specified symbol and quantity.
Declaration
public static LimitOrder Buy(String symbol, OrderQuantity quantity, Decimal limitPrice)Parameters
| Type | Name | Description | 
|---|---|---|
| String | symbol | Order asset symbol. | 
| Alpaca.Markets.OrderQuantity | quantity | Order quantity. | 
| Decimal | limitPrice | Order limit price. | 
Returns
| Type | Description | 
|---|---|
| LimitOrder | The new LimitOrder object instance. | 
OneCancelsOther(Decimal)
Creates a new instance of the OneCancelsOtherOrder order from the current order.
Declaration
public OneCancelsOtherOrder OneCancelsOther(Decimal stopLossStopPrice)Parameters
| Type | Name | Description | 
|---|---|---|
| Decimal | stopLossStopPrice | Stop loss order stop price. | 
Returns
| Type | Description | 
|---|---|
| OneCancelsOtherOrder | New advanced order representing pair of original order and stop loss order. | 
OneCancelsOther(Decimal, Decimal)
Creates a new instance of the OneCancelsOtherOrder order from the current order.
Declaration
public OneCancelsOtherOrder OneCancelsOther(Decimal stopLossStopPrice, Decimal stopLossLimitPrice)Parameters
| Type | Name | Description | 
|---|---|---|
| Decimal | stopLossStopPrice | Stop loss order stop price. | 
| Decimal | stopLossLimitPrice | Stop loss order limit price. | 
Returns
| Type | Description | 
|---|---|
| OneCancelsOtherOrder | New advanced order representing pair of original order and stop loss order. | 
Sell(String, OrderQuantity, Decimal)
Creates new sell market order using specified symbol and quantity.
Declaration
public static LimitOrder Sell(String symbol, OrderQuantity quantity, Decimal limitPrice)Parameters
| Type | Name | Description | 
|---|---|---|
| String | symbol | Order asset symbol. | 
| Alpaca.Markets.OrderQuantity | quantity | Order quantity. | 
| Decimal | limitPrice | Order limit price. | 
Returns
| Type | Description | 
|---|---|
| LimitOrder | The new LimitOrder object instance. |