quantconnect-stubs 17507__py3-none-any.whl → 17509__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.
- QuantConnect/Lean/Engine/HistoricalData/__init__.pyi +29 -0
- QuantConnect/Orders/__init__.pyi +25 -16
- QuantConnect/Statistics/__init__.pyi +4 -0
- System/Net/__init__.pyi +2 -0
- {quantconnect_stubs-17507.dist-info → quantconnect_stubs-17509.dist-info}/METADATA +1 -1
- {quantconnect_stubs-17507.dist-info → quantconnect_stubs-17509.dist-info}/RECORD +8 -8
- {quantconnect_stubs-17507.dist-info → quantconnect_stubs-17509.dist-info}/WHEEL +0 -0
- {quantconnect_stubs-17507.dist-info → quantconnect_stubs-17509.dist-info}/top_level.txt +0 -0
|
@@ -256,3 +256,32 @@ class FakeHistoryProvider(QuantConnect.Data.HistoryProviderBase):
|
|
|
256
256
|
...
|
|
257
257
|
|
|
258
258
|
|
|
259
|
+
class MappedSynchronizingHistoryProvider(QuantConnect.Lean.Engine.HistoricalData.SynchronizingHistoryProvider, metaclass=abc.ABCMeta):
|
|
260
|
+
"""
|
|
261
|
+
Base class for history providers that resolve symbol mappings
|
|
262
|
+
and synchronize multiple data streams into time-aligned slices.
|
|
263
|
+
"""
|
|
264
|
+
|
|
265
|
+
@overload
|
|
266
|
+
def get_history(self, requests: typing.List[QuantConnect.Data.HistoryRequest], slice_time_zone: typing.Any) -> typing.Iterable[QuantConnect.Data.Slice]:
|
|
267
|
+
"""
|
|
268
|
+
Gets the history for the requested securities
|
|
269
|
+
|
|
270
|
+
:param requests: The historical data requests
|
|
271
|
+
:param slice_time_zone: The time zone used when time stamping the slice instances
|
|
272
|
+
:returns: An enumerable of the slices of data covering the span specified in each request.
|
|
273
|
+
"""
|
|
274
|
+
...
|
|
275
|
+
|
|
276
|
+
@overload
|
|
277
|
+
def get_history(self, request: QuantConnect.Data.HistoryRequest) -> typing.Iterable[QuantConnect.Data.BaseData]:
|
|
278
|
+
"""
|
|
279
|
+
Gets historical data for a single resolved history request.
|
|
280
|
+
Implementations should assume the symbol is already correctly mapped.
|
|
281
|
+
|
|
282
|
+
:param request: The resolved history request.
|
|
283
|
+
:returns: The historical data.
|
|
284
|
+
"""
|
|
285
|
+
...
|
|
286
|
+
|
|
287
|
+
|
QuantConnect/Orders/__init__.pyi
CHANGED
|
@@ -1526,6 +1526,22 @@ class BitfinexOrderProperties(QuantConnect.Orders.OrderProperties):
|
|
|
1526
1526
|
...
|
|
1527
1527
|
|
|
1528
1528
|
|
|
1529
|
+
class OrderPosition(IntEnum):
|
|
1530
|
+
"""Position of the order"""
|
|
1531
|
+
|
|
1532
|
+
BUY_TO_OPEN = 0
|
|
1533
|
+
"""Indicates the buy order will result in a long position, starting either from zero or an existing long position (0)"""
|
|
1534
|
+
|
|
1535
|
+
BUY_TO_CLOSE = 1
|
|
1536
|
+
"""Indicates the buy order is starting from an existing short position, resulting in a closed or long position (1)"""
|
|
1537
|
+
|
|
1538
|
+
SELL_TO_OPEN = 2
|
|
1539
|
+
"""Indicates the sell order will result in a short position, starting either from zero or an existing short position (2)"""
|
|
1540
|
+
|
|
1541
|
+
SELL_TO_CLOSE = 3
|
|
1542
|
+
"""Indicates the sell order is starting from an existing long position, resulting in a closed or short position (3)"""
|
|
1543
|
+
|
|
1544
|
+
|
|
1529
1545
|
class WolverineOrderProperties(QuantConnect.Orders.OrderProperties):
|
|
1530
1546
|
"""Wolverine order properties"""
|
|
1531
1547
|
|
|
@@ -1538,6 +1554,15 @@ class WolverineOrderProperties(QuantConnect.Orders.OrderProperties):
|
|
|
1538
1554
|
def exchange_post_fix(self, value: str) -> None:
|
|
1539
1555
|
...
|
|
1540
1556
|
|
|
1557
|
+
@property
|
|
1558
|
+
def position_side(self) -> typing.Optional[QuantConnect.Orders.OrderPosition]:
|
|
1559
|
+
"""Can optionally specify the position side in the order direction (buy-to-open, sell-to-close, etc.) instead of the default handling"""
|
|
1560
|
+
...
|
|
1561
|
+
|
|
1562
|
+
@position_side.setter
|
|
1563
|
+
def position_side(self, value: typing.Optional[QuantConnect.Orders.OrderPosition]) -> None:
|
|
1564
|
+
...
|
|
1565
|
+
|
|
1541
1566
|
|
|
1542
1567
|
class OrderResponseErrorCode(IntEnum):
|
|
1543
1568
|
"""Error detail code"""
|
|
@@ -2593,22 +2618,6 @@ class TradierOrderProperties(QuantConnect.Orders.OrderProperties):
|
|
|
2593
2618
|
...
|
|
2594
2619
|
|
|
2595
2620
|
|
|
2596
|
-
class OrderPosition(IntEnum):
|
|
2597
|
-
"""Position of the order"""
|
|
2598
|
-
|
|
2599
|
-
BUY_TO_OPEN = 0
|
|
2600
|
-
"""Indicates the buy order will result in a long position, starting either from zero or an existing long position (0)"""
|
|
2601
|
-
|
|
2602
|
-
BUY_TO_CLOSE = 1
|
|
2603
|
-
"""Indicates the buy order is starting from an existing short position, resulting in a closed or long position (1)"""
|
|
2604
|
-
|
|
2605
|
-
SELL_TO_OPEN = 2
|
|
2606
|
-
"""Indicates the sell order will result in a short position, starting either from zero or an existing short position (2)"""
|
|
2607
|
-
|
|
2608
|
-
SELL_TO_CLOSE = 3
|
|
2609
|
-
"""Indicates the sell order is starting from an existing long position, resulting in a closed or short position (3)"""
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
2621
|
class ComboLegLimitOrder(QuantConnect.Orders.ComboOrder):
|
|
2613
2622
|
"""Combo leg limit order type"""
|
|
2614
2623
|
|
|
@@ -148,6 +148,10 @@ class Trade(System.Object):
|
|
|
148
148
|
"""Returns the amount of profit given back before the trade was closed"""
|
|
149
149
|
...
|
|
150
150
|
|
|
151
|
+
@end_trade_drawdown.setter
|
|
152
|
+
def end_trade_drawdown(self, value: float) -> None:
|
|
153
|
+
...
|
|
154
|
+
|
|
151
155
|
@property
|
|
152
156
|
def is_win(self) -> bool:
|
|
153
157
|
"""Returns whether the trade was profitable (is a win) or not (a loss)"""
|
System/Net/__init__.pyi
CHANGED
|
@@ -137,7 +137,7 @@ QuantConnect/Lean/Engine/DataFeeds/Transport/__init__.pyi,sha256=wXWtsSJ-g76dgDb
|
|
|
137
137
|
QuantConnect/Lean/Engine/DataFeeds/WorkScheduling/__init__.py,sha256=sfd2NQt3B9NuzhHLG8NYLxLDOPXCaSfiCGJrjnNgvs0,1304
|
|
138
138
|
QuantConnect/Lean/Engine/DataFeeds/WorkScheduling/__init__.pyi,sha256=N4sj8STVxx0ihythGEBxWSStClROFXmyVrq-BoRiYwo,3297
|
|
139
139
|
QuantConnect/Lean/Engine/HistoricalData/__init__.py,sha256=p4_sHrn2af8igTz9uN7sRrkvjjUEXqmAe49fiYb8dpc,1274
|
|
140
|
-
QuantConnect/Lean/Engine/HistoricalData/__init__.pyi,sha256=
|
|
140
|
+
QuantConnect/Lean/Engine/HistoricalData/__init__.pyi,sha256=5RO-74XfVStxLy4AFywufmZ-37cOLId8fKl7ZOizP_g,10775
|
|
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
|
|
@@ -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=
|
|
172
|
+
QuantConnect/Orders/__init__.pyi,sha256=jaDdRyagroJesaOcmyVcRHOTg5sNI_RvAUXSrrQoda0,130791
|
|
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
|
|
236
|
+
QuantConnect/Statistics/__init__.pyi,sha256=-QyRmJ3nUWaPuRoOAhtV4tYcrd7y4NlcvyL8c0EBNvU,46388
|
|
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
|
|
@@ -301,7 +301,7 @@ System/IO/Strategies/__init__.py,sha256=qEEZVyrMooBV5rDJfPf31ibTB737uO_LFstXSDD8
|
|
|
301
301
|
System/Linq/__init__.py,sha256=4ktYngRQkfgcEHv9EOfzkyZy7R1vSS9sO-WoCNVyNrQ,1184
|
|
302
302
|
System/Linq/__init__.pyi,sha256=dbbN5crqNG14-qMidIO9xVmOeZbXx1vd9ltcu4IPwRU,5212
|
|
303
303
|
System/Net/__init__.py,sha256=ElazchyJp4EVSGyEEhYYRKtHjg5ukVUTG-irftLdGUA,1181
|
|
304
|
-
System/Net/__init__.pyi,sha256=
|
|
304
|
+
System/Net/__init__.pyi,sha256=_bwBo9qN16lCj5yLGh2muZptXEZX4t7QQ9ActLjt9EA,24127
|
|
305
305
|
System/Net/Cache/__init__.py,sha256=AZuaQTha0nwk7-qIuZ05HH85dG8UEOMtQmEWUYQbpA0,1199
|
|
306
306
|
System/Net/Cache/__init__.pyi,sha256=cvjA8Yd4Mgi64iVpYWhtr-jqpVbojRDUQOOyziAQQeY,715
|
|
307
307
|
System/Net/NetworkInformation/__init__.py,sha256=x6yNo43noff8Sw_g7XT2lSaopjWzpl1Jm2radgq8YSA,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-
|
|
406
|
-
quantconnect_stubs-
|
|
407
|
-
quantconnect_stubs-
|
|
408
|
-
quantconnect_stubs-
|
|
405
|
+
quantconnect_stubs-17509.dist-info/METADATA,sha256=WzDzXIkj-Ym_RuTxO5SaHLv8SyhZGj0NAGGltHGInDg,1504
|
|
406
|
+
quantconnect_stubs-17509.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
407
|
+
quantconnect_stubs-17509.dist-info/top_level.txt,sha256=-TybN6WLciSHclJ3a7i35Q5iL86nl5wAmrg1ghSzPvE,92
|
|
408
|
+
quantconnect_stubs-17509.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|