Class OrderSideExtensions
Set of extensions methods for creating the OrderBase inheritors.
Inheritance
Inherited Members
Namespace: Alpaca.Markets.Extensions
Assembly: Alpaca.Markets.Extensions.dll
Syntax
public static class OrderSideExtensions
Methods
| Improve this Doc View SourceBracket(OrderSide, String, OrderQuantity, Decimal, Decimal)
Creates a new instance of the BracketOrder order using specified side, symbol, quantity, take profit, and stop loss prices.
Declaration
public static BracketOrder Bracket(this OrderSide orderSide, String symbol, OrderQuantity quantity, Decimal takeProfitLimitPrice, Decimal stopLossStopPrice)
Parameters
Type | Name | Description |
---|---|---|
OrderSide | orderSide | Order side (buy or sell). |
String | symbol | Order asset name. |
Alpaca.Markets.OrderQuantity | quantity | Order quantity. |
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(OrderSide, String, OrderQuantity, Decimal, Decimal, Decimal)
Creates a new instance of the BracketOrder order using specified side, symbol, quantity, take profit, and stop loss prices.
Declaration
public static BracketOrder Bracket(this OrderSide orderSide, String symbol, OrderQuantity quantity, Decimal takeProfitLimitPrice, Decimal stopLossStopPrice, Decimal stopLossLimitPrice)
Parameters
Type | Name | Description |
---|---|---|
OrderSide | orderSide | Order side (buy or sell). |
String | symbol | Order asset name. |
Alpaca.Markets.OrderQuantity | quantity | Order quantity. |
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. |