From 9132a0ec87dca1d184c3d4f33db343a6610aeef0 Mon Sep 17 00:00:00 2001 From: Martin Molinero Date: Mon, 15 Apr 2024 14:31:29 -0300 Subject: [PATCH] Adjust GoodTilDate Pep8 - Pep8 adjustment for GoodTilDate, so it behaves like `Expiry` static readonly funcs which will be binded to both snake case and upper constant format, `good_til_date` & `GOOD_TIL_DATE` --- Common/Orders/TimeInForce.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Common/Orders/TimeInForce.cs b/Common/Orders/TimeInForce.cs index 3f4704597002..550ee1d02ac3 100644 --- a/Common/Orders/TimeInForce.cs +++ b/Common/Orders/TimeInForce.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation. * @@ -40,10 +40,7 @@ public abstract class TimeInForce : ITimeInForceHandler /// /// Gets a instance /// - public static TimeInForce GoodTilDate(DateTime expiry) - { - return new GoodTilDateTimeInForce(expiry); - } + public static Func GoodTilDate => (DateTime expiry) => new GoodTilDateTimeInForce(expiry); /// /// Checks if an order is expired