snaptrade-python-sdk 13.4.2__py3-none-any.whl → 13.4.3__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__ = "13.4.2"
15
+ __version__ = "13.4.3"
16
16
 
17
17
  # import ApiClient
18
18
  from snaptrade_client.api_client import ApiClient
@@ -1175,7 +1175,7 @@ class ApiClient(typing.Generic[TAuth]):
1175
1175
  self.default_headers[header_name] = header_value
1176
1176
  self.cookie = cookie
1177
1177
  # Set default User-Agent.
1178
- self.user_agent = 'Konfig/13.4.2/python'
1178
+ self.user_agent = 'Konfig/13.4.3/python'
1179
1179
 
1180
1180
  def __enter__(self):
1181
1181
  return self
@@ -537,7 +537,7 @@ conf = snaptrade_client.Configuration(
537
537
  "OS: {env}\n"\
538
538
  "Python Version: {pyversion}\n"\
539
539
  "Version of the API: 1.0.0\n"\
540
- "SDK Package Version: 13.4.2".\
540
+ "SDK Package Version: 13.4.3".\
541
541
  format(env=sys.platform, pyversion=sys.version)
542
542
 
543
543
  def get_host_settings(self):
@@ -67,21 +67,53 @@ class AccountTransactionsResponse(
67
67
 
68
68
  def __getitem__(self, i: int) -> 'Activity':
69
69
  return super().__getitem__(i)
70
-
71
- @staticmethod
72
- def pagination() -> typing.Type['PaginationDetails']:
73
- return PaginationDetails
70
+
71
+
72
+ class pagination(
73
+ schemas.ComposedSchema,
74
+ ):
75
+
76
+
77
+ class MetaOapg:
78
+
79
+ @classmethod
80
+ @functools.lru_cache()
81
+ def all_of(cls):
82
+ # we need this here to make our import statements work
83
+ # we must store _composed_schemas in here so the code is only run
84
+ # when we invoke this method. If we kept this at the class
85
+ # level we would get an error because the class level
86
+ # code would be run when this module is imported, and these composed
87
+ # classes don't exist yet because their module has not finished
88
+ # loading
89
+ return [
90
+ PaginationDetails,
91
+ ]
92
+
93
+
94
+ def __new__(
95
+ cls,
96
+ *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
97
+ _configuration: typing.Optional[schemas.Configuration] = None,
98
+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
99
+ ) -> 'pagination':
100
+ return super().__new__(
101
+ cls,
102
+ *args,
103
+ _configuration=_configuration,
104
+ **kwargs,
105
+ )
74
106
  __annotations__ = {
75
107
  "data": data,
76
108
  "pagination": pagination,
77
109
  }
78
110
  additional_properties = schemas.AnyTypeSchema
79
111
 
80
- pagination: 'PaginationDetails'
112
+ pagination: MetaOapg.properties.pagination
81
113
  data: MetaOapg.properties.data
82
114
 
83
115
  @typing.overload
84
- def __getitem__(self, name: typing_extensions.Literal["pagination"]) -> 'PaginationDetails': ...
116
+ def __getitem__(self, name: typing_extensions.Literal["pagination"]) -> MetaOapg.properties.pagination: ...
85
117
 
86
118
  @typing.overload
87
119
  def __getitem__(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ...
@@ -94,7 +126,7 @@ class AccountTransactionsResponse(
94
126
  return super().__getitem__(name)
95
127
 
96
128
  @typing.overload
97
- def get_item_oapg(self, name: typing_extensions.Literal["pagination"]) -> 'PaginationDetails': ...
129
+ def get_item_oapg(self, name: typing_extensions.Literal["pagination"]) -> MetaOapg.properties.pagination: ...
98
130
 
99
131
  @typing.overload
100
132
  def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ...
@@ -108,7 +140,7 @@ class AccountTransactionsResponse(
108
140
  def __new__(
109
141
  cls,
110
142
  *args: typing.Union[dict, frozendict.frozendict, ],
111
- pagination: 'PaginationDetails',
143
+ pagination: typing.Union[MetaOapg.properties.pagination, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
112
144
  data: typing.Union[MetaOapg.properties.data, list, tuple, ],
113
145
  _configuration: typing.Optional[schemas.Configuration] = None,
114
146
  **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
@@ -67,21 +67,53 @@ class AccountTransactionsResponse(
67
67
 
68
68
  def __getitem__(self, i: int) -> 'Activity':
69
69
  return super().__getitem__(i)
70
-
71
- @staticmethod
72
- def pagination() -> typing.Type['PaginationDetails']:
73
- return PaginationDetails
70
+
71
+
72
+ class pagination(
73
+ schemas.ComposedSchema,
74
+ ):
75
+
76
+
77
+ class MetaOapg:
78
+
79
+ @classmethod
80
+ @functools.lru_cache()
81
+ def all_of(cls):
82
+ # we need this here to make our import statements work
83
+ # we must store _composed_schemas in here so the code is only run
84
+ # when we invoke this method. If we kept this at the class
85
+ # level we would get an error because the class level
86
+ # code would be run when this module is imported, and these composed
87
+ # classes don't exist yet because their module has not finished
88
+ # loading
89
+ return [
90
+ PaginationDetails,
91
+ ]
92
+
93
+
94
+ def __new__(
95
+ cls,
96
+ *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
97
+ _configuration: typing.Optional[schemas.Configuration] = None,
98
+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
99
+ ) -> 'pagination':
100
+ return super().__new__(
101
+ cls,
102
+ *args,
103
+ _configuration=_configuration,
104
+ **kwargs,
105
+ )
74
106
  __annotations__ = {
75
107
  "data": data,
76
108
  "pagination": pagination,
77
109
  }
78
110
  additional_properties = schemas.AnyTypeSchema
79
111
 
80
- pagination: 'PaginationDetails'
112
+ pagination: MetaOapg.properties.pagination
81
113
  data: MetaOapg.properties.data
82
114
 
83
115
  @typing.overload
84
- def __getitem__(self, name: typing_extensions.Literal["pagination"]) -> 'PaginationDetails': ...
116
+ def __getitem__(self, name: typing_extensions.Literal["pagination"]) -> MetaOapg.properties.pagination: ...
85
117
 
86
118
  @typing.overload
87
119
  def __getitem__(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ...
@@ -94,7 +126,7 @@ class AccountTransactionsResponse(
94
126
  return super().__getitem__(name)
95
127
 
96
128
  @typing.overload
97
- def get_item_oapg(self, name: typing_extensions.Literal["pagination"]) -> 'PaginationDetails': ...
129
+ def get_item_oapg(self, name: typing_extensions.Literal["pagination"]) -> MetaOapg.properties.pagination: ...
98
130
 
99
131
  @typing.overload
100
132
  def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ...
@@ -108,7 +140,7 @@ class AccountTransactionsResponse(
108
140
  def __new__(
109
141
  cls,
110
142
  *args: typing.Union[dict, frozendict.frozendict, ],
111
- pagination: 'PaginationDetails',
143
+ pagination: typing.Union[MetaOapg.properties.pagination, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
112
144
  data: typing.Union[MetaOapg.properties.data, list, tuple, ],
113
145
  _configuration: typing.Optional[schemas.Configuration] = None,
114
146
  **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: snaptrade-python-sdk
3
- Version: 13.4.2
3
+ Version: 13.4.3
4
4
  Summary: Client for SnapTrade
5
5
  License: MIT
6
6
  Author: SnapTrade
@@ -87,7 +87,7 @@ See https://docs.snaptrade.com/docs/ratelimiting.
87
87
 
88
88
 
89
89
 
90
- [![PyPI](https://img.shields.io/badge/PyPI-v13.4.2-blue)](https://pypi.org/project/snaptrade-python-sdk/13.4.2)
90
+ [![PyPI](https://img.shields.io/badge/PyPI-v13.4.3-blue)](https://pypi.org/project/snaptrade-python-sdk/13.4.3)
91
91
  [![README.md](https://img.shields.io/badge/README-Click%20Here-green)](https://github.com/passiv/snaptrade-sdks/tree/master/sdks/python#readme)
92
92
  [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://snaptrade.com/)
93
93
 
@@ -185,7 +185,7 @@ Python >=3.8
185
185
  ## Installation<a id="installation"></a>
186
186
 
187
187
  ```sh
188
- pip install snaptrade-python-sdk==13.4.2
188
+ pip install snaptrade-python-sdk==13.4.3
189
189
  ```
190
190
 
191
191
  ## Authentication<a id="authentication"></a>
@@ -810,7 +810,7 @@ get_account_transactions_response = (
810
810
  account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
811
811
  start_date="2022-01-24",
812
812
  end_date="2022-01-24",
813
- type="BUY_TO_OPEN,DIVIDEND",
813
+ type="BUY,DIVIDEND",
814
814
  offset=0,
815
815
  limit=1000,
816
816
  user_id="snaptrade-user-123",
@@ -833,7 +833,7 @@ get_account_transactions_response = (
833
833
  account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
834
834
  start_date="2022-01-24",
835
835
  end_date="2022-01-24",
836
- type="BUY_TO_OPEN,DIVIDEND",
836
+ type="BUY,DIVIDEND",
837
837
  offset=0,
838
838
  limit=1000,
839
839
  )
@@ -1,5 +1,5 @@
1
- snaptrade_client/__init__.py,sha256=0EMVNyMV9-xpJkCW1N03FDXRkU50-YNqhh91gQPUgpQ,4370
2
- snaptrade_client/api_client.py,sha256=Xl0p8XLX6mIKlZHy0xJ2LiOP0vNV8329xRmECxWK46g,78308
1
+ snaptrade_client/__init__.py,sha256=Er5SlwmcHeYWJcO-a1bnNcDYt8-0e3COTi3BXBbUGX0,4370
2
+ snaptrade_client/api_client.py,sha256=uLXQpL3KCZ_aDN8K6bL0EYSgO0vVub9-XM54OXKNWD0,78308
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=I3lF7OdUdyvziA34H8Yd2wBYWKy_YLXfcWwpo6zBpb4,16440
@@ -90,7 +90,7 @@ snaptrade_client/auth.py,sha256=85VAIdB-s7SGAHoU0xZnPd7pc680Y58ILZgRiKVn2pk,4797
90
90
  snaptrade_client/client.py,sha256=ncRPbSzbjqr4YVdjzfm8IrCgFhawclXFRlYJzkHNu98,6361
91
91
  snaptrade_client/client.pyi,sha256=s5mcwbmAEVZMJrZOT3fTP9-_r7rf2L0qdJiX8RlnX9o,6358
92
92
  snaptrade_client/client_custom.py,sha256=hNQMRFrY_KWEOCgf36fsZBs3sBU2SQtnZin8dAEVyYo,3931
93
- snaptrade_client/configuration.py,sha256=2Vsy6LKEPAvIrWrkJMlJvYvnXyAZmLiYlCkLZh22VN4,26562
93
+ snaptrade_client/configuration.py,sha256=kM7U7A8S6u4uT0CWU173mpyhezFRWFynUFf-J4tgRzg,26562
94
94
  snaptrade_client/exceptions.py,sha256=pRlZiy1hSulcXfTCqqBU5Jys0hRBkxljOiv212M_yeo,10957
95
95
  snaptrade_client/exceptions_base.py,sha256=LAQkaC5C61-SdBLfyMjb0K7AYJkWVuLmg2uCvHa71FM,2274
96
96
  snaptrade_client/model/__init__.py,sha256=ayi2MIzcf0eAIsY13ToiNplV9tW-pMBFrC0I9yckGM8,350
@@ -160,8 +160,8 @@ snaptrade_client/model/account_simple.py,sha256=33ZbcvBpm3qEPQ70HXc9XX8bgzomjALd
160
160
  snaptrade_client/model/account_simple.pyi,sha256=33ZbcvBpm3qEPQ70HXc9XX8bgzomjALde0D15vnMycA,8859
161
161
  snaptrade_client/model/account_sync_status.py,sha256=VOo7_BCpyhkjOwKbuTg5abpJJE5dhyVXzRB7cPT9a7I,6624
162
162
  snaptrade_client/model/account_sync_status.pyi,sha256=VOo7_BCpyhkjOwKbuTg5abpJJE5dhyVXzRB7cPT9a7I,6624
163
- snaptrade_client/model/account_transactions_response.py,sha256=ZKdI9DlIJAFBRuxWqI3TFMvx55EvdKqppjn4OX39_ps,7345
164
- snaptrade_client/model/account_transactions_response.pyi,sha256=ZKdI9DlIJAFBRuxWqI3TFMvx55EvdKqppjn4OX39_ps,7345
163
+ snaptrade_client/model/account_transactions_response.py,sha256=S6CR_ViQ3wK4VSjVPbeRhMuVW4aBcEFTBLKrT1YdtlE,9160
164
+ snaptrade_client/model/account_transactions_response.pyi,sha256=S6CR_ViQ3wK4VSjVPbeRhMuVW4aBcEFTBLKrT1YdtlE,9160
165
165
  snaptrade_client/model/account_universal_activity.py,sha256=C_uABHnhKp8PbCsJmM0pHlzzS0wqqevao2hRuEoFfC0,18631
166
166
  snaptrade_client/model/account_universal_activity.pyi,sha256=C_uABHnhKp8PbCsJmM0pHlzzS0wqqevao2hRuEoFfC0,18631
167
167
  snaptrade_client/model/account_value_history_item.py,sha256=NhKnupVlNGdY2pwJGL0EW5dBb0fSvYYune8-Ruq36nc,6318
@@ -1184,7 +1184,7 @@ snaptrade_client/type/user_secret.py,sha256=B6gpY5ECG6fV4aCV7XH9TK9uW9UsZYZlng56
1184
1184
  snaptrade_client/type/validated_trade_body.py,sha256=3d5fH-7GtjtWxBTBDyjK2RSmoFcMQpr7Sv6MXgCfKQc,4076
1185
1185
  snaptrade_client/type_util.py,sha256=y93VO77G7QTwguvfc3HnevIWtLat__tNZXfpSCSxHoU,3749
1186
1186
  snaptrade_client/validation_metadata.py,sha256=VTN5y-NudHXok1X468J4PnGze_tGEAcs1v3gsXmcrb0,3172
1187
- snaptrade_python_sdk-13.4.2.dist-info/LICENSE,sha256=GxvPdqYTCDLPwtMD70oHKcnAL8Os4eOjPVhERWpJ5Cs,1081
1188
- snaptrade_python_sdk-13.4.2.dist-info/METADATA,sha256=_DiJ7_NLZ0b0lmcZUWOxjktcZzOxXcqiavPQhoBQCrI,212661
1189
- snaptrade_python_sdk-13.4.2.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
1190
- snaptrade_python_sdk-13.4.2.dist-info/RECORD,,
1187
+ snaptrade_python_sdk-13.4.3.dist-info/LICENSE,sha256=GxvPdqYTCDLPwtMD70oHKcnAL8Os4eOjPVhERWpJ5Cs,1081
1188
+ snaptrade_python_sdk-13.4.3.dist-info/METADATA,sha256=5ercXyvNIe2bvKcK5ZjLtEND9JWDahEM-lLXo4LBQ0k,212645
1189
+ snaptrade_python_sdk-13.4.3.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
1190
+ snaptrade_python_sdk-13.4.3.dist-info/RECORD,,