snaptrade-python-sdk 11.0.129__py3-none-any.whl → 11.0.130__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.
- snaptrade_client/__init__.py +1 -1
- snaptrade_client/api_client.py +1 -1
- snaptrade_client/configuration.py +1 -1
- snaptrade_client/model/mleg_price_effect_strict.py +2 -17
- snaptrade_client/model/mleg_price_effect_strict.pyi +2 -25
- snaptrade_client/model/mleg_price_effect_strict_nullable.py +1 -1
- snaptrade_client/model/mleg_price_effect_strict_nullable.pyi +1 -1
- snaptrade_client/model/snap_trade_login_user_request_body.py +5 -0
- snaptrade_client/model/snap_trade_login_user_request_body.pyi +4 -0
- snaptrade_client/type/snap_trade_login_user_request_body.py +1 -1
- {snaptrade_python_sdk-11.0.129.dist-info → snaptrade_python_sdk-11.0.130.dist-info}/METADATA +4 -4
- {snaptrade_python_sdk-11.0.129.dist-info → snaptrade_python_sdk-11.0.130.dist-info}/RECORD +14 -14
- {snaptrade_python_sdk-11.0.129.dist-info → snaptrade_python_sdk-11.0.130.dist-info}/LICENSE +0 -0
- {snaptrade_python_sdk-11.0.129.dist-info → snaptrade_python_sdk-11.0.130.dist-info}/WHEEL +0 -0
snaptrade_client/__init__.py
CHANGED
snaptrade_client/api_client.py
CHANGED
|
@@ -1155,7 +1155,7 @@ class ApiClient:
|
|
|
1155
1155
|
self.default_headers[header_name] = header_value
|
|
1156
1156
|
self.cookie = cookie
|
|
1157
1157
|
# Set default User-Agent.
|
|
1158
|
-
self.user_agent = 'Konfig/11.0.
|
|
1158
|
+
self.user_agent = 'Konfig/11.0.130/python'
|
|
1159
1159
|
|
|
1160
1160
|
def __enter__(self):
|
|
1161
1161
|
return self
|
|
@@ -438,7 +438,7 @@ conf = snaptrade_client.Configuration(
|
|
|
438
438
|
"OS: {env}\n"\
|
|
439
439
|
"Python Version: {pyversion}\n"\
|
|
440
440
|
"Version of the API: 1.0.0\n"\
|
|
441
|
-
"SDK Package Version: 11.0.
|
|
441
|
+
"SDK Package Version: 11.0.130".\
|
|
442
442
|
format(env=sys.platform, pyversion=sys.version)
|
|
443
443
|
|
|
444
444
|
def get_host_settings(self):
|
|
@@ -26,15 +26,12 @@ from snaptrade_client import schemas # noqa: F401
|
|
|
26
26
|
|
|
27
27
|
class MlegPriceEffectStrict(
|
|
28
28
|
schemas.EnumBase,
|
|
29
|
-
schemas.
|
|
30
|
-
schemas.NoneBase,
|
|
31
|
-
schemas.Schema,
|
|
32
|
-
schemas.NoneStrMixin
|
|
29
|
+
schemas.StrSchema
|
|
33
30
|
):
|
|
34
31
|
"""
|
|
35
32
|
This class is auto generated by Konfig (https://konfigthis.com)
|
|
36
33
|
|
|
37
|
-
The desired price_effect for LIMIT and STOP_LOSS_LIMIT orders
|
|
34
|
+
The desired price_effect for LIMIT and STOP_LOSS_LIMIT orders
|
|
38
35
|
"""
|
|
39
36
|
|
|
40
37
|
|
|
@@ -56,15 +53,3 @@ class MlegPriceEffectStrict(
|
|
|
56
53
|
@schemas.classproperty
|
|
57
54
|
def EVEN(cls):
|
|
58
55
|
return cls("EVEN")
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
def __new__(
|
|
62
|
-
cls,
|
|
63
|
-
*args: typing.Union[None, str, ],
|
|
64
|
-
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
65
|
-
) -> 'MlegPriceEffectStrict':
|
|
66
|
-
return super().__new__(
|
|
67
|
-
cls,
|
|
68
|
-
*args,
|
|
69
|
-
_configuration=_configuration,
|
|
70
|
-
)
|
|
@@ -26,24 +26,13 @@ from snaptrade_client import schemas # noqa: F401
|
|
|
26
26
|
|
|
27
27
|
class MlegPriceEffectStrict(
|
|
28
28
|
schemas.EnumBase,
|
|
29
|
-
schemas.
|
|
30
|
-
schemas.NoneBase,
|
|
31
|
-
schemas.Schema,
|
|
32
|
-
schemas.NoneStrMixin
|
|
29
|
+
schemas.StrSchema
|
|
33
30
|
):
|
|
34
31
|
"""
|
|
35
32
|
This class is auto generated by Konfig (https://konfigthis.com)
|
|
36
33
|
|
|
37
|
-
The desired price_effect for LIMIT and STOP_LOSS_LIMIT orders
|
|
34
|
+
The desired price_effect for LIMIT and STOP_LOSS_LIMIT orders
|
|
38
35
|
"""
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
class MetaOapg:
|
|
42
|
-
enum_value_to_name = {
|
|
43
|
-
"CREDIT": "CREDIT",
|
|
44
|
-
"DEBIT": "DEBIT",
|
|
45
|
-
"EVEN": "EVEN",
|
|
46
|
-
}
|
|
47
36
|
|
|
48
37
|
@schemas.classproperty
|
|
49
38
|
def CREDIT(cls):
|
|
@@ -56,15 +45,3 @@ class MlegPriceEffectStrict(
|
|
|
56
45
|
@schemas.classproperty
|
|
57
46
|
def EVEN(cls):
|
|
58
47
|
return cls("EVEN")
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
def __new__(
|
|
62
|
-
cls,
|
|
63
|
-
*args: typing.Union[None, str, ],
|
|
64
|
-
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
65
|
-
) -> 'MlegPriceEffectStrict':
|
|
66
|
-
return super().__new__(
|
|
67
|
-
cls,
|
|
68
|
-
*args,
|
|
69
|
-
_configuration=_configuration,
|
|
70
|
-
)
|
|
@@ -34,7 +34,7 @@ class MlegPriceEffectStrictNullable(
|
|
|
34
34
|
"""
|
|
35
35
|
This class is auto generated by Konfig (https://konfigthis.com)
|
|
36
36
|
|
|
37
|
-
The desired price_effect for LIMIT and STOP_LOSS_LIMIT orders
|
|
37
|
+
The desired price_effect for LIMIT and STOP_LOSS_LIMIT orders
|
|
38
38
|
"""
|
|
39
39
|
|
|
40
40
|
|
|
@@ -34,7 +34,7 @@ class MlegPriceEffectStrictNullable(
|
|
|
34
34
|
"""
|
|
35
35
|
This class is auto generated by Konfig (https://konfigthis.com)
|
|
36
36
|
|
|
37
|
-
The desired price_effect for LIMIT and STOP_LOSS_LIMIT orders
|
|
37
|
+
The desired price_effect for LIMIT and STOP_LOSS_LIMIT orders
|
|
38
38
|
"""
|
|
39
39
|
|
|
40
40
|
|
|
@@ -53,6 +53,7 @@ class SnapTradeLoginUserRequestBody(
|
|
|
53
53
|
enum_value_to_name = {
|
|
54
54
|
"read": "READ",
|
|
55
55
|
"trade": "TRADE",
|
|
56
|
+
"trade-if-available": "TRADEIFAVAILABLE",
|
|
56
57
|
}
|
|
57
58
|
|
|
58
59
|
@schemas.classproperty
|
|
@@ -62,6 +63,10 @@ class SnapTradeLoginUserRequestBody(
|
|
|
62
63
|
@schemas.classproperty
|
|
63
64
|
def TRADE(cls):
|
|
64
65
|
return cls("trade")
|
|
66
|
+
|
|
67
|
+
@schemas.classproperty
|
|
68
|
+
def TRADEIFAVAILABLE(cls):
|
|
69
|
+
return cls("trade-if-available")
|
|
65
70
|
|
|
66
71
|
|
|
67
72
|
class connectionPortalVersion(
|
|
@@ -32,7 +32,7 @@ class OptionalSnapTradeLoginUserRequestBody(TypedDict, total=False):
|
|
|
32
32
|
# The UUID of the brokerage connection to be reconnected. This parameter should be left empty unless you are reconnecting a disabled connection. See the [guide on fixing broken connections](/docs/fix-broken-connections) for more information.
|
|
33
33
|
reconnect: str
|
|
34
34
|
|
|
35
|
-
#
|
|
35
|
+
# Determines connection permissions (default: read) - `read`: Data access only. - `trade`: Data and trading access. - `trade-if-available`: Attempts to establish a trading connection if the brokerage supports it, otherwise falls back to read-only access automatically.
|
|
36
36
|
connectionType: str
|
|
37
37
|
|
|
38
38
|
# Sets the connection portal version to render. Currently only v4 is supported and is the default. All other versions are deprecated and will automatically be set to v4.
|
{snaptrade_python_sdk-11.0.129.dist-info → snaptrade_python_sdk-11.0.130.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: snaptrade-python-sdk
|
|
3
|
-
Version: 11.0.
|
|
3
|
+
Version: 11.0.130
|
|
4
4
|
Summary: Client for SnapTrade
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: SnapTrade
|
|
@@ -30,7 +30,7 @@ Description-Content-Type: text/markdown
|
|
|
30
30
|
Connect brokerage accounts to your app for live positions and trading
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
[](https://pypi.org/project/snaptrade-python-sdk/11.0.130)
|
|
34
34
|
[](https://github.com/passiv/snaptrade-sdks/tree/master/sdks/python#readme)
|
|
35
35
|
[](https://snaptrade.com/)
|
|
36
36
|
|
|
@@ -109,7 +109,7 @@ Python >=3.8
|
|
|
109
109
|
## Installation<a id="installation"></a>
|
|
110
110
|
|
|
111
111
|
```sh
|
|
112
|
-
pip install snaptrade-python-sdk==11.0.
|
|
112
|
+
pip install snaptrade-python-sdk==11.0.130
|
|
113
113
|
```
|
|
114
114
|
|
|
115
115
|
## Getting Started<a id="getting-started"></a>
|
|
@@ -844,7 +844,7 @@ The UUID of the brokerage connection to be reconnected. This parameter should be
|
|
|
844
844
|
|
|
845
845
|
##### connection_type: `str`<a id="connection_type-str"></a>
|
|
846
846
|
|
|
847
|
-
|
|
847
|
+
Determines connection permissions (default: read) - `read`: Data access only. - `trade`: Data and trading access. - `trade-if-available`: Attempts to establish a trading connection if the brokerage supports it, otherwise falls back to read-only access automatically.
|
|
848
848
|
|
|
849
849
|
##### connection_portal_version: `str`<a id="connection_portal_version-str"></a>
|
|
850
850
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
snaptrade_client/__init__.py,sha256=
|
|
2
|
-
snaptrade_client/api_client.py,sha256=
|
|
1
|
+
snaptrade_client/__init__.py,sha256=UBCLEzp923b19gOJGtvF8eLjuG6xjvtEur0WtC7r1I8,820
|
|
2
|
+
snaptrade_client/api_client.py,sha256=zlo-qaboeoU4arzMlQSAHGhAk6sQHbP_JUCOoqgsLLc,73975
|
|
3
3
|
snaptrade_client/api_response.py,sha256=mZn18p_TNr6OY0HXTZW5InL9iXfqsJWstYGeGD-euPA,663
|
|
4
4
|
snaptrade_client/apis/__init__.py,sha256=RTosXhMn41tMsKPUjIy-VK-_efOWzhkKiuGggJ3A6E0,214
|
|
5
5
|
snaptrade_client/apis/path_to_api.py,sha256=4kldxcVXHcyd6XM8UFe7zlFSHj02tf9s3TFXDZwfEHY,12312
|
|
@@ -77,7 +77,7 @@ snaptrade_client/apis/tags/transactions_and_reporting_api_generated.py,sha256=Tw
|
|
|
77
77
|
snaptrade_client/client.py,sha256=goDwWRv9909OPXDnGGYst_mr53bg6RUs4PwIvnrl_kE,2116
|
|
78
78
|
snaptrade_client/client.pyi,sha256=goDwWRv9909OPXDnGGYst_mr53bg6RUs4PwIvnrl_kE,2116
|
|
79
79
|
snaptrade_client/client_custom.py,sha256=Jx9ulCzelMFlESjzVFQSjBlYcH4dWxSJJWZDMPLyetM,745
|
|
80
|
-
snaptrade_client/configuration.py,sha256=
|
|
80
|
+
snaptrade_client/configuration.py,sha256=PjrSWP7-tWAC5RiVPvDsrM19A0TKt72ufKCaqS5Qaso,19262
|
|
81
81
|
snaptrade_client/exceptions.py,sha256=X0apI_sgQpGpa-qIqPUClReCdHAxeSuA6GW0YH_RsWg,7771
|
|
82
82
|
snaptrade_client/exceptions_base.py,sha256=LAQkaC5C61-SdBLfyMjb0K7AYJkWVuLmg2uCvHa71FM,2274
|
|
83
83
|
snaptrade_client/model/__init__.py,sha256=ayi2MIzcf0eAIsY13ToiNplV9tW-pMBFrC0I9yckGM8,350
|
|
@@ -239,10 +239,10 @@ snaptrade_client/model/mleg_order_response.py,sha256=yRcsAUCW-Oj_HDC89V1pKlPD38p
|
|
|
239
239
|
snaptrade_client/model/mleg_order_response.pyi,sha256=yRcsAUCW-Oj_HDC89V1pKlPD38p8obdgU-tQ0cUqCGY,4230
|
|
240
240
|
snaptrade_client/model/mleg_order_type_strict.py,sha256=rT7CaWvf7mqS58A6yuUm0BEIfzF_RmrlH5qvTY4FqD0,1353
|
|
241
241
|
snaptrade_client/model/mleg_order_type_strict.pyi,sha256=l1oBrGrwMC1yRTxa2W5_bCSqoNdZwITqeN5gZhYAbZk,1126
|
|
242
|
-
snaptrade_client/model/mleg_price_effect_strict.py,sha256=
|
|
243
|
-
snaptrade_client/model/mleg_price_effect_strict.pyi,sha256=
|
|
244
|
-
snaptrade_client/model/mleg_price_effect_strict_nullable.py,sha256
|
|
245
|
-
snaptrade_client/model/mleg_price_effect_strict_nullable.pyi,sha256
|
|
242
|
+
snaptrade_client/model/mleg_price_effect_strict.py,sha256=fMMLYln8Y4CTOBNTnIOU2hVVLpv2BnvMmVizMyieFdA,1191
|
|
243
|
+
snaptrade_client/model/mleg_price_effect_strict.pyi,sha256=Yn7Fee9_NBxmbJJXG9d9tp4CZAOHFXvnZRgLwcmh0Vg,1038
|
|
244
|
+
snaptrade_client/model/mleg_price_effect_strict_nullable.py,sha256=5Hg4lykSdcVPmke10KR2oWYDxgikfbIGoNZlvNBFX4Q,1573
|
|
245
|
+
snaptrade_client/model/mleg_price_effect_strict_nullable.pyi,sha256=5Hg4lykSdcVPmke10KR2oWYDxgikfbIGoNZlvNBFX4Q,1573
|
|
246
246
|
snaptrade_client/model/mleg_trade_form.py,sha256=ZGJXdwlFRWuwu83PYK7Nrl-5s6dzyBklq1I-9mSwIYc,8056
|
|
247
247
|
snaptrade_client/model/mleg_trade_form.pyi,sha256=ZGJXdwlFRWuwu83PYK7Nrl-5s6dzyBklq1I-9mSwIYc,8056
|
|
248
248
|
snaptrade_client/model/mleg_trading_instrument.py,sha256=kmRuihu0UqhyqlZ6SvGLKDQ32X5L_vlTmE2_27VZnuw,3302
|
|
@@ -353,8 +353,8 @@ snaptrade_client/model/snap_trade_holdings_account_meta.py,sha256=a7gTJqkuclua7L
|
|
|
353
353
|
snaptrade_client/model/snap_trade_holdings_account_meta.pyi,sha256=a7gTJqkuclua7LrqJsRo7QtvFwszTuh7QQyc-Ny2NfM,1668
|
|
354
354
|
snaptrade_client/model/snap_trade_holdings_total_value.py,sha256=bQ1KVz-yWVs9Z4jdrmX_z2c7CJLcO6Y9zL4RO4BDn-I,4972
|
|
355
355
|
snaptrade_client/model/snap_trade_holdings_total_value.pyi,sha256=bQ1KVz-yWVs9Z4jdrmX_z2c7CJLcO6Y9zL4RO4BDn-I,4972
|
|
356
|
-
snaptrade_client/model/snap_trade_login_user_request_body.py,sha256=
|
|
357
|
-
snaptrade_client/model/snap_trade_login_user_request_body.pyi,sha256=
|
|
356
|
+
snaptrade_client/model/snap_trade_login_user_request_body.py,sha256=LXOjeObRXtRaLNyFynqAz9DF0TWwTnL8HQpTF-UBgPc,7030
|
|
357
|
+
snaptrade_client/model/snap_trade_login_user_request_body.pyi,sha256=uYgBn6nSzbt-AOs2j5v-ZMivfoxkEVMs5b50bCABV-4,6528
|
|
358
358
|
snaptrade_client/model/snap_trade_register_user_request_body.py,sha256=dE4FNlnhJ5rFt-p2OXn3KX_e_RoeCbdfhUpozfMyo5A,2483
|
|
359
359
|
snaptrade_client/model/snap_trade_register_user_request_body.pyi,sha256=dE4FNlnhJ5rFt-p2OXn3KX_e_RoeCbdfhUpozfMyo5A,2483
|
|
360
360
|
snaptrade_client/model/status.py,sha256=JYOXSzF4Qo2EgPcdrZtKKkepgsTAtJ3IGLHEGNgxISY,3639
|
|
@@ -727,7 +727,7 @@ snaptrade_client/type/simple_order_form.py,sha256=o8jhnyAQI_PDWAsgtXhwI-5lxnEJrF
|
|
|
727
727
|
snaptrade_client/type/snap_trade_holdings_account.py,sha256=2CELHwFK5R3S6IEdQR-0L4yz5MHlnXuX8-HFOgWTJ0U,1098
|
|
728
728
|
snaptrade_client/type/snap_trade_holdings_account_meta.py,sha256=d8lARJi8F4ppNZzEkyoGVetlmLlp-cv8gxY7Qph1LmA,407
|
|
729
729
|
snaptrade_client/type/snap_trade_holdings_total_value.py,sha256=tqQxn5TxkCYhZmCEtQc9uuLkKOyeXQKTNNMY23xQN3I,830
|
|
730
|
-
snaptrade_client/type/snap_trade_login_user_request_body.py,sha256=
|
|
730
|
+
snaptrade_client/type/snap_trade_login_user_request_body.py,sha256=nk7rLst2BsE3aroHCM5IIiEaUkZ_zZ-dFYI1I83c7JI,2295
|
|
731
731
|
snaptrade_client/type/snap_trade_register_user_request_body.py,sha256=1Qdcaxref9GaOOxhzIL67jyH9B1atAmOK41_RQHRrGU,908
|
|
732
732
|
snaptrade_client/type/status.py,sha256=S_dlmtpGIrLQ330OrWw4ORsWl4_1PJglTFdari1ftG0,571
|
|
733
733
|
snaptrade_client/type/stop_loss.py,sha256=dmH0Tnf94hktMLYicdno1GW7jp3MiriQQ9sJlhDd2cM,585
|
|
@@ -763,7 +763,7 @@ snaptrade_client/type/user_secret.py,sha256=pKCVhqf1rROHwa6tvoyA5OAKXCBAmNDvIQCf
|
|
|
763
763
|
snaptrade_client/type/validated_trade_body.py,sha256=ZIPBQWii_a-9zHaBCJ6bQtmL1_I7AG0zwuvkY-ZQ6R4,890
|
|
764
764
|
snaptrade_client/type_util.py,sha256=JIrMYgJzd4IJ8Ne2vqcahlPA9dVmphL9sn8gwccCB4Y,563
|
|
765
765
|
snaptrade_client/validation_metadata.py,sha256=VTN5y-NudHXok1X468J4PnGze_tGEAcs1v3gsXmcrb0,3172
|
|
766
|
-
snaptrade_python_sdk-11.0.
|
|
767
|
-
snaptrade_python_sdk-11.0.
|
|
768
|
-
snaptrade_python_sdk-11.0.
|
|
769
|
-
snaptrade_python_sdk-11.0.
|
|
766
|
+
snaptrade_python_sdk-11.0.130.dist-info/LICENSE,sha256=W_1kcxEzOnZXIYJ1GVUipbmUu6dNLt-Pc-OI55h3k-A,1081
|
|
767
|
+
snaptrade_python_sdk-11.0.130.dist-info/METADATA,sha256=fiyzXO1CBytTLUgTtv6vQTt_D_X6MdhbdxHeRcSqW00,93123
|
|
768
|
+
snaptrade_python_sdk-11.0.130.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
769
|
+
snaptrade_python_sdk-11.0.130.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|