quantconnect-stubs 17400__py3-none-any.whl → 17403__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.
@@ -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:
@@ -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
- """Authorized client to use for requests."""
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"""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: quantconnect-stubs
3
- Version: 17400
3
+ Version: 17403
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=shx_QAefcE1ily76hNWe8Ugu76XRB2SHPkHuWD2iUUU,436061
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=aRjL-MxxMxDj0SgPXHdR5bZSs2tfe9_cIP4EFRT9rR0,115816
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
@@ -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-17400.dist-info/METADATA,sha256=-k-ambvWLhgdkxogmnChpGIJq519KUpLNmq0SYP6vx8,1332
406
- quantconnect_stubs-17400.dist-info/WHEEL,sha256=Mdi9PDNwEZptOjTlUcAth7XJDFtKrHYaQMPulZeBCiQ,91
407
- quantconnect_stubs-17400.dist-info/top_level.txt,sha256=-TybN6WLciSHclJ3a7i35Q5iL86nl5wAmrg1ghSzPvE,92
408
- quantconnect_stubs-17400.dist-info/RECORD,,
405
+ quantconnect_stubs-17403.dist-info/METADATA,sha256=DJ4xd5LvqX69D_kccKve8uNnouPa1vQwVdmQqBdnBVM,1332
406
+ quantconnect_stubs-17403.dist-info/WHEEL,sha256=Mdi9PDNwEZptOjTlUcAth7XJDFtKrHYaQMPulZeBCiQ,91
407
+ quantconnect_stubs-17403.dist-info/top_level.txt,sha256=-TybN6WLciSHclJ3a7i35Q5iL86nl5wAmrg1ghSzPvE,92
408
+ quantconnect_stubs-17403.dist-info/RECORD,,