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
@@ -19,8 +19,6 @@ import System
19
19
  import System.Collections.Generic
20
20
  import System.Threading
21
21
 
22
- JsonConverter = typing.Any
23
-
24
22
 
25
23
  class TimeInForce(System.Object, QuantConnect.Interfaces.ITimeInForceHandler, metaclass=abc.ABCMeta):
26
24
  """Time In Force - defines the length of time over which an order will continue working before it is canceled"""
@@ -804,7 +802,7 @@ class SubmitOrderRequest(QuantConnect.Orders.OrderRequest):
804
802
  ...
805
803
 
806
804
  @overload
807
- def __init__(self, order_type: QuantConnect.Orders.OrderType, security_type: QuantConnect.SecurityType, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], quantity: float, stop_price: float, limit_price: float, trigger_price: float, trailing_amount: float, trailing_as_percentage: bool, time: typing.Union[datetime.datetime, datetime.date], tag: str, properties: QuantConnect.Interfaces.IOrderProperties = None, group_order_manager: QuantConnect.Orders.GroupOrderManager = None, asynchronous: bool = False) -> None:
805
+ def __init__(self, order_type: QuantConnect.Orders.OrderType, security_type: QuantConnect.SecurityType, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], quantity: float, stop_price: float, limit_price: float, trigger_price: float, trailing_amount: float, trailing_as_percentage: bool, time: typing.Union[datetime.datetime, datetime.date], tag: str, properties: QuantConnect.Interfaces.IOrderProperties = None, group_order_manager: QuantConnect.Orders.GroupOrderManager = None, asynchronous: bool = False) -> None:
808
806
  """
809
807
  Initializes a new instance of the SubmitOrderRequest class.
810
808
  The OrderRequest.order_id will default to OrderResponseErrorCode.UNABLE_TO_FIND_ORDER
@@ -828,7 +826,7 @@ class SubmitOrderRequest(QuantConnect.Orders.OrderRequest):
828
826
  ...
829
827
 
830
828
  @overload
831
- def __init__(self, order_type: QuantConnect.Orders.OrderType, security_type: QuantConnect.SecurityType, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], quantity: float, stop_price: float, limit_price: float, trigger_price: float, time: typing.Union[datetime.datetime, datetime.date], tag: str, properties: QuantConnect.Interfaces.IOrderProperties = None, group_order_manager: QuantConnect.Orders.GroupOrderManager = None, asynchronous: bool = False) -> None:
829
+ def __init__(self, order_type: QuantConnect.Orders.OrderType, security_type: QuantConnect.SecurityType, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], quantity: float, stop_price: float, limit_price: float, trigger_price: float, time: typing.Union[datetime.datetime, datetime.date], tag: str, properties: QuantConnect.Interfaces.IOrderProperties = None, group_order_manager: QuantConnect.Orders.GroupOrderManager = None, asynchronous: bool = False) -> None:
832
830
  """
833
831
  Initializes a new instance of the SubmitOrderRequest class.
834
832
  The OrderRequest.order_id will default to OrderResponseErrorCode.UNABLE_TO_FIND_ORDER
@@ -850,7 +848,7 @@ class SubmitOrderRequest(QuantConnect.Orders.OrderRequest):
850
848
  ...
851
849
 
852
850
  @overload
853
- def __init__(self, order_type: QuantConnect.Orders.OrderType, security_type: QuantConnect.SecurityType, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], quantity: float, stop_price: float, limit_price: float, time: typing.Union[datetime.datetime, datetime.date], tag: str, properties: QuantConnect.Interfaces.IOrderProperties = None, group_order_manager: QuantConnect.Orders.GroupOrderManager = None, asynchronous: bool = False) -> None:
851
+ def __init__(self, order_type: QuantConnect.Orders.OrderType, security_type: QuantConnect.SecurityType, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], quantity: float, stop_price: float, limit_price: float, time: typing.Union[datetime.datetime, datetime.date], tag: str, properties: QuantConnect.Interfaces.IOrderProperties = None, group_order_manager: QuantConnect.Orders.GroupOrderManager = None, asynchronous: bool = False) -> None:
854
852
  """
855
853
  Initializes a new instance of the SubmitOrderRequest class.
856
854
  The OrderRequest.order_id will default to OrderResponseErrorCode.UNABLE_TO_FIND_ORDER
@@ -1036,7 +1034,7 @@ class Order(System.Object, metaclass=abc.ABCMeta):
1036
1034
  ...
1037
1035
 
1038
1036
  @overload
1039
- def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], quantity: float, time: typing.Union[datetime.datetime, datetime.date], group_order_manager: QuantConnect.Orders.GroupOrderManager, tag: str = ..., properties: QuantConnect.Interfaces.IOrderProperties = None) -> None:
1037
+ def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], quantity: float, time: typing.Union[datetime.datetime, datetime.date], group_order_manager: QuantConnect.Orders.GroupOrderManager, tag: str = ..., properties: QuantConnect.Interfaces.IOrderProperties = None) -> None:
1040
1038
  """
1041
1039
  New order constructor
1042
1040
 
@@ -1053,7 +1051,7 @@ class Order(System.Object, metaclass=abc.ABCMeta):
1053
1051
  ...
1054
1052
 
1055
1053
  @overload
1056
- def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], quantity: float, time: typing.Union[datetime.datetime, datetime.date], tag: str = ..., properties: QuantConnect.Interfaces.IOrderProperties = None) -> None:
1054
+ def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], quantity: float, time: typing.Union[datetime.datetime, datetime.date], tag: str = ..., properties: QuantConnect.Interfaces.IOrderProperties = None) -> None:
1057
1055
  """
1058
1056
  New order constructor
1059
1057
 
@@ -1167,7 +1165,7 @@ class MarketOrder(QuantConnect.Orders.Order):
1167
1165
  ...
1168
1166
 
1169
1167
  @overload
1170
- def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], quantity: float, time: typing.Union[datetime.datetime, datetime.date], price: float, tag: str = ..., properties: QuantConnect.Interfaces.IOrderProperties = None) -> None:
1168
+ def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], quantity: float, time: typing.Union[datetime.datetime, datetime.date], price: float, tag: str = ..., properties: QuantConnect.Interfaces.IOrderProperties = None) -> None:
1171
1169
  """
1172
1170
  New market order constructor
1173
1171
 
@@ -1181,7 +1179,7 @@ class MarketOrder(QuantConnect.Orders.Order):
1181
1179
  ...
1182
1180
 
1183
1181
  @overload
1184
- def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], quantity: float, time: typing.Union[datetime.datetime, datetime.date], tag: str = ..., properties: QuantConnect.Interfaces.IOrderProperties = None) -> None:
1182
+ def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], quantity: float, time: typing.Union[datetime.datetime, datetime.date], tag: str = ..., properties: QuantConnect.Interfaces.IOrderProperties = None) -> None:
1185
1183
  """
1186
1184
  New market order constructor
1187
1185
 
@@ -1227,7 +1225,7 @@ class OptionExerciseOrder(QuantConnect.Orders.Order):
1227
1225
  ...
1228
1226
 
1229
1227
  @overload
1230
- def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], quantity: float, time: typing.Union[datetime.datetime, datetime.date], tag: str = ..., properties: QuantConnect.Interfaces.IOrderProperties = None) -> None:
1228
+ def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], quantity: float, time: typing.Union[datetime.datetime, datetime.date], tag: str = ..., properties: QuantConnect.Interfaces.IOrderProperties = None) -> None:
1231
1229
  """
1232
1230
  New option exercise order constructor. We model option exercising as an underlying asset long/short order with strike equal to limit price.
1233
1231
  This means that by exercising a call we get into long asset position, by exercising a put we get into short asset position.
@@ -1365,7 +1363,7 @@ class ApiOrderResponse(QuantConnect.Api.StringRepresentation):
1365
1363
  ...
1366
1364
 
1367
1365
  @overload
1368
- def __init__(self, order: QuantConnect.Orders.Order, events: typing.List[QuantConnect.Orders.Serialization.SerializedOrderEvent], symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> None:
1366
+ def __init__(self, order: QuantConnect.Orders.Order, events: typing.List[QuantConnect.Orders.Serialization.SerializedOrderEvent], symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> None:
1369
1367
  """Creates an instance of an ApiOrderResponse class using the given arguments"""
1370
1368
  ...
1371
1369
 
@@ -1411,7 +1409,7 @@ class ComboOrder(QuantConnect.Orders.Order, metaclass=abc.ABCMeta):
1411
1409
  ...
1412
1410
 
1413
1411
  @overload
1414
- def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], quantity: float, time: typing.Union[datetime.datetime, datetime.date], group_order_manager: QuantConnect.Orders.GroupOrderManager, tag: str = ..., properties: QuantConnect.Interfaces.IOrderProperties = None) -> None:
1412
+ def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], quantity: float, time: typing.Union[datetime.datetime, datetime.date], group_order_manager: QuantConnect.Orders.GroupOrderManager, tag: str = ..., properties: QuantConnect.Interfaces.IOrderProperties = None) -> None:
1415
1413
  """
1416
1414
  New market order constructor
1417
1415
 
@@ -1447,7 +1445,7 @@ class ComboMarketOrder(QuantConnect.Orders.ComboOrder):
1447
1445
  ...
1448
1446
 
1449
1447
  @overload
1450
- def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], quantity: float, time: typing.Union[datetime.datetime, datetime.date], group_order_manager: QuantConnect.Orders.GroupOrderManager, tag: str = ..., properties: QuantConnect.Interfaces.IOrderProperties = None) -> None:
1448
+ def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], quantity: float, time: typing.Union[datetime.datetime, datetime.date], group_order_manager: QuantConnect.Orders.GroupOrderManager, tag: str = ..., properties: QuantConnect.Interfaces.IOrderProperties = None) -> None:
1451
1449
  """
1452
1450
  New market order constructor
1453
1451
 
@@ -1755,7 +1753,7 @@ class LimitOrder(QuantConnect.Orders.Order):
1755
1753
  ...
1756
1754
 
1757
1755
  @overload
1758
- def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], quantity: float, limit_price: float, time: typing.Union[datetime.datetime, datetime.date], tag: str = ..., properties: QuantConnect.Interfaces.IOrderProperties = None) -> None:
1756
+ def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], quantity: float, limit_price: float, time: typing.Union[datetime.datetime, datetime.date], tag: str = ..., properties: QuantConnect.Interfaces.IOrderProperties = None) -> None:
1759
1757
  """
1760
1758
  New limit order constructor
1761
1759
 
@@ -2108,7 +2106,7 @@ class OrderEvent(System.Object):
2108
2106
  ...
2109
2107
 
2110
2108
  @overload
2111
- def __init__(self, order_id: int, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], utc_time: typing.Union[datetime.datetime, datetime.date], status: QuantConnect.Orders.OrderStatus, direction: QuantConnect.Orders.OrderDirection, fill_price: float, fill_quantity: float, order_fee: QuantConnect.Orders.Fees.OrderFee, message: str = ...) -> None:
2109
+ def __init__(self, order_id: int, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], utc_time: typing.Union[datetime.datetime, datetime.date], status: QuantConnect.Orders.OrderStatus, direction: QuantConnect.Orders.OrderDirection, fill_price: float, fill_quantity: float, order_fee: QuantConnect.Orders.Fees.OrderFee, message: str = ...) -> None:
2112
2110
  """
2113
2111
  Order Event Constructor.
2114
2112
 
@@ -2424,7 +2422,7 @@ class MarketOnOpenOrder(QuantConnect.Orders.Order):
2424
2422
  ...
2425
2423
 
2426
2424
  @overload
2427
- def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], quantity: float, time: typing.Union[datetime.datetime, datetime.date], tag: str = ..., properties: QuantConnect.Interfaces.IOrderProperties = None) -> None:
2425
+ def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], quantity: float, time: typing.Union[datetime.datetime, datetime.date], tag: str = ..., properties: QuantConnect.Interfaces.IOrderProperties = None) -> None:
2428
2426
  """
2429
2427
  Intiializes a new instance of the MarketOnOpenOrder class.
2430
2428
 
@@ -2616,7 +2614,7 @@ class ComboLegLimitOrder(QuantConnect.Orders.ComboOrder):
2616
2614
  ...
2617
2615
 
2618
2616
  @overload
2619
- def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], quantity: float, limit_price: float, time: typing.Union[datetime.datetime, datetime.date], group_order_manager: QuantConnect.Orders.GroupOrderManager, tag: str = ..., properties: QuantConnect.Interfaces.IOrderProperties = None) -> None:
2617
+ def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], quantity: float, limit_price: float, time: typing.Union[datetime.datetime, datetime.date], group_order_manager: QuantConnect.Orders.GroupOrderManager, tag: str = ..., properties: QuantConnect.Interfaces.IOrderProperties = None) -> None:
2620
2618
  """
2621
2619
  New limit order constructor
2622
2620
 
@@ -2731,7 +2729,7 @@ class GroupOrderExtensions(System.Object):
2731
2729
  ...
2732
2730
 
2733
2731
 
2734
- class ReadOrdersResponseJsonConverter(JsonConverter):
2732
+ class ReadOrdersResponseJsonConverter:
2735
2733
  """Api orders read response json converter"""
2736
2734
 
2737
2735
  def can_convert(self, object_type: typing.Type) -> bool:
@@ -2776,7 +2774,7 @@ class StopLimitOrder(QuantConnect.Orders.Order):
2776
2774
  ...
2777
2775
 
2778
2776
  @overload
2779
- def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], quantity: float, stop_price: float, limit_price: float, time: typing.Union[datetime.datetime, datetime.date], tag: str = ..., properties: QuantConnect.Interfaces.IOrderProperties = None) -> None:
2777
+ def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], quantity: float, stop_price: float, limit_price: float, time: typing.Union[datetime.datetime, datetime.date], tag: str = ..., properties: QuantConnect.Interfaces.IOrderProperties = None) -> None:
2780
2778
  """
2781
2779
  New Stop Market Order constructor -
2782
2780
 
@@ -2857,7 +2855,7 @@ class StopMarketOrder(QuantConnect.Orders.Order):
2857
2855
  ...
2858
2856
 
2859
2857
  @overload
2860
- def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], quantity: float, stop_price: float, time: typing.Union[datetime.datetime, datetime.date], tag: str = ..., properties: QuantConnect.Interfaces.IOrderProperties = None) -> None:
2858
+ def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], quantity: float, stop_price: float, time: typing.Union[datetime.datetime, datetime.date], tag: str = ..., properties: QuantConnect.Interfaces.IOrderProperties = None) -> None:
2861
2859
  """
2862
2860
  New Stop Market Order constructor -
2863
2861
 
@@ -2958,7 +2956,7 @@ class LimitIfTouchedOrder(QuantConnect.Orders.Order):
2958
2956
  ...
2959
2957
 
2960
2958
  @overload
2961
- def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], quantity: float, trigger_price: typing.Optional[float], limit_price: float, time: typing.Union[datetime.datetime, datetime.date], tag: str = ..., properties: QuantConnect.Interfaces.IOrderProperties = None) -> None:
2959
+ def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], quantity: float, trigger_price: typing.Optional[float], limit_price: float, time: typing.Union[datetime.datetime, datetime.date], tag: str = ..., properties: QuantConnect.Interfaces.IOrderProperties = None) -> None:
2962
2960
  """
2963
2961
  New LimitIfTouchedOrder constructor.
2964
2962
 
@@ -3215,7 +3213,7 @@ class TerminalLinkOrderProperties(QuantConnect.Orders.OrderProperties):
3215
3213
  ...
3216
3214
 
3217
3215
 
3218
- class TimeInForceJsonConverter(JsonConverter):
3216
+ class TimeInForceJsonConverter:
3219
3217
  """Provides an implementation of JsonConverter that can deserialize TimeInForce objects"""
3220
3218
 
3221
3219
  @property
@@ -3314,7 +3312,7 @@ class TastytradeOrderProperties(QuantConnect.Orders.OrderProperties):
3314
3312
  """Contains additional properties and settings for an order submitted to Tastytrade brokerage"""
3315
3313
 
3316
3314
 
3317
- class OrderJsonConverter(JsonConverter):
3315
+ class OrderJsonConverter:
3318
3316
  """Provides an implementation of JsonConverter that can deserialize Orders"""
3319
3317
 
3320
3318
  @property
@@ -3392,7 +3390,7 @@ class TrailingStopOrder(QuantConnect.Orders.StopMarketOrder):
3392
3390
  ...
3393
3391
 
3394
3392
  @overload
3395
- def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], quantity: float, stop_price: float, trailing_amount: float, trailing_as_percentage: bool, time: typing.Union[datetime.datetime, datetime.date], tag: str = ..., properties: QuantConnect.Interfaces.IOrderProperties = None) -> None:
3393
+ def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], quantity: float, stop_price: float, trailing_amount: float, trailing_as_percentage: bool, time: typing.Union[datetime.datetime, datetime.date], tag: str = ..., properties: QuantConnect.Interfaces.IOrderProperties = None) -> None:
3396
3394
  """
3397
3395
  New Trailing Stop Market Order constructor
3398
3396
 
@@ -3408,7 +3406,7 @@ class TrailingStopOrder(QuantConnect.Orders.StopMarketOrder):
3408
3406
  ...
3409
3407
 
3410
3408
  @overload
3411
- def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], quantity: float, trailing_amount: float, trailing_as_percentage: bool, time: typing.Union[datetime.datetime, datetime.date], tag: str = ..., properties: QuantConnect.Interfaces.IOrderProperties = None) -> None:
3409
+ def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], quantity: float, trailing_amount: float, trailing_as_percentage: bool, time: typing.Union[datetime.datetime, datetime.date], tag: str = ..., properties: QuantConnect.Interfaces.IOrderProperties = None) -> None:
3412
3410
  """
3413
3411
  New Trailing Stop Market Order constructor.
3414
3412
  It creates a new Trailing Stop Market Order with an initial stop price calculated by subtracting (for a sell) or adding (for a buy) the
@@ -3562,7 +3560,7 @@ class Leg(System.Object):
3562
3560
  ...
3563
3561
 
3564
3562
  @staticmethod
3565
- def create(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], quantity: int, limit_price: typing.Optional[float] = None) -> QuantConnect.Orders.Leg:
3563
+ def create(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], quantity: int, limit_price: typing.Optional[float] = None) -> QuantConnect.Orders.Leg:
3566
3564
  """
3567
3565
  Creates a new instance
3568
3566
 
@@ -3636,7 +3634,7 @@ class ComboLimitOrder(QuantConnect.Orders.ComboOrder):
3636
3634
  ...
3637
3635
 
3638
3636
  @overload
3639
- def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], quantity: float, limit_price: float, time: typing.Union[datetime.datetime, datetime.date], group_order_manager: QuantConnect.Orders.GroupOrderManager, tag: str = ..., properties: QuantConnect.Interfaces.IOrderProperties = None) -> None:
3637
+ def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], quantity: float, limit_price: float, time: typing.Union[datetime.datetime, datetime.date], group_order_manager: QuantConnect.Orders.GroupOrderManager, tag: str = ..., properties: QuantConnect.Interfaces.IOrderProperties = None) -> None:
3640
3638
  """
3641
3639
  New limit order constructor
3642
3640
 
@@ -3740,7 +3738,7 @@ class MarketOnCloseOrder(QuantConnect.Orders.Order):
3740
3738
  ...
3741
3739
 
3742
3740
  @overload
3743
- def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], quantity: float, time: typing.Union[datetime.datetime, datetime.date], tag: str = ..., properties: QuantConnect.Interfaces.IOrderProperties = None) -> None:
3741
+ def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], quantity: float, time: typing.Union[datetime.datetime, datetime.date], tag: str = ..., properties: QuantConnect.Interfaces.IOrderProperties = None) -> None:
3744
3742
  """
3745
3743
  Intiializes a new instance of the MarketOnCloseOrder class.
3746
3744
 
@@ -869,7 +869,7 @@ class BrokerageModelPythonWrapper(QuantConnect.Python.BasePythonWrapper[QuantCon
869
869
  """
870
870
  ...
871
871
 
872
- def shortable(self, algorithm: QuantConnect.Interfaces.IAlgorithm, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], quantity: float) -> bool:
872
+ def shortable(self, algorithm: QuantConnect.Interfaces.IAlgorithm, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], quantity: float) -> bool:
873
873
  """
874
874
  Determine if this symbol is shortable
875
875
 
@@ -18,8 +18,6 @@ import QuantConnect.Securities
18
18
  import System
19
19
  import System.Collections.Generic
20
20
 
21
- JsonConverter = typing.Any
22
-
23
21
  QuantConnect_Report_NullResultValueTypeJsonConverter_T = typing.TypeVar("QuantConnect_Report_NullResultValueTypeJsonConverter_T")
24
22
 
25
23
 
@@ -138,7 +136,7 @@ class Crisis(System.Object):
138
136
  ...
139
137
 
140
138
 
141
- class OrderTypeNormalizingJsonConverter(JsonConverter):
139
+ class OrderTypeNormalizingJsonConverter:
142
140
  """
143
141
  Normalizes the "Type" field to a value that will allow for
144
142
  successful deserialization in the OrderJsonConverter class.
@@ -258,7 +256,7 @@ class PointInTimePortfolio(System.Object):
258
256
  """Absolute value of the quantity"""
259
257
  ...
260
258
 
261
- def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], holdings_value: float, holdings_quantity: float) -> None:
259
+ def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], holdings_value: float, holdings_quantity: float) -> None:
262
260
  """
263
261
  Creates an instance of PointInTimeHolding, representing a holding at a given point in time
264
262
 
@@ -355,7 +353,7 @@ class Rolling(System.Object):
355
353
  ...
356
354
 
357
355
 
358
- class NullResultValueTypeJsonConverter(typing.Generic[QuantConnect_Report_NullResultValueTypeJsonConverter_T], JsonConverter):
356
+ class NullResultValueTypeJsonConverter(typing.Generic[QuantConnect_Report_NullResultValueTypeJsonConverter_T]):
359
357
  """
360
358
  Removes null values in the Result object's x,y values so that
361
359
  deserialization can occur without exceptions.
@@ -12,6 +12,7 @@ import QuantConnect.Data.UniverseSelection
12
12
  import QuantConnect.Indicators
13
13
  import QuantConnect.Research
14
14
  import QuantConnect.Scheduling
15
+ import QuantConnect.Securities
15
16
  import pandas
16
17
 
17
18
 
@@ -79,7 +80,7 @@ class QuantBook(QuantConnect.Algorithm.QCAlgorithm):
79
80
  """
80
81
  ...
81
82
 
82
- def future_history(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], start: typing.Union[datetime.datetime, datetime.date], end: typing.Optional[datetime.datetime] = None, resolution: typing.Optional[QuantConnect.Resolution] = None, fill_forward: bool = True, extended_market_hours: bool = False) -> QuantConnect.Research.FutureHistory:
83
+ def future_history(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], start: typing.Union[datetime.datetime, datetime.date], end: typing.Optional[datetime.datetime] = None, resolution: typing.Optional[QuantConnect.Resolution] = None, fill_forward: bool = True, extended_market_hours: bool = False) -> QuantConnect.Research.FutureHistory:
83
84
  """
84
85
  Gets future_history object for a given symbol, date and resolution
85
86
 
@@ -126,7 +127,7 @@ class QuantBook(QuantConnect.Algorithm.QCAlgorithm):
126
127
  ...
127
128
 
128
129
  @overload
129
- def get_fundamental(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], selector: str = None, start: typing.Optional[datetime.datetime] = None, end: typing.Optional[datetime.datetime] = None) -> typing.Iterable[QuantConnect.Data.Market.DataDictionary[typing.Any]]:
130
+ def get_fundamental(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], selector: str = None, start: typing.Optional[datetime.datetime] = None, end: typing.Optional[datetime.datetime] = None) -> typing.Iterable[QuantConnect.Data.Market.DataDictionary[typing.Any]]:
130
131
  """
131
132
  Get fundamental data for a given symbol
132
133
 
@@ -172,7 +173,7 @@ class QuantBook(QuantConnect.Algorithm.QCAlgorithm):
172
173
  """
173
174
  ...
174
175
 
175
- def get_future_history(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], start: typing.Union[datetime.datetime, datetime.date], end: typing.Optional[datetime.datetime] = None, resolution: typing.Optional[QuantConnect.Resolution] = None, fill_forward: bool = True, extended_market_hours: bool = False) -> QuantConnect.Research.FutureHistory:
176
+ def get_future_history(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], start: typing.Union[datetime.datetime, datetime.date], end: typing.Optional[datetime.datetime] = None, resolution: typing.Optional[QuantConnect.Resolution] = None, fill_forward: bool = True, extended_market_hours: bool = False) -> QuantConnect.Research.FutureHistory:
176
177
  """
177
178
  Gets future_history object for a given symbol, date and resolution
178
179
 
@@ -190,7 +191,7 @@ class QuantBook(QuantConnect.Algorithm.QCAlgorithm):
190
191
  warnings.warn("Please use the 'FutureHistory()' API", DeprecationWarning)
191
192
 
192
193
  @overload
193
- def get_option_history(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], target_option: str, start: typing.Union[datetime.datetime, datetime.date], end: typing.Optional[datetime.datetime] = None, resolution: typing.Optional[QuantConnect.Resolution] = None, fill_forward: bool = True, extended_market_hours: bool = False) -> QuantConnect.Research.OptionHistory:
194
+ def get_option_history(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], target_option: str, start: typing.Union[datetime.datetime, datetime.date], end: typing.Optional[datetime.datetime] = None, resolution: typing.Optional[QuantConnect.Resolution] = None, fill_forward: bool = True, extended_market_hours: bool = False) -> QuantConnect.Research.OptionHistory:
194
195
  """
195
196
  Gets option_history object for a given symbol, date and resolution
196
197
 
@@ -209,7 +210,7 @@ class QuantBook(QuantConnect.Algorithm.QCAlgorithm):
209
210
  ...
210
211
 
211
212
  @overload
212
- def get_option_history(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], start: typing.Union[datetime.datetime, datetime.date], end: typing.Optional[datetime.datetime] = None, resolution: typing.Optional[QuantConnect.Resolution] = None, fill_forward: bool = True, extended_market_hours: bool = False) -> QuantConnect.Research.OptionHistory:
213
+ def get_option_history(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], start: typing.Union[datetime.datetime, datetime.date], end: typing.Optional[datetime.datetime] = None, resolution: typing.Optional[QuantConnect.Resolution] = None, fill_forward: bool = True, extended_market_hours: bool = False) -> QuantConnect.Research.OptionHistory:
213
214
  """
214
215
  Gets option_history object for a given symbol, date and resolution
215
216
 
@@ -236,7 +237,7 @@ class QuantBook(QuantConnect.Algorithm.QCAlgorithm):
236
237
  ...
237
238
 
238
239
  @overload
239
- def indicator(self, indicator: QuantConnect.Indicators.IndicatorBase[QuantConnect.Indicators.IndicatorDataPoint], symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], period: int, resolution: typing.Optional[QuantConnect.Resolution] = None, selector: typing.Callable[[QuantConnect.Data.IBaseData], float] = None) -> pandas.DataFrame:
240
+ def indicator(self, indicator: QuantConnect.Indicators.IndicatorBase[QuantConnect.Indicators.IndicatorDataPoint], symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], period: int, resolution: typing.Optional[QuantConnect.Resolution] = None, selector: typing.Callable[[QuantConnect.Data.IBaseData], float] = None) -> pandas.DataFrame:
240
241
  """
241
242
  Gets the historical data of an indicator for the specified symbol. The exact number of bars will be returned.
242
243
  The symbol must exist in the Securities collection.
@@ -252,7 +253,7 @@ class QuantBook(QuantConnect.Algorithm.QCAlgorithm):
252
253
  ...
253
254
 
254
255
  @overload
255
- def indicator(self, indicator: QuantConnect.Indicators.IndicatorBase[QuantConnect.Data.Market.IBaseDataBar], symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], period: int, resolution: typing.Optional[QuantConnect.Resolution] = None, selector: typing.Callable[[QuantConnect.Data.IBaseData], QuantConnect.Data.Market.IBaseDataBar] = None) -> pandas.DataFrame:
256
+ def indicator(self, indicator: QuantConnect.Indicators.IndicatorBase[QuantConnect.Data.Market.IBaseDataBar], symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], period: int, resolution: typing.Optional[QuantConnect.Resolution] = None, selector: typing.Callable[[QuantConnect.Data.IBaseData], QuantConnect.Data.Market.IBaseDataBar] = None) -> pandas.DataFrame:
256
257
  """
257
258
  Gets the historical data of a bar indicator for the specified symbol. The exact number of bars will be returned.
258
259
  The symbol must exist in the Securities collection.
@@ -268,7 +269,7 @@ class QuantBook(QuantConnect.Algorithm.QCAlgorithm):
268
269
  ...
269
270
 
270
271
  @overload
271
- def indicator(self, indicator: QuantConnect.Indicators.IndicatorBase[QuantConnect.Data.Market.TradeBar], symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], period: int, resolution: typing.Optional[QuantConnect.Resolution] = None, selector: typing.Callable[[QuantConnect.Data.IBaseData], QuantConnect.Data.Market.TradeBar] = None) -> pandas.DataFrame:
272
+ def indicator(self, indicator: QuantConnect.Indicators.IndicatorBase[QuantConnect.Data.Market.TradeBar], symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], period: int, resolution: typing.Optional[QuantConnect.Resolution] = None, selector: typing.Callable[[QuantConnect.Data.IBaseData], QuantConnect.Data.Market.TradeBar] = None) -> pandas.DataFrame:
272
273
  """
273
274
  Gets the historical data of a bar indicator for the specified symbol. The exact number of bars will be returned.
274
275
  The symbol must exist in the Securities collection.
@@ -284,7 +285,7 @@ class QuantBook(QuantConnect.Algorithm.QCAlgorithm):
284
285
  ...
285
286
 
286
287
  @overload
287
- def indicator(self, indicator: QuantConnect.Indicators.IndicatorBase[QuantConnect.Indicators.IndicatorDataPoint], symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], span: datetime.timedelta, resolution: typing.Optional[QuantConnect.Resolution] = None, selector: typing.Callable[[QuantConnect.Data.IBaseData], float] = None) -> pandas.DataFrame:
288
+ def indicator(self, indicator: QuantConnect.Indicators.IndicatorBase[QuantConnect.Indicators.IndicatorDataPoint], symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], span: datetime.timedelta, resolution: typing.Optional[QuantConnect.Resolution] = None, selector: typing.Callable[[QuantConnect.Data.IBaseData], float] = None) -> pandas.DataFrame:
288
289
  """
289
290
  Gets the historical data of an indicator for the specified symbol. The exact number of bars will be returned.
290
291
  The symbol must exist in the Securities collection.
@@ -302,7 +303,7 @@ class QuantBook(QuantConnect.Algorithm.QCAlgorithm):
302
303
  ...
303
304
 
304
305
  @overload
305
- def indicator(self, indicator: QuantConnect.Indicators.IndicatorBase[QuantConnect.Data.Market.IBaseDataBar], symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], span: datetime.timedelta, resolution: typing.Optional[QuantConnect.Resolution] = None, selector: typing.Callable[[QuantConnect.Data.IBaseData], QuantConnect.Data.Market.IBaseDataBar] = None) -> pandas.DataFrame:
306
+ def indicator(self, indicator: QuantConnect.Indicators.IndicatorBase[QuantConnect.Data.Market.IBaseDataBar], symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], span: datetime.timedelta, resolution: typing.Optional[QuantConnect.Resolution] = None, selector: typing.Callable[[QuantConnect.Data.IBaseData], QuantConnect.Data.Market.IBaseDataBar] = None) -> pandas.DataFrame:
306
307
  """
307
308
  Gets the historical data of a bar indicator for the specified symbol. The exact number of bars will be returned.
308
309
  The symbol must exist in the Securities collection.
@@ -320,7 +321,7 @@ class QuantBook(QuantConnect.Algorithm.QCAlgorithm):
320
321
  ...
321
322
 
322
323
  @overload
323
- def indicator(self, indicator: QuantConnect.Indicators.IndicatorBase[QuantConnect.Data.Market.TradeBar], symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], span: datetime.timedelta, resolution: typing.Optional[QuantConnect.Resolution] = None, selector: typing.Callable[[QuantConnect.Data.IBaseData], QuantConnect.Data.Market.TradeBar] = None) -> pandas.DataFrame:
324
+ def indicator(self, indicator: QuantConnect.Indicators.IndicatorBase[QuantConnect.Data.Market.TradeBar], symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], span: datetime.timedelta, resolution: typing.Optional[QuantConnect.Resolution] = None, selector: typing.Callable[[QuantConnect.Data.IBaseData], QuantConnect.Data.Market.TradeBar] = None) -> pandas.DataFrame:
324
325
  """
325
326
  Gets the historical data of a bar indicator for the specified symbol. The exact number of bars will be returned.
326
327
  The symbol must exist in the Securities collection.
@@ -338,7 +339,7 @@ class QuantBook(QuantConnect.Algorithm.QCAlgorithm):
338
339
  ...
339
340
 
340
341
  @overload
341
- def indicator(self, indicator: QuantConnect.Indicators.IndicatorBase[QuantConnect.Indicators.IndicatorDataPoint], symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], start: typing.Union[datetime.datetime, datetime.date], end: typing.Union[datetime.datetime, datetime.date], resolution: typing.Optional[QuantConnect.Resolution] = None, selector: typing.Callable[[QuantConnect.Data.IBaseData], float] = None) -> pandas.DataFrame:
342
+ def indicator(self, indicator: QuantConnect.Indicators.IndicatorBase[QuantConnect.Indicators.IndicatorDataPoint], symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], start: typing.Union[datetime.datetime, datetime.date], end: typing.Union[datetime.datetime, datetime.date], resolution: typing.Optional[QuantConnect.Resolution] = None, selector: typing.Callable[[QuantConnect.Data.IBaseData], float] = None) -> pandas.DataFrame:
342
343
  """
343
344
  Gets the historical data of an indicator for the specified symbol. The exact number of bars will be returned.
344
345
  The symbol must exist in the Securities collection.
@@ -357,7 +358,7 @@ class QuantBook(QuantConnect.Algorithm.QCAlgorithm):
357
358
  ...
358
359
 
359
360
  @overload
360
- def indicator(self, indicator: QuantConnect.Indicators.IndicatorBase[QuantConnect.Data.Market.IBaseDataBar], symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], start: typing.Union[datetime.datetime, datetime.date], end: typing.Union[datetime.datetime, datetime.date], resolution: typing.Optional[QuantConnect.Resolution] = None, selector: typing.Callable[[QuantConnect.Data.IBaseData], QuantConnect.Data.Market.IBaseDataBar] = None) -> pandas.DataFrame:
361
+ def indicator(self, indicator: QuantConnect.Indicators.IndicatorBase[QuantConnect.Data.Market.IBaseDataBar], symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], start: typing.Union[datetime.datetime, datetime.date], end: typing.Union[datetime.datetime, datetime.date], resolution: typing.Optional[QuantConnect.Resolution] = None, selector: typing.Callable[[QuantConnect.Data.IBaseData], QuantConnect.Data.Market.IBaseDataBar] = None) -> pandas.DataFrame:
361
362
  """
362
363
  Gets the historical data of a bar indicator for the specified symbol. The exact number of bars will be returned.
363
364
  The symbol must exist in the Securities collection.
@@ -376,7 +377,7 @@ class QuantBook(QuantConnect.Algorithm.QCAlgorithm):
376
377
  ...
377
378
 
378
379
  @overload
379
- def indicator(self, indicator: QuantConnect.Indicators.IndicatorBase[QuantConnect.Data.Market.TradeBar], symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], start: typing.Union[datetime.datetime, datetime.date], end: typing.Union[datetime.datetime, datetime.date], resolution: typing.Optional[QuantConnect.Resolution] = None, selector: typing.Callable[[QuantConnect.Data.IBaseData], QuantConnect.Data.Market.TradeBar] = None) -> pandas.DataFrame:
380
+ def indicator(self, indicator: QuantConnect.Indicators.IndicatorBase[QuantConnect.Data.Market.TradeBar], symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], start: typing.Union[datetime.datetime, datetime.date], end: typing.Union[datetime.datetime, datetime.date], resolution: typing.Optional[QuantConnect.Resolution] = None, selector: typing.Callable[[QuantConnect.Data.IBaseData], QuantConnect.Data.Market.TradeBar] = None) -> pandas.DataFrame:
380
381
  """
381
382
  Gets the historical data of a bar indicator for the specified symbol. The exact number of bars will be returned.
382
383
  The symbol must exist in the Securities collection.
@@ -395,7 +396,7 @@ class QuantBook(QuantConnect.Algorithm.QCAlgorithm):
395
396
  ...
396
397
 
397
398
  @overload
398
- def option_history(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], target_option: str, start: typing.Union[datetime.datetime, datetime.date], end: typing.Optional[datetime.datetime] = None, resolution: typing.Optional[QuantConnect.Resolution] = None, fill_forward: bool = True, extended_market_hours: bool = False) -> QuantConnect.Research.OptionHistory:
399
+ def option_history(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], target_option: str, start: typing.Union[datetime.datetime, datetime.date], end: typing.Optional[datetime.datetime] = None, resolution: typing.Optional[QuantConnect.Resolution] = None, fill_forward: bool = True, extended_market_hours: bool = False) -> QuantConnect.Research.OptionHistory:
399
400
  """
400
401
  Gets option_history object for a given symbol, date and resolution
401
402
 
@@ -411,7 +412,7 @@ class QuantBook(QuantConnect.Algorithm.QCAlgorithm):
411
412
  ...
412
413
 
413
414
  @overload
414
- def option_history(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], start: typing.Union[datetime.datetime, datetime.date], end: typing.Optional[datetime.datetime] = None, resolution: typing.Optional[QuantConnect.Resolution] = None, fill_forward: bool = True, extended_market_hours: bool = False) -> QuantConnect.Research.OptionHistory:
415
+ def option_history(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], start: typing.Union[datetime.datetime, datetime.date], end: typing.Optional[datetime.datetime] = None, resolution: typing.Optional[QuantConnect.Resolution] = None, fill_forward: bool = True, extended_market_hours: bool = False) -> QuantConnect.Research.OptionHistory:
415
416
  """
416
417
  Gets option_history object for a given symbol, date and resolution
417
418
 
@@ -195,7 +195,7 @@ class BaseScheduleRules(System.Object):
195
195
  """
196
196
  ...
197
197
 
198
- def get_security_exchange_hours(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> QuantConnect.Securities.SecurityExchangeHours:
198
+ def get_security_exchange_hours(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> QuantConnect.Securities.SecurityExchangeHours:
199
199
  """
200
200
  Helper method to fetch the security exchange hours
201
201
 
@@ -300,7 +300,7 @@ class DateRules(QuantConnect.Scheduling.BaseScheduleRules):
300
300
  ...
301
301
 
302
302
  @overload
303
- def every_day(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], extended_market_hours: bool = False) -> QuantConnect.Scheduling.IDateRule:
303
+ def every_day(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], extended_market_hours: bool = False) -> QuantConnect.Scheduling.IDateRule:
304
304
  """
305
305
  Specifies an event should fire every day the symbol is trading
306
306
 
@@ -333,7 +333,7 @@ class DateRules(QuantConnect.Scheduling.BaseScheduleRules):
333
333
  ...
334
334
 
335
335
  @overload
336
- def month_end(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], days_offset: int = 0, extended_market_hours: bool = True) -> QuantConnect.Scheduling.IDateRule:
336
+ def month_end(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], days_offset: int = 0, extended_market_hours: bool = True) -> QuantConnect.Scheduling.IDateRule:
337
337
  """
338
338
  Specifies an event should fire on the last tradable date - offset for the specified symbol of each month
339
339
 
@@ -368,7 +368,7 @@ class DateRules(QuantConnect.Scheduling.BaseScheduleRules):
368
368
  ...
369
369
 
370
370
  @overload
371
- def month_start(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], days_offset: int = 0, extended_market_hours: bool = True) -> QuantConnect.Scheduling.IDateRule:
371
+ def month_start(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], days_offset: int = 0, extended_market_hours: bool = True) -> QuantConnect.Scheduling.IDateRule:
372
372
  """
373
373
  Specifies an event should fire on the first tradable date + offset for the specified symbol of each month
374
374
 
@@ -433,7 +433,7 @@ class DateRules(QuantConnect.Scheduling.BaseScheduleRules):
433
433
  ...
434
434
 
435
435
  @overload
436
- def week_end(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], days_offset: int = 0, extended_market_hours: bool = True) -> QuantConnect.Scheduling.IDateRule:
436
+ def week_end(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], days_offset: int = 0, extended_market_hours: bool = True) -> QuantConnect.Scheduling.IDateRule:
437
437
  """
438
438
  Specifies an event should fire on the last - offset tradable date for the specified
439
439
  symbol of each week
@@ -472,7 +472,7 @@ class DateRules(QuantConnect.Scheduling.BaseScheduleRules):
472
472
  ...
473
473
 
474
474
  @overload
475
- def week_start(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], days_offset: int = 0, extended_market_hours: bool = True) -> QuantConnect.Scheduling.IDateRule:
475
+ def week_start(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], days_offset: int = 0, extended_market_hours: bool = True) -> QuantConnect.Scheduling.IDateRule:
476
476
  """
477
477
  Specifies an event should fire on the first tradable date + offset for the specified
478
478
  symbol each week
@@ -509,7 +509,7 @@ class DateRules(QuantConnect.Scheduling.BaseScheduleRules):
509
509
  ...
510
510
 
511
511
  @overload
512
- def year_end(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], days_offset: int = 0, extended_market_hours: bool = True) -> QuantConnect.Scheduling.IDateRule:
512
+ def year_end(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], days_offset: int = 0, extended_market_hours: bool = True) -> QuantConnect.Scheduling.IDateRule:
513
513
  """
514
514
  Specifies an event should fire on the last tradable date - offset for the specified symbol of each year
515
515
 
@@ -544,7 +544,7 @@ class DateRules(QuantConnect.Scheduling.BaseScheduleRules):
544
544
  ...
545
545
 
546
546
  @overload
547
- def year_start(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], days_offset: int = 0, extended_market_hours: bool = True) -> QuantConnect.Scheduling.IDateRule:
547
+ def year_start(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], days_offset: int = 0, extended_market_hours: bool = True) -> QuantConnect.Scheduling.IDateRule:
548
548
  """
549
549
  Specifies an event should fire on the first tradable date + offset for the specified symbol of each year
550
550
 
@@ -619,7 +619,7 @@ class TimeRules(QuantConnect.Scheduling.BaseScheduleRules):
619
619
  ...
620
620
 
621
621
  @overload
622
- def after_market_close(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], minutes_after_close: float = 0, extended_market_close: bool = False) -> QuantConnect.Scheduling.ITimeRule:
622
+ def after_market_close(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], minutes_after_close: float = 0, extended_market_close: bool = False) -> QuantConnect.Scheduling.ITimeRule:
623
623
  """
624
624
  Specifies an event should fire at the market close +- minutes_after_close
625
625
 
@@ -643,7 +643,7 @@ class TimeRules(QuantConnect.Scheduling.BaseScheduleRules):
643
643
  ...
644
644
 
645
645
  @overload
646
- def after_market_open(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], minutes_after_open: float = 0, extended_market_open: bool = False) -> QuantConnect.Scheduling.ITimeRule:
646
+ def after_market_open(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], minutes_after_open: float = 0, extended_market_open: bool = False) -> QuantConnect.Scheduling.ITimeRule:
647
647
  """
648
648
  Specifies an event should fire at market open +- minutes_after_open
649
649
 
@@ -725,7 +725,7 @@ class TimeRules(QuantConnect.Scheduling.BaseScheduleRules):
725
725
  ...
726
726
 
727
727
  @overload
728
- def before_market_close(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], minutes_before_close: float = 0, extended_market_close: bool = False) -> QuantConnect.Scheduling.ITimeRule:
728
+ def before_market_close(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], minutes_before_close: float = 0, extended_market_close: bool = False) -> QuantConnect.Scheduling.ITimeRule:
729
729
  """
730
730
  Specifies an event should fire at the market close +- minutes_before_close
731
731
 
@@ -749,7 +749,7 @@ class TimeRules(QuantConnect.Scheduling.BaseScheduleRules):
749
749
  ...
750
750
 
751
751
  @overload
752
- def before_market_open(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], minutes_before_open: float = 0, extended_market_open: bool = False) -> QuantConnect.Scheduling.ITimeRule:
752
+ def before_market_open(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], minutes_before_open: float = 0, extended_market_open: bool = False) -> QuantConnect.Scheduling.ITimeRule:
753
753
  """
754
754
  Specifies an event should fire at market open +- minutes_before_open
755
755
 
@@ -781,7 +781,7 @@ class TimeRules(QuantConnect.Scheduling.BaseScheduleRules):
781
781
  class IFluentSchedulingRunnable(QuantConnect.Scheduling.IFluentSchedulingTimeSpecifier, metaclass=abc.ABCMeta):
782
782
  """Specifies the callback component of a scheduled event, as well as final filters"""
783
783
 
784
- def during_market_hours(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], extended_market: bool = False) -> QuantConnect.Scheduling.IFluentSchedulingRunnable:
784
+ def during_market_hours(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], extended_market: bool = False) -> QuantConnect.Scheduling.IFluentSchedulingRunnable:
785
785
  """Filters the event times to only include times where the symbol's market is considered open"""
786
786
  ...
787
787
 
@@ -804,7 +804,7 @@ class IFluentSchedulingRunnable(QuantConnect.Scheduling.IFluentSchedulingTimeSpe
804
804
  class IFluentSchedulingTimeSpecifier(metaclass=abc.ABCMeta):
805
805
  """Specifies the time rule component of a scheduled event"""
806
806
 
807
- def after_market_open(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], minutes_after_open: float = 0, extended_market_open: bool = False) -> QuantConnect.Scheduling.IFluentSchedulingRunnable:
807
+ def after_market_open(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], minutes_after_open: float = 0, extended_market_open: bool = False) -> QuantConnect.Scheduling.IFluentSchedulingRunnable:
808
808
  """Creates events that fire a specified number of minutes after market open"""
809
809
  ...
810
810
 
@@ -833,7 +833,7 @@ class IFluentSchedulingTimeSpecifier(metaclass=abc.ABCMeta):
833
833
  """Creates events that fire at the specific time of day in the algorithm's time zone"""
834
834
  ...
835
835
 
836
- def before_market_close(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], minute_before_close: float = 0, extended_market_close: bool = False) -> QuantConnect.Scheduling.IFluentSchedulingRunnable:
836
+ def before_market_close(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], minute_before_close: float = 0, extended_market_close: bool = False) -> QuantConnect.Scheduling.IFluentSchedulingRunnable:
837
837
  """Creates events that fire a specified numer of minutes before market close"""
838
838
  ...
839
839
 
@@ -859,7 +859,7 @@ class IFluentSchedulingDateSpecifier(metaclass=abc.ABCMeta):
859
859
  ...
860
860
 
861
861
  @overload
862
- def every_day(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> QuantConnect.Scheduling.IFluentSchedulingTimeSpecifier:
862
+ def every_day(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> QuantConnect.Scheduling.IFluentSchedulingTimeSpecifier:
863
863
  """Creates events on every trading day of the year for the symbol"""
864
864
  ...
865
865
 
@@ -869,7 +869,7 @@ class IFluentSchedulingDateSpecifier(metaclass=abc.ABCMeta):
869
869
  ...
870
870
 
871
871
  @overload
872
- def month_start(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> QuantConnect.Scheduling.IFluentSchedulingTimeSpecifier:
872
+ def month_start(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> QuantConnect.Scheduling.IFluentSchedulingTimeSpecifier:
873
873
  """Creates events on the first trading day of the month"""
874
874
  ...
875
875
 
@@ -38,7 +38,7 @@ class Cfd(QuantConnect.Securities.Security):
38
38
  ...
39
39
 
40
40
  @overload
41
- def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], exchange_hours: QuantConnect.Securities.SecurityExchangeHours, quote_currency: QuantConnect.Securities.Cash, symbol_properties: QuantConnect.Securities.SymbolProperties, currency_converter: QuantConnect.Securities.ICurrencyConverter, registered_types: QuantConnect.Securities.IRegisteredSecurityDataTypesProvider, security_cache: QuantConnect.Securities.SecurityCache) -> None:
41
+ def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], exchange_hours: QuantConnect.Securities.SecurityExchangeHours, quote_currency: QuantConnect.Securities.Cash, symbol_properties: QuantConnect.Securities.SymbolProperties, currency_converter: QuantConnect.Securities.ICurrencyConverter, registered_types: QuantConnect.Securities.IRegisteredSecurityDataTypesProvider, security_cache: QuantConnect.Securities.SecurityCache) -> None:
42
42
  """
43
43
  Constructor for the CFD security
44
44
 
@@ -54,7 +54,7 @@ class Cfd(QuantConnect.Securities.Security):
54
54
  ...
55
55
 
56
56
  @staticmethod
57
- def decompose_currency_pair(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], symbol_properties: QuantConnect.Securities.SymbolProperties, base_currency: typing.Optional[str], quote_currency: typing.Optional[str]) -> typing.Tuple[None, str, str]:
57
+ def decompose_currency_pair(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], symbol_properties: QuantConnect.Securities.SymbolProperties, base_currency: typing.Optional[str], quote_currency: typing.Optional[str]) -> typing.Tuple[None, str, str]:
58
58
  """
59
59
  Decomposes the specified currency pair into a base and quote currency provided as out parameters
60
60