Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Common/Orders/TerminalLinkOrderProperties.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class TerminalLinkOrderProperties : OrderProperties
{
/// <summary>
/// Custom EMSX fields to send with the order. The key is the EMSX element name
/// and the value is the element value, e.g. AdditionalProperties["EMSX_CFD_FLAG"] = "1"
/// and the value is the element value, e.g. AdditionalProperties["EMSX_CFD_FLAG"] = "Y"
/// </summary>
/// <remarks>Starts empty. Python cannot assign a plain dict to it, since pythonnet has no
/// conversion for it; add the entries one by one, bulk load them from a dict with update(),
Expand Down Expand Up @@ -106,8 +106,8 @@ public class TerminalLinkOrderProperties : OrderProperties
/// </summary>
public bool IsCfdTrade
{
get { return AdditionalProperties != null && AdditionalProperties.TryGetValue("EMSX_CFD_FLAG", out var flag) && flag == "1"; }
set { SetTag("EMSX_CFD_FLAG", value ? "1" : null); }
get { return AdditionalProperties != null && AdditionalProperties.TryGetValue("EMSX_CFD_FLAG", out var flag) && flag == "Y"; }
set { SetTag("EMSX_CFD_FLAG", value ? "Y" : null); }
}

/// <summary>
Expand Down
Loading