Skip to content

Commit

Permalink
Add optional PositionSide for TerminalLink
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin-Molinero committed Feb 6, 2024
1 parent 711a7b4 commit ae8629a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Common/Orders/TerminalLinkOrderProperties.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,16 @@ public class TerminalLinkOrderProperties : OrderProperties
public StrategyParameters Strategy { get; set; }

/// <summary>
/// Whether to include the position side in the order direction (buy-to-open, sell-to-close, etc.) instead of the default (buy, sell)
/// Whether to automatically include the position side in the order direction (buy-to-open, sell-to-close, etc.) instead of the default (buy, sell)
/// </summary>
public bool EnablePositionSide { get; set; }

/// <summary>
/// Can optionally specify the position side in the order direction (buy-to-open, sell-to-close, etc.) instead of the default (buy, sell)
/// </summary>
/// <remarks>Has precedence over <see cref="EnablePositionSide"/></remarks>
public OrderPosition? PositionSide { get; set; }

/// <summary>
/// Models an EMSX order strategy parameter
/// </summary>
Expand Down

0 comments on commit ae8629a

Please sign in to comment.