Class SimpleOrderBase
Encapsulates base data for ordinal order types, never used directly by any code.
Inheritance
Inherited Members
Namespace: Alpaca.Markets
Assembly: Alpaca.Markets.dll
Syntax
public abstract class SimpleOrderBase : OrderBaseConstructors
| Improve this Doc View SourceSimpleOrderBase(String, OrderQuantity, OrderSide, OrderType)
Creates new instance of the SimpleOrderBase class.
Declaration
protected SimpleOrderBase(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). | 
Methods
| Improve this Doc View SourceBracket(Decimal, Decimal)
Creates a new instance of the BracketOrder order from the current order.
Declaration
public BracketOrder Bracket(Decimal takeProfitLimitPrice, Decimal stopLossStopPrice)Parameters
| Type | Name | Description | 
|---|---|---|
| Decimal | takeProfitLimitPrice | Take profit order limit price. | 
| Decimal | stopLossStopPrice | Stop loss order stop price. | 
Returns
| Type | Description | 
|---|---|
| BracketOrder | New advanced order representing an original order plus pair of take profit and stop loss orders. | 
Bracket(Decimal, Decimal, Decimal)
Creates a new instance of the BracketOrder order from the current order.
Declaration
public BracketOrder Bracket(Decimal takeProfitLimitPrice, Decimal stopLossStopPrice, Decimal stopLossLimitPrice)Parameters
| Type | Name | Description | 
|---|---|---|
| Decimal | takeProfitLimitPrice | Take profit order limit price. | 
| Decimal | stopLossStopPrice | Stop loss order stop price. | 
| Decimal | stopLossLimitPrice | Stop loss order limit price. | 
Returns
| Type | Description | 
|---|---|
| BracketOrder | New advanced order representing an original order plus pair of take profit and stop loss orders. | 
StopLoss(Decimal)
Creates a new instance of the StopLossOrder order from the current order.
Declaration
public StopLossOrder StopLoss(Decimal stopLossStopPrice)Parameters
| Type | Name | Description | 
|---|---|---|
| Decimal | stopLossStopPrice | Stop loss order stop price. | 
Returns
| Type | Description | 
|---|---|
| StopLossOrder | New advanced order representing pair of original order and stop loss order. | 
StopLoss(Decimal, Decimal)
Creates a new instance of the StopLossOrder order from the current order.
Declaration
public StopLossOrder StopLoss(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 | 
|---|---|
| StopLossOrder | New advanced order representing pair of original order and stop loss order. | 
TakeProfit(Decimal)
Creates a new instance of the TakeProfitOrder order from the current order.
Declaration
public TakeProfitOrder TakeProfit(Decimal takeProfitLimitPrice)Parameters
| Type | Name | Description | 
|---|---|---|
| Decimal | takeProfitLimitPrice | Take profit order limit price. | 
Returns
| Type | Description | 
|---|---|
| TakeProfitOrder | New advanced order representing pair of original order and take profit order. |