quantconnect-stubs 17427__py3-none-any.whl → 17454__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.
@@ -2851,6 +2851,20 @@ class QCAlgorithm(System.MarshalByRefObject, QuantConnect.Interfaces.IAlgorithm)
2851
2851
  """
2852
2852
  ...
2853
2853
 
2854
+ def cov(self, target: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], reference: 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) -> QuantConnect.Indicators.Covariance:
2855
+ """
2856
+ Creates a Covariance indicator for the given target symbol in relation with the reference used.
2857
+ The indicator will be automatically updated on the given resolution.
2858
+
2859
+ :param target: The target symbol whose Covariance value we want
2860
+ :param reference: The reference symbol to compare with the target symbol
2861
+ :param period: The period of the Covariance indicator
2862
+ :param resolution: The resolution
2863
+ :param selector: Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar
2864
+ :returns: The Covariance indicator for the given parameters.
2865
+ """
2866
+ ...
2867
+
2854
2868
  @staticmethod
2855
2869
  def create_consolidator(period: datetime.timedelta, consolidator_input_type: typing.Type, tick_type: typing.Optional[QuantConnect.TickType] = None) -> QuantConnect.Data.Consolidators.IDataConsolidator:
2856
2870
  """
@@ -374,12 +374,12 @@ class Collaborator(System.Object):
374
374
  """Collaborator responses"""
375
375
 
376
376
  @property
377
- def uid(self) -> int:
377
+ def uid(self) -> typing.Optional[int]:
378
378
  """User ID"""
379
379
  ...
380
380
 
381
381
  @uid.setter
382
- def uid(self, value: int) -> None:
382
+ def uid(self, value: typing.Optional[int]) -> None:
383
383
  ...
384
384
 
385
385
  @property
@@ -2898,6 +2898,15 @@ class Api(System.Object, QuantConnect.Interfaces.IApi, QuantConnect.Interfaces.I
2898
2898
  """
2899
2899
  ...
2900
2900
 
2901
+ def create_api_connection(self, user_id: int, token: str) -> QuantConnect.Api.ApiConnection:
2902
+ """
2903
+ Create the api connection instance to use
2904
+
2905
+
2906
+ This codeEntityType is protected.
2907
+ """
2908
+ ...
2909
+
2901
2910
  def create_backtest(self, project_id: int, compile_id: str, backtest_name: str) -> QuantConnect.Api.Backtest:
2902
2911
  """
2903
2912
  Create a new backtest request and get the id.
@@ -2376,6 +2376,16 @@ class dYdXBrokerageModel(QuantConnect.Brokerages.DefaultBrokerageModel):
2376
2376
  """
2377
2377
  ...
2378
2378
 
2379
+ def get_buying_power_model(self, security: QuantConnect.Securities.Security) -> QuantConnect.Securities.IBuyingPowerModel:
2380
+ """
2381
+ Gets a new buying power model for the security, returning the default model with the security's configured leverage.
2382
+ For cash accounts, leverage = 1 is used.
2383
+
2384
+ :param security: The security to get a buying power model for
2385
+ :returns: The buying power model for this brokerage/security.
2386
+ """
2387
+ ...
2388
+
2379
2389
  def get_fee_model(self, security: QuantConnect.Securities.Security) -> QuantConnect.Orders.Fees.IFeeModel:
2380
2390
  """
2381
2391
  Provides dYdX fee model
@@ -20066,11 +20066,11 @@ class BrainLanguageMetricsEarningsCallsBase(typing.Generic[QuantConnect_DataSour
20066
20066
  """
20067
20067
 
20068
20068
  @property
20069
- def last_transcript_date(self) -> datetime.datetime:
20069
+ def last_transcript_date(self) -> typing.Optional[datetime.datetime]:
20070
20070
  ...
20071
20071
 
20072
20072
  @last_transcript_date.setter
20073
- def last_transcript_date(self, value: datetime.datetime) -> None:
20073
+ def last_transcript_date(self, value: typing.Optional[datetime.datetime]) -> None:
20074
20074
  ...
20075
20075
 
20076
20076
  @property
@@ -7197,6 +7197,70 @@ class EaseOfMovementValue(QuantConnect.Indicators.TradeBarIndicator, QuantConnec
7197
7197
  ...
7198
7198
 
7199
7199
 
7200
+ class Covariance(QuantConnect.Indicators.DualSymbolIndicator[QuantConnect.Data.Market.IBaseDataBar]):
7201
+ """
7202
+ This indicator computes the Covariance of two assets using the given Look-Back period.
7203
+ The Covariance of two assets is a measure of their co-movement.
7204
+ """
7205
+
7206
+ @property
7207
+ def is_ready(self) -> bool:
7208
+ """Gets a flag indicating when the indicator is ready and fully initialized"""
7209
+ ...
7210
+
7211
+ @overload
7212
+ def __init__(self, name: str, target_symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], reference_symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], period: int) -> None:
7213
+ """
7214
+ Creates a new Covariance indicator with the specified name, target, reference,
7215
+ and period values
7216
+
7217
+ :param name: The name of this indicator
7218
+ :param target_symbol: The target symbol of this indicator
7219
+ :param period: The period of this indicator
7220
+ :param reference_symbol: The reference symbol of this indicator
7221
+ """
7222
+ ...
7223
+
7224
+ @overload
7225
+ def __init__(self, target_symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], reference_symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], period: int) -> None:
7226
+ """
7227
+ Creates a new Covariance indicator with the specified target, reference,
7228
+ and period values
7229
+
7230
+ :param target_symbol: The target symbol of this indicator
7231
+ :param period: The period of this indicator
7232
+ :param reference_symbol: The reference symbol of this indicator
7233
+ """
7234
+ ...
7235
+
7236
+ @overload
7237
+ def __init__(self, name: str, period: int, target_symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security], reference_symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> None:
7238
+ """
7239
+ Creates a new Covariance indicator with the specified name, period, target and
7240
+ reference values
7241
+
7242
+ :param name: The name of this indicator
7243
+ :param period: The period of this indicator
7244
+ :param target_symbol: The target symbol of this indicator
7245
+ :param reference_symbol: The reference symbol of this indicator
7246
+ """
7247
+ ...
7248
+
7249
+ def compute_indicator(self) -> float:
7250
+ """
7251
+ Computes the covariance value of the target in relation with the reference
7252
+ using the target and reference returns
7253
+
7254
+
7255
+ This codeEntityType is protected.
7256
+ """
7257
+ ...
7258
+
7259
+ def reset(self) -> None:
7260
+ """Resets this indicator to its initial state"""
7261
+ ...
7262
+
7263
+
7200
7264
  class MoneyFlowIndex(QuantConnect.Indicators.TradeBarIndicator, QuantConnect.Indicators.IIndicatorWarmUpPeriodProvider):
7201
7265
  """
7202
7266
  The Money Flow Index (MFI) is an oscillator that uses both price and volume to
@@ -6074,6 +6074,14 @@ class ContractSecurityFilterUniverse(typing.Generic[QuantConnect_Securities_Cont
6074
6074
  WEEKLY = 2
6075
6075
  """Non standard weekly contracts"""
6076
6076
 
6077
+ DEFAULT_EXPIRATION_TYPE: QuantConnect.Securities.ContractSecurityFilterUniverse.ContractExpirationType = ...
6078
+ """
6079
+ The default expiration type filter value
6080
+
6081
+
6082
+ This codeEntityType is protected.
6083
+ """
6084
+
6077
6085
  @property
6078
6086
  def type(self) -> QuantConnect.Securities.ContractSecurityFilterUniverse.ContractExpirationType:
6079
6087
  """
@@ -6257,9 +6265,12 @@ class ContractSecurityFilterUniverse(typing.Generic[QuantConnect_Securities_Cont
6257
6265
  """
6258
6266
  Includes universe of non-standard weeklys contracts (if any) into selection
6259
6267
 
6268
+
6269
+ IncludeWeeklys is obsolete because weekly contracts are now included by default.
6270
+
6260
6271
  :returns: Universe with filter applied.
6261
6272
  """
6262
- ...
6273
+ warnings.warn("IncludeWeeklys is obsolete because weekly contracts are now included by default.", DeprecationWarning)
6263
6274
 
6264
6275
  def is_standard(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract, QuantConnect.Securities.Security]) -> bool:
6265
6276
  """
@@ -7471,6 +7482,7 @@ class OptionFilterUniverse(QuantConnect.Securities.ContractSecurityFilterUnivers
7471
7482
  def __init__(self, option: QuantConnect.Securities.Option.Option) -> None:
7472
7483
  """
7473
7484
  Constructs OptionFilterUniverse
7485
+ By default, the filter includes both standard and weekly contracts.
7474
7486
 
7475
7487
  :param option: The canonical option chain security
7476
7488
  """
@@ -1158,6 +1158,17 @@ class StreamReaderExtensions(System.Object):
1158
1158
  """
1159
1159
  ...
1160
1160
 
1161
+ @staticmethod
1162
+ def get_int_64(stream: System.IO.StreamReader, delimiter: str = ...) -> int:
1163
+ """
1164
+ Gets an integer from a stream reader
1165
+
1166
+ :param stream: The data stream
1167
+ :param delimiter: The data delimiter character to use, default is ','
1168
+ :returns: The integer instance read.
1169
+ """
1170
+ ...
1171
+
1161
1172
  @staticmethod
1162
1173
  def get_string(stream: System.IO.StreamReader, delimiter: str = ...) -> str:
1163
1174
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: quantconnect-stubs
3
- Version: 17427
3
+ Version: 17454
4
4
  Summary: Type stubs for QuantConnect's Lean
5
5
  Home-page: https://github.com/QuantConnect/quantconnect-stubs-generator
6
6
  Author: QuantConnect
@@ -30,7 +30,7 @@ QuantConnect/__init__.py,sha256=midIrNbX2TrTKCS981vuDbV9yxeoQH-q0XiO0-If0M8,1200
30
30
  QuantConnect/__init__.pyi,sha256=aG07PvrYr8JxNV1YLcg9cG3V7XEcF2YJyudL668zRfI,433533
31
31
  QuantConnect/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
32
32
  QuantConnect/Algorithm/__init__.py,sha256=Djvj5MZNx_nHNC9op6yKxB4fdq4ko0xkYM7RNItdbW8,1223
33
- QuantConnect/Algorithm/__init__.pyi,sha256=EkjMDJrAYng7V2ZgrNCCwuU2BTbslrfGBnR9uXN-E10,450665
33
+ QuantConnect/Algorithm/__init__.pyi,sha256=yHJe9aYxmIXO4_7Oa2LJIQRE2RCvr5oSDpEkToOE0KM,451843
34
34
  QuantConnect/Algorithm/Framework/__init__.py,sha256=vf82jxO59Yuotr2SVI1XuEtZh0iVhRUaglZdGcnsmyk,1253
35
35
  QuantConnect/Algorithm/Framework/__init__.pyi,sha256=3XALw5sRXw35hHnDufe6j-3vuWhSiU9zG7mL_4A97Lw,2054
36
36
  QuantConnect/Algorithm/Framework/Alphas/__init__.py,sha256=P7DeE_faVccNqZjE0W518NlC9UTY-r2QXriYt3w0qsw,1274
@@ -57,13 +57,13 @@ QuantConnect/AlgorithmFactory/Python/__init__.py,sha256=qfqTno5V4yyBr9nKwrGV3AjD
57
57
  QuantConnect/AlgorithmFactory/Python/Wrappers/__init__.py,sha256=Jn99uwgA99uqOBNophlXrnhBgqEN9AHi_PP4yWQ7K7c,1292
58
58
  QuantConnect/AlgorithmFactory/Python/Wrappers/__init__.pyi,sha256=ii2-Ssw4wtgL0gKA6YCpG2RlxpSl5ui2T3e-pLjahrU,39320
59
59
  QuantConnect/Api/__init__.py,sha256=vAJlpIoxQmzGaDmd4otSvUCWGOgMwlJZh-3GkUanY0U,1205
60
- QuantConnect/Api/__init__.pyi,sha256=HRC693J4QQT1O9gePxo04QYqmebgN9aB-q098TeJ2uY,118486
60
+ QuantConnect/Api/__init__.pyi,sha256=xsDu0tzigeg1DDBJzX_EYa7xdsTEOYz61bsgfVrZRQw,118764
61
61
  QuantConnect/Api/Serialization/__init__.py,sha256=grT3r1iCyKXKpvhVOU9ilAQdR1AkVmSumlH6xBqrCAQ,1247
62
62
  QuantConnect/Api/Serialization/__init__.pyi,sha256=QazreRB94wRgy4QlYKWcInFeJ4b3NupaYbuUy7tDfAo,1806
63
63
  QuantConnect/Benchmarks/__init__.py,sha256=R88R40175vAvKWO1FE5DBtSow5VJ53ElRMOVRBqhzuI,1226
64
64
  QuantConnect/Benchmarks/__init__.pyi,sha256=S3-44iVW-mbeczSdZ8agEINZd8UAZaf3hnxP5U65KWM,3045
65
65
  QuantConnect/Brokerages/__init__.py,sha256=KZQ1Lua5IgmaUv8xJ-styLeGrIR4hX1LiBiNasKdvYY,1226
66
- QuantConnect/Brokerages/__init__.pyi,sha256=GWjSjr2NcganAmtlTtNfemUG3-727QfGHp7ilMzpKoo,176379
66
+ QuantConnect/Brokerages/__init__.pyi,sha256=dflm4ULdMq--CBBqS2i-4lRFbcogswzis2CzT5w8sx0,176866
67
67
  QuantConnect/Brokerages/Authentication/__init__.py,sha256=4QsOVrHtOapg0AWqnB8ub_6FkqXH_En8h7pDoywdcek,1271
68
68
  QuantConnect/Brokerages/Authentication/__init__.pyi,sha256=C5slVstsknd94OH1C1Tnxel-MeyiIvdZauJioY5bHZs,8628
69
69
  QuantConnect/Brokerages/Backtesting/__init__.py,sha256=eey6rPGZqPTgs5OOlxJEUc-oLXtULP33yL6vmq43suM,1262
@@ -105,7 +105,7 @@ QuantConnect/Data/Shortable/__init__.pyi,sha256=3BFyzy1LZMeAnqfLjeruF5Tb5Ir0k_FG
105
105
  QuantConnect/Data/UniverseSelection/__init__.py,sha256=1nYsuv9pAXd26biwf66HITQ5IM4Ge6p0k6bEgSDTsXk,1262
106
106
  QuantConnect/Data/UniverseSelection/__init__.pyi,sha256=g3sIFYzKO9asMuAVqzHqsymPWr44dM7BAGR4JG6TeCY,114208
107
107
  QuantConnect/DataSource/__init__.py,sha256=XhzMxvu4vYUEBXNYCxWesFoxDgdR2QsqGq_WT7OHjhY,1226
108
- QuantConnect/DataSource/__init__.pyi,sha256=AqbGH7yoG_A4BTnWj75gFwYN8Iac_ILl696_6I66mKs,813903
108
+ QuantConnect/DataSource/__init__.pyi,sha256=m9ISuYwj4TFfEO5DYdA3-Jo7gQ2y0xsjxXCylRE7RqY,813937
109
109
  QuantConnect/DownloaderDataProvider/__init__.py,sha256=rMgch8Yi5NmCyai5eMhJl4f3OmqeJ4w5H7Ii5pzMyp4,1262
110
110
  QuantConnect/DownloaderDataProvider/Launcher/__init__.py,sha256=OOFCYmObcWKnx2yG70DyKat-svQddrX8xNbS1ptEzYY,1289
111
111
  QuantConnect/DownloaderDataProvider/Launcher/__init__.pyi,sha256=Li4CAJgjiEYy0BG09zpZ5hR9UvXr5Crw6gQD1xn5dj4,2276
@@ -116,7 +116,7 @@ QuantConnect/DownloaderDataProvider/Launcher/Models/Constants/__init__.pyi,sha25
116
116
  QuantConnect/Exceptions/__init__.py,sha256=eroOo3uFSnCLyCFxFILbVasfBKywdqD8GU9gcZEueY8,1226
117
117
  QuantConnect/Exceptions/__init__.pyi,sha256=UyILClSNP0-V3pn3BDQWw4m7VlinYnWV-9dMAsvVsrI,14201
118
118
  QuantConnect/Indicators/__init__.py,sha256=gmLswCCq796vpUry-AmQT9UbrEw7S7WgvB-dRTucn-o,1226
119
- QuantConnect/Indicators/__init__.pyi,sha256=Jx6CxGYlI0lNJ4srXaI8E-jcwatn1yuxzQLTnfWnBi4,479284
119
+ QuantConnect/Indicators/__init__.pyi,sha256=qozgDizQpGv65IbA759SIzO9SN60ute7HdA5he1zSwc,482189
120
120
  QuantConnect/Indicators/CandlestickPatterns/__init__.py,sha256=mSc8zF8vmEjhwfw9ewPhqPEPqtyMgiGCzmXK_Qr_os8,1286
121
121
  QuantConnect/Indicators/CandlestickPatterns/__init__.pyi,sha256=YWb34qFgwVywMUrnzfmeMZswqYJn6qVdzzcmS19Xdw8,88293
122
122
  QuantConnect/Interfaces/__init__.py,sha256=3tBhp3W4AMCFvrmCITRoLfPTWxckdX9spMD8XTmcsfY,1226
@@ -199,7 +199,7 @@ QuantConnect/Research/__init__.pyi,sha256=yzvLzrbIR5-G26rELYQPH_MSFb8GT1bjT_W4U_
199
199
  QuantConnect/Scheduling/__init__.py,sha256=1ZvfxXluXvxEH9xK3robe37w5ao5kiI3ilWSzo7frpI,1226
200
200
  QuantConnect/Scheduling/__init__.pyi,sha256=W0BrqGY45fQwaPwyJSJJnTfGi0gh10unbhNd4T5nxlU,56913
201
201
  QuantConnect/Securities/__init__.py,sha256=gu5pJdrrhApIw3ngUPqYZJvAas2v0zB9t6LNUutr-KI,1226
202
- QuantConnect/Securities/__init__.pyi,sha256=qY18G1Drh6X_uqiuFKHZAJcFSPwnEen1uvdblcH1lU8,361149
202
+ QuantConnect/Securities/__init__.pyi,sha256=Z8x-Ai3MvMW7Gt5b0XojmiXMWz-nHGzPSp8rtukRtZc,361669
203
203
  QuantConnect/Securities/Cfd/__init__.py,sha256=3itlvcL6DM4-hujnrzJoCkqa23k5aXew-F_VugCwte0,1238
204
204
  QuantConnect/Securities/Cfd/__init__.pyi,sha256=hc-Lgk-L0-HQW9lyJ9Naav6EBFLa3Pq7o4RlKKgG1rg,4926
205
205
  QuantConnect/Securities/Crypto/__init__.py,sha256=G5uEfMrpVR3tdmLSbRScw6iGkRtohDIKGLTKi3_AH6Q,1247
@@ -237,7 +237,7 @@ QuantConnect/Statistics/__init__.pyi,sha256=CoynjepKgva_OCXSS_aX5sTKNPAO3J09u1fp
237
237
  QuantConnect/Storage/__init__.py,sha256=ycFDXSbQIVczsqFPWM0GNZuvxG28tiNFKRfOnHlmZDs,1217
238
238
  QuantConnect/Storage/__init__.pyi,sha256=tsNL_DaG1r81-9r1rq_k79GhvfpOfMXzGG6K65YHcQM,6891
239
239
  QuantConnect/Util/__init__.py,sha256=FVfQYsRSqnOqvSsSdFd-oZ9PZqDVtIB-FUQ8hyfCXSE,1208
240
- QuantConnect/Util/__init__.pyi,sha256=wEzkQ5CXK2J-76QztDAZBseLCY-1ujMjg3TtUkIEvJU,95901
240
+ QuantConnect/Util/__init__.pyi,sha256=E_6kSmgd7eki8G4tVDwsHAV8heHVKMtFDiy6vMUNM9c,96253
241
241
  QuantConnect/Util/RateLimit/__init__.py,sha256=_7bQ-8H-H1U158oAGyyV3m55AGLlgQb0OtFP6SY3iHM,1238
242
242
  QuantConnect/Util/RateLimit/__init__.pyi,sha256=_Z7GSD0Ca-ckUusHSNaMIG6DnM3oXma0VpuM7KYwK2U,9160
243
243
  System/__init__.py,sha256=UOn_xefVV33RQ2aRTs0Za_LJKJn75shsI0U2nW4Eexo,1169
@@ -402,7 +402,7 @@ clr/__init__.pyi,sha256=21MB2O5_ACzDS7l56ETyFFH9c0TOSGov39Xs1a1r6ik,418
402
402
  clr/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
403
403
  exports/__init__.py,sha256=ioORXBph-UrMrE_0Rghav2MU6fWzjozXikRm9MmxAkw,1173
404
404
  exports/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
405
- quantconnect_stubs-17427.dist-info/METADATA,sha256=aARjcAawOR7sJKAuU0Dc6quS9aKit5G-sU7AfeyhWF4,1504
406
- quantconnect_stubs-17427.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
407
- quantconnect_stubs-17427.dist-info/top_level.txt,sha256=-TybN6WLciSHclJ3a7i35Q5iL86nl5wAmrg1ghSzPvE,92
408
- quantconnect_stubs-17427.dist-info/RECORD,,
405
+ quantconnect_stubs-17454.dist-info/METADATA,sha256=8OEntSGIqvGc9El7hVn9dZD-JwYc-C-tcFMIJde9zuo,1504
406
+ quantconnect_stubs-17454.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
407
+ quantconnect_stubs-17454.dist-info/top_level.txt,sha256=-TybN6WLciSHclJ3a7i35Q5iL86nl5wAmrg1ghSzPvE,92
408
+ quantconnect_stubs-17454.dist-info/RECORD,,