quantconnect-stubs 17510__py3-none-any.whl → 17512__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.
@@ -139,6 +139,19 @@ class BaseResultsHandler(System.Object, metaclass=abc.ABCMeta):
139
139
  def last_delta_order_position(self, value: int) -> None:
140
140
  ...
141
141
 
142
+ @property
143
+ def last_trade_id(self) -> str:
144
+ """
145
+ The last position consumed from the TradeBuilder.closed_trades by get_delta_trades
146
+
147
+ This codeEntityType is protected.
148
+ """
149
+ ...
150
+
151
+ @last_trade_id.setter
152
+ def last_trade_id(self, value: str) -> None:
153
+ ...
154
+
142
155
  @property
143
156
  def last_delta_order_events_position(self) -> int:
144
157
  """
@@ -605,6 +618,17 @@ class BaseResultsHandler(System.Object, metaclass=abc.ABCMeta):
605
618
  """
606
619
  ...
607
620
 
621
+ def get_delta_trades(self, trades: typing.List[QuantConnect.Statistics.Trade], last_trade_id: str, should_stop: typing.Callable[[int], bool]) -> typing.List[QuantConnect.Statistics.Trade]:
622
+ """
623
+ Gets the trades generated starting from the provided TradeBuilder.closed_trades position,
624
+ which is determined by the last_trade_id and the Trade.id
625
+
626
+ This codeEntityType is protected.
627
+
628
+ :returns: The delta trades.
629
+ """
630
+ ...
631
+
608
632
  def get_net_return(self) -> float:
609
633
  """
610
634
  Gets the algorithm net return
@@ -1289,7 +1313,7 @@ class BacktestingResultHandler(QuantConnect.Lean.Engine.Results.BaseResultsHandl
1289
1313
  """
1290
1314
  ...
1291
1315
 
1292
- def split_packets(self, delta_charts: System.Collections.Generic.Dictionary[str, QuantConnect.Chart], delta_orders: System.Collections.Generic.Dictionary[int, QuantConnect.Orders.Order], runtime_statistics: System.Collections.Generic.SortedDictionary[str, str], progress: float, server_statistics: System.Collections.Generic.Dictionary[str, str]) -> typing.Iterable[QuantConnect.Packets.BacktestResultPacket]:
1316
+ def split_packets(self, delta_charts: System.Collections.Generic.Dictionary[str, QuantConnect.Chart], delta_orders: System.Collections.Generic.Dictionary[int, QuantConnect.Orders.Order], runtime_statistics: System.Collections.Generic.SortedDictionary[str, str], progress: float, server_statistics: System.Collections.Generic.Dictionary[str, str], algorithm_performance: QuantConnect.Statistics.AlgorithmPerformance) -> typing.Iterable[QuantConnect.Packets.BacktestResultPacket]:
1293
1317
  """Run over all the data and break it into smaller packets to ensure they all arrive at the terminal"""
1294
1318
  ...
1295
1319
 
@@ -1554,6 +1554,15 @@ class WolverineOrderProperties(QuantConnect.Orders.OrderProperties):
1554
1554
  def exchange_post_fix(self, value: str) -> None:
1555
1555
  ...
1556
1556
 
1557
+ @property
1558
+ def locate_broker(self) -> str:
1559
+ """Identifies the broker source for borrowed stock"""
1560
+ ...
1561
+
1562
+ @locate_broker.setter
1563
+ def locate_broker(self, value: str) -> None:
1564
+ ...
1565
+
1557
1566
  @property
1558
1567
  def position_side(self) -> typing.Optional[QuantConnect.Orders.OrderPosition]:
1559
1568
  """Can optionally specify the position side in the order direction (buy-to-open, sell-to-close, etc.) instead of the default handling"""
@@ -29,6 +29,15 @@ class TradeDirection(IntEnum):
29
29
  class Trade(System.Object):
30
30
  """Represents a closed trade"""
31
31
 
32
+ @property
33
+ def id(self) -> str:
34
+ """A unique identifier for the trade"""
35
+ ...
36
+
37
+ @id.setter
38
+ def id(self, value: str) -> None:
39
+ ...
40
+
32
41
  @property
33
42
  def symbol(self) -> QuantConnect.Symbol:
34
43
  """
@@ -870,6 +879,15 @@ class AlgorithmPerformance(System.Object):
870
879
  """Initializes a new instance of the AlgorithmPerformance class"""
871
880
  ...
872
881
 
882
+ @overload
883
+ def __init__(self, other: QuantConnect.Statistics.AlgorithmPerformance) -> None:
884
+ """
885
+ Initializes a new instance of the AlgorithmPerformance class
886
+
887
+ :param other: The performance instance to use as a base
888
+ """
889
+ ...
890
+
873
891
 
874
892
  class StatisticsResults(System.Object):
875
893
  """The StatisticsResults class represents total and rolling statistics for an algorithm"""
@@ -4267,22 +4267,52 @@ class Sve(System.Runtime.Intrinsics.Arm.AdvSimd, metaclass=abc.ABCMeta):
4267
4267
  ...
4268
4268
 
4269
4269
  @staticmethod
4270
+ @overload
4271
+ def create_break_after_mask(total_mask: System.Numerics.Vector[float], from_mask: System.Numerics.Vector[float]) -> System.Numerics.Vector[float]:
4272
+ ...
4273
+
4274
+ @staticmethod
4275
+ @overload
4270
4276
  def create_break_after_mask(total_mask: System.Numerics.Vector[int], from_mask: System.Numerics.Vector[int]) -> System.Numerics.Vector[int]:
4271
4277
  ...
4272
4278
 
4273
4279
  @staticmethod
4280
+ @overload
4281
+ def create_break_after_propagate_mask(mask: System.Numerics.Vector[float], left: System.Numerics.Vector[float], right: System.Numerics.Vector[float]) -> System.Numerics.Vector[float]:
4282
+ ...
4283
+
4284
+ @staticmethod
4285
+ @overload
4274
4286
  def create_break_after_propagate_mask(mask: System.Numerics.Vector[int], left: System.Numerics.Vector[int], right: System.Numerics.Vector[int]) -> System.Numerics.Vector[int]:
4275
4287
  ...
4276
4288
 
4277
4289
  @staticmethod
4290
+ @overload
4291
+ def create_break_before_mask(total_mask: System.Numerics.Vector[float], from_mask: System.Numerics.Vector[float]) -> System.Numerics.Vector[float]:
4292
+ ...
4293
+
4294
+ @staticmethod
4295
+ @overload
4278
4296
  def create_break_before_mask(total_mask: System.Numerics.Vector[int], from_mask: System.Numerics.Vector[int]) -> System.Numerics.Vector[int]:
4279
4297
  ...
4280
4298
 
4281
4299
  @staticmethod
4300
+ @overload
4301
+ def create_break_before_propagate_mask(mask: System.Numerics.Vector[float], left: System.Numerics.Vector[float], right: System.Numerics.Vector[float]) -> System.Numerics.Vector[float]:
4302
+ ...
4303
+
4304
+ @staticmethod
4305
+ @overload
4282
4306
  def create_break_before_propagate_mask(mask: System.Numerics.Vector[int], left: System.Numerics.Vector[int], right: System.Numerics.Vector[int]) -> System.Numerics.Vector[int]:
4283
4307
  ...
4284
4308
 
4285
4309
  @staticmethod
4310
+ @overload
4311
+ def create_break_propagate_mask(total_mask: System.Numerics.Vector[float], from_mask: System.Numerics.Vector[float]) -> System.Numerics.Vector[float]:
4312
+ ...
4313
+
4314
+ @staticmethod
4315
+ @overload
4286
4316
  def create_break_propagate_mask(total_mask: System.Numerics.Vector[int], from_mask: System.Numerics.Vector[int]) -> System.Numerics.Vector[int]:
4287
4317
  ...
4288
4318
 
@@ -4327,6 +4357,12 @@ class Sve(System.Runtime.Intrinsics.Arm.AdvSimd, metaclass=abc.ABCMeta):
4327
4357
  ...
4328
4358
 
4329
4359
  @staticmethod
4360
+ @overload
4361
+ def create_mask_for_first_active_element(total_mask: System.Numerics.Vector[float], from_mask: System.Numerics.Vector[float]) -> System.Numerics.Vector[float]:
4362
+ ...
4363
+
4364
+ @staticmethod
4365
+ @overload
4330
4366
  def create_mask_for_first_active_element(total_mask: System.Numerics.Vector[int], from_mask: System.Numerics.Vector[int]) -> System.Numerics.Vector[int]:
4331
4367
  ...
4332
4368
 
@@ -4772,6 +4808,10 @@ class Sve(System.Runtime.Intrinsics.Arm.AdvSimd, metaclass=abc.ABCMeta):
4772
4808
  def get_ffr_byte() -> System.Numerics.Vector[int]:
4773
4809
  ...
4774
4810
 
4811
+ @staticmethod
4812
+ def get_ffr_double() -> System.Numerics.Vector[float]:
4813
+ ...
4814
+
4775
4815
  @staticmethod
4776
4816
  def get_ffr_int_16() -> System.Numerics.Vector[int]:
4777
4817
  ...
@@ -4788,6 +4828,10 @@ class Sve(System.Runtime.Intrinsics.Arm.AdvSimd, metaclass=abc.ABCMeta):
4788
4828
  def get_ffr_s_byte() -> System.Numerics.Vector[int]:
4789
4829
  ...
4790
4830
 
4831
+ @staticmethod
4832
+ def get_ffr_single() -> System.Numerics.Vector[float]:
4833
+ ...
4834
+
4791
4835
  @staticmethod
4792
4836
  def get_ffr_u_int_16() -> System.Numerics.Vector[int]:
4793
4837
  ...
@@ -5477,6 +5521,12 @@ class Sve(System.Runtime.Intrinsics.Arm.AdvSimd, metaclass=abc.ABCMeta):
5477
5521
  ...
5478
5522
 
5479
5523
  @staticmethod
5524
+ @overload
5525
+ def set_ffr(value: System.Numerics.Vector[float]) -> None:
5526
+ ...
5527
+
5528
+ @staticmethod
5529
+ @overload
5480
5530
  def set_ffr(value: System.Numerics.Vector[int]) -> None:
5481
5531
  ...
5482
5532
 
@@ -5599,14 +5649,32 @@ class Sve(System.Runtime.Intrinsics.Arm.AdvSimd, metaclass=abc.ABCMeta):
5599
5649
  ...
5600
5650
 
5601
5651
  @staticmethod
5652
+ @overload
5653
+ def test_any_true(mask: System.Numerics.Vector[float], right_mask: System.Numerics.Vector[float]) -> bool:
5654
+ ...
5655
+
5656
+ @staticmethod
5657
+ @overload
5602
5658
  def test_any_true(mask: System.Numerics.Vector[int], right_mask: System.Numerics.Vector[int]) -> bool:
5603
5659
  ...
5604
5660
 
5605
5661
  @staticmethod
5662
+ @overload
5663
+ def test_first_true(left_mask: System.Numerics.Vector[float], right_mask: System.Numerics.Vector[float]) -> bool:
5664
+ ...
5665
+
5666
+ @staticmethod
5667
+ @overload
5606
5668
  def test_first_true(left_mask: System.Numerics.Vector[int], right_mask: System.Numerics.Vector[int]) -> bool:
5607
5669
  ...
5608
5670
 
5609
5671
  @staticmethod
5672
+ @overload
5673
+ def test_last_true(left_mask: System.Numerics.Vector[float], right_mask: System.Numerics.Vector[float]) -> bool:
5674
+ ...
5675
+
5676
+ @staticmethod
5677
+ @overload
5610
5678
  def test_last_true(left_mask: System.Numerics.Vector[int], right_mask: System.Numerics.Vector[int]) -> bool:
5611
5679
  ...
5612
5680
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: quantconnect-stubs
3
- Version: 17510
3
+ Version: 17512
4
4
  Summary: Type stubs for QuantConnect's Lean
5
5
  Home-page: https://github.com/QuantConnect/quantconnect-stubs-generator
6
6
  Author: QuantConnect
@@ -141,7 +141,7 @@ QuantConnect/Lean/Engine/HistoricalData/__init__.pyi,sha256=5RO-74XfVStxLy4AFywu
141
141
  QuantConnect/Lean/Engine/RealTime/__init__.py,sha256=kjYfQsxvViA0ILxYaXX69HWkUNM61cvfCSMei3XDcW4,1256
142
142
  QuantConnect/Lean/Engine/RealTime/__init__.pyi,sha256=x4dflCohMdU8cxotDZPljk9BsmrAYKW0WtOBC4z1IjM,15718
143
143
  QuantConnect/Lean/Engine/Results/__init__.py,sha256=4zVcjioAQ7OZcjAtctC7SVbhx7XbMo4ANQJTWJUjjUg,1253
144
- QuantConnect/Lean/Engine/Results/__init__.pyi,sha256=VY2UG2iPEud8KeE99xhgzYWP2MIqtUJFKILLDK8GXLQ,54370
144
+ QuantConnect/Lean/Engine/Results/__init__.pyi,sha256=iGPwtFTIrxsyxQzAreErUSbjBEXoiwVRUWKUPp8HkgU,55246
145
145
  QuantConnect/Lean/Engine/Server/__init__.py,sha256=OJ2TqQ_kxCKrrijuEgc_B45BH7cHyDvoeg7sCSjFomA,1250
146
146
  QuantConnect/Lean/Engine/Server/__init__.pyi,sha256=MW4jk0KVvlwhCTGNprPmebPTLBIkKFfkUqhV-5epuzI,4971
147
147
  QuantConnect/Lean/Engine/Setup/__init__.py,sha256=-CeE22GZBog-CfGn8YmPwwPKDWxN78bcFsxxQ-YIi8o,1247
@@ -169,7 +169,7 @@ QuantConnect/Optimizer/Parameters/__init__.pyi,sha256=PUJaiC7hkmvw-d5Xuc_XBDSNLg
169
169
  QuantConnect/Optimizer/Strategies/__init__.py,sha256=YbaSlUBULMrLr-KmGZ-4nJ6jM3L9APVWdTg6CWGQI7A,1256
170
170
  QuantConnect/Optimizer/Strategies/__init__.pyi,sha256=OChxe2gEUgFEBeN7-5VERTmu1_FKdyJLNKAohx-GSMk,11086
171
171
  QuantConnect/Orders/__init__.py,sha256=WE59vNuxNQhoBFWPW2Dhyx2nHXFYP5DV2jDKIMg7H4o,1214
172
- QuantConnect/Orders/__init__.pyi,sha256=jaDdRyagroJesaOcmyVcRHOTg5sNI_RvAUXSrrQoda0,130791
172
+ QuantConnect/Orders/__init__.pyi,sha256=_IPAPiTStXtnMV02hy09KcUAeTwPcI2Im3WeJVw75i8,131004
173
173
  QuantConnect/Orders/Fees/__init__.py,sha256=15ZvyliLAKz2lH7lmZzUg30bt3JQCSssEsqwY43kaiw,1229
174
174
  QuantConnect/Orders/Fees/__init__.pyi,sha256=ymVkRHVvluZESoRoOyQmHFcW9z8TTOxoVDUNhWdnmyM,34645
175
175
  QuantConnect/Orders/Fills/__init__.py,sha256=g8IQPj7NvWW-KlZR-uVzabEvpYGhG3BXowuZ5eFGbjc,1232
@@ -233,7 +233,7 @@ QuantConnect/Securities/Positions/__init__.pyi,sha256=igvxynti8nMMVgZYUZERy6idoE
233
233
  QuantConnect/Securities/Volatility/__init__.py,sha256=AJbGQfCS3nkLBHv6dCAa_eBCSrbtXpNU6k3snhrGliE,1259
234
234
  QuantConnect/Securities/Volatility/__init__.pyi,sha256=6oOTeZ7Vd8SbMRDLfolBZSI2r-rjIavYv67lrmFMADo,6736
235
235
  QuantConnect/Statistics/__init__.py,sha256=mU8jhN2i3yAmCCCSfZI5bTVs-PdOllMXiUPRltIdJYI,1226
236
- QuantConnect/Statistics/__init__.pyi,sha256=-QyRmJ3nUWaPuRoOAhtV4tYcrd7y4NlcvyL8c0EBNvU,46388
236
+ QuantConnect/Statistics/__init__.pyi,sha256=ApzyEZdrnhyyoZXTUo7cf-6fG0UIQx99NyVC9TJ-eRE,46832
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
@@ -344,7 +344,7 @@ System/Runtime/InteropServices/Swift/__init__.pyi,sha256=6ntLXS_NX8pB8tIvMyNfFJ8
344
344
  System/Runtime/Intrinsics/__init__.py,sha256=0hKPPOq_DdLVEFRCwCHCpauX2zeaNC4YU_j1lfMESro,1226
345
345
  System/Runtime/Intrinsics/__init__.pyi,sha256=hMYQr7Zm1_a7A9iyy4AN3ClHr-7n94oZ2mfNcGRFgec,27499
346
346
  System/Runtime/Intrinsics/Arm/__init__.py,sha256=ZE_WC947MWCUkRZJUWWacQ3VYdW7jleodNCJQnrpmSQ,1238
347
- System/Runtime/Intrinsics/Arm/__init__.pyi,sha256=Rd1ku-jsYSlhhwkEAd6fxlsjT4UvOlJWmI5uVDX-Xi4,291614
347
+ System/Runtime/Intrinsics/Arm/__init__.pyi,sha256=Z2VjWr9MCUHg2wZhIHPdS3sGNQ4M1UhbAhIBkm7ITX0,293792
348
348
  System/Runtime/Intrinsics/Wasm/__init__.py,sha256=doRlLYpuVd6PM-rFpd8od2yxSoeFn_9Mv6P8YoESbTU,1241
349
349
  System/Runtime/Intrinsics/Wasm/__init__.pyi,sha256=Iry_nIm1nYhxYKPK5_NxvuVpQx7G8_lViyvrbhXCes4,28565
350
350
  System/Runtime/Intrinsics/X86/__init__.py,sha256=nJo8wGM2gg-8ud0-puhXf_y8T1HCcLg4VRpbjIiosoA,1238
@@ -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-17510.dist-info/METADATA,sha256=HD74PCrD8CwLGFU0uzA-twdHWo7ZaxCxs27vDR8OjgU,1504
406
- quantconnect_stubs-17510.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
407
- quantconnect_stubs-17510.dist-info/top_level.txt,sha256=-TybN6WLciSHclJ3a7i35Q5iL86nl5wAmrg1ghSzPvE,92
408
- quantconnect_stubs-17510.dist-info/RECORD,,
405
+ quantconnect_stubs-17512.dist-info/METADATA,sha256=7m53bDtB4MEJTTpwB-fSFQTvtccPAHVIGzhBaR_1xxI,1504
406
+ quantconnect_stubs-17512.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
407
+ quantconnect_stubs-17512.dist-info/top_level.txt,sha256=-TybN6WLciSHclJ3a7i35Q5iL86nl5wAmrg1ghSzPvE,92
408
+ quantconnect_stubs-17512.dist-info/RECORD,,