Skip to content

Commit

Permalink
Add optional PositionSide for TerminalLink (#7762)
Browse files Browse the repository at this point in the history
* Add optional PositionSide for TerminalLink

* Minor rename
  • Loading branch information
Martin-Molinero authored Feb 6, 2024
1 parent 711a7b4 commit 379e2d3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Common/Orders/TerminalLinkOrderProperties.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,15 @@ 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; }
public bool AutomaticPositionSides { 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="AutomaticPositionSides"/></remarks>
public OrderPosition? PositionSide { get; set; }

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

0 comments on commit 379e2d3

Please sign in to comment.