Show / Hide Table of Contents

Class Bracket

Set of factory methods for creating the BracketOrder instances.

Inheritance
System.Object
Bracket
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.Extensions
Assembly: Alpaca.Markets.Extensions.dll
Syntax
public static class Bracket

Methods

| Improve this Doc View Source

Buy(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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX