Show / Hide Table of Contents

Class OrderSideExtensions

Set of extensions methods for creating the OrderBase inheritors.

Inheritance
System.Object
OrderSideExtensions
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 OrderSideExtensions

Methods

| Improve this Doc View Source

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

| Improve this Doc View Source

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.

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