quantconnect-stubs 17410__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 (58) 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 +332 -308
  7. QuantConnect/AlgorithmFactory/Python/Wrappers/__init__.pyi +10 -10
  8. QuantConnect/Api/Serialization/__init__.pyi +1 -3
  9. QuantConnect/Api/__init__.pyi +34 -5
  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 +11 -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 +43 -44
  22. QuantConnect/DataSource/__init__.pyi +7 -7
  23. QuantConnect/Indicators/__init__.pyi +238 -98
  24. QuantConnect/Interfaces/__init__.pyi +22 -22
  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/Notifications/__init__.pyi +1 -3
  31. QuantConnect/Optimizer/Parameters/__init__.pyi +1 -3
  32. QuantConnect/Orders/__init__.pyi +26 -28
  33. QuantConnect/Python/__init__.pyi +1 -1
  34. QuantConnect/Report/__init__.pyi +3 -5
  35. QuantConnect/Research/__init__.pyi +17 -16
  36. QuantConnect/Scheduling/__init__.pyi +17 -17
  37. QuantConnect/Securities/Cfd/__init__.pyi +2 -2
  38. QuantConnect/Securities/Crypto/__init__.pyi +2 -2
  39. QuantConnect/Securities/CryptoFuture/__init__.pyi +1 -1
  40. QuantConnect/Securities/Equity/__init__.pyi +1 -1
  41. QuantConnect/Securities/Forex/__init__.pyi +1 -1
  42. QuantConnect/Securities/Future/__init__.pyi +8 -8
  43. QuantConnect/Securities/FutureOption/__init__.pyi +9 -9
  44. QuantConnect/Securities/Index/__init__.pyi +2 -2
  45. QuantConnect/Securities/IndexOption/__init__.pyi +3 -3
  46. QuantConnect/Securities/Option/StrategyMatcher/__init__.pyi +6 -6
  47. QuantConnect/Securities/Option/__init__.pyi +54 -54
  48. QuantConnect/Securities/Positions/__init__.pyi +6 -6
  49. QuantConnect/Securities/__init__.pyi +79 -80
  50. QuantConnect/Statistics/__init__.pyi +2 -2
  51. QuantConnect/Util/__init__.pyi +36 -37
  52. QuantConnect/__init__.pyi +66 -68
  53. System/ComponentModel/DataAnnotations/__init__.pyi +1 -1
  54. System/ComponentModel/__init__.pyi +1 -1
  55. {quantconnect_stubs-17410.dist-info → quantconnect_stubs-17412.dist-info}/METADATA +1 -1
  56. {quantconnect_stubs-17410.dist-info → quantconnect_stubs-17412.dist-info}/RECORD +58 -58
  57. {quantconnect_stubs-17410.dist-info → quantconnect_stubs-17412.dist-info}/WHEEL +0 -0
  58. {quantconnect_stubs-17410.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
@@ -4873,7 +4871,7 @@ class Time(System.Object):
4873
4871
  """
4874
4872
  ...
4875
4873
 
4876
- class MonthYearJsonConverter(IsoDateTimeConverter):
4874
+ class MonthYearJsonConverter:
4877
4875
  """Helper method to deserialize month/year"""
4878
4876
 
4879
4877
  def __init__(self) -> None:
@@ -5515,7 +5513,7 @@ class ExtendedDictionary(typing.Generic[QuantConnect_ExtendedDictionary_TKey, Qu
5515
5513
  """
5516
5514
  ...
5517
5515
 
5518
- 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:
5519
5517
  """
5520
5518
  Checks if the symbol is implicitly created from a string, in which case it is not in the symbol cache,
5521
5519
  and throws a KeyNotFoundException.
@@ -5840,7 +5838,7 @@ class Chart(System.Object):
5840
5838
  ...
5841
5839
 
5842
5840
  @overload
5843
- 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:
5844
5842
  """
5845
5843
  Constructor for a chart
5846
5844
 
@@ -6062,7 +6060,7 @@ class DataDownloaderGetParameters(System.Object):
6062
6060
  def tick_type(self, value: QuantConnect.TickType) -> None:
6063
6061
  ...
6064
6062
 
6065
- 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:
6066
6064
  """
6067
6065
  Initialize model class for passing in parameters for historical data
6068
6066
 
@@ -6845,7 +6843,7 @@ class DataUniverseDownloaderGetParameters(QuantConnect.DataDownloaderGetParamete
6845
6843
  """Gets the underlying symbol associated with the universe."""
6846
6844
  ...
6847
6845
 
6848
- 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:
6849
6847
  """
6850
6848
  Initializes a new instance of the DataUniverseDownloaderGetParameters class.
6851
6849
 
@@ -6911,7 +6909,7 @@ class RegressionTestException(System.Exception):
6911
6909
  ...
6912
6910
 
6913
6911
 
6914
- class ScatterChartPointJsonConverter(JsonConverter):
6912
+ class ScatterChartPointJsonConverter:
6915
6913
  """ScatterChartPoint json converter"""
6916
6914
 
6917
6915
  @property
@@ -6960,7 +6958,7 @@ class SymbolCache(System.Object):
6960
6958
  ...
6961
6959
 
6962
6960
  @staticmethod
6963
- 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:
6964
6962
  """
6965
6963
  Gets the string ticker symbol that is mapped to the specified Symbol
6966
6964
 
@@ -6970,7 +6968,7 @@ class SymbolCache(System.Object):
6970
6968
  ...
6971
6969
 
6972
6970
  @staticmethod
6973
- 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:
6974
6972
  """
6975
6973
  Adds a mapping for the specified ticker
6976
6974
 
@@ -6980,7 +6978,7 @@ class SymbolCache(System.Object):
6980
6978
  ...
6981
6979
 
6982
6980
  @staticmethod
6983
- 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]]:
6984
6982
  """
6985
6983
  Gets the Symbol object that is mapped to the specified string ticker symbol
6986
6984
 
@@ -6991,7 +6989,7 @@ class SymbolCache(System.Object):
6991
6989
  ...
6992
6990
 
6993
6991
  @staticmethod
6994
- 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]:
6995
6993
  """
6996
6994
  Gets the string ticker symbol that is mapped to the specified Symbol
6997
6995
 
@@ -7003,7 +7001,7 @@ class SymbolCache(System.Object):
7003
7001
 
7004
7002
  @staticmethod
7005
7003
  @overload
7006
- 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:
7007
7005
  """
7008
7006
  Removes the mapping for the specified symbol from the cache
7009
7007
 
@@ -7031,7 +7029,7 @@ class Extensions(System.Object):
7031
7029
  """The offset span from the market close to liquidate or exercise a security on the delisting date"""
7032
7030
 
7033
7031
  @staticmethod
7034
- 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:
7035
7033
  """
7036
7034
  Adds the specified Tick to the Ticks collection. If an entry does not exist for the specified key then one will be created.
7037
7035
 
@@ -7042,7 +7040,7 @@ class Extensions(System.Object):
7042
7040
  ...
7043
7041
 
7044
7042
  @staticmethod
7045
- 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:
7046
7044
  """
7047
7045
  Helper method that will return a back month, with future expiration, future contract based on the given offset
7048
7046
 
@@ -7135,7 +7133,7 @@ class Extensions(System.Object):
7135
7133
 
7136
7134
  @staticmethod
7137
7135
  @overload
7138
- 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]:
7139
7137
  """
7140
7138
  Creates a FuturesChainUniverse for a given symbol
7141
7139
 
@@ -7148,7 +7146,7 @@ class Extensions(System.Object):
7148
7146
 
7149
7147
  @staticmethod
7150
7148
  @overload
7151
- 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]:
7152
7150
  """
7153
7151
  Creates a FuturesChainUniverse for a given symbol
7154
7152
 
@@ -7161,7 +7159,7 @@ class Extensions(System.Object):
7161
7159
 
7162
7160
  @staticmethod
7163
7161
  @overload
7164
- 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:
7165
7163
  """
7166
7164
  Creates a OptionChainUniverse for a given symbol
7167
7165
 
@@ -7175,7 +7173,7 @@ class Extensions(System.Object):
7175
7173
 
7176
7174
  @staticmethod
7177
7175
  @overload
7178
- 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:
7179
7177
  """
7180
7178
  Creates a OptionChainUniverse for a given symbol
7181
7179
 
@@ -7415,7 +7413,7 @@ class Extensions(System.Object):
7415
7413
  ...
7416
7414
 
7417
7415
  @staticmethod
7418
- 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:
7419
7417
  """
7420
7418
  Gets the delisting date for the provided Symbol
7421
7419
 
@@ -7425,7 +7423,7 @@ class Extensions(System.Object):
7425
7423
  ...
7426
7424
 
7427
7425
  @staticmethod
7428
- 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:
7429
7427
  """
7430
7428
  Helper method to get a market hours entry
7431
7429
 
@@ -7543,7 +7541,7 @@ class Extensions(System.Object):
7543
7541
  ...
7544
7542
 
7545
7543
  @staticmethod
7546
- 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]:
7547
7545
  """
7548
7546
  Gets the security for the specified symbol from the algorithm's securities collection.
7549
7547
  In case the security is not found, it will be created using the IAlgorithm.universe_settings
@@ -7655,7 +7653,7 @@ class Extensions(System.Object):
7655
7653
  ...
7656
7654
 
7657
7655
  @staticmethod
7658
- 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:
7659
7657
  """Extension method to get security price is 0 messages for users"""
7660
7658
  ...
7661
7659
 
@@ -7724,7 +7722,7 @@ class Extensions(System.Object):
7724
7722
  ...
7725
7723
 
7726
7724
  @staticmethod
7727
- 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:
7728
7726
  """
7729
7727
  Determines if certain data type is custom
7730
7728
 
@@ -7772,7 +7770,7 @@ class Extensions(System.Object):
7772
7770
 
7773
7771
  @staticmethod
7774
7772
  @overload
7775
- 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:
7776
7774
  """
7777
7775
  Helper method to determine if a specific market is open
7778
7776
 
@@ -8079,7 +8077,7 @@ class Extensions(System.Object):
8079
8077
  ...
8080
8078
 
8081
8079
  @staticmethod
8082
- 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:
8083
8081
  """
8084
8082
  Determine if this SecurityType requires mapping
8085
8083
 
@@ -8670,7 +8668,7 @@ class Extensions(System.Object):
8670
8668
  ...
8671
8669
 
8672
8670
  @staticmethod
8673
- 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]]:
8674
8672
  """Helper method to determine symbol for a live subscription"""
8675
8673
  ...
8676
8674
 
@@ -9488,7 +9486,7 @@ class Messages(System.Object):
9488
9486
  ...
9489
9487
 
9490
9488
  @staticmethod
9491
- 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:
9492
9490
  """
9493
9491
  Returns a string message saying the security does not have an accurate price as it has not yet received
9494
9492
  a bar of data, as well as some recommendations
@@ -9688,7 +9686,7 @@ class Messages(System.Object):
9688
9686
  ...
9689
9687
 
9690
9688
  @staticmethod
9691
- 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:
9692
9690
  ...
9693
9691
 
9694
9692
  class SymbolCache(System.Object):
@@ -9938,7 +9936,7 @@ class Messages(System.Object):
9938
9936
  """Provides user-facing messages for the ReadOnlySecurityValuesCollection class and its consumers or related classes"""
9939
9937
 
9940
9938
  @staticmethod
9941
- 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:
9942
9940
  """Returns a string message saying no SecurityValues were found for the given symbol"""
9943
9941
  ...
9944
9942
 
@@ -10404,7 +10402,7 @@ class Messages(System.Object):
10404
10402
  """Provides user-facing messages for the Commands.OrderCommand class and its consumers or related classes"""
10405
10403
 
10406
10404
  @staticmethod
10407
- 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:
10408
10406
  """
10409
10407
  Returns a string message with basic information about a command, such us:
10410
10408
  order type, symbol, quantity and response
@@ -10897,7 +10895,7 @@ class Messages(System.Object):
10897
10895
  """Provides user-facing messages for the Algorithm.Framework.Portfolio.PortfolioTarget class and its consumers or related classes"""
10898
10896
 
10899
10897
  @staticmethod
10900
- 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:
10901
10899
  """Returns a string message saying the insight direction is invalid for the given symbol"""
10902
10900
  ...
10903
10901
 
@@ -10907,7 +10905,7 @@ class Messages(System.Object):
10907
10905
  ...
10908
10906
 
10909
10907
  @staticmethod
10910
- 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:
10911
10909
  """Returns a string message saying the given symbol was not found in the portfolio"""
10912
10910
  ...
10913
10911
 
@@ -10917,7 +10915,7 @@ class Messages(System.Object):
10917
10915
  ...
10918
10916
 
10919
10917
  @staticmethod
10920
- 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:
10921
10919
  """
10922
10920
  Returns a string message saying it was impossible to compute the order quantity of the given symbol. It also
10923
10921
  explains the reason why it was impossible
@@ -11046,7 +11044,7 @@ class Messages(System.Object):
11046
11044
  """String message saying: Cash symbols cannot be null or empty"""
11047
11045
 
11048
11046
  @staticmethod
11049
- 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:
11050
11048
  """
11051
11049
  Returns a string message saying the security symbol is being added for cash currency feed (this comes from the
11052
11050
  given cash currency symbol)
@@ -11373,12 +11371,12 @@ class Messages(System.Object):
11373
11371
  """Provides user-facing messages for the Securities.SecurityManager class and its consumers or related classes"""
11374
11372
 
11375
11373
  @staticmethod
11376
- 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:
11377
11375
  """Returns a string message saying the given symbol was not found in the user security list"""
11378
11376
  ...
11379
11377
 
11380
11378
  @staticmethod
11381
- 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:
11382
11380
  """Returns a string message saying the given symbol could not be overwritten"""
11383
11381
  ...
11384
11382
 
@@ -11439,7 +11437,7 @@ class Messages(System.Object):
11439
11437
  """Provides user-facing messages for the Securities.SecurityService class and its consumers or related classes"""
11440
11438
 
11441
11439
  @staticmethod
11442
- 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:
11443
11441
  """Returns a string message saying the given Symbol could not be found in the Symbol Properties Database"""
11444
11442
  ...
11445
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: quantconnect-stubs
3
- Version: 17410
3
+ Version: 17412
4
4
  Summary: Type stubs for QuantConnect's Lean
5
5
  Home-page: https://github.com/QuantConnect/quantconnect-stubs-generator
6
6
  Author: QuantConnect