Skip to content

Commit

Permalink
Added constructor to initialize USResident flag (#8526)
Browse files Browse the repository at this point in the history
  • Loading branch information
JosueNina authored Jan 13, 2025
1 parent af7a2cf commit f689826
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Common/Orders/Fees/TradeStationFeeModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,19 @@ public class TradeStationFeeModel : FeeModel
/// <value>
/// <c>true</c> if the entity or person is a US resident; otherwise, <c>false</c>.
/// </value>
public bool USResident { get; set; } = true;
public bool USResident { get; set; }

/// <summary>
/// Initializes a new instance of the <see cref="TradeStationFeeModel"/> class.
/// </summary>
/// <param name="usResident">
/// A boolean value indicating whether the entity or person is a US resident.
/// Default is <c>true</c>.
/// </param>
public TradeStationFeeModel(bool usResident = true)
{
USResident = usResident;
}

/// <summary>
/// Calculates the order fee based on the security type and order parameters.
Expand Down

0 comments on commit f689826

Please sign in to comment.