quantconnect-stubs 17401__py3-none-any.whl → 17406__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/Algorithm/__init__.pyi +30 -0
- QuantConnect/Api/__init__.pyi +33 -3
- QuantConnect/Lean/Engine/Results/__init__.pyi +0 -38
- System/IO/__init__.pyi +12 -0
- System/Threading/__init__.pyi +3 -3
- {quantconnect_stubs-17401.dist-info → quantconnect_stubs-17406.dist-info}/METADATA +1 -1
- {quantconnect_stubs-17401.dist-info → quantconnect_stubs-17406.dist-info}/RECORD +9 -9
- {quantconnect_stubs-17401.dist-info → quantconnect_stubs-17406.dist-info}/WHEEL +0 -0
- {quantconnect_stubs-17401.dist-info → quantconnect_stubs-17406.dist-info}/top_level.txt +0 -0
|
@@ -1488,6 +1488,16 @@ class QCAlgorithm(System.MarshalByRefObject, QuantConnect.Interfaces.IAlgorithm)
|
|
|
1488
1488
|
...
|
|
1489
1489
|
|
|
1490
1490
|
def add_cfd(self, ticker: str, resolution: typing.Optional[QuantConnect.Resolution] = None, market: str = None, fill_forward: bool = True, leverage: float = ...) -> QuantConnect.Securities.Cfd.Cfd:
|
|
1491
|
+
"""
|
|
1492
|
+
Creates and adds a new Cfd security to the algorithm
|
|
1493
|
+
|
|
1494
|
+
:param ticker: The CFD ticker symbol
|
|
1495
|
+
:param resolution: The Resolution of market data, Tick, Second, Minute, Hour, or Daily. Default is Resolution.MINUTE
|
|
1496
|
+
:param market: The cfd trading market, Market. Default value is null and looked up using IBrokerageModel.default_markets in AddSecurity{T}
|
|
1497
|
+
:param fill_forward: If true, returns the last available data even if none in that timeslice. Default is true
|
|
1498
|
+
:param leverage: The requested leverage for this CFD. Default is set by security_initializer
|
|
1499
|
+
:returns: The new Cfd security.
|
|
1500
|
+
"""
|
|
1491
1501
|
...
|
|
1492
1502
|
|
|
1493
1503
|
def add_chart(self, chart: QuantConnect.Chart) -> None:
|
|
@@ -1510,6 +1520,16 @@ class QCAlgorithm(System.MarshalByRefObject, QuantConnect.Interfaces.IAlgorithm)
|
|
|
1510
1520
|
...
|
|
1511
1521
|
|
|
1512
1522
|
def add_crypto_future(self, ticker: str, resolution: typing.Optional[QuantConnect.Resolution] = None, market: str = None, fill_forward: bool = True, leverage: float = ...) -> QuantConnect.Securities.CryptoFuture.CryptoFuture:
|
|
1523
|
+
"""
|
|
1524
|
+
Creates and adds a new CryptoFuture security to the algorithm
|
|
1525
|
+
|
|
1526
|
+
:param ticker: The crypto future ticker symbol
|
|
1527
|
+
:param resolution: The Resolution of market data, Tick, Second, Minute, Hour, or Daily. Default is Resolution.MINUTE
|
|
1528
|
+
:param market: The The crypto future trading market, Market. Default value is null and looked up using IBrokerageModel.default_markets in AddSecurity{T}
|
|
1529
|
+
:param fill_forward: If true, returns the last available data even if none in that timeslice. Default is true
|
|
1530
|
+
:param leverage: The requested leverage for this crypto future. Default is set by security_initializer
|
|
1531
|
+
:returns: The new CryptoFuture security.
|
|
1532
|
+
"""
|
|
1513
1533
|
...
|
|
1514
1534
|
|
|
1515
1535
|
@overload
|
|
@@ -1650,6 +1670,16 @@ class QCAlgorithm(System.MarshalByRefObject, QuantConnect.Interfaces.IAlgorithm)
|
|
|
1650
1670
|
...
|
|
1651
1671
|
|
|
1652
1672
|
def add_forex(self, ticker: str, resolution: typing.Optional[QuantConnect.Resolution] = None, market: str = None, fill_forward: bool = True, leverage: float = ...) -> QuantConnect.Securities.Forex.Forex:
|
|
1673
|
+
"""
|
|
1674
|
+
Creates and adds a new Forex security to the algorithm
|
|
1675
|
+
|
|
1676
|
+
:param ticker: The currency pair
|
|
1677
|
+
:param resolution: The Resolution of market data, Tick, Second, Minute, Hour, or Daily. Default is Resolution.MINUTE
|
|
1678
|
+
:param market: The foreign exchange trading market, Market. Default value is null and looked up using IBrokerageModel.default_markets in AddSecurity{T}
|
|
1679
|
+
:param fill_forward: If true, returns the last available data even if none in that timeslice. Default is true
|
|
1680
|
+
:param leverage: The requested leverage for this forex security. Default is set by security_initializer
|
|
1681
|
+
:returns: The new Forex security.
|
|
1682
|
+
"""
|
|
1653
1683
|
...
|
|
1654
1684
|
|
|
1655
1685
|
def add_future(self, ticker: str, resolution: typing.Optional[QuantConnect.Resolution] = None, market: str = None, fill_forward: bool = True, leverage: float = ..., extended_market_hours: bool = False, data_mapping_mode: typing.Optional[QuantConnect.DataMappingMode] = None, data_normalization_mode: typing.Optional[QuantConnect.DataNormalizationMode] = None, contract_depth_offset: int = 0) -> QuantConnect.Securities.Future.Future:
|
QuantConnect/Api/__init__.pyi
CHANGED
|
@@ -2,6 +2,7 @@ from typing import overload
|
|
|
2
2
|
from enum import IntEnum
|
|
3
3
|
import datetime
|
|
4
4
|
import typing
|
|
5
|
+
import warnings
|
|
5
6
|
|
|
6
7
|
import QuantConnect
|
|
7
8
|
import QuantConnect.Algorithm.Framework.Alphas
|
|
@@ -28,18 +29,24 @@ class ApiConnection(System.Object):
|
|
|
28
29
|
|
|
29
30
|
@property
|
|
30
31
|
def client(self) -> typing.Any:
|
|
31
|
-
"""
|
|
32
|
-
|
|
32
|
+
"""
|
|
33
|
+
Authorized client to use for requests.
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
RestSharp is deprecated and will be removed in a future release. Please use the SetClient method or the request methods that take an HttpRequestMessage
|
|
37
|
+
"""
|
|
38
|
+
warnings.warn("RestSharp is deprecated and will be removed in a future release. Please use the SetClient method or the request methods that take an HttpRequestMessage", DeprecationWarning)
|
|
33
39
|
|
|
34
40
|
@client.setter
|
|
35
41
|
def client(self, value: typing.Any) -> None:
|
|
36
|
-
|
|
42
|
+
warnings.warn("RestSharp is deprecated and will be removed in a future release. Please use the SetClient method or the request methods that take an HttpRequestMessage", DeprecationWarning)
|
|
37
43
|
|
|
38
44
|
@property
|
|
39
45
|
def connected(self) -> bool:
|
|
40
46
|
"""Return true if connected successfully."""
|
|
41
47
|
...
|
|
42
48
|
|
|
49
|
+
@overload
|
|
43
50
|
def __init__(self, user_id: int, token: str) -> None:
|
|
44
51
|
"""
|
|
45
52
|
Create a new Api Connection Class.
|
|
@@ -49,6 +56,29 @@ class ApiConnection(System.Object):
|
|
|
49
56
|
"""
|
|
50
57
|
...
|
|
51
58
|
|
|
59
|
+
@overload
|
|
60
|
+
def __init__(self, user_id: int, token: str, base_url: str = None, default_headers: System.Collections.Generic.Dictionary[str, str] = None, timeout: int = 0) -> None:
|
|
61
|
+
"""
|
|
62
|
+
Create a new Api Connection Class.
|
|
63
|
+
|
|
64
|
+
:param user_id: User Id number from QuantConnect.com account. Found at www.quantconnect.com/account
|
|
65
|
+
:param token: Access token for the QuantConnect account. Found at www.quantconnect.com/account
|
|
66
|
+
:param base_url: The client's base address
|
|
67
|
+
:param default_headers: Default headers for the client
|
|
68
|
+
:param timeout: The client timeout in seconds
|
|
69
|
+
"""
|
|
70
|
+
...
|
|
71
|
+
|
|
72
|
+
def set_client(self, base_url: str, default_headers: System.Collections.Generic.Dictionary[str, str] = None, timeout: int = 0) -> None:
|
|
73
|
+
"""
|
|
74
|
+
Overrides the current client
|
|
75
|
+
|
|
76
|
+
:param base_url: The client's base address
|
|
77
|
+
:param default_headers: Default headers for the client
|
|
78
|
+
:param timeout: The client timeout in seconds
|
|
79
|
+
"""
|
|
80
|
+
...
|
|
81
|
+
|
|
52
82
|
|
|
53
83
|
class StringRepresentation(System.Object):
|
|
54
84
|
"""Class to return the string representation of an API response class"""
|
|
@@ -1117,33 +1117,6 @@ class BacktestingResultHandler(QuantConnect.Lean.Engine.Results.BaseResultsHandl
|
|
|
1117
1117
|
"""Creates a new instance"""
|
|
1118
1118
|
...
|
|
1119
1119
|
|
|
1120
|
-
def add_to_log_store(self, message: str) -> None:
|
|
1121
|
-
"""
|
|
1122
|
-
Add message to LogStore
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
This codeEntityType is protected.
|
|
1126
|
-
|
|
1127
|
-
:param message: Message to add
|
|
1128
|
-
"""
|
|
1129
|
-
...
|
|
1130
|
-
|
|
1131
|
-
def algorithm_name_updated(self, name: str) -> None:
|
|
1132
|
-
"""
|
|
1133
|
-
Handles updates to the algorithm's name
|
|
1134
|
-
|
|
1135
|
-
:param name: The new name
|
|
1136
|
-
"""
|
|
1137
|
-
...
|
|
1138
|
-
|
|
1139
|
-
def algorithm_tags_updated(self, tags: System.Collections.Generic.HashSet[str]) -> None:
|
|
1140
|
-
"""
|
|
1141
|
-
Sends a packet communicating an update to the algorithm's tags
|
|
1142
|
-
|
|
1143
|
-
:param tags: The new tags
|
|
1144
|
-
"""
|
|
1145
|
-
...
|
|
1146
|
-
|
|
1147
1120
|
def brokerage_message(self, brokerage_message_event: QuantConnect.Brokerages.BrokerageMessageEvent) -> None:
|
|
1148
1121
|
"""
|
|
1149
1122
|
Process brokerage message events
|
|
@@ -1497,17 +1470,6 @@ class LiveTradingResultHandler(QuantConnect.Lean.Engine.Results.BaseResultsHandl
|
|
|
1497
1470
|
"""Creates a new instance"""
|
|
1498
1471
|
...
|
|
1499
1472
|
|
|
1500
|
-
def add_to_log_store(self, message: str) -> None:
|
|
1501
|
-
"""
|
|
1502
|
-
Save an algorithm message to the log store. Uses a different timestamped method of adding messaging to interweve debug and logging messages.
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
This codeEntityType is protected.
|
|
1506
|
-
|
|
1507
|
-
:param message: String message to send to browser.
|
|
1508
|
-
"""
|
|
1509
|
-
...
|
|
1510
|
-
|
|
1511
1473
|
def brokerage_message(self, brokerage_message_event: QuantConnect.Brokerages.BrokerageMessageEvent) -> None:
|
|
1512
1474
|
"""
|
|
1513
1475
|
Process brokerage message events
|
System/IO/__init__.pyi
CHANGED
|
@@ -744,6 +744,10 @@ class TextWriter(System.MarshalByRefObject, System.IDisposable, System.IAsyncDis
|
|
|
744
744
|
def write_async(self, value: System.Text.Rune) -> System.Threading.Tasks.Task:
|
|
745
745
|
...
|
|
746
746
|
|
|
747
|
+
@overload
|
|
748
|
+
def write_async(self, value: str, cancellation_token: System.Threading.CancellationToken) -> System.Threading.Tasks.Task:
|
|
749
|
+
...
|
|
750
|
+
|
|
747
751
|
@overload
|
|
748
752
|
def write_async(self, value: System.Text.StringBuilder, cancellation_token: System.Threading.CancellationToken = ...) -> System.Threading.Tasks.Task:
|
|
749
753
|
...
|
|
@@ -828,6 +832,10 @@ class TextWriter(System.MarshalByRefObject, System.IDisposable, System.IAsyncDis
|
|
|
828
832
|
def write_line_async(self, value: System.Text.Rune) -> System.Threading.Tasks.Task:
|
|
829
833
|
...
|
|
830
834
|
|
|
835
|
+
@overload
|
|
836
|
+
def write_line_async(self, value: str, cancellation_token: System.Threading.CancellationToken) -> System.Threading.Tasks.Task:
|
|
837
|
+
...
|
|
838
|
+
|
|
831
839
|
@overload
|
|
832
840
|
def write_line_async(self, value: System.Text.StringBuilder, cancellation_token: System.Threading.CancellationToken = ...) -> System.Threading.Tasks.Task:
|
|
833
841
|
...
|
|
@@ -848,6 +856,10 @@ class TextWriter(System.MarshalByRefObject, System.IDisposable, System.IAsyncDis
|
|
|
848
856
|
def write_line_async(self) -> System.Threading.Tasks.Task:
|
|
849
857
|
...
|
|
850
858
|
|
|
859
|
+
@overload
|
|
860
|
+
def write_line_async(self, cancellation_token: System.Threading.CancellationToken) -> System.Threading.Tasks.Task:
|
|
861
|
+
...
|
|
862
|
+
|
|
851
863
|
|
|
852
864
|
class StreamWriter(System.IO.TextWriter):
|
|
853
865
|
"""This class has no documentation."""
|
System/Threading/__init__.pyi
CHANGED
|
@@ -960,15 +960,15 @@ class Thread(System.Runtime.ConstrainedExecution.CriticalFinalizerObject):
|
|
|
960
960
|
...
|
|
961
961
|
|
|
962
962
|
@overload
|
|
963
|
-
def join(self) ->
|
|
963
|
+
def join(self, milliseconds_timeout: int) -> bool:
|
|
964
964
|
...
|
|
965
965
|
|
|
966
966
|
@overload
|
|
967
|
-
def join(self
|
|
967
|
+
def join(self) -> None:
|
|
968
968
|
...
|
|
969
969
|
|
|
970
970
|
@overload
|
|
971
|
-
def join(self,
|
|
971
|
+
def join(self, timeout: datetime.timedelta) -> bool:
|
|
972
972
|
...
|
|
973
973
|
|
|
974
974
|
@staticmethod
|
|
@@ -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=
|
|
33
|
+
QuantConnect/Algorithm/__init__.pyi,sha256=GUifoHAULr0gJKozSdL13CQ7l3TpEg7ezb0TFYFP_iY,438147
|
|
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=
|
|
60
|
+
QuantConnect/Api/__init__.pyi,sha256=fE_vYUEA3NcpZ-_tkdi4F5kWfLeWFnqaKV9kH-kJPiE,117456
|
|
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
|
|
@@ -141,7 +141,7 @@ QuantConnect/Lean/Engine/HistoricalData/__init__.pyi,sha256=COrFjUMa3BqRlbQf1JCU
|
|
|
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=
|
|
144
|
+
QuantConnect/Lean/Engine/Results/__init__.pyi,sha256=VY2UG2iPEud8KeE99xhgzYWP2MIqtUJFKILLDK8GXLQ,54370
|
|
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
|
|
@@ -294,7 +294,7 @@ System/Drawing/__init__.pyi,sha256=tkEWOtysPC40BeS7XByJa3gChycqI2RBt25gF9zZHh0,3
|
|
|
294
294
|
System/Globalization/__init__.py,sha256=tu0vXf08RD8xbSJfbf51S87c9N-QEtz5HEMzyzLAgzs,1211
|
|
295
295
|
System/Globalization/__init__.pyi,sha256=gRVUvyeQk66LEkuvCu0yuFQr5qx8TZdcZVABlnQ5MD0,72133
|
|
296
296
|
System/IO/__init__.py,sha256=zQozFt317VqXGbAq4_4SRs_b1Lvm44vQwlvvbtm3QO8,1178
|
|
297
|
-
System/IO/__init__.pyi,sha256=
|
|
297
|
+
System/IO/__init__.pyi,sha256=YEHik34JStOnC08FcOibTs-pn10wnwhqjnGZm1g1z0Q,100588
|
|
298
298
|
System/IO/Enumeration/__init__.py,sha256=ufCWdiWRnkEwrKu4CvBVKJfx0eu-LZTzmhdnN3edpdg,1214
|
|
299
299
|
System/IO/Enumeration/__init__.pyi,sha256=afpm6eVTU18QOZ466V2cOxqPJ7TX1i9iPbuZl6Be-TQ,4985
|
|
300
300
|
System/IO/Strategies/__init__.py,sha256=qEEZVyrMooBV5rDJfPf31ibTB737uO_LFstXSDD8mKw,1211
|
|
@@ -377,7 +377,7 @@ System/Text/RegularExpressions/Symbolic/__init__.py,sha256=nG7NuyvvYs_jL3srR4qiV
|
|
|
377
377
|
System/Text/Unicode/__init__.py,sha256=qDYv50z_Cwxb9mqG4zGgBPCOzFJEY_qMDLE8LaQ9okY,1208
|
|
378
378
|
System/Text/Unicode/__init__.pyi,sha256=oWgGCcoYWozJJKfc_wxUAvaHhIXcTENEPPUh76FsMPA,923
|
|
379
379
|
System/Threading/__init__.py,sha256=8fP5FmMEYh2pudPnHTEkaVP39M4j2IvfhKMBjtMIHY8,1199
|
|
380
|
-
System/Threading/__init__.pyi,sha256=
|
|
380
|
+
System/Threading/__init__.pyi,sha256=rlBXW5WNO6JygfYv04XhDfIv-QZ20Lrb_Mg1SJntJLM,57097
|
|
381
381
|
System/Threading/Tasks/__init__.py,sha256=LOxY-1Vt7UnMlDV8H98ktjZfUBZ5lkxLZIKT8YlEpQ4,1217
|
|
382
382
|
System/Threading/Tasks/__init__.pyi,sha256=CwIAmbd3GyVBOFRBjLReP7RmLOkxwZGbEU8jPPzDjE4,43341
|
|
383
383
|
System/Threading/Tasks/Sources/__init__.py,sha256=fTBx0mKz5-pFBv4NJGqjNStlhJt9Fu_IvOu1dwbMo04,1241
|
|
@@ -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-17406.dist-info/METADATA,sha256=jaWImG94IiNbT_uk1GtZy8UpF463IAN6bXAs7NNWvo4,1332
|
|
406
|
+
quantconnect_stubs-17406.dist-info/WHEEL,sha256=Mdi9PDNwEZptOjTlUcAth7XJDFtKrHYaQMPulZeBCiQ,91
|
|
407
|
+
quantconnect_stubs-17406.dist-info/top_level.txt,sha256=-TybN6WLciSHclJ3a7i35Q5iL86nl5wAmrg1ghSzPvE,92
|
|
408
|
+
quantconnect_stubs-17406.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|