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