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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. Common/Data/Consolidators/__init__.pyi +1 -1
  2. QuantConnect/Algorithm/Framework/Alphas/__init__.pyi +18 -18
  3. QuantConnect/Algorithm/Framework/Execution/__init__.pyi +2 -2
  4. QuantConnect/Algorithm/Framework/Portfolio/__init__.pyi +14 -14
  5. QuantConnect/Algorithm/Framework/Selection/__init__.pyi +3 -3
  6. QuantConnect/Algorithm/__init__.pyi +365 -310
  7. QuantConnect/AlgorithmFactory/Python/Wrappers/__init__.pyi +12 -11
  8. QuantConnect/Api/Serialization/__init__.pyi +1 -3
  9. QuantConnect/Api/__init__.pyi +67 -8
  10. QuantConnect/Benchmarks/__init__.pyi +1 -1
  11. QuantConnect/Brokerages/Authentication/__init__.pyi +10 -2
  12. QuantConnect/Brokerages/LevelOneOrderBook/__init__.pyi +6 -5
  13. QuantConnect/Brokerages/__init__.pyi +82 -11
  14. QuantConnect/Commands/__init__.pyi +3 -2
  15. QuantConnect/Data/Auxiliary/__init__.pyi +13 -13
  16. QuantConnect/Data/Common/__init__.pyi +1 -1
  17. QuantConnect/Data/Custom/Tiingo/__init__.pyi +2 -1
  18. QuantConnect/Data/Fundamental/__init__.pyi +11 -12
  19. QuantConnect/Data/Market/__init__.pyi +42 -42
  20. QuantConnect/Data/UniverseSelection/__init__.pyi +29 -29
  21. QuantConnect/Data/__init__.pyi +44 -45
  22. QuantConnect/DataSource/__init__.pyi +7 -7
  23. QuantConnect/Indicators/__init__.pyi +238 -98
  24. QuantConnect/Interfaces/__init__.pyi +24 -23
  25. QuantConnect/Lean/Engine/DataFeeds/Enumerators/__init__.pyi +1 -1
  26. QuantConnect/Lean/Engine/DataFeeds/Queues/__init__.pyi +2 -1
  27. QuantConnect/Lean/Engine/DataFeeds/WorkScheduling/__init__.pyi +3 -2
  28. QuantConnect/Lean/Engine/DataFeeds/__init__.pyi +19 -19
  29. QuantConnect/Lean/Engine/HistoricalData/__init__.pyi +1 -1
  30. QuantConnect/Lean/Engine/Results/__init__.pyi +0 -38
  31. QuantConnect/Notifications/__init__.pyi +1 -3
  32. QuantConnect/Optimizer/Parameters/__init__.pyi +1 -3
  33. QuantConnect/Orders/Fees/__init__.pyi +35 -0
  34. QuantConnect/Orders/__init__.pyi +75 -28
  35. QuantConnect/Python/__init__.pyi +1 -1
  36. QuantConnect/Report/__init__.pyi +3 -5
  37. QuantConnect/Research/__init__.pyi +17 -16
  38. QuantConnect/Scheduling/__init__.pyi +17 -17
  39. QuantConnect/Securities/Cfd/__init__.pyi +2 -2
  40. QuantConnect/Securities/Crypto/__init__.pyi +2 -2
  41. QuantConnect/Securities/CryptoFuture/__init__.pyi +1 -1
  42. QuantConnect/Securities/Equity/__init__.pyi +1 -1
  43. QuantConnect/Securities/Forex/__init__.pyi +1 -1
  44. QuantConnect/Securities/Future/__init__.pyi +8 -8
  45. QuantConnect/Securities/FutureOption/__init__.pyi +9 -9
  46. QuantConnect/Securities/Index/__init__.pyi +2 -2
  47. QuantConnect/Securities/IndexOption/__init__.pyi +3 -3
  48. QuantConnect/Securities/Option/StrategyMatcher/__init__.pyi +6 -6
  49. QuantConnect/Securities/Option/__init__.pyi +54 -54
  50. QuantConnect/Securities/Positions/__init__.pyi +6 -6
  51. QuantConnect/Securities/__init__.pyi +80 -81
  52. QuantConnect/Statistics/__init__.pyi +2 -2
  53. QuantConnect/Util/__init__.pyi +36 -37
  54. QuantConnect/__init__.pyi +69 -68
  55. System/ComponentModel/DataAnnotations/__init__.pyi +1 -1
  56. System/ComponentModel/__init__.pyi +1 -1
  57. System/IO/__init__.pyi +12 -0
  58. System/Threading/__init__.pyi +3 -3
  59. {quantconnect_stubs-17397.dist-info → quantconnect_stubs-17412.dist-info}/METADATA +1 -1
  60. {quantconnect_stubs-17397.dist-info → quantconnect_stubs-17412.dist-info}/RECORD +62 -62
  61. {quantconnect_stubs-17397.dist-info → quantconnect_stubs-17412.dist-info}/WHEEL +0 -0
  62. {quantconnect_stubs-17397.dist-info → quantconnect_stubs-17412.dist-info}/top_level.txt +0 -0
@@ -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"""
@@ -151,6 +149,55 @@ class EzeOrderProperties(QuantConnect.Orders.OrderProperties):
151
149
  ...
152
150
 
153
151
 
152
+ class dYdXOrderProperties(QuantConnect.Orders.OrderProperties):
153
+ """Contains additional properties and settings for an order submitted to Binance brokerage"""
154
+
155
+ @property
156
+ def post_only(self) -> bool:
157
+ """
158
+ This flag will ensure the order executes only as a maker (no fee) order.
159
+ If part of the order results in taking liquidity rather than providing,
160
+ it will be rejected and no part of the order will execute.
161
+ Note: this flag is only applied to Limit orders.
162
+ """
163
+ ...
164
+
165
+ @post_only.setter
166
+ def post_only(self, value: bool) -> None:
167
+ ...
168
+
169
+ @property
170
+ def gas_limit(self) -> int:
171
+ """The maximum amount of gas to use for the order."""
172
+ ...
173
+
174
+ @gas_limit.setter
175
+ def gas_limit(self, value: int) -> None:
176
+ ...
177
+
178
+ @property
179
+ def reduce_only(self) -> bool:
180
+ """If you send a reduce-only order, it will only trade if it decreases your position size."""
181
+ ...
182
+
183
+ @reduce_only.setter
184
+ def reduce_only(self, value: bool) -> None:
185
+ ...
186
+
187
+ @property
188
+ def good_til_block_offset(self) -> int:
189
+ """The block height at which the order expires."""
190
+ ...
191
+
192
+ @good_til_block_offset.setter
193
+ def good_til_block_offset(self, value: int) -> None:
194
+ ...
195
+
196
+ def clone(self) -> QuantConnect.Interfaces.IOrderProperties:
197
+ """Returns a new instance clone of this object"""
198
+ ...
199
+
200
+
154
201
  class InteractiveBrokersOrderProperties(QuantConnect.Orders.OrderProperties):
155
202
  """Contains additional properties and settings for an order submitted to Interactive Brokers"""
156
203
 
@@ -755,7 +802,7 @@ class SubmitOrderRequest(QuantConnect.Orders.OrderRequest):
755
802
  ...
756
803
 
757
804
  @overload
758
- 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:
759
806
  """
760
807
  Initializes a new instance of the SubmitOrderRequest class.
761
808
  The OrderRequest.order_id will default to OrderResponseErrorCode.UNABLE_TO_FIND_ORDER
@@ -779,7 +826,7 @@ class SubmitOrderRequest(QuantConnect.Orders.OrderRequest):
779
826
  ...
780
827
 
781
828
  @overload
782
- 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:
783
830
  """
784
831
  Initializes a new instance of the SubmitOrderRequest class.
785
832
  The OrderRequest.order_id will default to OrderResponseErrorCode.UNABLE_TO_FIND_ORDER
@@ -801,7 +848,7 @@ class SubmitOrderRequest(QuantConnect.Orders.OrderRequest):
801
848
  ...
802
849
 
803
850
  @overload
804
- 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:
805
852
  """
806
853
  Initializes a new instance of the SubmitOrderRequest class.
807
854
  The OrderRequest.order_id will default to OrderResponseErrorCode.UNABLE_TO_FIND_ORDER
@@ -987,7 +1034,7 @@ class Order(System.Object, metaclass=abc.ABCMeta):
987
1034
  ...
988
1035
 
989
1036
  @overload
990
- 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:
991
1038
  """
992
1039
  New order constructor
993
1040
 
@@ -1004,7 +1051,7 @@ class Order(System.Object, metaclass=abc.ABCMeta):
1004
1051
  ...
1005
1052
 
1006
1053
  @overload
1007
- 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:
1008
1055
  """
1009
1056
  New order constructor
1010
1057
 
@@ -1118,7 +1165,7 @@ class MarketOrder(QuantConnect.Orders.Order):
1118
1165
  ...
1119
1166
 
1120
1167
  @overload
1121
- 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:
1122
1169
  """
1123
1170
  New market order constructor
1124
1171
 
@@ -1132,7 +1179,7 @@ class MarketOrder(QuantConnect.Orders.Order):
1132
1179
  ...
1133
1180
 
1134
1181
  @overload
1135
- 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:
1136
1183
  """
1137
1184
  New market order constructor
1138
1185
 
@@ -1178,7 +1225,7 @@ class OptionExerciseOrder(QuantConnect.Orders.Order):
1178
1225
  ...
1179
1226
 
1180
1227
  @overload
1181
- 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:
1182
1229
  """
1183
1230
  New option exercise order constructor. We model option exercising as an underlying asset long/short order with strike equal to limit price.
1184
1231
  This means that by exercising a call we get into long asset position, by exercising a put we get into short asset position.
@@ -1316,7 +1363,7 @@ class ApiOrderResponse(QuantConnect.Api.StringRepresentation):
1316
1363
  ...
1317
1364
 
1318
1365
  @overload
1319
- 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:
1320
1367
  """Creates an instance of an ApiOrderResponse class using the given arguments"""
1321
1368
  ...
1322
1369
 
@@ -1362,7 +1409,7 @@ class ComboOrder(QuantConnect.Orders.Order, metaclass=abc.ABCMeta):
1362
1409
  ...
1363
1410
 
1364
1411
  @overload
1365
- 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:
1366
1413
  """
1367
1414
  New market order constructor
1368
1415
 
@@ -1398,7 +1445,7 @@ class ComboMarketOrder(QuantConnect.Orders.ComboOrder):
1398
1445
  ...
1399
1446
 
1400
1447
  @overload
1401
- 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:
1402
1449
  """
1403
1450
  New market order constructor
1404
1451
 
@@ -1706,7 +1753,7 @@ class LimitOrder(QuantConnect.Orders.Order):
1706
1753
  ...
1707
1754
 
1708
1755
  @overload
1709
- 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:
1710
1757
  """
1711
1758
  New limit order constructor
1712
1759
 
@@ -2059,7 +2106,7 @@ class OrderEvent(System.Object):
2059
2106
  ...
2060
2107
 
2061
2108
  @overload
2062
- 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:
2063
2110
  """
2064
2111
  Order Event Constructor.
2065
2112
 
@@ -2375,7 +2422,7 @@ class MarketOnOpenOrder(QuantConnect.Orders.Order):
2375
2422
  ...
2376
2423
 
2377
2424
  @overload
2378
- 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:
2379
2426
  """
2380
2427
  Intiializes a new instance of the MarketOnOpenOrder class.
2381
2428
 
@@ -2567,7 +2614,7 @@ class ComboLegLimitOrder(QuantConnect.Orders.ComboOrder):
2567
2614
  ...
2568
2615
 
2569
2616
  @overload
2570
- 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:
2571
2618
  """
2572
2619
  New limit order constructor
2573
2620
 
@@ -2682,7 +2729,7 @@ class GroupOrderExtensions(System.Object):
2682
2729
  ...
2683
2730
 
2684
2731
 
2685
- class ReadOrdersResponseJsonConverter(JsonConverter):
2732
+ class ReadOrdersResponseJsonConverter:
2686
2733
  """Api orders read response json converter"""
2687
2734
 
2688
2735
  def can_convert(self, object_type: typing.Type) -> bool:
@@ -2727,7 +2774,7 @@ class StopLimitOrder(QuantConnect.Orders.Order):
2727
2774
  ...
2728
2775
 
2729
2776
  @overload
2730
- 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:
2731
2778
  """
2732
2779
  New Stop Market Order constructor -
2733
2780
 
@@ -2808,7 +2855,7 @@ class StopMarketOrder(QuantConnect.Orders.Order):
2808
2855
  ...
2809
2856
 
2810
2857
  @overload
2811
- 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:
2812
2859
  """
2813
2860
  New Stop Market Order constructor -
2814
2861
 
@@ -2909,7 +2956,7 @@ class LimitIfTouchedOrder(QuantConnect.Orders.Order):
2909
2956
  ...
2910
2957
 
2911
2958
  @overload
2912
- 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:
2913
2960
  """
2914
2961
  New LimitIfTouchedOrder constructor.
2915
2962
 
@@ -3166,7 +3213,7 @@ class TerminalLinkOrderProperties(QuantConnect.Orders.OrderProperties):
3166
3213
  ...
3167
3214
 
3168
3215
 
3169
- class TimeInForceJsonConverter(JsonConverter):
3216
+ class TimeInForceJsonConverter:
3170
3217
  """Provides an implementation of JsonConverter that can deserialize TimeInForce objects"""
3171
3218
 
3172
3219
  @property
@@ -3265,7 +3312,7 @@ class TastytradeOrderProperties(QuantConnect.Orders.OrderProperties):
3265
3312
  """Contains additional properties and settings for an order submitted to Tastytrade brokerage"""
3266
3313
 
3267
3314
 
3268
- class OrderJsonConverter(JsonConverter):
3315
+ class OrderJsonConverter:
3269
3316
  """Provides an implementation of JsonConverter that can deserialize Orders"""
3270
3317
 
3271
3318
  @property
@@ -3343,7 +3390,7 @@ class TrailingStopOrder(QuantConnect.Orders.StopMarketOrder):
3343
3390
  ...
3344
3391
 
3345
3392
  @overload
3346
- 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:
3347
3394
  """
3348
3395
  New Trailing Stop Market Order constructor
3349
3396
 
@@ -3359,7 +3406,7 @@ class TrailingStopOrder(QuantConnect.Orders.StopMarketOrder):
3359
3406
  ...
3360
3407
 
3361
3408
  @overload
3362
- 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:
3363
3410
  """
3364
3411
  New Trailing Stop Market Order constructor.
3365
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
@@ -3513,7 +3560,7 @@ class Leg(System.Object):
3513
3560
  ...
3514
3561
 
3515
3562
  @staticmethod
3516
- 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:
3517
3564
  """
3518
3565
  Creates a new instance
3519
3566
 
@@ -3587,7 +3634,7 @@ class ComboLimitOrder(QuantConnect.Orders.ComboOrder):
3587
3634
  ...
3588
3635
 
3589
3636
  @overload
3590
- 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:
3591
3638
  """
3592
3639
  New limit order constructor
3593
3640
 
@@ -3691,7 +3738,7 @@ class MarketOnCloseOrder(QuantConnect.Orders.Order):
3691
3738
  ...
3692
3739
 
3693
3740
  @overload
3694
- 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:
3695
3742
  """
3696
3743
  Intiializes a new instance of the MarketOnCloseOrder class.
3697
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