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
@@ -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
 
@@ -43,7 +43,7 @@ class Crypto(QuantConnect.Securities.Security, QuantConnect.Securities.IBaseCurr
43
43
  ...
44
44
 
45
45
  @overload
46
- def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], exchange_hours: QuantConnect.Securities.SecurityExchangeHours, quote_currency: QuantConnect.Securities.Cash, base_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:
46
+ 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, base_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:
47
47
  """
48
48
  Constructor for the Crypto security
49
49
 
@@ -60,7 +60,7 @@ class Crypto(QuantConnect.Securities.Security, QuantConnect.Securities.IBaseCurr
60
60
  ...
61
61
 
62
62
  @staticmethod
63
- 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]:
63
+ 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]:
64
64
  """
65
65
  Decomposes the specified currency pair into a base and quote currency provided as out parameters
66
66
 
@@ -106,7 +106,7 @@ class CryptoFuture(QuantConnect.Securities.Security, QuantConnect.Securities.IBa
106
106
  def base_currency(self, value: QuantConnect.Securities.Cash) -> None:
107
107
  ...
108
108
 
109
- def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], exchange_hours: QuantConnect.Securities.SecurityExchangeHours, quote_currency: QuantConnect.Securities.Cash, base_currency: QuantConnect.Securities.Cash, symbol_properties: QuantConnect.Securities.SymbolProperties, currency_converter: QuantConnect.Securities.ICurrencyConverter, registered_types: QuantConnect.Securities.IRegisteredSecurityDataTypesProvider, cache: QuantConnect.Securities.SecurityCache) -> None:
109
+ 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, base_currency: QuantConnect.Securities.Cash, symbol_properties: QuantConnect.Securities.SymbolProperties, currency_converter: QuantConnect.Securities.ICurrencyConverter, registered_types: QuantConnect.Securities.IRegisteredSecurityDataTypesProvider, cache: QuantConnect.Securities.SecurityCache) -> None:
110
110
  """
111
111
  Constructor for the Crypto Future security
112
112
 
@@ -44,7 +44,7 @@ class Equity(QuantConnect.Securities.Security):
44
44
  ...
45
45
 
46
46
  @overload
47
- 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, primary_exchange: QuantConnect.Exchange = None) -> None:
47
+ 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, primary_exchange: QuantConnect.Exchange = None) -> None:
48
48
  """Construct the Equity Object"""
49
49
  ...
50
50
 
@@ -90,7 +90,7 @@ class Forex(QuantConnect.Securities.Security, QuantConnect.Securities.IBaseCurre
90
90
  ...
91
91
 
92
92
  @overload
93
- def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], exchange_hours: QuantConnect.Securities.SecurityExchangeHours, quote_currency: QuantConnect.Securities.Cash, base_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:
93
+ 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, base_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:
94
94
  """
95
95
  Constructor for the forex security
96
96
 
@@ -227,7 +227,7 @@ class Future(QuantConnect.Securities.Security, QuantConnect.Securities.IContinuo
227
227
  ...
228
228
 
229
229
  @overload
230
- 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:
230
+ 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:
231
231
  """
232
232
  Constructor for the Future security
233
233
 
@@ -427,7 +427,7 @@ class FuturesExpiryUtilityFunctions(System.Object):
427
427
  ...
428
428
 
429
429
  @staticmethod
430
- def get_future_contract_month(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> datetime.datetime:
430
+ def get_future_contract_month(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> datetime.datetime:
431
431
  """Helper method to retrieve the futures contract month"""
432
432
  ...
433
433
 
@@ -439,7 +439,7 @@ class FuturesExpiryUtilityFunctions(System.Object):
439
439
 
440
440
  @staticmethod
441
441
  @overload
442
- def get_future_expiration_from_contract_month(future: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], contract_month: typing.Union[datetime.datetime, datetime.date]) -> datetime.datetime:
442
+ def get_future_expiration_from_contract_month(future: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], contract_month: typing.Union[datetime.datetime, datetime.date]) -> datetime.datetime:
443
443
  """Helper method to resolve a future expiration from it's contract month"""
444
444
  ...
445
445
 
@@ -566,7 +566,7 @@ class FuturesExpiryUtilityFunctions(System.Object):
566
566
 
567
567
  @staticmethod
568
568
  @overload
569
- def third_friday(time: typing.Union[datetime.datetime, datetime.date], contract: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> datetime.datetime:
569
+ def third_friday(time: typing.Union[datetime.datetime, datetime.date], contract: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> datetime.datetime:
570
570
  """This function returns the third Friday of the month, adjusted for holidays and weekends."""
571
571
  ...
572
572
 
@@ -603,7 +603,7 @@ class FutureSymbol(System.Object):
603
603
  """Static class contains common utility methods specific to symbols representing the future contracts"""
604
604
 
605
605
  @staticmethod
606
- def is_standard(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> bool:
606
+ def is_standard(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> bool:
607
607
  """
608
608
  Determine if a given Futures contract is a standard contract.
609
609
 
@@ -613,7 +613,7 @@ class FutureSymbol(System.Object):
613
613
  ...
614
614
 
615
615
  @staticmethod
616
- def is_weekly(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> bool:
616
+ def is_weekly(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> bool:
617
617
  """
618
618
  Returns true if the future contract is a weekly contract
619
619
 
@@ -634,7 +634,7 @@ class FuturesExpiryFunctions(System.Object):
634
634
  """
635
635
 
636
636
  @staticmethod
637
- def futures_expiry_function(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> typing.Callable[[datetime.datetime], datetime.datetime]:
637
+ def futures_expiry_function(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> typing.Callable[[datetime.datetime], datetime.datetime]:
638
638
  """Method to retrieve the Function for a specific future symbol"""
639
639
  ...
640
640
 
@@ -669,7 +669,7 @@ class FutureHolding(QuantConnect.Securities.SecurityHolding):
669
669
  class EmptyFutureChainProvider(System.Object, QuantConnect.Interfaces.IFutureChainProvider):
670
670
  """An implementation of IFutureChainProvider that always returns an empty list of contracts"""
671
671
 
672
- def get_future_contract_list(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], date: typing.Union[datetime.datetime, datetime.date]) -> typing.Iterable[QuantConnect.Symbol]:
672
+ def get_future_contract_list(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], date: typing.Union[datetime.datetime, datetime.date]) -> typing.Iterable[QuantConnect.Symbol]:
673
673
  """
674
674
  Gets the list of future contracts for a given underlying symbol
675
675
 
@@ -14,7 +14,7 @@ import System
14
14
  class FutureOption(QuantConnect.Securities.Option.Option):
15
15
  """Futures Options security"""
16
16
 
17
- 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.Option.OptionSymbolProperties, currency_converter: QuantConnect.Securities.ICurrencyConverter, registered_types: QuantConnect.Securities.IRegisteredSecurityDataTypesProvider, security_cache: QuantConnect.Securities.SecurityCache, underlying: QuantConnect.Securities.Security) -> None:
17
+ 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.Option.OptionSymbolProperties, currency_converter: QuantConnect.Securities.ICurrencyConverter, registered_types: QuantConnect.Securities.IRegisteredSecurityDataTypesProvider, security_cache: QuantConnect.Securities.SecurityCache, underlying: QuantConnect.Securities.Security) -> None:
18
18
  """
19
19
  Constructor for the future option security
20
20
 
@@ -34,7 +34,7 @@ class FutureOptionSymbol(System.Object):
34
34
  """Static helper methods to resolve Futures Options Symbol-related tasks."""
35
35
 
36
36
  @staticmethod
37
- def get_last_day_of_trading(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> datetime.datetime:
37
+ def get_last_day_of_trading(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> datetime.datetime:
38
38
  """
39
39
  Gets the last day of trading, aliased to be the Futures options' expiry
40
40
 
@@ -44,7 +44,7 @@ class FutureOptionSymbol(System.Object):
44
44
  ...
45
45
 
46
46
  @staticmethod
47
- def is_standard(_: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> bool:
47
+ def is_standard(_: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> bool:
48
48
  """
49
49
  Detects if the future option contract is standard, i.e. not weekly, not short-term, not mid-sized, etc.
50
50
 
@@ -58,7 +58,7 @@ class FuturesOptionsUnderlyingMapper(System.Object):
58
58
  """Creates the underlying Symbol that corresponds to a futures options contract"""
59
59
 
60
60
  @staticmethod
61
- def get_future_contract_month_no_rules_applied(canonical_future_symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], future_option_expiration_date: typing.Union[datetime.datetime, datetime.date]) -> datetime.datetime:
61
+ def get_future_contract_month_no_rules_applied(canonical_future_symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], future_option_expiration_date: typing.Union[datetime.datetime, datetime.date]) -> datetime.datetime:
62
62
  """
63
63
  Gets the theoretical (i.e. intermediate/naive) future contract month if we assumed a 1-1 mapping
64
64
  between FOPs contract months and Futures contract months, i.e. they share the same contract month.
@@ -88,12 +88,12 @@ class FuturesOptionsExpiryFunctions(System.Object):
88
88
  """Futures options expiry lookup utility class"""
89
89
 
90
90
  @staticmethod
91
- def first_friday_of_contract_month(underlying_future: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], expiry_month: typing.Union[datetime.datetime, datetime.date]) -> datetime.datetime:
91
+ def first_friday_of_contract_month(underlying_future: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], expiry_month: typing.Union[datetime.datetime, datetime.date]) -> datetime.datetime:
92
92
  """First friday of the contract month"""
93
93
  ...
94
94
 
95
95
  @staticmethod
96
- def futures_option_expiry(canonical_future_option_symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], future_contract_month: typing.Union[datetime.datetime, datetime.date]) -> datetime.datetime:
96
+ def futures_option_expiry(canonical_future_option_symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], future_contract_month: typing.Union[datetime.datetime, datetime.date]) -> datetime.datetime:
97
97
  """
98
98
  Gets the Futures Options' expiry for the given contract month.
99
99
 
@@ -104,7 +104,7 @@ class FuturesOptionsExpiryFunctions(System.Object):
104
104
  ...
105
105
 
106
106
  @staticmethod
107
- def get_future_option_expiry_from_future_expiry(future_symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], canonical_future_option: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract] = None) -> datetime.datetime:
107
+ def get_future_option_expiry_from_future_expiry(future_symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], canonical_future_option: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security] = None) -> datetime.datetime:
108
108
  """
109
109
  Gets the Future Option's expiry from the Future Symbol provided
110
110
 
@@ -115,7 +115,7 @@ class FuturesOptionsExpiryFunctions(System.Object):
115
115
  ...
116
116
 
117
117
  @staticmethod
118
- def tenth_business_day_of_contract_month(underlying_future: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], expiry_month: typing.Union[datetime.datetime, datetime.date]) -> datetime.datetime:
118
+ def tenth_business_day_of_contract_month(underlying_future: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], expiry_month: typing.Union[datetime.datetime, datetime.date]) -> datetime.datetime:
119
119
  """Tenth business day of the month"""
120
120
  ...
121
121
 
@@ -124,7 +124,7 @@ class CMEStrikePriceScalingFactors(System.Object):
124
124
  """Provides a means to get the scaling factor for CME's quotes API"""
125
125
 
126
126
  @staticmethod
127
- def get_scale_factor(underlying_future: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> float:
127
+ def get_scale_factor(underlying_future: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> float:
128
128
  """
129
129
  Gets the option chain strike price scaling factor for the quote response from CME
130
130
 
@@ -56,7 +56,7 @@ class Index(QuantConnect.Securities.Security):
56
56
  ...
57
57
 
58
58
  @overload
59
- 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:
59
+ 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:
60
60
  """
61
61
  Constructor for the INDEX security
62
62
 
@@ -104,7 +104,7 @@ class IndexSymbol(System.Object):
104
104
  """Helper methods for Index Symbols"""
105
105
 
106
106
  @staticmethod
107
- def get_index_exchange(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> str:
107
+ def get_index_exchange(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> str:
108
108
  """
109
109
  Gets the actual exchange the index lives on
110
110
 
@@ -44,7 +44,7 @@ class IndexOptionSymbolProperties(QuantConnect.Securities.Option.OptionSymbolPro
44
44
  ...
45
45
 
46
46
  @staticmethod
47
- def minimum_price_variation_for_price(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], reference_price: typing.Optional[float]) -> float:
47
+ def minimum_price_variation_for_price(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], reference_price: typing.Optional[float]) -> float:
48
48
  """Minimum price variation, subject to variability due to contract price"""
49
49
  ...
50
50
 
@@ -76,7 +76,7 @@ class IndexOptionSymbol(System.Object):
76
76
  ...
77
77
 
78
78
  @staticmethod
79
- def is_standard(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> bool:
79
+ def is_standard(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> bool:
80
80
  """
81
81
  Determines if the Index Option Symbol is for a monthly contract
82
82
 
@@ -99,7 +99,7 @@ class IndexOptionSymbol(System.Object):
99
99
  class IndexOption(QuantConnect.Securities.Option.Option):
100
100
  """Index Options security"""
101
101
 
102
- 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.IndexOption.IndexOptionSymbolProperties, currency_converter: QuantConnect.Securities.ICurrencyConverter, registered_types: QuantConnect.Securities.IRegisteredSecurityDataTypesProvider, security_cache: QuantConnect.Securities.SecurityCache, underlying: QuantConnect.Securities.Security, settlement_type: QuantConnect.SettlementType = ...) -> None:
102
+ 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.IndexOption.IndexOptionSymbolProperties, currency_converter: QuantConnect.Securities.ICurrencyConverter, registered_types: QuantConnect.Securities.IRegisteredSecurityDataTypesProvider, security_cache: QuantConnect.Securities.SecurityCache, underlying: QuantConnect.Securities.Security, settlement_type: QuantConnect.SettlementType = ...) -> None:
103
103
  """
104
104
  Constructor for the index option security
105
105
 
@@ -123,7 +123,7 @@ class OptionPosition(System.IEquatable[QuantConnect_Securities_Option_StrategyMa
123
123
  """
124
124
  ...
125
125
 
126
- def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], quantity: int) -> None:
126
+ def __init__(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], quantity: int) -> None:
127
127
  """
128
128
  Initializes a new instance of the OptionPosition structure
129
129
 
@@ -177,7 +177,7 @@ class OptionPosition(System.IEquatable[QuantConnect_Securities_Option_StrategyMa
177
177
  ...
178
178
 
179
179
  @staticmethod
180
- def empty(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> QuantConnect.Securities.Option.StrategyMatcher.OptionPosition:
180
+ def empty(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> QuantConnect.Securities.Option.StrategyMatcher.OptionPosition:
181
181
  """Gets a new OptionPosition with zero quantity"""
182
182
  ...
183
183
 
@@ -359,7 +359,7 @@ class OptionPositionCollection(System.Object, typing.Iterable[QuantConnect.Secur
359
359
  ...
360
360
 
361
361
  @staticmethod
362
- def create(underlying: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], contract_multiplier: float, holdings: typing.List[QuantConnect.Securities.SecurityHolding]) -> QuantConnect.Securities.Option.StrategyMatcher.OptionPositionCollection:
362
+ def create(underlying: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], contract_multiplier: float, holdings: typing.List[QuantConnect.Securities.SecurityHolding]) -> QuantConnect.Securities.Option.StrategyMatcher.OptionPositionCollection:
363
363
  """
364
364
  Creates a new OptionPositionCollection from the specified holdings,
365
365
  filtering based on the underlying
@@ -406,7 +406,7 @@ class OptionPositionCollection(System.Object, typing.Iterable[QuantConnect.Secur
406
406
  """
407
407
  ...
408
408
 
409
- def has_position(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> bool:
409
+ def has_position(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> bool:
410
410
  """Determines if a position is held in the specified symbol"""
411
411
  ...
412
412
 
@@ -458,7 +458,7 @@ class OptionPositionCollection(System.Object, typing.Iterable[QuantConnect.Secur
458
458
  """
459
459
  ...
460
460
 
461
- def try_get_position(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], position: typing.Optional[QuantConnect.Securities.Option.StrategyMatcher.OptionPosition]) -> typing.Tuple[bool, QuantConnect.Securities.Option.StrategyMatcher.OptionPosition]:
461
+ def try_get_position(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], position: typing.Optional[QuantConnect.Securities.Option.StrategyMatcher.OptionPosition]) -> typing.Tuple[bool, QuantConnect.Securities.Option.StrategyMatcher.OptionPosition]:
462
462
  """
463
463
  Retrieves the OptionPosition for the specified symbol
464
464
  if one exists in this collection.
@@ -1168,7 +1168,7 @@ class OptionStrategyLegDefinition(System.Object, typing.Iterable[QuantConnect.Se
1168
1168
 
1169
1169
  @staticmethod
1170
1170
  @overload
1171
- def create_leg_data(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], quantity: int) -> QuantConnect.Securities.Option.OptionStrategy.LegData:
1171
+ def create_leg_data(symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], quantity: int) -> QuantConnect.Securities.Option.OptionStrategy.LegData:
1172
1172
  """Creates the appropriate OptionStrategy.LegData with the specified quantity"""
1173
1173
  ...
1174
1174