snaptrade-python-sdk 11.0.114__py3-none-any.whl → 11.0.115__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.
@@ -12,7 +12,7 @@
12
12
  Created by: https://snaptrade.com/
13
13
  """
14
14
 
15
- __version__ = "11.0.114"
15
+ __version__ = "11.0.115"
16
16
 
17
17
  # import ApiClient
18
18
  from snaptrade_client.api_client import ApiClient
@@ -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.114/python'
1158
+ self.user_agent = 'Konfig/11.0.115/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.114".\
441
+ "SDK Package Version: 11.0.115".\
442
442
  format(env=sys.platform, pyversion=sys.version)
443
443
 
444
444
  def get_host_settings(self):
@@ -25,6 +25,7 @@ from snaptrade_client import schemas # noqa: F401
25
25
 
26
26
 
27
27
  class MlegPriceEffectStrict(
28
+ schemas.EnumBase,
28
29
  schemas.StrBase,
29
30
  schemas.NoneBase,
30
31
  schemas.Schema,
@@ -33,10 +34,30 @@ class MlegPriceEffectStrict(
33
34
  """
34
35
  This class is auto generated by Konfig (https://konfigthis.com)
35
36
 
36
- The desired price_effect for LIMIT and STOP_LOSS_LIMIT orders. Only required for certain brokerages like ETrade. - CREDIT - DEBIT
37
+ The desired price_effect for LIMIT and STOP_LOSS_LIMIT orders. Only required for certain brokerages like ETrade.
37
38
  """
38
39
 
39
40
 
41
+ class MetaOapg:
42
+ enum_value_to_name = {
43
+ "CREDIT": "CREDIT",
44
+ "DEBIT": "DEBIT",
45
+ "EVEN": "EVEN",
46
+ }
47
+
48
+ @schemas.classproperty
49
+ def CREDIT(cls):
50
+ return cls("CREDIT")
51
+
52
+ @schemas.classproperty
53
+ def DEBIT(cls):
54
+ return cls("DEBIT")
55
+
56
+ @schemas.classproperty
57
+ def EVEN(cls):
58
+ return cls("EVEN")
59
+
60
+
40
61
  def __new__(
41
62
  cls,
42
63
  *args: typing.Union[None, str, ],
@@ -25,6 +25,7 @@ from snaptrade_client import schemas # noqa: F401
25
25
 
26
26
 
27
27
  class MlegPriceEffectStrict(
28
+ schemas.EnumBase,
28
29
  schemas.StrBase,
29
30
  schemas.NoneBase,
30
31
  schemas.Schema,
@@ -33,10 +34,30 @@ class MlegPriceEffectStrict(
33
34
  """
34
35
  This class is auto generated by Konfig (https://konfigthis.com)
35
36
 
36
- The desired price_effect for LIMIT and STOP_LOSS_LIMIT orders. Only required for certain brokerages like ETrade. - CREDIT - DEBIT
37
+ The desired price_effect for LIMIT and STOP_LOSS_LIMIT orders. Only required for certain brokerages like ETrade.
37
38
  """
38
39
 
39
40
 
41
+ class MetaOapg:
42
+ enum_value_to_name = {
43
+ "CREDIT": "CREDIT",
44
+ "DEBIT": "DEBIT",
45
+ "EVEN": "EVEN",
46
+ }
47
+
48
+ @schemas.classproperty
49
+ def CREDIT(cls):
50
+ return cls("CREDIT")
51
+
52
+ @schemas.classproperty
53
+ def DEBIT(cls):
54
+ return cls("DEBIT")
55
+
56
+ @schemas.classproperty
57
+ def EVEN(cls):
58
+ return cls("EVEN")
59
+
60
+
40
61
  def __new__(
41
62
  cls,
42
63
  *args: typing.Union[None, str, ],
@@ -25,6 +25,7 @@ from snaptrade_client import schemas # noqa: F401
25
25
 
26
26
 
27
27
  class MlegPriceEffectStrictNullable(
28
+ schemas.EnumBase,
28
29
  schemas.StrBase,
29
30
  schemas.NoneBase,
30
31
  schemas.Schema,
@@ -33,10 +34,30 @@ class MlegPriceEffectStrictNullable(
33
34
  """
34
35
  This class is auto generated by Konfig (https://konfigthis.com)
35
36
 
36
- The desired price_effect for LIMIT and STOP_LOSS_LIMIT orders. Only required for certain brokerages like ETrade. - CREDIT - DEBIT
37
+ The desired price_effect for LIMIT and STOP_LOSS_LIMIT orders. Only required for certain brokerages like ETrade.
37
38
  """
38
39
 
39
40
 
41
+ class MetaOapg:
42
+ enum_value_to_name = {
43
+ "CREDIT": "CREDIT",
44
+ "DEBIT": "DEBIT",
45
+ "EVEN": "EVEN",
46
+ }
47
+
48
+ @schemas.classproperty
49
+ def CREDIT(cls):
50
+ return cls("CREDIT")
51
+
52
+ @schemas.classproperty
53
+ def DEBIT(cls):
54
+ return cls("DEBIT")
55
+
56
+ @schemas.classproperty
57
+ def EVEN(cls):
58
+ return cls("EVEN")
59
+
60
+
40
61
  def __new__(
41
62
  cls,
42
63
  *args: typing.Union[None, str, ],
@@ -25,6 +25,7 @@ from snaptrade_client import schemas # noqa: F401
25
25
 
26
26
 
27
27
  class MlegPriceEffectStrictNullable(
28
+ schemas.EnumBase,
28
29
  schemas.StrBase,
29
30
  schemas.NoneBase,
30
31
  schemas.Schema,
@@ -33,10 +34,30 @@ class MlegPriceEffectStrictNullable(
33
34
  """
34
35
  This class is auto generated by Konfig (https://konfigthis.com)
35
36
 
36
- The desired price_effect for LIMIT and STOP_LOSS_LIMIT orders. Only required for certain brokerages like ETrade. - CREDIT - DEBIT
37
+ The desired price_effect for LIMIT and STOP_LOSS_LIMIT orders. Only required for certain brokerages like ETrade.
37
38
  """
38
39
 
39
40
 
41
+ class MetaOapg:
42
+ enum_value_to_name = {
43
+ "CREDIT": "CREDIT",
44
+ "DEBIT": "DEBIT",
45
+ "EVEN": "EVEN",
46
+ }
47
+
48
+ @schemas.classproperty
49
+ def CREDIT(cls):
50
+ return cls("CREDIT")
51
+
52
+ @schemas.classproperty
53
+ def DEBIT(cls):
54
+ return cls("DEBIT")
55
+
56
+ @schemas.classproperty
57
+ def EVEN(cls):
58
+ return cls("EVEN")
59
+
60
+
40
61
  def __new__(
41
62
  cls,
42
63
  *args: typing.Union[None, str, ],
@@ -16,4 +16,4 @@ from enum import Enum
16
16
  from typing_extensions import TypedDict, Literal, TYPE_CHECKING
17
17
 
18
18
 
19
- MlegPriceEffectStrict = str
19
+ MlegPriceEffectStrict = Literal["CREDIT", "DEBIT", "EVEN"]
@@ -16,4 +16,4 @@ from enum import Enum
16
16
  from typing_extensions import TypedDict, Literal, TYPE_CHECKING
17
17
 
18
18
 
19
- MlegPriceEffectStrictNullable = str
19
+ MlegPriceEffectStrictNullable = Literal["CREDIT", "DEBIT", "EVEN"]
@@ -35,7 +35,7 @@ class OptionalMlegTradeForm(TypedDict, total=False):
35
35
  # The stop price. Required if the order type is STOP_LOSS_MARKET, STOP_LOSS_LIMIT.
36
36
  stop_price: typing.Optional[str]
37
37
 
38
- price_effect: MlegPriceEffectStrictNullable
38
+ price_effect: typing.Optional[MlegPriceEffectStrictNullable]
39
39
 
40
40
  class MlegTradeForm(RequiredMlegTradeForm, OptionalMlegTradeForm):
41
41
  pass
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: snaptrade-python-sdk
3
- Version: 11.0.114
3
+ Version: 11.0.115
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
- [![PyPI](https://img.shields.io/badge/PyPI-v11.0.114-blue)](https://pypi.org/project/snaptrade-python-sdk/11.0.114)
33
+ [![PyPI](https://img.shields.io/badge/PyPI-v11.0.115-blue)](https://pypi.org/project/snaptrade-python-sdk/11.0.115)
34
34
  [![README.md](https://img.shields.io/badge/README-Click%20Here-green)](https://github.com/passiv/snaptrade-sdks/tree/master/sdks/python#readme)
35
35
  [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://snaptrade.com/)
36
36
 
@@ -110,7 +110,7 @@ Python >=3.8
110
110
  ## Installation<a id="installation"></a>
111
111
 
112
112
  ```sh
113
- pip install snaptrade-python-sdk==11.0.114
113
+ pip install snaptrade-python-sdk==11.0.115
114
114
  ```
115
115
 
116
116
  ## Getting Started<a id="getting-started"></a>
@@ -1,5 +1,5 @@
1
- snaptrade_client/__init__.py,sha256=mHLFpG7FUqmRNntNd39s0KEMWdiko0mAQuE9tof8ksc,820
2
- snaptrade_client/api_client.py,sha256=D6fUd7IqyBnbPo497b4J_63Rl1T3Mr6coultgq-YqDg,73975
1
+ snaptrade_client/__init__.py,sha256=TPr9mmLg6XUEQo0mEUKC71Bzx0aNQi5Br9JeNZS5aHM,820
2
+ snaptrade_client/api_client.py,sha256=c6t6bVEtG1pBx4K-bljk5GHMyIKGr3pYYrr5N_dqaM4,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=0d_51BaYWpIE-k7-qQ6dYXnaK05ABrPzYjcqIkjk6gc,13189
@@ -78,7 +78,7 @@ snaptrade_client/apis/tags/transactions_and_reporting_api_generated.py,sha256=Tw
78
78
  snaptrade_client/client.py,sha256=goDwWRv9909OPXDnGGYst_mr53bg6RUs4PwIvnrl_kE,2116
79
79
  snaptrade_client/client.pyi,sha256=goDwWRv9909OPXDnGGYst_mr53bg6RUs4PwIvnrl_kE,2116
80
80
  snaptrade_client/client_custom.py,sha256=Jx9ulCzelMFlESjzVFQSjBlYcH4dWxSJJWZDMPLyetM,745
81
- snaptrade_client/configuration.py,sha256=EpK3OlNRKWbKhusYp3C0y0IN-8SO8w8hOPdU_xX3z-w,19262
81
+ snaptrade_client/configuration.py,sha256=w_vMrjoIWbwGOzM_Lq7sGyKmqArzwteIW08mxXPK0lo,19262
82
82
  snaptrade_client/exceptions.py,sha256=X0apI_sgQpGpa-qIqPUClReCdHAxeSuA6GW0YH_RsWg,7771
83
83
  snaptrade_client/exceptions_base.py,sha256=LAQkaC5C61-SdBLfyMjb0K7AYJkWVuLmg2uCvHa71FM,2274
84
84
  snaptrade_client/model/__init__.py,sha256=ayi2MIzcf0eAIsY13ToiNplV9tW-pMBFrC0I9yckGM8,350
@@ -222,10 +222,10 @@ snaptrade_client/model/mleg_order_response.py,sha256=yRcsAUCW-Oj_HDC89V1pKlPD38p
222
222
  snaptrade_client/model/mleg_order_response.pyi,sha256=yRcsAUCW-Oj_HDC89V1pKlPD38p8obdgU-tQ0cUqCGY,4230
223
223
  snaptrade_client/model/mleg_order_type_strict.py,sha256=rT7CaWvf7mqS58A6yuUm0BEIfzF_RmrlH5qvTY4FqD0,1353
224
224
  snaptrade_client/model/mleg_order_type_strict.pyi,sha256=l1oBrGrwMC1yRTxa2W5_bCSqoNdZwITqeN5gZhYAbZk,1126
225
- snaptrade_client/model/mleg_price_effect_strict.py,sha256=BtRxZ0ZJUgTxtZtYHu7v_V9tByzQ2KqfqL1t0MNkeQ8,1210
226
- snaptrade_client/model/mleg_price_effect_strict.pyi,sha256=BtRxZ0ZJUgTxtZtYHu7v_V9tByzQ2KqfqL1t0MNkeQ8,1210
227
- snaptrade_client/model/mleg_price_effect_strict_nullable.py,sha256=rFlL1UVH-UboCjvfYmQ_b0xGEa2-4lUCP9B1L1CoKwg,1226
228
- snaptrade_client/model/mleg_price_effect_strict_nullable.pyi,sha256=rFlL1UVH-UboCjvfYmQ_b0xGEa2-4lUCP9B1L1CoKwg,1226
225
+ snaptrade_client/model/mleg_price_effect_strict.py,sha256=me90mRjWdZcyIENXsjgf2470pltI2513So3cIP_Z7NY,1608
226
+ snaptrade_client/model/mleg_price_effect_strict.pyi,sha256=me90mRjWdZcyIENXsjgf2470pltI2513So3cIP_Z7NY,1608
227
+ snaptrade_client/model/mleg_price_effect_strict_nullable.py,sha256=-uOdxLVYP4Cwg1y2f51QJ6RWqJjXvA7UfJL84Wti64s,1624
228
+ snaptrade_client/model/mleg_price_effect_strict_nullable.pyi,sha256=-uOdxLVYP4Cwg1y2f51QJ6RWqJjXvA7UfJL84Wti64s,1624
229
229
  snaptrade_client/model/mleg_trade_form.py,sha256=ZGJXdwlFRWuwu83PYK7Nrl-5s6dzyBklq1I-9mSwIYc,8056
230
230
  snaptrade_client/model/mleg_trade_form.pyi,sha256=ZGJXdwlFRWuwu83PYK7Nrl-5s6dzyBklq1I-9mSwIYc,8056
231
231
  snaptrade_client/model/mleg_trading_instrument.py,sha256=kmRuihu0UqhyqlZ6SvGLKDQ32X5L_vlTmE2_27VZnuw,3302
@@ -651,9 +651,9 @@ snaptrade_client/type/mleg_instrument_type.py,sha256=9y76B7Qiq12B_zEfuRnnUbkzc6e
651
651
  snaptrade_client/type/mleg_leg.py,sha256=2H6A2ViJCvpThEjES9sU1ODG2ZczD9odzSnn9nEV-XE,886
652
652
  snaptrade_client/type/mleg_order_response.py,sha256=H0AezvgJxJQcpUKqMmkrYPwKxh19OiBsN0ffG4u5uik,825
653
653
  snaptrade_client/type/mleg_order_type_strict.py,sha256=H0ohzOGBhguMfcPcivR6okWmid9NKJX0rASbQPDORT4,459
654
- snaptrade_client/type/mleg_price_effect_strict.py,sha256=f4go5TacS8MlLNpkNcm1PlJQMklvXmqDxiytoSYHr1Y,399
655
- snaptrade_client/type/mleg_price_effect_strict_nullable.py,sha256=-8sTKj0Cx97j8fDlQLCVUxSISNzGIz37KJLaYTKCMz0,407
656
- snaptrade_client/type/mleg_trade_form.py,sha256=r26TH-Zk3dHd9R02fThoffAD49MKj8jLc1VUURSwGOg,1237
654
+ snaptrade_client/type/mleg_price_effect_strict.py,sha256=FLgR9dsd7-6Jef80Oru6HxHPB-NY_T3hEDU8XCZCMl8,430
655
+ snaptrade_client/type/mleg_price_effect_strict_nullable.py,sha256=gmek61AQ4HoAcND-PGFoq9n0tZFejMF-2EVRZD4ijTY,438
656
+ snaptrade_client/type/mleg_trade_form.py,sha256=IYc3n_Ne1bLJhvWqUHAUU8aaWuWcm-0OYc3WasfY2e0,1254
657
657
  snaptrade_client/type/mleg_trading_instrument.py,sha256=fut3MIv6W_khvmMThzgzYJcldDo0PBtZv015nejd4_4,1084
658
658
  snaptrade_client/type/model400_failed_request_response.py,sha256=qPCGjN-VGmrou9vOFqcN28P-nIMqGOFbBY7VnQslV3A,810
659
659
  snaptrade_client/type/model401_failed_request_response.py,sha256=6FpcrEI32paLdxMpqwpRHOQjU5PH5mIzybQqJAmoTW8,810
@@ -746,7 +746,7 @@ snaptrade_client/type/user_secret.py,sha256=pKCVhqf1rROHwa6tvoyA5OAKXCBAmNDvIQCf
746
746
  snaptrade_client/type/validated_trade_body.py,sha256=ZIPBQWii_a-9zHaBCJ6bQtmL1_I7AG0zwuvkY-ZQ6R4,890
747
747
  snaptrade_client/type_util.py,sha256=JIrMYgJzd4IJ8Ne2vqcahlPA9dVmphL9sn8gwccCB4Y,563
748
748
  snaptrade_client/validation_metadata.py,sha256=VTN5y-NudHXok1X468J4PnGze_tGEAcs1v3gsXmcrb0,3172
749
- snaptrade_python_sdk-11.0.114.dist-info/LICENSE,sha256=W_1kcxEzOnZXIYJ1GVUipbmUu6dNLt-Pc-OI55h3k-A,1081
750
- snaptrade_python_sdk-11.0.114.dist-info/METADATA,sha256=npHxfP1Fa4RmI_8hapr0mxcWoLr-KMniyPJXJukYqVA,94696
751
- snaptrade_python_sdk-11.0.114.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
752
- snaptrade_python_sdk-11.0.114.dist-info/RECORD,,
749
+ snaptrade_python_sdk-11.0.115.dist-info/LICENSE,sha256=W_1kcxEzOnZXIYJ1GVUipbmUu6dNLt-Pc-OI55h3k-A,1081
750
+ snaptrade_python_sdk-11.0.115.dist-info/METADATA,sha256=_vFbvGAMg5GB4jQDVrj91VXwl2zNjihKp31YqcCSTrA,94696
751
+ snaptrade_python_sdk-11.0.115.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
752
+ snaptrade_python_sdk-11.0.115.dist-info/RECORD,,