quantconnect-stubs 17397__py3-none-any.whl → 17412__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. Common/Data/Consolidators/__init__.pyi +1 -1
  2. QuantConnect/Algorithm/Framework/Alphas/__init__.pyi +18 -18
  3. QuantConnect/Algorithm/Framework/Execution/__init__.pyi +2 -2
  4. QuantConnect/Algorithm/Framework/Portfolio/__init__.pyi +14 -14
  5. QuantConnect/Algorithm/Framework/Selection/__init__.pyi +3 -3
  6. QuantConnect/Algorithm/__init__.pyi +365 -310
  7. QuantConnect/AlgorithmFactory/Python/Wrappers/__init__.pyi +12 -11
  8. QuantConnect/Api/Serialization/__init__.pyi +1 -3
  9. QuantConnect/Api/__init__.pyi +67 -8
  10. QuantConnect/Benchmarks/__init__.pyi +1 -1
  11. QuantConnect/Brokerages/Authentication/__init__.pyi +10 -2
  12. QuantConnect/Brokerages/LevelOneOrderBook/__init__.pyi +6 -5
  13. QuantConnect/Brokerages/__init__.pyi +82 -11
  14. QuantConnect/Commands/__init__.pyi +3 -2
  15. QuantConnect/Data/Auxiliary/__init__.pyi +13 -13
  16. QuantConnect/Data/Common/__init__.pyi +1 -1
  17. QuantConnect/Data/Custom/Tiingo/__init__.pyi +2 -1
  18. QuantConnect/Data/Fundamental/__init__.pyi +11 -12
  19. QuantConnect/Data/Market/__init__.pyi +42 -42
  20. QuantConnect/Data/UniverseSelection/__init__.pyi +29 -29
  21. QuantConnect/Data/__init__.pyi +44 -45
  22. QuantConnect/DataSource/__init__.pyi +7 -7
  23. QuantConnect/Indicators/__init__.pyi +238 -98
  24. QuantConnect/Interfaces/__init__.pyi +24 -23
  25. QuantConnect/Lean/Engine/DataFeeds/Enumerators/__init__.pyi +1 -1
  26. QuantConnect/Lean/Engine/DataFeeds/Queues/__init__.pyi +2 -1
  27. QuantConnect/Lean/Engine/DataFeeds/WorkScheduling/__init__.pyi +3 -2
  28. QuantConnect/Lean/Engine/DataFeeds/__init__.pyi +19 -19
  29. QuantConnect/Lean/Engine/HistoricalData/__init__.pyi +1 -1
  30. QuantConnect/Lean/Engine/Results/__init__.pyi +0 -38
  31. QuantConnect/Notifications/__init__.pyi +1 -3
  32. QuantConnect/Optimizer/Parameters/__init__.pyi +1 -3
  33. QuantConnect/Orders/Fees/__init__.pyi +35 -0
  34. QuantConnect/Orders/__init__.pyi +75 -28
  35. QuantConnect/Python/__init__.pyi +1 -1
  36. QuantConnect/Report/__init__.pyi +3 -5
  37. QuantConnect/Research/__init__.pyi +17 -16
  38. QuantConnect/Scheduling/__init__.pyi +17 -17
  39. QuantConnect/Securities/Cfd/__init__.pyi +2 -2
  40. QuantConnect/Securities/Crypto/__init__.pyi +2 -2
  41. QuantConnect/Securities/CryptoFuture/__init__.pyi +1 -1
  42. QuantConnect/Securities/Equity/__init__.pyi +1 -1
  43. QuantConnect/Securities/Forex/__init__.pyi +1 -1
  44. QuantConnect/Securities/Future/__init__.pyi +8 -8
  45. QuantConnect/Securities/FutureOption/__init__.pyi +9 -9
  46. QuantConnect/Securities/Index/__init__.pyi +2 -2
  47. QuantConnect/Securities/IndexOption/__init__.pyi +3 -3
  48. QuantConnect/Securities/Option/StrategyMatcher/__init__.pyi +6 -6
  49. QuantConnect/Securities/Option/__init__.pyi +54 -54
  50. QuantConnect/Securities/Positions/__init__.pyi +6 -6
  51. QuantConnect/Securities/__init__.pyi +80 -81
  52. QuantConnect/Statistics/__init__.pyi +2 -2
  53. QuantConnect/Util/__init__.pyi +36 -37
  54. QuantConnect/__init__.pyi +69 -68
  55. System/ComponentModel/DataAnnotations/__init__.pyi +1 -1
  56. System/ComponentModel/__init__.pyi +1 -1
  57. System/IO/__init__.pyi +12 -0
  58. System/Threading/__init__.pyi +3 -3
  59. {quantconnect_stubs-17397.dist-info → quantconnect_stubs-17412.dist-info}/METADATA +1 -1
  60. {quantconnect_stubs-17397.dist-info → quantconnect_stubs-17412.dist-info}/RECORD +62 -62
  61. {quantconnect_stubs-17397.dist-info → quantconnect_stubs-17412.dist-info}/WHEEL +0 -0
  62. {quantconnect_stubs-17397.dist-info → quantconnect_stubs-17412.dist-info}/top_level.txt +0 -0
QuantConnect/__init__.pyi CHANGED
@@ -39,10 +39,8 @@ import System.Threading
39
39
  import System.Threading.Tasks
40
40
  import System.Timers
41
41
 
42
- JsonConverter = typing.Any
43
42
  QuantConnect_Symbol = typing.Any
44
43
  DateTimeZone = typing.Any
45
- IsoDateTimeConverter = typing.Any
46
44
  QuantConnect_SecurityIdentifier = typing.Any
47
45
  ZipArchiveMode = typing.Any
48
46
  CompressionLevel = typing.Any
@@ -200,7 +198,7 @@ class Field(System.Object):
200
198
  """Gets a selector that selectors the Volume value"""
201
199
 
202
200
 
203
- class DefaultConverter(JsonConverter):
201
+ class DefaultConverter:
204
202
  """Helper json converter to use the default json converter, breaking inheritance json converter"""
205
203
 
206
204
  @property
@@ -680,7 +678,7 @@ class SecurityIdentifier(System.Object, System.IEquatable[QuantConnect_SecurityI
680
678
  ...
681
679
 
682
680
  @staticmethod
683
- def ticker(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], date: typing.Union[datetime.datetime, datetime.date]) -> str:
681
+ def ticker(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], date: typing.Union[datetime.datetime, datetime.date]) -> str:
684
682
  """
685
683
  For the given symbol will resolve the ticker it used at the requested date
686
684
 
@@ -807,7 +805,7 @@ class Symbol(System.Object, System.IEquatable[QuantConnect_Symbol], System.IComp
807
805
  ...
808
806
 
809
807
  @overload
810
- def __eq__(self, right: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> bool:
808
+ def __eq__(self, right: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> bool:
811
809
  """
812
810
  Equals operator
813
811
 
@@ -817,7 +815,7 @@ class Symbol(System.Object, System.IEquatable[QuantConnect_Symbol], System.IComp
817
815
  ...
818
816
 
819
817
  @overload
820
- def __eq__(self, right: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> bool:
818
+ def __eq__(self, right: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> bool:
821
819
  """
822
820
  Equals operator
823
821
 
@@ -858,7 +856,7 @@ class Symbol(System.Object, System.IEquatable[QuantConnect_Symbol], System.IComp
858
856
  ...
859
857
 
860
858
  @overload
861
- def __ne__(self, right: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> bool:
859
+ def __ne__(self, right: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> bool:
862
860
  """
863
861
  Not equals operator
864
862
 
@@ -868,7 +866,7 @@ class Symbol(System.Object, System.IEquatable[QuantConnect_Symbol], System.IComp
868
866
  ...
869
867
 
870
868
  @overload
871
- def __ne__(self, right: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> bool:
869
+ def __ne__(self, right: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> bool:
872
870
  """
873
871
  Not equals operator
874
872
 
@@ -908,7 +906,7 @@ class Symbol(System.Object, System.IEquatable[QuantConnect_Symbol], System.IComp
908
906
 
909
907
  @staticmethod
910
908
  @overload
911
- def create_base(base_type: typing.Any, underlying: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], market: str = None) -> QuantConnect.Symbol:
909
+ def create_base(base_type: typing.Any, underlying: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], market: str = None) -> QuantConnect.Symbol:
912
910
  """
913
911
  Creates a new Symbol for custom data. This method allows for the creation of a new Base Symbol
914
912
  using the first ticker and the first traded date from the provided underlying Symbol. This avoids
@@ -927,7 +925,7 @@ class Symbol(System.Object, System.IEquatable[QuantConnect_Symbol], System.IComp
927
925
 
928
926
  @staticmethod
929
927
  @overload
930
- def create_base(base_type: typing.Type, underlying: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], market: str = None) -> QuantConnect.Symbol:
928
+ def create_base(base_type: typing.Type, underlying: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], market: str = None) -> QuantConnect.Symbol:
931
929
  """
932
930
  Creates a new Symbol for custom data. This method allows for the creation of a new Base Symbol
933
931
  using the first ticker and the first traded date from the provided underlying Symbol. This avoids
@@ -946,7 +944,7 @@ class Symbol(System.Object, System.IEquatable[QuantConnect_Symbol], System.IComp
946
944
 
947
945
  @staticmethod
948
946
  @overload
949
- def create_canonical_option(underlying_symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], market: str = None, alias: str = None) -> QuantConnect.Symbol:
947
+ def create_canonical_option(underlying_symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], market: str = None, alias: str = None) -> QuantConnect.Symbol:
950
948
  """
951
949
  Simple method to create the canonical option symbol for any given underlying symbol
952
950
 
@@ -960,7 +958,7 @@ class Symbol(System.Object, System.IEquatable[QuantConnect_Symbol], System.IComp
960
958
 
961
959
  @staticmethod
962
960
  @overload
963
- def create_canonical_option(underlying_symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], target_option: str, market: str = None, alias: str = None) -> QuantConnect.Symbol:
961
+ def create_canonical_option(underlying_symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], target_option: str, market: str = None, alias: str = None) -> QuantConnect.Symbol:
964
962
  """
965
963
  Simple method to create the canonical option symbol for any given underlying symbol
966
964
 
@@ -1008,7 +1006,7 @@ class Symbol(System.Object, System.IEquatable[QuantConnect_Symbol], System.IComp
1008
1006
 
1009
1007
  @staticmethod
1010
1008
  @overload
1011
- def create_option(underlying_symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], market: str, style: QuantConnect.OptionStyle, right: QuantConnect.OptionRight, strike: float, expiry: typing.Union[datetime.datetime, datetime.date], alias: str = None) -> QuantConnect.Symbol:
1009
+ def create_option(underlying_symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], market: str, style: QuantConnect.OptionStyle, right: QuantConnect.OptionRight, strike: float, expiry: typing.Union[datetime.datetime, datetime.date], alias: str = None) -> QuantConnect.Symbol:
1012
1010
  """
1013
1011
  Provides a convenience method for creating an option Symbol using SecurityIdentifier.
1014
1012
 
@@ -1026,7 +1024,7 @@ class Symbol(System.Object, System.IEquatable[QuantConnect_Symbol], System.IComp
1026
1024
 
1027
1025
  @staticmethod
1028
1026
  @overload
1029
- def create_option(underlying_symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], target_option: str, market: str, style: QuantConnect.OptionStyle, right: QuantConnect.OptionRight, strike: float, expiry: typing.Union[datetime.datetime, datetime.date], alias: str = None) -> QuantConnect.Symbol:
1027
+ def create_option(underlying_symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], target_option: str, market: str, style: QuantConnect.OptionStyle, right: QuantConnect.OptionRight, strike: float, expiry: typing.Union[datetime.datetime, datetime.date], alias: str = None) -> QuantConnect.Symbol:
1030
1028
  """
1031
1029
  Provides a convenience method for creating an option Symbol using SecurityIdentifier.
1032
1030
 
@@ -1045,7 +1043,7 @@ class Symbol(System.Object, System.IEquatable[QuantConnect_Symbol], System.IComp
1045
1043
 
1046
1044
  @staticmethod
1047
1045
  @overload
1048
- def create_option(sid: QuantConnect.SecurityIdentifier, value: str, underlying: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract] = None) -> QuantConnect.Symbol:
1046
+ def create_option(sid: QuantConnect.SecurityIdentifier, value: str, underlying: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security] = None) -> QuantConnect.Symbol:
1049
1047
  """
1050
1048
  Provides a convenience method for creating an option Symbol from its SecurityIdentifier and alias.
1051
1049
 
@@ -1071,7 +1069,7 @@ class Symbol(System.Object, System.IEquatable[QuantConnect_Symbol], System.IComp
1071
1069
  ...
1072
1070
 
1073
1071
  @overload
1074
- def equals(self, other: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> bool:
1072
+ def equals(self, other: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> bool:
1075
1073
  """
1076
1074
  Indicates whether the current object is equal to another object of the same type.
1077
1075
 
@@ -1081,7 +1079,7 @@ class Symbol(System.Object, System.IEquatable[QuantConnect_Symbol], System.IComp
1081
1079
  ...
1082
1080
 
1083
1081
  @staticmethod
1084
- def get_alias(security_identifier: QuantConnect.SecurityIdentifier, underlying: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract] = None) -> str:
1082
+ def get_alias(security_identifier: QuantConnect.SecurityIdentifier, underlying: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security] = None) -> str:
1085
1083
  """Centralized helper method to resolve alias for a symbol"""
1086
1084
  ...
1087
1085
 
@@ -1095,7 +1093,7 @@ class Symbol(System.Object, System.IEquatable[QuantConnect_Symbol], System.IComp
1095
1093
 
1096
1094
  @staticmethod
1097
1095
  @overload
1098
- def get_option_type_from_underlying(underlying_symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> QuantConnect.SecurityType:
1096
+ def get_option_type_from_underlying(underlying_symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> QuantConnect.SecurityType:
1099
1097
  """
1100
1098
  Determines the SecurityType based on the underlying Symbol's SecurityType
1101
1099
 
@@ -1129,7 +1127,7 @@ class Symbol(System.Object, System.IEquatable[QuantConnect_Symbol], System.IComp
1129
1127
  """Determines whether the symbol has a canonical representation"""
1130
1128
  ...
1131
1129
 
1132
- def has_underlying_symbol(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> bool:
1130
+ def has_underlying_symbol(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> bool:
1133
1131
  """
1134
1132
  Determines if the specified symbol is an underlying of this symbol instance
1135
1133
 
@@ -2140,7 +2138,7 @@ class RealTimeSynchronizedTimer(System.Object):
2140
2138
  ...
2141
2139
 
2142
2140
 
2143
- class SymbolValueJsonConverter(JsonConverter):
2141
+ class SymbolValueJsonConverter:
2144
2142
  """
2145
2143
  Defines a JsonConverter to be used when you only want to serialize
2146
2144
  the Symbol.value property instead of the full Symbol
@@ -2187,7 +2185,7 @@ class DataProviderEventArgs(System.EventArgs, metaclass=abc.ABCMeta):
2187
2185
  """Gets the symbol being processed that generated the event"""
2188
2186
  ...
2189
2187
 
2190
- def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> None:
2188
+ def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> None:
2191
2189
  """
2192
2190
  Initializes a new instance of the DataProviderEventArgs class
2193
2191
 
@@ -2207,7 +2205,7 @@ class InvalidConfigurationDetectedEventArgs(QuantConnect.DataProviderEventArgs):
2207
2205
  """Gets the error message"""
2208
2206
  ...
2209
2207
 
2210
- def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], message: str) -> None:
2208
+ def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], message: str) -> None:
2211
2209
  """
2212
2210
  Initializes a new instance of the InvalidConfigurationDetectedEventArgs class
2213
2211
 
@@ -2225,7 +2223,7 @@ class NumericalPrecisionLimitedEventArgs(QuantConnect.DataProviderEventArgs):
2225
2223
  """Gets the error message"""
2226
2224
  ...
2227
2225
 
2228
- def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], message: str) -> None:
2226
+ def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], message: str) -> None:
2229
2227
  """
2230
2228
  Initializes a new instance of the NumericalPrecisionLimitedEventArgs class
2231
2229
 
@@ -2248,7 +2246,7 @@ class DownloadFailedEventArgs(QuantConnect.DataProviderEventArgs):
2248
2246
  """Gets the error stack trace"""
2249
2247
  ...
2250
2248
 
2251
- def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], message: str, stack_trace: str = ...) -> None:
2249
+ def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], message: str, stack_trace: str = ...) -> None:
2252
2250
  """
2253
2251
  Initializes a new instance of the DownloadFailedEventArgs class
2254
2252
 
@@ -2272,7 +2270,7 @@ class ReaderErrorDetectedEventArgs(QuantConnect.DataProviderEventArgs):
2272
2270
  """Gets the error stack trace"""
2273
2271
  ...
2274
2272
 
2275
- def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], message: str, stack_trace: str = ...) -> None:
2273
+ def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], message: str, stack_trace: str = ...) -> None:
2276
2274
  """
2277
2275
  Initializes a new instance of the ReaderErrorDetectedEventArgs class
2278
2276
 
@@ -2291,7 +2289,7 @@ class StartDateLimitedEventArgs(QuantConnect.DataProviderEventArgs):
2291
2289
  """Gets the error message"""
2292
2290
  ...
2293
2291
 
2294
- def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], message: str) -> None:
2292
+ def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], message: str) -> None:
2295
2293
  """
2296
2294
  Initializes a new instance of the StartDateLimitedEventArgs class
2297
2295
 
@@ -2322,7 +2320,7 @@ class NewTradableDateEventArgs(QuantConnect.DataProviderEventArgs):
2322
2320
  """The last raw security price we have"""
2323
2321
  ...
2324
2322
 
2325
- def __init__(self, date: typing.Union[datetime.datetime, datetime.date], last_base_data: QuantConnect.Data.BaseData, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], last_raw_price: typing.Optional[float]) -> None:
2323
+ def __init__(self, date: typing.Union[datetime.datetime, datetime.date], last_base_data: QuantConnect.Data.BaseData, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], last_raw_price: typing.Optional[float]) -> None:
2326
2324
  """
2327
2325
  Initializes a new instance of the NewTradableDateEventArgs class
2328
2326
 
@@ -2775,7 +2773,7 @@ class TradingCalendar(System.Object):
2775
2773
  ...
2776
2774
 
2777
2775
 
2778
- class SymbolJsonConverter(JsonConverter):
2776
+ class SymbolJsonConverter:
2779
2777
  """
2780
2778
  Defines a JsonConverter to be used when deserializing to
2781
2779
  the Symbol class.
@@ -4363,7 +4361,7 @@ class SymbolRepresentation(System.Object):
4363
4361
  ...
4364
4362
 
4365
4363
  @staticmethod
4366
- def generate_option_ticker(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> str:
4364
+ def generate_option_ticker(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> str:
4367
4365
  """
4368
4366
  Function returns option ticker from IQFeed option ticker
4369
4367
  For example CSCO1220V19 Cisco October Put at 19.00 Expiring on 10/20/12
@@ -4376,7 +4374,7 @@ class SymbolRepresentation(System.Object):
4376
4374
 
4377
4375
  @staticmethod
4378
4376
  @overload
4379
- def generate_option_ticker_osi(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> str:
4377
+ def generate_option_ticker_osi(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> str:
4380
4378
  """
4381
4379
  Returns option symbol ticker in accordance with OSI symbology
4382
4380
  More information can be found at http://www.optionsclearing.com/components/docs/initiatives/symbology/symbology_initiative_v1_8.pdf
@@ -4403,7 +4401,7 @@ class SymbolRepresentation(System.Object):
4403
4401
 
4404
4402
  @staticmethod
4405
4403
  @overload
4406
- def generate_option_ticker_osi_compact(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> str:
4404
+ def generate_option_ticker_osi_compact(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> str:
4407
4405
  """
4408
4406
  Returns option symbol ticker in accordance with OSI symbology
4409
4407
  More information can be found at http://www.optionsclearing.com/components/docs/initiatives/symbology/symbology_initiative_v1_8.pdf
@@ -4532,7 +4530,7 @@ class SymbolRepresentation(System.Object):
4532
4530
  ...
4533
4531
 
4534
4532
 
4535
- class ChartSeriesJsonConverter(JsonConverter):
4533
+ class ChartSeriesJsonConverter:
4536
4534
  """Convert a Chart Series to and from JSON"""
4537
4535
 
4538
4536
  @property
@@ -4666,6 +4664,9 @@ class Market(System.Object):
4666
4664
  INTERACTIVE_BROKERS: str = "interactivebrokers"
4667
4665
  """InteractiveBrokers market"""
4668
4666
 
4667
+ D_YD_X: str = "dydx"
4668
+ """dYdX market"""
4669
+
4669
4670
  @staticmethod
4670
4671
  def add(market: str, identifier: int) -> None:
4671
4672
  """
@@ -4870,7 +4871,7 @@ class Time(System.Object):
4870
4871
  """
4871
4872
  ...
4872
4873
 
4873
- class MonthYearJsonConverter(IsoDateTimeConverter):
4874
+ class MonthYearJsonConverter:
4874
4875
  """Helper method to deserialize month/year"""
4875
4876
 
4876
4877
  def __init__(self) -> None:
@@ -5512,7 +5513,7 @@ class ExtendedDictionary(typing.Generic[QuantConnect_ExtendedDictionary_TKey, Qu
5512
5513
  """
5513
5514
  ...
5514
5515
 
5515
- def check_for_implicitly_created_symbol(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> None:
5516
+ def check_for_implicitly_created_symbol(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> None:
5516
5517
  """
5517
5518
  Checks if the symbol is implicitly created from a string, in which case it is not in the symbol cache,
5518
5519
  and throws a KeyNotFoundException.
@@ -5837,7 +5838,7 @@ class Chart(System.Object):
5837
5838
  ...
5838
5839
 
5839
5840
  @overload
5840
- def __init__(self, name: str, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> None:
5841
+ def __init__(self, name: str, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> None:
5841
5842
  """
5842
5843
  Constructor for a chart
5843
5844
 
@@ -6059,7 +6060,7 @@ class DataDownloaderGetParameters(System.Object):
6059
6060
  def tick_type(self, value: QuantConnect.TickType) -> None:
6060
6061
  ...
6061
6062
 
6062
- def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], resolution: QuantConnect.Resolution, start_utc: typing.Union[datetime.datetime, datetime.date], end_utc: typing.Union[datetime.datetime, datetime.date], tick_type: typing.Optional[QuantConnect.TickType] = None) -> None:
6063
+ def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], resolution: QuantConnect.Resolution, start_utc: typing.Union[datetime.datetime, datetime.date], end_utc: typing.Union[datetime.datetime, datetime.date], tick_type: typing.Optional[QuantConnect.TickType] = None) -> None:
6063
6064
  """
6064
6065
  Initialize model class for passing in parameters for historical data
6065
6066
 
@@ -6842,7 +6843,7 @@ class DataUniverseDownloaderGetParameters(QuantConnect.DataDownloaderGetParamete
6842
6843
  """Gets the underlying symbol associated with the universe."""
6843
6844
  ...
6844
6845
 
6845
- def __init__(self, canonical_symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], start_date: typing.Union[datetime.datetime, datetime.date], end_date: typing.Union[datetime.datetime, datetime.date], security_exchange_hours: QuantConnect.Securities.SecurityExchangeHours = ...) -> None:
6846
+ def __init__(self, canonical_symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], start_date: typing.Union[datetime.datetime, datetime.date], end_date: typing.Union[datetime.datetime, datetime.date], security_exchange_hours: QuantConnect.Securities.SecurityExchangeHours = ...) -> None:
6846
6847
  """
6847
6848
  Initializes a new instance of the DataUniverseDownloaderGetParameters class.
6848
6849
 
@@ -6908,7 +6909,7 @@ class RegressionTestException(System.Exception):
6908
6909
  ...
6909
6910
 
6910
6911
 
6911
- class ScatterChartPointJsonConverter(JsonConverter):
6912
+ class ScatterChartPointJsonConverter:
6912
6913
  """ScatterChartPoint json converter"""
6913
6914
 
6914
6915
  @property
@@ -6957,7 +6958,7 @@ class SymbolCache(System.Object):
6957
6958
  ...
6958
6959
 
6959
6960
  @staticmethod
6960
- def get_ticker(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> str:
6961
+ def get_ticker(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> str:
6961
6962
  """
6962
6963
  Gets the string ticker symbol that is mapped to the specified Symbol
6963
6964
 
@@ -6967,7 +6968,7 @@ class SymbolCache(System.Object):
6967
6968
  ...
6968
6969
 
6969
6970
  @staticmethod
6970
- def set(ticker: str, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> None:
6971
+ def set(ticker: str, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> None:
6971
6972
  """
6972
6973
  Adds a mapping for the specified ticker
6973
6974
 
@@ -6977,7 +6978,7 @@ class SymbolCache(System.Object):
6977
6978
  ...
6978
6979
 
6979
6980
  @staticmethod
6980
- def try_get_symbol(ticker: str, symbol: typing.Optional[typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]]) -> typing.Tuple[bool, typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]]:
6981
+ def try_get_symbol(ticker: str, symbol: typing.Optional[typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]]) -> typing.Tuple[bool, typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]]:
6981
6982
  """
6982
6983
  Gets the Symbol object that is mapped to the specified string ticker symbol
6983
6984
 
@@ -6988,7 +6989,7 @@ class SymbolCache(System.Object):
6988
6989
  ...
6989
6990
 
6990
6991
  @staticmethod
6991
- def try_get_ticker(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], ticker: typing.Optional[str]) -> typing.Tuple[bool, str]:
6992
+ def try_get_ticker(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], ticker: typing.Optional[str]) -> typing.Tuple[bool, str]:
6992
6993
  """
6993
6994
  Gets the string ticker symbol that is mapped to the specified Symbol
6994
6995
 
@@ -7000,7 +7001,7 @@ class SymbolCache(System.Object):
7000
7001
 
7001
7002
  @staticmethod
7002
7003
  @overload
7003
- def try_remove(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> bool:
7004
+ def try_remove(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> bool:
7004
7005
  """
7005
7006
  Removes the mapping for the specified symbol from the cache
7006
7007
 
@@ -7028,7 +7029,7 @@ class Extensions(System.Object):
7028
7029
  """The offset span from the market close to liquidate or exercise a security on the delisting date"""
7029
7030
 
7030
7031
  @staticmethod
7031
- def add(dictionary: QuantConnect.Data.Market.Ticks, key: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], tick: QuantConnect.Data.Market.Tick) -> None:
7032
+ def add(dictionary: QuantConnect.Data.Market.Ticks, key: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], tick: QuantConnect.Data.Market.Tick) -> None:
7032
7033
  """
7033
7034
  Adds the specified Tick to the Ticks collection. If an entry does not exist for the specified key then one will be created.
7034
7035
 
@@ -7039,7 +7040,7 @@ class Extensions(System.Object):
7039
7040
  ...
7040
7041
 
7041
7042
  @staticmethod
7042
- def adjust_symbol_by_offset(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], offset: int) -> QuantConnect.Symbol:
7043
+ def adjust_symbol_by_offset(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], offset: int) -> QuantConnect.Symbol:
7043
7044
  """
7044
7045
  Helper method that will return a back month, with future expiration, future contract based on the given offset
7045
7046
 
@@ -7132,7 +7133,7 @@ class Extensions(System.Object):
7132
7133
 
7133
7134
  @staticmethod
7134
7135
  @overload
7135
- def create_future_chain(algorithm: QuantConnect.Interfaces.IAlgorithm, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], filter: typing.Any, universe_settings: QuantConnect.Data.UniverseSelection.UniverseSettings = None) -> typing.Iterable[QuantConnect.Data.UniverseSelection.Universe]:
7136
+ def create_future_chain(algorithm: QuantConnect.Interfaces.IAlgorithm, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], filter: typing.Any, universe_settings: QuantConnect.Data.UniverseSelection.UniverseSettings = None) -> typing.Iterable[QuantConnect.Data.UniverseSelection.Universe]:
7136
7137
  """
7137
7138
  Creates a FuturesChainUniverse for a given symbol
7138
7139
 
@@ -7145,7 +7146,7 @@ class Extensions(System.Object):
7145
7146
 
7146
7147
  @staticmethod
7147
7148
  @overload
7148
- def create_future_chain(algorithm: QuantConnect.Interfaces.IAlgorithm, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], filter: typing.Callable[[QuantConnect.Securities.FutureFilterUniverse], QuantConnect.Securities.FutureFilterUniverse], universe_settings: QuantConnect.Data.UniverseSelection.UniverseSettings = None) -> typing.Iterable[QuantConnect.Data.UniverseSelection.Universe]:
7149
+ def create_future_chain(algorithm: QuantConnect.Interfaces.IAlgorithm, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], filter: typing.Callable[[QuantConnect.Securities.FutureFilterUniverse], QuantConnect.Securities.FutureFilterUniverse], universe_settings: QuantConnect.Data.UniverseSelection.UniverseSettings = None) -> typing.Iterable[QuantConnect.Data.UniverseSelection.Universe]:
7149
7150
  """
7150
7151
  Creates a FuturesChainUniverse for a given symbol
7151
7152
 
@@ -7158,7 +7159,7 @@ class Extensions(System.Object):
7158
7159
 
7159
7160
  @staticmethod
7160
7161
  @overload
7161
- def create_option_chain(algorithm: QuantConnect.Interfaces.IAlgorithm, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], filter: typing.Any, universe_settings: QuantConnect.Data.UniverseSelection.UniverseSettings = None) -> QuantConnect.Data.UniverseSelection.OptionChainUniverse:
7162
+ def create_option_chain(algorithm: QuantConnect.Interfaces.IAlgorithm, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], filter: typing.Any, universe_settings: QuantConnect.Data.UniverseSelection.UniverseSettings = None) -> QuantConnect.Data.UniverseSelection.OptionChainUniverse:
7162
7163
  """
7163
7164
  Creates a OptionChainUniverse for a given symbol
7164
7165
 
@@ -7172,7 +7173,7 @@ class Extensions(System.Object):
7172
7173
 
7173
7174
  @staticmethod
7174
7175
  @overload
7175
- def create_option_chain(algorithm: QuantConnect.Interfaces.IAlgorithm, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], filter: typing.Callable[[QuantConnect.Securities.OptionFilterUniverse], QuantConnect.Securities.OptionFilterUniverse], universe_settings: QuantConnect.Data.UniverseSelection.UniverseSettings = None) -> QuantConnect.Data.UniverseSelection.OptionChainUniverse:
7176
+ def create_option_chain(algorithm: QuantConnect.Interfaces.IAlgorithm, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], filter: typing.Callable[[QuantConnect.Securities.OptionFilterUniverse], QuantConnect.Securities.OptionFilterUniverse], universe_settings: QuantConnect.Data.UniverseSelection.UniverseSettings = None) -> QuantConnect.Data.UniverseSelection.OptionChainUniverse:
7176
7177
  """
7177
7178
  Creates a OptionChainUniverse for a given symbol
7178
7179
 
@@ -7412,7 +7413,7 @@ class Extensions(System.Object):
7412
7413
  ...
7413
7414
 
7414
7415
  @staticmethod
7415
- def get_delisting_date(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], map_file: QuantConnect.Data.Auxiliary.MapFile = None) -> datetime.datetime:
7416
+ def get_delisting_date(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], map_file: QuantConnect.Data.Auxiliary.MapFile = None) -> datetime.datetime:
7416
7417
  """
7417
7418
  Gets the delisting date for the provided Symbol
7418
7419
 
@@ -7422,7 +7423,7 @@ class Extensions(System.Object):
7422
7423
  ...
7423
7424
 
7424
7425
  @staticmethod
7425
- def get_entry(market_hours_database: QuantConnect.Securities.MarketHoursDatabase, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], data_types: typing.List[typing.Type]) -> QuantConnect.Securities.MarketHoursDatabase.Entry:
7426
+ def get_entry(market_hours_database: QuantConnect.Securities.MarketHoursDatabase, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], data_types: typing.List[typing.Type]) -> QuantConnect.Securities.MarketHoursDatabase.Entry:
7426
7427
  """
7427
7428
  Helper method to get a market hours entry
7428
7429
 
@@ -7540,7 +7541,7 @@ class Extensions(System.Object):
7540
7541
  ...
7541
7542
 
7542
7543
  @staticmethod
7543
- def get_or_add_unrequested_security(algorithm: QuantConnect.Interfaces.IAlgorithm, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], security: typing.Optional[QuantConnect.Securities.Security], on_error: typing.Callable[[typing.Sequence[QuantConnect.SecurityType]], typing.Any] = None) -> typing.Tuple[bool, QuantConnect.Securities.Security]:
7544
+ def get_or_add_unrequested_security(algorithm: QuantConnect.Interfaces.IAlgorithm, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], security: typing.Optional[QuantConnect.Securities.Security], on_error: typing.Callable[[typing.Sequence[QuantConnect.SecurityType]], typing.Any] = None) -> typing.Tuple[bool, QuantConnect.Securities.Security]:
7544
7545
  """
7545
7546
  Gets the security for the specified symbol from the algorithm's securities collection.
7546
7547
  In case the security is not found, it will be created using the IAlgorithm.universe_settings
@@ -7652,7 +7653,7 @@ class Extensions(System.Object):
7652
7653
  ...
7653
7654
 
7654
7655
  @staticmethod
7655
- def get_zero_price_message(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> str:
7656
+ def get_zero_price_message(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> str:
7656
7657
  """Extension method to get security price is 0 messages for users"""
7657
7658
  ...
7658
7659
 
@@ -7721,7 +7722,7 @@ class Extensions(System.Object):
7721
7722
  ...
7722
7723
 
7723
7724
  @staticmethod
7724
- def is_custom_data_type(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], type: typing.Type) -> bool:
7725
+ def is_custom_data_type(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], type: typing.Type) -> bool:
7725
7726
  """
7726
7727
  Determines if certain data type is custom
7727
7728
 
@@ -7769,7 +7770,7 @@ class Extensions(System.Object):
7769
7770
 
7770
7771
  @staticmethod
7771
7772
  @overload
7772
- def is_market_open(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], utc_time: typing.Union[datetime.datetime, datetime.date], extended_market_hours: bool) -> bool:
7773
+ def is_market_open(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], utc_time: typing.Union[datetime.datetime, datetime.date], extended_market_hours: bool) -> bool:
7773
7774
  """
7774
7775
  Helper method to determine if a specific market is open
7775
7776
 
@@ -8076,7 +8077,7 @@ class Extensions(System.Object):
8076
8077
  ...
8077
8078
 
8078
8079
  @staticmethod
8079
- def requires_mapping(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> bool:
8080
+ def requires_mapping(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> bool:
8080
8081
  """
8081
8082
  Determine if this SecurityType requires mapping
8082
8083
 
@@ -8667,7 +8668,7 @@ class Extensions(System.Object):
8667
8668
  ...
8668
8669
 
8669
8670
  @staticmethod
8670
- def try_get_live_subscription_symbol(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], mapped: typing.Optional[typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]]) -> typing.Tuple[bool, typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]]:
8671
+ def try_get_live_subscription_symbol(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], mapped: typing.Optional[typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]]) -> typing.Tuple[bool, typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]]:
8671
8672
  """Helper method to determine symbol for a live subscription"""
8672
8673
  ...
8673
8674
 
@@ -9485,7 +9486,7 @@ class Messages(System.Object):
9485
9486
  ...
9486
9487
 
9487
9488
  @staticmethod
9488
- def zero_price_for_security(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> str:
9489
+ def zero_price_for_security(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> str:
9489
9490
  """
9490
9491
  Returns a string message saying the security does not have an accurate price as it has not yet received
9491
9492
  a bar of data, as well as some recommendations
@@ -9685,7 +9686,7 @@ class Messages(System.Object):
9685
9686
  ...
9686
9687
 
9687
9688
  @staticmethod
9688
- def underlying_sid_does_not_match(sid: QuantConnect.SecurityIdentifier, underlying: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> str:
9689
+ def underlying_sid_does_not_match(sid: QuantConnect.SecurityIdentifier, underlying: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> str:
9689
9690
  ...
9690
9691
 
9691
9692
  class SymbolCache(System.Object):
@@ -9935,7 +9936,7 @@ class Messages(System.Object):
9935
9936
  """Provides user-facing messages for the ReadOnlySecurityValuesCollection class and its consumers or related classes"""
9936
9937
 
9937
9938
  @staticmethod
9938
- def security_values_for_symbol_not_found(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> str:
9939
+ def security_values_for_symbol_not_found(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> str:
9939
9940
  """Returns a string message saying no SecurityValues were found for the given symbol"""
9940
9941
  ...
9941
9942
 
@@ -10401,7 +10402,7 @@ class Messages(System.Object):
10401
10402
  """Provides user-facing messages for the Commands.OrderCommand class and its consumers or related classes"""
10402
10403
 
10403
10404
  @staticmethod
10404
- def command_info(order_type: QuantConnect.Orders.OrderType, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], quantity: float, response: QuantConnect.Orders.OrderResponse) -> str:
10405
+ def command_info(order_type: QuantConnect.Orders.OrderType, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], quantity: float, response: QuantConnect.Orders.OrderResponse) -> str:
10405
10406
  """
10406
10407
  Returns a string message with basic information about a command, such us:
10407
10408
  order type, symbol, quantity and response
@@ -10894,7 +10895,7 @@ class Messages(System.Object):
10894
10895
  """Provides user-facing messages for the Algorithm.Framework.Portfolio.PortfolioTarget class and its consumers or related classes"""
10895
10896
 
10896
10897
  @staticmethod
10897
- def invalid_insight_direction(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], insight_direction: QuantConnect.Algorithm.Framework.Alphas.InsightDirection) -> str:
10898
+ def invalid_insight_direction(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], insight_direction: QuantConnect.Algorithm.Framework.Alphas.InsightDirection) -> str:
10898
10899
  """Returns a string message saying the insight direction is invalid for the given symbol"""
10899
10900
  ...
10900
10901
 
@@ -10904,7 +10905,7 @@ class Messages(System.Object):
10904
10905
  ...
10905
10906
 
10906
10907
  @staticmethod
10907
- def symbol_not_found(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> str:
10908
+ def symbol_not_found(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> str:
10908
10909
  """Returns a string message saying the given symbol was not found in the portfolio"""
10909
10910
  ...
10910
10911
 
@@ -10914,7 +10915,7 @@ class Messages(System.Object):
10914
10915
  ...
10915
10916
 
10916
10917
  @staticmethod
10917
- def unable_to_compute_order_quantity_due_to_null_result(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], result: QuantConnect.Securities.Positions.GetMaximumLotsResult) -> str:
10918
+ def unable_to_compute_order_quantity_due_to_null_result(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], result: QuantConnect.Securities.Positions.GetMaximumLotsResult) -> str:
10918
10919
  """
10919
10920
  Returns a string message saying it was impossible to compute the order quantity of the given symbol. It also
10920
10921
  explains the reason why it was impossible
@@ -11043,7 +11044,7 @@ class Messages(System.Object):
11043
11044
  """String message saying: Cash symbols cannot be null or empty"""
11044
11045
 
11045
11046
  @staticmethod
11046
- def adding_security_symbol_for_cash_currency_feed(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], cash_currency_symbol: str) -> str:
11047
+ def adding_security_symbol_for_cash_currency_feed(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], cash_currency_symbol: str) -> str:
11047
11048
  """
11048
11049
  Returns a string message saying the security symbol is being added for cash currency feed (this comes from the
11049
11050
  given cash currency symbol)
@@ -11370,12 +11371,12 @@ class Messages(System.Object):
11370
11371
  """Provides user-facing messages for the Securities.SecurityManager class and its consumers or related classes"""
11371
11372
 
11372
11373
  @staticmethod
11373
- def symbol_not_found_in_securities(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> str:
11374
+ def symbol_not_found_in_securities(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> str:
11374
11375
  """Returns a string message saying the given symbol was not found in the user security list"""
11375
11376
  ...
11376
11377
 
11377
11378
  @staticmethod
11378
- def unable_to_overwrite_security(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> str:
11379
+ def unable_to_overwrite_security(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> str:
11379
11380
  """Returns a string message saying the given symbol could not be overwritten"""
11380
11381
  ...
11381
11382
 
@@ -11436,7 +11437,7 @@ class Messages(System.Object):
11436
11437
  """Provides user-facing messages for the Securities.SecurityService class and its consumers or related classes"""
11437
11438
 
11438
11439
  @staticmethod
11439
- def symbol_not_found_in_symbol_properties_database(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> str:
11440
+ def symbol_not_found_in_symbol_properties_database(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> str:
11440
11441
  """Returns a string message saying the given Symbol could not be found in the Symbol Properties Database"""
11441
11442
  ...
11442
11443
 
@@ -46,7 +46,7 @@ class ValidationResult(System.Object):
46
46
  ...
47
47
 
48
48
 
49
- class ValidationContext(IServiceProvider):
49
+ class ValidationContext:
50
50
  """This class has no documentation."""
51
51
 
52
52
  @property
@@ -1020,7 +1020,7 @@ class LicenseUsageMode(IntEnum):
1020
1020
  DESIGNTIME = 1
1021
1021
 
1022
1022
 
1023
- class LicenseContext(IServiceProvider):
1023
+ class LicenseContext:
1024
1024
  """This class has no documentation."""
1025
1025
 
1026
1026
  @property