quantconnect-stubs 17410__py3-none-any.whl → 17411__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.
@@ -4378,6 +4378,30 @@ class QCAlgorithm(System.MarshalByRefObject, QuantConnect.Interfaces.IAlgorithm)
4378
4378
  """
4379
4379
  ...
4380
4380
 
4381
+ def nhnl(self, symbols: typing.List[QuantConnect.Symbol], period: int, resolution: typing.Optional[QuantConnect.Resolution] = None, selector: typing.Callable[[QuantConnect.Data.IBaseData], QuantConnect.Data.Market.IBaseDataBar] = None) -> QuantConnect.Indicators.NewHighsNewLows:
4382
+ """
4383
+ Creates a new New Highs - New Lows indicator
4384
+
4385
+ :param symbols: The symbols whose NHNL we want
4386
+ :param period: The period over which to compute the NHNL
4387
+ :param resolution: The resolution
4388
+ :param selector: Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a IBaseDataBar
4389
+ :returns: The NewHighsNewLows indicator for the requested symbols over the specified period.
4390
+ """
4391
+ ...
4392
+
4393
+ def nhnlv(self, symbols: typing.List[QuantConnect.Symbol], period: int, resolution: typing.Optional[QuantConnect.Resolution] = None, selector: typing.Callable[[QuantConnect.Data.IBaseData], QuantConnect.Data.Market.TradeBar] = None) -> QuantConnect.Indicators.NewHighsNewLowsVolume:
4394
+ """
4395
+ Creates a new New Highs - New Lows Volume indicator
4396
+
4397
+ :param symbols: The symbols whose NHNLV we want
4398
+ :param period: The period over which to compute the NHNLV
4399
+ :param resolution: The resolution
4400
+ :param selector: Selects a value from the BaseData to send into the indicator, if null defaults to casting the input value to a TradeBar
4401
+ :returns: The NewHighsNewLowsVolume indicator for the requested symbols over the specified period.
4402
+ """
4403
+ ...
4404
+
4381
4405
  def obv(self, symbol: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract], resolution: typing.Optional[QuantConnect.Resolution] = None, selector: typing.Callable[[QuantConnect.Data.IBaseData], QuantConnect.Data.Market.TradeBar] = None) -> QuantConnect.Indicators.OnBalanceVolume:
4382
4406
  """
4383
4407
  Creates a new On Balance Volume indicator. This will compute the cumulative total volume
@@ -24,7 +24,34 @@ import System.Text.RegularExpressions
24
24
  JsonConverter = typing.Any
25
25
 
26
26
 
27
- class ApiConnection(System.Object):
27
+ class ApiUtils(System.Object):
28
+ """API utility methods"""
29
+
30
+ @staticmethod
31
+ def create_json_post_request(endpoint: str, payload: typing.Any = None, json_serializer_settings: typing.Any = None) -> typing.Any:
32
+ """
33
+ Creates a POST HttpRequestMessage with the specified endpoint and payload as json body
34
+
35
+ :param endpoint: The request endpoint
36
+ :param payload: The request payload
37
+ :param json_serializer_settings: Settings for the json serializer
38
+ :returns: The POST request.
39
+ """
40
+ ...
41
+
42
+ @staticmethod
43
+ def create_post_request(endpoint: str, payload: typing.List[System.Collections.Generic.KeyValuePair[str, str]] = None) -> typing.Any:
44
+ """
45
+ Creates a POST HttpRequestMessage with the specified endpoint and payload as form url encoded content.
46
+
47
+ :param endpoint: The request endpoint
48
+ :param payload: The request payload
49
+ :returns: The POST request.
50
+ """
51
+ ...
52
+
53
+
54
+ class ApiConnection(System.Object, System.IDisposable):
28
55
  """API Connection and Hash Manager"""
29
56
 
30
57
  @property
@@ -69,6 +96,10 @@ class ApiConnection(System.Object):
69
96
  """
70
97
  ...
71
98
 
99
+ def dispose(self) -> None:
100
+ """Disposes of the HTTP client"""
101
+ ...
102
+
72
103
  def set_client(self, base_url: str, default_headers: System.Collections.Generic.Dictionary[str, str] = None, timeout: int = 0) -> None:
73
104
  """
74
105
  Overrides the current client
@@ -166,6 +166,15 @@ class OAuthTokenHandler(typing.Generic[QuantConnect_Brokerages_Authentication_OA
166
166
  """
167
167
  ...
168
168
 
169
+ def dispose(self, disposing: bool) -> None:
170
+ """
171
+ Disposes of resources
172
+
173
+
174
+ This codeEntityType is protected.
175
+ """
176
+ ...
177
+
169
178
  def get_access_token(self, cancellation_token: System.Threading.CancellationToken) -> QuantConnect.Brokerages.Authentication.TokenCredentials:
170
179
  """
171
180
  Retrieves a valid access token from the Lean platform.
@@ -19,6 +19,7 @@ QuantConnect_Indicators_IndicatorDataPoint = typing.Any
19
19
  QuantConnect_Indicators_IIndicator = typing.Any
20
20
 
21
21
  QuantConnect_Indicators_ConstantIndicator_T = typing.TypeVar("QuantConnect_Indicators_ConstantIndicator_T")
22
+ QuantConnect_Indicators_NewHighsNewLows_T = typing.TypeVar("QuantConnect_Indicators_NewHighsNewLows_T")
22
23
  QuantConnect_Indicators_DualSymbolIndicator_TInput = typing.TypeVar("QuantConnect_Indicators_DualSymbolIndicator_TInput")
23
24
  QuantConnect_Indicators_IndicatorBase_T = typing.TypeVar("QuantConnect_Indicators_IndicatorBase_T")
24
25
  QuantConnect_Indicators_WindowIndicator_T = typing.TypeVar("QuantConnect_Indicators_WindowIndicator_T")
@@ -5425,6 +5426,108 @@ class ConnorsRelativeStrengthIndex(QuantConnect.Indicators.Indicator, QuantConne
5425
5426
  ...
5426
5427
 
5427
5428
 
5429
+ class NewHighsNewLows(typing.Generic[QuantConnect_Indicators_NewHighsNewLows_T], QuantConnect.Indicators.IndicatorBase[QuantConnect_Indicators_NewHighsNewLows_T], QuantConnect.Indicators.IIndicatorWarmUpPeriodProvider, metaclass=abc.ABCMeta):
5430
+ """
5431
+ The New Highs - New Lows indicator displays the daily difference or ratio between
5432
+ the number of assets reaching new highs and the number of stocks reaching new lows
5433
+ in defined time period.
5434
+ """
5435
+
5436
+ @property
5437
+ def difference(self) -> QuantConnect.Indicators.IndicatorBase[QuantConnect.Data.Market.IBaseDataBar]:
5438
+ """
5439
+ Difference between the number of assets reaching new highs and the number of assets
5440
+ reaching new lows in defined time period.
5441
+ """
5442
+ ...
5443
+
5444
+ @property
5445
+ def ratio(self) -> QuantConnect.Indicators.IndicatorBase[QuantConnect.Data.Market.IBaseDataBar]:
5446
+ """
5447
+ Ratio between the number of assets reaching new highs and the number of assets
5448
+ reaching new lows in defined time period.
5449
+ """
5450
+ ...
5451
+
5452
+ @property
5453
+ def new_highs(self) -> System.Collections.Generic.ICollection[QuantConnect_Indicators_NewHighsNewLows_T]:
5454
+ """
5455
+ List of assets that reached new high
5456
+
5457
+
5458
+ This codeEntityType is protected.
5459
+ """
5460
+ ...
5461
+
5462
+ @property
5463
+ def new_lows(self) -> System.Collections.Generic.ICollection[QuantConnect_Indicators_NewHighsNewLows_T]:
5464
+ """
5465
+ List of assets that reached new high
5466
+
5467
+
5468
+ This codeEntityType is protected.
5469
+ """
5470
+ ...
5471
+
5472
+ @property
5473
+ def is_ready(self) -> bool:
5474
+ """Gets a flag indicating when this indicator is ready and fully initialized"""
5475
+ ...
5476
+
5477
+ @property
5478
+ def warm_up_period(self) -> int:
5479
+ """Required period, in data points, for the indicator to be ready and fully initialized."""
5480
+ ...
5481
+
5482
+ def __init__(self, name: str, period: int) -> None:
5483
+ """Initializes a new instance of the NewHighsNewLows class"""
5484
+ ...
5485
+
5486
+ def add(self, asset: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> None:
5487
+ """
5488
+ Add tracking asset issue
5489
+
5490
+ :param asset: tracking asset issue
5491
+ """
5492
+ ...
5493
+
5494
+ def compute_next_value(self, input: QuantConnect_Indicators_NewHighsNewLows_T) -> float:
5495
+ """
5496
+ Computes the next value of this indicator from the given state
5497
+
5498
+
5499
+ This codeEntityType is protected.
5500
+
5501
+ :param input: The input given to the indicator
5502
+ :returns: A new value for this indicator.
5503
+ """
5504
+ ...
5505
+
5506
+ def remove(self, asset: typing.Union[QuantConnect.Symbol, str, QuantConnect.Data.Market.BaseContract]) -> None:
5507
+ """
5508
+ Remove tracking asset issue
5509
+
5510
+ :param asset: tracking asset issue
5511
+ """
5512
+ ...
5513
+
5514
+ def reset(self) -> None:
5515
+ """Resets this indicator to its initial state"""
5516
+ ...
5517
+
5518
+ def validate_and_compute_next_value(self, input: QuantConnect_Indicators_NewHighsNewLows_T) -> QuantConnect.Indicators.IndicatorResult:
5519
+ """
5520
+ Computes the next value of this indicator from the given state
5521
+
5522
+
5523
+ This codeEntityType is protected.
5524
+
5525
+ :param input: The input given to the indicator
5526
+ :returns: A new value for this indicator.
5527
+ """
5528
+ ...
5529
+
5530
+
5428
5531
  class DualSymbolIndicator(typing.Generic[QuantConnect_Indicators_DualSymbolIndicator_TInput], QuantConnect.Indicators.MultiSymbolIndicator[QuantConnect_Indicators_DualSymbolIndicator_TInput], metaclass=abc.ABCMeta):
5429
5532
  """Base class for indicators that work with two different symbols and calculate an indicator based on them."""
5430
5533
 
@@ -10649,6 +10752,42 @@ class Vortex(QuantConnect.Indicators.BarIndicator, QuantConnect.Indicators.IIndi
10649
10752
  ...
10650
10753
 
10651
10754
 
10755
+ class NewHighsNewLowsVolume(QuantConnect.Indicators.NewHighsNewLows[QuantConnect.Data.Market.TradeBar]):
10756
+ """
10757
+ The New Highs - New Lows Volume Ratio is a Breadth indicator calculated as ratio of
10758
+ summary volume of stocks reaching new high to summary volume of stocks reaching new
10759
+ low compared to high and low values in defined time period.
10760
+ """
10761
+
10762
+ @property
10763
+ def volume_ratio(self) -> QuantConnect.Indicators.IndicatorBase[QuantConnect.Data.Market.TradeBar]:
10764
+ """
10765
+ Volume ratio between the number of assets reaching new highs and the number of assets
10766
+ reaching new lows in defined time period.
10767
+ """
10768
+ ...
10769
+
10770
+ def __init__(self, name: str, period: int) -> None:
10771
+ """Initializes a new instance of the NewHighsNewLowsVolume class"""
10772
+ ...
10773
+
10774
+ def compute_next_value(self, input: QuantConnect.Data.Market.TradeBar) -> float:
10775
+ """
10776
+ Computes the next value of this indicator from the given state
10777
+
10778
+
10779
+ This codeEntityType is protected.
10780
+
10781
+ :param input: The input given to the indicator
10782
+ :returns: A new value for this indicator.
10783
+ """
10784
+ ...
10785
+
10786
+ def reset(self) -> None:
10787
+ """Resets tracked assets to its initial state"""
10788
+ ...
10789
+
10790
+
10652
10791
  class InternalBarStrength(QuantConnect.Indicators.BarIndicator, QuantConnect.Indicators.IIndicatorWarmUpPeriodProvider):
10653
10792
  """
10654
10793
  The InternalBarStrenght indicator is a measure of the relative position of a period's closing price
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: quantconnect-stubs
3
- Version: 17410
3
+ Version: 17411
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=C-sfiCEo0KDh6dpicdAI3Kc_HBM0rHIK1QXBJB9LPqA,431549
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=GUifoHAULr0gJKozSdL13CQ7l3TpEg7ezb0TFYFP_iY,438147
33
+ QuantConnect/Algorithm/__init__.pyi,sha256=nQyvOL0Swg_2Bj8mpLT9NlCfLNqsWNtgaLJhTzsA10s,439751
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,7 +57,7 @@ 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=nbG05en73bX48QuFIbtxow82gAMJl7NnfeRvZlP4PiI,38980
59
59
  QuantConnect/Api/__init__.py,sha256=vAJlpIoxQmzGaDmd4otSvUCWGOgMwlJZh-3GkUanY0U,1205
60
- QuantConnect/Api/__init__.pyi,sha256=fE_vYUEA3NcpZ-_tkdi4F5kWfLeWFnqaKV9kH-kJPiE,117456
60
+ QuantConnect/Api/__init__.pyi,sha256=LwGhvGYiHTb5lR-4TIHRNrLMH3NOc6OvwIqe6RglBbg,118559
61
61
  QuantConnect/Api/Serialization/__init__.py,sha256=grT3r1iCyKXKpvhVOU9ilAQdR1AkVmSumlH6xBqrCAQ,1247
62
62
  QuantConnect/Api/Serialization/__init__.pyi,sha256=XUXAXXsUkXAiPoOw_Z98RAARYQpZPPbFZWc6ZWcuQeY,1849
63
63
  QuantConnect/Benchmarks/__init__.py,sha256=R88R40175vAvKWO1FE5DBtSow5VJ53ElRMOVRBqhzuI,1226
@@ -65,7 +65,7 @@ QuantConnect/Benchmarks/__init__.pyi,sha256=qPhzpw4EzE8UrKoNPhqvh8MbBGmHv8HGJwgf
65
65
  QuantConnect/Brokerages/__init__.py,sha256=KZQ1Lua5IgmaUv8xJ-styLeGrIR4hX1LiBiNasKdvYY,1226
66
66
  QuantConnect/Brokerages/__init__.pyi,sha256=amx5W4Mhx6cZ3_H5C-JgpjlLp4asxgElY-tBMKY1Rg4,174784
67
67
  QuantConnect/Brokerages/Authentication/__init__.py,sha256=4QsOVrHtOapg0AWqnB8ub_6FkqXH_En8h7pDoywdcek,1271
68
- QuantConnect/Brokerages/Authentication/__init__.pyi,sha256=BnH9RaKwfbxO5KJ5b7_LdtSi-igwgliKsjNtr7OnfYg,8678
68
+ QuantConnect/Brokerages/Authentication/__init__.pyi,sha256=WALEHb9Vg-v4Zvu85UUJmsnkzGcdBoNAZR64LYn9BJM,8853
69
69
  QuantConnect/Brokerages/Backtesting/__init__.py,sha256=eey6rPGZqPTgs5OOlxJEUc-oLXtULP33yL6vmq43suM,1262
70
70
  QuantConnect/Brokerages/Backtesting/__init__.pyi,sha256=SINYxE2YnG5tkSsF7NxQ7Ul_LsyF2FoGOQp6Dt5SDVk,5395
71
71
  QuantConnect/Brokerages/CrossZero/__init__.py,sha256=3xxnGST0qYy7V8LtYWlfNNwen9FQfaAdWLGbL10-dUw,1256
@@ -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=LVmB4I_7eZ-3OOJlxvOUUw7RVA3iZj2xL6Egx3nxKRY,468217
119
+ QuantConnect/Indicators/__init__.pyi,sha256=2kQld4cX74khLZdlt_txqTq0pYhHwRorDHW1e9rBo4A,472997
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
@@ -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-17410.dist-info/METADATA,sha256=VaSB8y1Oz2bygZMdyUiRypUKtSHvb7N3hwFliyMu_2A,1332
406
- quantconnect_stubs-17410.dist-info/WHEEL,sha256=Mdi9PDNwEZptOjTlUcAth7XJDFtKrHYaQMPulZeBCiQ,91
407
- quantconnect_stubs-17410.dist-info/top_level.txt,sha256=-TybN6WLciSHclJ3a7i35Q5iL86nl5wAmrg1ghSzPvE,92
408
- quantconnect_stubs-17410.dist-info/RECORD,,
405
+ quantconnect_stubs-17411.dist-info/METADATA,sha256=1EXd-WBNz6aH0CTVwnI5HNYkTlTtuSzi0VOtzv8ETfg,1332
406
+ quantconnect_stubs-17411.dist-info/WHEEL,sha256=Mdi9PDNwEZptOjTlUcAth7XJDFtKrHYaQMPulZeBCiQ,91
407
+ quantconnect_stubs-17411.dist-info/top_level.txt,sha256=-TybN6WLciSHclJ3a7i35Q5iL86nl5wAmrg1ghSzPvE,92
408
+ quantconnect_stubs-17411.dist-info/RECORD,,