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
@@ -23,7 +23,6 @@ import System.Reflection
23
23
  import System.Threading.Tasks
24
24
 
25
25
  IDynamicMetaObjectProvider = typing.Any
26
- DynamicMetaObject = typing.Any
27
26
  QuantConnect_Data_SubscriptionDataSource = typing.Any
28
27
  QuantConnect_Data_SubscriptionDataConfig = typing.Any
29
28
 
@@ -265,7 +264,7 @@ class SubscriptionDataConfig(System.Object, System.IEquatable[QuantConnect_Data_
265
264
  """The new symbol instance"""
266
265
  ...
267
266
 
268
- def __init__(self, new: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], old: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> None:
267
+ def __init__(self, new: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], old: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> None:
269
268
  """
270
269
  Create an instance of NewSymbolEventArgs
271
270
 
@@ -412,7 +411,7 @@ class SubscriptionDataConfig(System.Object, System.IEquatable[QuantConnect_Data_
412
411
  ...
413
412
 
414
413
  @overload
415
- def __init__(self, object_type: typing.Type, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], resolution: QuantConnect.Resolution, data_time_zone: typing.Any, exchange_time_zone: typing.Any, fill_forward: bool, extended_hours: bool, is_internal_feed: bool, is_custom: bool = False, tick_type: typing.Optional[QuantConnect.TickType] = None, is_filtered_subscription: bool = True, data_normalization_mode: QuantConnect.DataNormalizationMode = ..., data_mapping_mode: QuantConnect.DataMappingMode = ..., contract_depth_offset: int = 0, mapped_config: bool = False) -> None:
414
+ def __init__(self, object_type: typing.Type, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], resolution: QuantConnect.Resolution, data_time_zone: typing.Any, exchange_time_zone: typing.Any, fill_forward: bool, extended_hours: bool, is_internal_feed: bool, is_custom: bool = False, tick_type: typing.Optional[QuantConnect.TickType] = None, is_filtered_subscription: bool = True, data_normalization_mode: QuantConnect.DataNormalizationMode = ..., data_mapping_mode: QuantConnect.DataMappingMode = ..., contract_depth_offset: int = 0, mapped_config: bool = False) -> None:
416
415
  """
417
416
  Constructor for Data Subscriptions
418
417
 
@@ -437,7 +436,7 @@ class SubscriptionDataConfig(System.Object, System.IEquatable[QuantConnect_Data_
437
436
  ...
438
437
 
439
438
  @overload
440
- def __init__(self, config: QuantConnect.Data.SubscriptionDataConfig, object_type: typing.Type = None, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract] = None, resolution: typing.Optional[QuantConnect.Resolution] = None, data_time_zone: typing.Any = None, exchange_time_zone: typing.Any = None, fill_forward: typing.Optional[bool] = None, extended_hours: typing.Optional[bool] = None, is_internal_feed: typing.Optional[bool] = None, is_custom: typing.Optional[bool] = None, tick_type: typing.Optional[QuantConnect.TickType] = None, is_filtered_subscription: typing.Optional[bool] = None, data_normalization_mode: typing.Optional[QuantConnect.DataNormalizationMode] = None, data_mapping_mode: typing.Optional[QuantConnect.DataMappingMode] = None, contract_depth_offset: typing.Optional[int] = None, mapped_config: typing.Optional[bool] = None) -> None:
439
+ def __init__(self, config: QuantConnect.Data.SubscriptionDataConfig, object_type: typing.Type = None, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security] = None, resolution: typing.Optional[QuantConnect.Resolution] = None, data_time_zone: typing.Any = None, exchange_time_zone: typing.Any = None, fill_forward: typing.Optional[bool] = None, extended_hours: typing.Optional[bool] = None, is_internal_feed: typing.Optional[bool] = None, is_custom: typing.Optional[bool] = None, tick_type: typing.Optional[QuantConnect.TickType] = None, is_filtered_subscription: typing.Optional[bool] = None, data_normalization_mode: typing.Optional[QuantConnect.DataNormalizationMode] = None, data_mapping_mode: typing.Optional[QuantConnect.DataMappingMode] = None, contract_depth_offset: typing.Optional[int] = None, mapped_config: typing.Optional[bool] = None) -> None:
441
440
  """
442
441
  Copy constructor with overrides
443
442
 
@@ -1040,7 +1039,7 @@ class Slice(QuantConnect.ExtendedDictionary[QuantConnect.Symbol, typing.Any], ty
1040
1039
  ...
1041
1040
 
1042
1041
  @overload
1043
- def __contains__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> bool:
1042
+ def __contains__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> bool:
1044
1043
  """
1045
1044
  Determines whether this instance contains data for the specified symbol
1046
1045
 
@@ -1050,7 +1049,7 @@ class Slice(QuantConnect.ExtendedDictionary[QuantConnect.Symbol, typing.Any], ty
1050
1049
  ...
1051
1050
 
1052
1051
  @overload
1053
- def __contains__(self, key: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> bool:
1052
+ def __contains__(self, key: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> bool:
1054
1053
  """
1055
1054
  Checks if the dictionary contains the specified key.
1056
1055
 
@@ -1060,7 +1059,7 @@ class Slice(QuantConnect.ExtendedDictionary[QuantConnect.Symbol, typing.Any], ty
1060
1059
  ...
1061
1060
 
1062
1061
  @overload
1063
- def __getitem__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> typing.Union[QuantConnect.Data.Market.TradeBar, QuantConnect.Data.Market.QuoteBar, System.Collections.Generic.List[QuantConnect.Data.Market.Tick], typing.Any]:
1062
+ def __getitem__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> typing.Union[QuantConnect.Data.Market.TradeBar, QuantConnect.Data.Market.QuoteBar, System.Collections.Generic.List[QuantConnect.Data.Market.Tick], typing.Any]:
1064
1063
  """
1065
1064
  Gets the data corresponding to the specified symbol. If the requested data
1066
1065
  is of MarketDataType.TICK, then a List{Tick} will
@@ -1073,7 +1072,7 @@ class Slice(QuantConnect.ExtendedDictionary[QuantConnect.Symbol, typing.Any], ty
1073
1072
  ...
1074
1073
 
1075
1074
  @overload
1076
- def __getitem__(self, key: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> typing.Any:
1075
+ def __getitem__(self, key: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> typing.Any:
1077
1076
  """
1078
1077
  Indexer method for the base dictioanry to access the objects by their symbol.
1079
1078
 
@@ -1135,7 +1134,7 @@ class Slice(QuantConnect.ExtendedDictionary[QuantConnect.Symbol, typing.Any], ty
1135
1134
  ...
1136
1135
 
1137
1136
  @overload
1138
- def __setitem__(self, key: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], value: typing.Any) -> None:
1137
+ def __setitem__(self, key: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], value: typing.Any) -> None:
1139
1138
  """
1140
1139
  Indexer method for the base dictioanry to access the objects by their symbol.
1141
1140
 
@@ -1145,7 +1144,7 @@ class Slice(QuantConnect.ExtendedDictionary[QuantConnect.Symbol, typing.Any], ty
1145
1144
  ...
1146
1145
 
1147
1146
  @overload
1148
- def __setitem__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], value: typing.Union[QuantConnect.Data.Market.TradeBar, QuantConnect.Data.Market.QuoteBar, System.Collections.Generic.List[QuantConnect.Data.Market.Tick], typing.Any]) -> None:
1147
+ def __setitem__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], value: typing.Union[QuantConnect.Data.Market.TradeBar, QuantConnect.Data.Market.QuoteBar, System.Collections.Generic.List[QuantConnect.Data.Market.Tick], typing.Any]) -> None:
1149
1148
  """
1150
1149
  Gets the data corresponding to the specified symbol. If the requested data
1151
1150
  is of MarketDataType.TICK, then a List{Tick} will
@@ -1158,7 +1157,7 @@ class Slice(QuantConnect.ExtendedDictionary[QuantConnect.Symbol, typing.Any], ty
1158
1157
  ...
1159
1158
 
1160
1159
  @overload
1161
- def contains_key(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> bool:
1160
+ def contains_key(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> bool:
1162
1161
  """
1163
1162
  Determines whether this instance contains data for the specified symbol
1164
1163
 
@@ -1168,7 +1167,7 @@ class Slice(QuantConnect.ExtendedDictionary[QuantConnect.Symbol, typing.Any], ty
1168
1167
  ...
1169
1168
 
1170
1169
  @overload
1171
- def contains_key(self, key: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> bool:
1170
+ def contains_key(self, key: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> bool:
1172
1171
  """
1173
1172
  Checks if the dictionary contains the specified key.
1174
1173
 
@@ -1178,7 +1177,7 @@ class Slice(QuantConnect.ExtendedDictionary[QuantConnect.Symbol, typing.Any], ty
1178
1177
  ...
1179
1178
 
1180
1179
  @overload
1181
- def get(self, key: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], value: typing.Any) -> typing.Any:
1180
+ def get(self, key: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], value: typing.Any) -> typing.Any:
1182
1181
  """
1183
1182
  Returns the value for the specified key if key is in dictionary.
1184
1183
 
@@ -1190,7 +1189,7 @@ class Slice(QuantConnect.ExtendedDictionary[QuantConnect.Symbol, typing.Any], ty
1190
1189
  ...
1191
1190
 
1192
1191
  @overload
1193
- def get(self, key: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> typing.Any:
1192
+ def get(self, key: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> typing.Any:
1194
1193
  """
1195
1194
  Returns the value for the specified key if key is in dictionary.
1196
1195
 
@@ -1201,7 +1200,7 @@ class Slice(QuantConnect.ExtendedDictionary[QuantConnect.Symbol, typing.Any], ty
1201
1200
  ...
1202
1201
 
1203
1202
  @overload
1204
- def get(self, type: typing.Any, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> typing.Any:
1203
+ def get(self, type: typing.Any, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> typing.Any:
1205
1204
  """
1206
1205
  Gets the data of the specified symbol and type.
1207
1206
 
@@ -1256,7 +1255,7 @@ class Slice(QuantConnect.ExtendedDictionary[QuantConnect.Symbol, typing.Any], ty
1256
1255
  ...
1257
1256
 
1258
1257
  @overload
1259
- def pop(self, key: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], default_value: typing.Any) -> typing.Any:
1258
+ def pop(self, key: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], default_value: typing.Any) -> typing.Any:
1260
1259
  """
1261
1260
  Removes and returns an element from a dictionary having the given key.
1262
1261
 
@@ -1268,7 +1267,7 @@ class Slice(QuantConnect.ExtendedDictionary[QuantConnect.Symbol, typing.Any], ty
1268
1267
  ...
1269
1268
 
1270
1269
  @overload
1271
- def pop(self, key: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> typing.Any:
1270
+ def pop(self, key: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> typing.Any:
1272
1271
  """
1273
1272
  Removes and returns an element from a dictionary having the given key.
1274
1273
 
@@ -1278,7 +1277,7 @@ class Slice(QuantConnect.ExtendedDictionary[QuantConnect.Symbol, typing.Any], ty
1278
1277
  """
1279
1278
  ...
1280
1279
 
1281
- def remove(self, key: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> bool:
1280
+ def remove(self, key: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> bool:
1282
1281
  """
1283
1282
  Removes the value with the specified key
1284
1283
 
@@ -1288,7 +1287,7 @@ class Slice(QuantConnect.ExtendedDictionary[QuantConnect.Symbol, typing.Any], ty
1288
1287
  ...
1289
1288
 
1290
1289
  @overload
1291
- def setdefault(self, key: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], default_value: typing.Any) -> typing.Any:
1290
+ def setdefault(self, key: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], default_value: typing.Any) -> typing.Any:
1292
1291
  """
1293
1292
  Returns the value of a key (if the key is in dictionary). If not, it inserts key with a value to the dictionary.
1294
1293
 
@@ -1300,7 +1299,7 @@ class Slice(QuantConnect.ExtendedDictionary[QuantConnect.Symbol, typing.Any], ty
1300
1299
  ...
1301
1300
 
1302
1301
  @overload
1303
- def setdefault(self, key: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> typing.Any:
1302
+ def setdefault(self, key: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> typing.Any:
1304
1303
  """
1305
1304
  Returns the value of a key (if the key is in dictionary). If not, it inserts key with a value to the dictionary.
1306
1305
 
@@ -1311,7 +1310,7 @@ class Slice(QuantConnect.ExtendedDictionary[QuantConnect.Symbol, typing.Any], ty
1311
1310
  ...
1312
1311
 
1313
1312
  @overload
1314
- def try_get_value(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], data: typing.Optional[typing.Any]) -> typing.Tuple[bool, typing.Any]:
1313
+ def try_get_value(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], data: typing.Optional[typing.Any]) -> typing.Tuple[bool, typing.Any]:
1315
1314
  """
1316
1315
  Gets the data associated with the specified symbol
1317
1316
 
@@ -1322,7 +1321,7 @@ class Slice(QuantConnect.ExtendedDictionary[QuantConnect.Symbol, typing.Any], ty
1322
1321
  ...
1323
1322
 
1324
1323
  @overload
1325
- def try_get_value(self, key: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], value: typing.Optional[typing.Any]) -> typing.Tuple[bool, typing.Any]:
1324
+ def try_get_value(self, key: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], value: typing.Optional[typing.Any]) -> typing.Tuple[bool, typing.Any]:
1326
1325
  """
1327
1326
  Gets the value associated with the specified key.
1328
1327
 
@@ -1429,7 +1428,7 @@ class HistoryRequest(QuantConnect.Data.BaseDataRequest):
1429
1428
  ...
1430
1429
 
1431
1430
  @overload
1432
- def __init__(self, start_time_utc: typing.Union[datetime.datetime, datetime.date], end_time_utc: typing.Union[datetime.datetime, datetime.date], data_type: typing.Type, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], resolution: QuantConnect.Resolution, exchange_hours: QuantConnect.Securities.SecurityExchangeHours, data_time_zone: typing.Any, fill_forward_resolution: typing.Optional[QuantConnect.Resolution], include_extended_market_hours: bool, is_custom_data: bool, data_normalization_mode: QuantConnect.DataNormalizationMode, tick_type: QuantConnect.TickType, data_mapping_mode: QuantConnect.DataMappingMode = ..., contract_depth_offset: int = 0) -> None:
1431
+ def __init__(self, start_time_utc: typing.Union[datetime.datetime, datetime.date], end_time_utc: typing.Union[datetime.datetime, datetime.date], data_type: typing.Type, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], resolution: QuantConnect.Resolution, exchange_hours: QuantConnect.Securities.SecurityExchangeHours, data_time_zone: typing.Any, fill_forward_resolution: typing.Optional[QuantConnect.Resolution], include_extended_market_hours: bool, is_custom_data: bool, data_normalization_mode: QuantConnect.DataNormalizationMode, tick_type: QuantConnect.TickType, data_mapping_mode: QuantConnect.DataMappingMode = ..., contract_depth_offset: int = 0) -> None:
1433
1432
  """
1434
1433
  Initializes a new instance of the HistoryRequest class from the specified parameters
1435
1434
 
@@ -1464,7 +1463,7 @@ class HistoryRequest(QuantConnect.Data.BaseDataRequest):
1464
1463
  ...
1465
1464
 
1466
1465
  @overload
1467
- def __init__(self, request: QuantConnect.Data.HistoryRequest, new_symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], new_start_time_utc: typing.Union[datetime.datetime, datetime.date], new_end_time_utc: typing.Union[datetime.datetime, datetime.date]) -> None:
1466
+ def __init__(self, request: QuantConnect.Data.HistoryRequest, new_symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], new_start_time_utc: typing.Union[datetime.datetime, datetime.date], new_end_time_utc: typing.Union[datetime.datetime, datetime.date]) -> None:
1468
1467
  """
1469
1468
  Initializes a new instance of the HistoryRequest class with new Symbol, StartTimeUtc, EndTimeUtc
1470
1469
 
@@ -1670,7 +1669,7 @@ class DataAggregatorInitializeParameters(System.Object):
1670
1669
  ...
1671
1670
 
1672
1671
 
1673
- class GetSetPropertyDynamicMetaObject(DynamicMetaObject):
1672
+ class GetSetPropertyDynamicMetaObject:
1674
1673
  """
1675
1674
  Provides an implementation of DynamicMetaObject that uses get/set methods to update
1676
1675
  values in the dynamic object.
@@ -1763,7 +1762,7 @@ class SubscriptionDataConfigList(typing.List[QuantConnect.Data.SubscriptionDataC
1763
1762
  """Assume that the InternalDataFeed is the same for both SubscriptionDataConfig"""
1764
1763
  ...
1765
1764
 
1766
- def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> None:
1765
+ def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> None:
1767
1766
  """
1768
1767
  Default constructor that specifies the symbol that the SubscriptionDataConfig represent
1769
1768
 
@@ -1785,7 +1784,7 @@ class SliceExtensions(System.Object):
1785
1784
 
1786
1785
  @staticmethod
1787
1786
  @overload
1788
- def get(slices: typing.List[QuantConnect.Data.Slice], type: typing.Type, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract] = None) -> typing.Iterable[typing.Any]:
1787
+ def get(slices: typing.List[QuantConnect.Data.Slice], type: typing.Type, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security] = None) -> typing.Iterable[typing.Any]:
1789
1788
  """
1790
1789
  Gets the data dictionaries or points of the requested type in each slice
1791
1790
 
@@ -1798,7 +1797,7 @@ class SliceExtensions(System.Object):
1798
1797
 
1799
1798
  @staticmethod
1800
1799
  @overload
1801
- def get(slices: typing.List[QuantConnect.Data.Slice], symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> typing.Iterable[QuantConnect.Data.Market.TradeBar]:
1800
+ def get(slices: typing.List[QuantConnect.Data.Slice], symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> typing.Iterable[QuantConnect.Data.Market.TradeBar]:
1802
1801
  """
1803
1802
  Gets an enumerable of TradeBar for the given symbol. This method does not verify
1804
1803
  that the specified symbol points to a TradeBar
@@ -1811,7 +1810,7 @@ class SliceExtensions(System.Object):
1811
1810
 
1812
1811
  @staticmethod
1813
1812
  @overload
1814
- def get(slices: typing.List[QuantConnect.Data.Slice], symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], field: typing.Callable[[QuantConnect.Data.BaseData], float]) -> typing.Iterable[float]:
1813
+ def get(slices: typing.List[QuantConnect.Data.Slice], symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], field: typing.Callable[[QuantConnect.Data.BaseData], float]) -> typing.Iterable[float]:
1815
1814
  """
1816
1815
  Gets an enumerable of decimal by accessing the slice for the symbol and then retrieving the specified
1817
1816
  field on each piece of data
@@ -1900,7 +1899,7 @@ class SliceExtensions(System.Object):
1900
1899
  ...
1901
1900
 
1902
1901
  @staticmethod
1903
- def try_get(slice: QuantConnect.Data.Slice, type: typing.Type, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], data: typing.Optional[typing.Any]) -> typing.Tuple[bool, typing.Any]:
1902
+ def try_get(slice: QuantConnect.Data.Slice, type: typing.Type, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], data: typing.Optional[typing.Any]) -> typing.Tuple[bool, typing.Any]:
1904
1903
  """
1905
1904
  Tries to get the data for the specified symbol and type
1906
1905
 
@@ -2076,7 +2075,7 @@ class HistoryRequestFactory(System.Object):
2076
2075
  ...
2077
2076
 
2078
2077
  @overload
2079
- def get_start_time_algo_tz(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], periods: int, resolution: QuantConnect.Resolution, exchange: QuantConnect.Securities.SecurityExchangeHours, data_time_zone: typing.Any, data_type: typing.Type, extended_market_hours: typing.Optional[bool] = None) -> datetime.datetime:
2078
+ def get_start_time_algo_tz(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], periods: int, resolution: QuantConnect.Resolution, exchange: QuantConnect.Securities.SecurityExchangeHours, data_time_zone: typing.Any, data_type: typing.Type, extended_market_hours: typing.Optional[bool] = None) -> datetime.datetime:
2080
2079
  """
2081
2080
  Gets the start time required for the specified bar count in terms of the algorithm's time zone
2082
2081
 
@@ -2093,7 +2092,7 @@ class HistoryRequestFactory(System.Object):
2093
2092
  ...
2094
2093
 
2095
2094
  @overload
2096
- def get_start_time_algo_tz(self, reference_utc_time: typing.Union[datetime.datetime, datetime.date], symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], periods: int, resolution: QuantConnect.Resolution, exchange: QuantConnect.Securities.SecurityExchangeHours, data_time_zone: typing.Any, data_type: typing.Type, extended_market_hours: typing.Optional[bool] = None) -> datetime.datetime:
2095
+ def get_start_time_algo_tz(self, reference_utc_time: typing.Union[datetime.datetime, datetime.date], symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], periods: int, resolution: QuantConnect.Resolution, exchange: QuantConnect.Securities.SecurityExchangeHours, data_time_zone: typing.Any, data_type: typing.Type, extended_market_hours: typing.Optional[bool] = None) -> datetime.datetime:
2097
2096
  """
2098
2097
  Gets the start time required for the specified bar count in terms of the algorithm's time zone
2099
2098
 
@@ -2175,7 +2174,7 @@ class Channel(System.Object):
2175
2174
  """The ticker symbol of the channel"""
2176
2175
  ...
2177
2176
 
2178
- def __init__(self, channel_name: str, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> None:
2177
+ def __init__(self, channel_name: str, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> None:
2179
2178
  """
2180
2179
  Creates an instance of subscription channel
2181
2180
 
@@ -2241,7 +2240,7 @@ class SubscriptionManager(System.Object):
2241
2240
  ...
2242
2241
 
2243
2242
  @overload
2244
- def add(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], resolution: QuantConnect.Resolution, time_zone: typing.Any, exchange_time_zone: typing.Any, is_custom_data: bool = False, fill_forward: bool = True, extended_market_hours: bool = False) -> QuantConnect.Data.SubscriptionDataConfig:
2243
+ def add(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], resolution: QuantConnect.Resolution, time_zone: typing.Any, exchange_time_zone: typing.Any, is_custom_data: bool = False, fill_forward: bool = True, extended_market_hours: bool = False) -> QuantConnect.Data.SubscriptionDataConfig:
2245
2244
  """
2246
2245
  Add Market Data Required (Overloaded method for backwards compatibility).
2247
2246
 
@@ -2258,7 +2257,7 @@ class SubscriptionManager(System.Object):
2258
2257
  ...
2259
2258
 
2260
2259
  @overload
2261
- def add(self, data_type: typing.Type, tick_type: QuantConnect.TickType, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], resolution: QuantConnect.Resolution, data_time_zone: typing.Any, exchange_time_zone: typing.Any, is_custom_data: bool, fill_forward: bool = True, extended_market_hours: bool = False, is_internal_feed: bool = False, is_filtered_subscription: bool = True, data_normalization_mode: QuantConnect.DataNormalizationMode = ...) -> QuantConnect.Data.SubscriptionDataConfig:
2260
+ def add(self, data_type: typing.Type, tick_type: QuantConnect.TickType, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], resolution: QuantConnect.Resolution, data_time_zone: typing.Any, exchange_time_zone: typing.Any, is_custom_data: bool, fill_forward: bool = True, extended_market_hours: bool = False, is_internal_feed: bool = False, is_filtered_subscription: bool = True, data_normalization_mode: QuantConnect.DataNormalizationMode = ...) -> QuantConnect.Data.SubscriptionDataConfig:
2262
2261
  """
2263
2262
  Add Market Data Required - generic data typing support as long as Type implements BaseData.
2264
2263
 
@@ -2282,7 +2281,7 @@ class SubscriptionManager(System.Object):
2282
2281
  ...
2283
2282
 
2284
2283
  @overload
2285
- def add_consolidator(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], py_consolidator: typing.Any) -> None:
2284
+ def add_consolidator(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], py_consolidator: typing.Any) -> None:
2286
2285
  """
2287
2286
  Add a custom python consolidator for the symbol
2288
2287
 
@@ -2292,7 +2291,7 @@ class SubscriptionManager(System.Object):
2292
2291
  ...
2293
2292
 
2294
2293
  @overload
2295
- def add_consolidator(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], consolidator: typing.Union[QuantConnect.Data.Consolidators.IDataConsolidator, QuantConnect.Python.PythonConsolidator, datetime.timedelta], tick_type: typing.Optional[QuantConnect.TickType] = None) -> None:
2294
+ def add_consolidator(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], consolidator: typing.Union[QuantConnect.Data.Consolidators.IDataConsolidator, QuantConnect.Python.PythonConsolidator, datetime.timedelta], tick_type: typing.Optional[QuantConnect.TickType] = None) -> None:
2296
2295
  """
2297
2296
  Add a consolidator for the symbol
2298
2297
 
@@ -2335,7 +2334,7 @@ class SubscriptionManager(System.Object):
2335
2334
  ...
2336
2335
 
2337
2336
  @overload
2338
- def remove_consolidator(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], py_consolidator: typing.Any) -> None:
2337
+ def remove_consolidator(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], py_consolidator: typing.Any) -> None:
2339
2338
  """
2340
2339
  Removes the specified python consolidator for the symbol
2341
2340
 
@@ -2345,7 +2344,7 @@ class SubscriptionManager(System.Object):
2345
2344
  ...
2346
2345
 
2347
2346
  @overload
2348
- def remove_consolidator(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], consolidator: typing.Union[QuantConnect.Data.Consolidators.IDataConsolidator, QuantConnect.Python.PythonConsolidator, datetime.timedelta]) -> None:
2347
+ def remove_consolidator(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], consolidator: typing.Union[QuantConnect.Data.Consolidators.IDataConsolidator, QuantConnect.Python.PythonConsolidator, datetime.timedelta]) -> None:
2349
2348
  """
2350
2349
  Removes the specified consolidator for the symbol
2351
2350
 
@@ -2409,12 +2408,12 @@ class DividendYieldProvider(System.Object, QuantConnect.Data.IDividendYieldModel
2409
2408
  ...
2410
2409
 
2411
2410
  @overload
2412
- def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> None:
2411
+ def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> None:
2413
2412
  """Instantiates a DividendYieldProvider with the specified Symbol"""
2414
2413
  ...
2415
2414
 
2416
2415
  @staticmethod
2417
- def create_for_option(option_symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> QuantConnect.Data.IDividendYieldModel:
2416
+ def create_for_option(option_symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> QuantConnect.Data.IDividendYieldModel:
2418
2417
  """Creates a new instance for the given option symbol"""
2419
2418
  ...
2420
2419
 
@@ -2452,7 +2451,7 @@ class DividendYieldProvider(System.Object, QuantConnect.Data.IDividendYieldModel
2452
2451
  """
2453
2452
  ...
2454
2453
 
2455
- def load_corporate_events(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> typing.List[QuantConnect.Data.BaseData]:
2454
+ def load_corporate_events(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> typing.List[QuantConnect.Data.BaseData]:
2456
2455
  """
2457
2456
  Generate the corporate events from the corporate factor file for the specified symbol
2458
2457
 
@@ -2623,7 +2622,7 @@ class DataQueueHandlerSubscriptionManager(System.Object, System.IDisposable, met
2623
2622
  """
2624
2623
  ...
2625
2624
 
2626
- def is_subscribed(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], tick_type: QuantConnect.TickType) -> bool:
2625
+ def is_subscribed(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], tick_type: QuantConnect.TickType) -> bool:
2627
2626
  """
2628
2627
  Checks if there is existing subscriber for current channel
2629
2628
 
@@ -2941,7 +2940,7 @@ class LeanDataWriter(System.Object):
2941
2940
  """The map file provider instance to use"""
2942
2941
 
2943
2942
  @overload
2944
- def __init__(self, resolution: QuantConnect.Resolution, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], data_directory: str, tick_type: QuantConnect.TickType = ..., data_cache_provider: QuantConnect.Interfaces.IDataCacheProvider = None, write_policy: typing.Optional[QuantConnect.WritePolicy] = None, map_symbol: bool = False) -> None:
2943
+ def __init__(self, resolution: QuantConnect.Resolution, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], data_directory: str, tick_type: QuantConnect.TickType = ..., data_cache_provider: QuantConnect.Interfaces.IDataCacheProvider = None, write_policy: typing.Optional[QuantConnect.WritePolicy] = None, map_symbol: bool = False) -> None:
2945
2944
  """
2946
2945
  Create a new lean data writer to this base data directory.
2947
2946
 
@@ -12,11 +12,11 @@ import QuantConnect.Data.Market
12
12
  import QuantConnect.Data.UniverseSelection
13
13
  import QuantConnect.DataSource
14
14
  import QuantConnect.Orders
15
+ import QuantConnect.Securities
15
16
  import QuantConnect.Util
16
17
  import System
17
18
  import System.Collections.Generic
18
19
 
19
- JsonConverter = typing.Any
20
20
  QuantConnect_DataSource_BrainStockRanking3Day = typing.Any
21
21
  QuantConnect_DataSource_BrainSentimentIndicator7Day = typing.Any
22
22
  QuantConnect_DataSource_BrainStockRanking10Day = typing.Any
@@ -11665,7 +11665,7 @@ class TradingEconomicsIndicator(QuantConnect.Data.BaseData):
11665
11665
  ...
11666
11666
 
11667
11667
 
11668
- class TradingEconomicsDateTimeConverter(JsonConverter):
11668
+ class TradingEconomicsDateTimeConverter:
11669
11669
  """DateTime JSON Converter that handles null value"""
11670
11670
 
11671
11671
  def can_convert(self, object_type: typing.Type) -> bool:
@@ -13525,7 +13525,7 @@ class BenzingaNews(QuantConnect.Data.IndexedBaseData):
13525
13525
  ...
13526
13526
 
13527
13527
 
13528
- class BenzingaNewsJsonConverter(JsonConverter):
13528
+ class BenzingaNewsJsonConverter:
13529
13529
  """
13530
13530
  Helper json converter class used to convert Benzinga news data
13531
13531
  into BenzingaNews
@@ -13546,7 +13546,7 @@ class BenzingaNewsJsonConverter(JsonConverter):
13546
13546
  a different company not associated with the ticker being referenced.
13547
13547
  """
13548
13548
 
13549
- def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract] = None, live_mode: bool = False) -> None:
13549
+ def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security] = None, live_mode: bool = False) -> None:
13550
13550
  """
13551
13551
  Creates a new instance of the json converter
13552
13552
 
@@ -16922,7 +16922,7 @@ class TiingoSymbolMapper(System.Object):
16922
16922
  ...
16923
16923
 
16924
16924
  @staticmethod
16925
- def get_tiingo_ticker(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> str:
16925
+ def get_tiingo_ticker(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> str:
16926
16926
  """Maps a given Symbol instance to it's Tiingo equivalent"""
16927
16927
  ...
16928
16928
 
@@ -17078,13 +17078,13 @@ class TiingoNews(QuantConnect.Data.IndexedBaseData):
17078
17078
  ...
17079
17079
 
17080
17080
 
17081
- class TiingoNewsJsonConverter(JsonConverter):
17081
+ class TiingoNewsJsonConverter:
17082
17082
  """
17083
17083
  Helper json converter class used to convert a list of Tiingo news data
17084
17084
  into List{TiingoNews}
17085
17085
  """
17086
17086
 
17087
- def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract] = None) -> None:
17087
+ def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security] = None) -> None:
17088
17088
  """
17089
17089
  Creates a new instance of the json converter
17090
17090