Skip to content

Commit

Permalink
Minor brokerage setup handler message improvement (#7700)
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin-Molinero authored Jan 17, 2024
1 parent adfb594 commit fa329a9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Engine/Setup/BrokerageSetupHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -484,8 +484,14 @@ private bool GetOrAddUnrequestedSecurity(IAlgorithm algorithm, Symbol symbol, Se
{
// let's just send the message once
_notifiedUniverseSettingsUsed = true;

var leverageMsg = $" Leverage = {leverage};";
if (leverage == Security.NullLeverage)
{
leverageMsg = $" Leverage = default;";
}
algorithm.Debug($"Will use UniverseSettings for automatically added securities for open orders and holdings. UniverseSettings:" +
$" Resolution = {resolution}; Leverage = {leverage}; FillForward = {fillForward}; ExtendedHours = {extendedHours}");
$" Resolution = {resolution};{leverageMsg} FillForward = {fillForward}; ExtendedHours = {extendedHours}");
}

Log.Trace("BrokerageSetupHandler.Setup(): Adding unrequested security: " + symbol.Value);
Expand Down

0 comments on commit fa329a9

Please sign in to comment.