snaptrade-python-sdk 11.0.133__py3-none-any.whl → 11.0.134__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.133"
15
+ __version__ = "11.0.134"
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.133/python'
1158
+ self.user_agent = 'Konfig/11.0.134/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.133".\
441
+ "SDK Package Version: 11.0.134".\
442
442
  format(env=sys.platform, pyversion=sys.version)
443
443
 
444
444
  def get_host_settings(self):
@@ -177,6 +177,26 @@ class Position(
177
177
  _configuration=_configuration,
178
178
  **kwargs,
179
179
  )
180
+
181
+
182
+ class cash_equivalent(
183
+ schemas.BoolBase,
184
+ schemas.NoneBase,
185
+ schemas.Schema,
186
+ schemas.NoneBoolMixin
187
+ ):
188
+
189
+
190
+ def __new__(
191
+ cls,
192
+ *args: typing.Union[None, bool, ],
193
+ _configuration: typing.Optional[schemas.Configuration] = None,
194
+ ) -> 'cash_equivalent':
195
+ return super().__new__(
196
+ cls,
197
+ *args,
198
+ _configuration=_configuration,
199
+ )
180
200
  __annotations__ = {
181
201
  "symbol": symbol,
182
202
  "units": units,
@@ -185,6 +205,7 @@ class Position(
185
205
  "average_purchase_price": average_purchase_price,
186
206
  "fractional_units": fractional_units,
187
207
  "currency": currency,
208
+ "cash_equivalent": cash_equivalent,
188
209
  }
189
210
  additional_properties = schemas.AnyTypeSchema
190
211
 
@@ -209,10 +230,13 @@ class Position(
209
230
  @typing.overload
210
231
  def __getitem__(self, name: typing_extensions.Literal["currency"]) -> MetaOapg.properties.currency: ...
211
232
 
233
+ @typing.overload
234
+ def __getitem__(self, name: typing_extensions.Literal["cash_equivalent"]) -> MetaOapg.properties.cash_equivalent: ...
235
+
212
236
  @typing.overload
213
237
  def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
214
238
 
215
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["symbol"], typing_extensions.Literal["units"], typing_extensions.Literal["price"], typing_extensions.Literal["open_pnl"], typing_extensions.Literal["average_purchase_price"], typing_extensions.Literal["fractional_units"], typing_extensions.Literal["currency"], str, ]):
239
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["symbol"], typing_extensions.Literal["units"], typing_extensions.Literal["price"], typing_extensions.Literal["open_pnl"], typing_extensions.Literal["average_purchase_price"], typing_extensions.Literal["fractional_units"], typing_extensions.Literal["currency"], typing_extensions.Literal["cash_equivalent"], str, ]):
216
240
  # dict_instance[name] accessor
217
241
  return super().__getitem__(name)
218
242
 
@@ -237,10 +261,13 @@ class Position(
237
261
  @typing.overload
238
262
  def get_item_oapg(self, name: typing_extensions.Literal["currency"]) -> typing.Union[MetaOapg.properties.currency, schemas.Unset]: ...
239
263
 
264
+ @typing.overload
265
+ def get_item_oapg(self, name: typing_extensions.Literal["cash_equivalent"]) -> typing.Union[MetaOapg.properties.cash_equivalent, schemas.Unset]: ...
266
+
240
267
  @typing.overload
241
268
  def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
242
269
 
243
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["symbol"], typing_extensions.Literal["units"], typing_extensions.Literal["price"], typing_extensions.Literal["open_pnl"], typing_extensions.Literal["average_purchase_price"], typing_extensions.Literal["fractional_units"], typing_extensions.Literal["currency"], str, ]):
270
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["symbol"], typing_extensions.Literal["units"], typing_extensions.Literal["price"], typing_extensions.Literal["open_pnl"], typing_extensions.Literal["average_purchase_price"], typing_extensions.Literal["fractional_units"], typing_extensions.Literal["currency"], typing_extensions.Literal["cash_equivalent"], str, ]):
244
271
  return super().get_item_oapg(name)
245
272
 
246
273
  def __new__(
@@ -253,6 +280,7 @@ class Position(
253
280
  average_purchase_price: typing.Union[MetaOapg.properties.average_purchase_price, None, decimal.Decimal, int, float, schemas.Unset] = schemas.unset,
254
281
  fractional_units: typing.Union[MetaOapg.properties.fractional_units, None, decimal.Decimal, int, float, schemas.Unset] = schemas.unset,
255
282
  currency: typing.Union[MetaOapg.properties.currency, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset,
283
+ cash_equivalent: typing.Union[MetaOapg.properties.cash_equivalent, None, bool, schemas.Unset] = schemas.unset,
256
284
  _configuration: typing.Optional[schemas.Configuration] = None,
257
285
  **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, ],
258
286
  ) -> 'Position':
@@ -266,6 +294,7 @@ class Position(
266
294
  average_purchase_price=average_purchase_price,
267
295
  fractional_units=fractional_units,
268
296
  currency=currency,
297
+ cash_equivalent=cash_equivalent,
269
298
  _configuration=_configuration,
270
299
  **kwargs,
271
300
  )
@@ -177,6 +177,26 @@ class Position(
177
177
  _configuration=_configuration,
178
178
  **kwargs,
179
179
  )
180
+
181
+
182
+ class cash_equivalent(
183
+ schemas.BoolBase,
184
+ schemas.NoneBase,
185
+ schemas.Schema,
186
+ schemas.NoneBoolMixin
187
+ ):
188
+
189
+
190
+ def __new__(
191
+ cls,
192
+ *args: typing.Union[None, bool, ],
193
+ _configuration: typing.Optional[schemas.Configuration] = None,
194
+ ) -> 'cash_equivalent':
195
+ return super().__new__(
196
+ cls,
197
+ *args,
198
+ _configuration=_configuration,
199
+ )
180
200
  __annotations__ = {
181
201
  "symbol": symbol,
182
202
  "units": units,
@@ -185,6 +205,7 @@ class Position(
185
205
  "average_purchase_price": average_purchase_price,
186
206
  "fractional_units": fractional_units,
187
207
  "currency": currency,
208
+ "cash_equivalent": cash_equivalent,
188
209
  }
189
210
  additional_properties = schemas.AnyTypeSchema
190
211
 
@@ -209,10 +230,13 @@ class Position(
209
230
  @typing.overload
210
231
  def __getitem__(self, name: typing_extensions.Literal["currency"]) -> MetaOapg.properties.currency: ...
211
232
 
233
+ @typing.overload
234
+ def __getitem__(self, name: typing_extensions.Literal["cash_equivalent"]) -> MetaOapg.properties.cash_equivalent: ...
235
+
212
236
  @typing.overload
213
237
  def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
214
238
 
215
- def __getitem__(self, name: typing.Union[typing_extensions.Literal["symbol"], typing_extensions.Literal["units"], typing_extensions.Literal["price"], typing_extensions.Literal["open_pnl"], typing_extensions.Literal["average_purchase_price"], typing_extensions.Literal["fractional_units"], typing_extensions.Literal["currency"], str, ]):
239
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["symbol"], typing_extensions.Literal["units"], typing_extensions.Literal["price"], typing_extensions.Literal["open_pnl"], typing_extensions.Literal["average_purchase_price"], typing_extensions.Literal["fractional_units"], typing_extensions.Literal["currency"], typing_extensions.Literal["cash_equivalent"], str, ]):
216
240
  # dict_instance[name] accessor
217
241
  return super().__getitem__(name)
218
242
 
@@ -237,10 +261,13 @@ class Position(
237
261
  @typing.overload
238
262
  def get_item_oapg(self, name: typing_extensions.Literal["currency"]) -> typing.Union[MetaOapg.properties.currency, schemas.Unset]: ...
239
263
 
264
+ @typing.overload
265
+ def get_item_oapg(self, name: typing_extensions.Literal["cash_equivalent"]) -> typing.Union[MetaOapg.properties.cash_equivalent, schemas.Unset]: ...
266
+
240
267
  @typing.overload
241
268
  def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
242
269
 
243
- def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["symbol"], typing_extensions.Literal["units"], typing_extensions.Literal["price"], typing_extensions.Literal["open_pnl"], typing_extensions.Literal["average_purchase_price"], typing_extensions.Literal["fractional_units"], typing_extensions.Literal["currency"], str, ]):
270
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["symbol"], typing_extensions.Literal["units"], typing_extensions.Literal["price"], typing_extensions.Literal["open_pnl"], typing_extensions.Literal["average_purchase_price"], typing_extensions.Literal["fractional_units"], typing_extensions.Literal["currency"], typing_extensions.Literal["cash_equivalent"], str, ]):
244
271
  return super().get_item_oapg(name)
245
272
 
246
273
  def __new__(
@@ -253,6 +280,7 @@ class Position(
253
280
  average_purchase_price: typing.Union[MetaOapg.properties.average_purchase_price, None, decimal.Decimal, int, float, schemas.Unset] = schemas.unset,
254
281
  fractional_units: typing.Union[MetaOapg.properties.fractional_units, None, decimal.Decimal, int, float, schemas.Unset] = schemas.unset,
255
282
  currency: typing.Union[MetaOapg.properties.currency, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset,
283
+ cash_equivalent: typing.Union[MetaOapg.properties.cash_equivalent, None, bool, schemas.Unset] = schemas.unset,
256
284
  _configuration: typing.Optional[schemas.Configuration] = None,
257
285
  **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, ],
258
286
  ) -> 'Position':
@@ -266,6 +294,7 @@ class Position(
266
294
  average_purchase_price=average_purchase_price,
267
295
  fractional_units=fractional_units,
268
296
  currency=currency,
297
+ cash_equivalent=cash_equivalent,
269
298
  _configuration=_configuration,
270
299
  **kwargs,
271
300
  )
@@ -43,5 +43,8 @@ class OptionalPosition(TypedDict, total=False):
43
43
  # The 'position currency' (`price` and `average_purchase_price`). This currency can potentially be different from the 'listing currency' of the security. The 'listing currency' is what's quoted on the listing exchange, while the 'position currency' is what the brokerage uses to hold and value your position.
44
44
  currency: Currency
45
45
 
46
+ # If the position is a cash equivalent (usually a money market fund) that is also counted in account cash balance and buying power
47
+ cash_equivalent: typing.Optional[bool]
48
+
46
49
  class Position(RequiredPosition, OptionalPosition):
47
50
  pass
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: snaptrade-python-sdk
3
- Version: 11.0.133
3
+ Version: 11.0.134
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.133-blue)](https://pypi.org/project/snaptrade-python-sdk/11.0.133)
33
+ [![PyPI](https://img.shields.io/badge/PyPI-v11.0.134-blue)](https://pypi.org/project/snaptrade-python-sdk/11.0.134)
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
 
@@ -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.133
112
+ pip install snaptrade-python-sdk==11.0.134
113
113
  ```
114
114
 
115
115
  ## Getting Started<a id="getting-started"></a>
@@ -1,5 +1,5 @@
1
- snaptrade_client/__init__.py,sha256=Y-tLrl_ewNnPre6OHqDweFgmws8Ys4HaTRHPw1EK7T0,820
2
- snaptrade_client/api_client.py,sha256=s1GwF_CMsL927ExqFFJF3mW5VvnTx1eMa0pofFmzlLA,73975
1
+ snaptrade_client/__init__.py,sha256=ELCH0_FvkG4KWLu6kjrtMICc9TDuV0Zw_Ly8_Hpubg4,820
2
+ snaptrade_client/api_client.py,sha256=kPAg6nmaM_GZyylwS5qmlaRi2_Pss0ZEy4JYYnsg-18,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=M8l5LIq2T7K3Ku3FwvzSWKhEEnghFfByL50p01PABK0,19262
80
+ snaptrade_client/configuration.py,sha256=1Ku6LPL0SxdJTNdDA3GI16c6AYaC4eDmNlPgDU4Pz6c,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
@@ -323,8 +323,8 @@ snaptrade_client/model/performance_custom_bad_tickers.py,sha256=Bsr6upKbMwdnN7Sy
323
323
  snaptrade_client/model/performance_custom_bad_tickers.pyi,sha256=Bsr6upKbMwdnN7SyfjxrLDlqUTizgUaywXggDRjMths,1870
324
324
  snaptrade_client/model/portfolio_group_id.py,sha256=5RE_TEWeQAZeHqctwrMSqt8pCtgph_t9uJQKVAS7Ed0,607
325
325
  snaptrade_client/model/portfolio_group_id.pyi,sha256=5RE_TEWeQAZeHqctwrMSqt8pCtgph_t9uJQKVAS7Ed0,607
326
- snaptrade_client/model/position.py,sha256=m4VVANpDux1W6sAUGPPHsGbJFiE5AlqnAjWvUhgBB-s,11542
327
- snaptrade_client/model/position.pyi,sha256=m4VVANpDux1W6sAUGPPHsGbJFiE5AlqnAjWvUhgBB-s,11542
326
+ snaptrade_client/model/position.py,sha256=6mgxLRHhmpjRpUsKE_6g_SJK1d6_C-OSY5SRWRZnPRw,12830
327
+ snaptrade_client/model/position.pyi,sha256=6mgxLRHhmpjRpUsKE_6g_SJK1d6_C-OSY5SRWRZnPRw,12830
328
328
  snaptrade_client/model/position_symbol.py,sha256=kopDWLHnN4pnCTlrDz9dMAeQm2s6E8C-AG5ESO7uCPU,6509
329
329
  snaptrade_client/model/position_symbol.pyi,sha256=kopDWLHnN4pnCTlrDz9dMAeQm2s6E8C-AG5ESO7uCPU,6509
330
330
  snaptrade_client/model/price.py,sha256=Se7jPRmTBfPyAMztvI-fBc6fNZaEHENFFY6xgqz6Gkg,1120
@@ -712,7 +712,7 @@ snaptrade_client/type/past_value.py,sha256=mMP6TYBvtwl2937LFv_G0H3S_uXNAy1LPnRlq
712
712
  snaptrade_client/type/performance_custom.py,sha256=QGx0GPYVrgGYo-bLVnijaak7ZGB-ti-1HSuEbjkAMi4,2665
713
713
  snaptrade_client/type/performance_custom_bad_tickers.py,sha256=dkXUonxrer2IAKCdZ2XJCRZmuN5Pz8QlpKLqB7Ze7I4,435
714
714
  snaptrade_client/type/portfolio_group_id.py,sha256=5J6sEjGjzmAWd48oyxW-zUC5t0EI4Ehz_d0htMJ93X4,394
715
- snaptrade_client/type/position.py,sha256=RzIeIl0GI2ZjLpNbbvsVVFaDfE1Mx8mxd3oDpGAwQfY,2192
715
+ snaptrade_client/type/position.py,sha256=6kDAGLwhnqdl1HngRHEmGydHe4zs5Uklw_dOgonEzhQ,2371
716
716
  snaptrade_client/type/position_symbol.py,sha256=DyBMR4TVpC9Dljr46iI2h39LOlnk3xBtgrZ_Cpi8yck,1704
717
717
  snaptrade_client/type/price.py,sha256=bg4ITnU07qZjLdWjYI4FhYYpGb9sVgKnzuuox5MTKy4,385
718
718
  snaptrade_client/type/rate_of_return_object.py,sha256=tOi03aj61p009q97yx9d1q6q4VgYYLdlT0_f24dsBhg,876
@@ -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.133.dist-info/LICENSE,sha256=W_1kcxEzOnZXIYJ1GVUipbmUu6dNLt-Pc-OI55h3k-A,1081
767
- snaptrade_python_sdk-11.0.133.dist-info/METADATA,sha256=ob5Vb1zzHRAKURi2qBrYeHlGOZM75rpzrwWGRVZFuL0,93410
768
- snaptrade_python_sdk-11.0.133.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
769
- snaptrade_python_sdk-11.0.133.dist-info/RECORD,,
766
+ snaptrade_python_sdk-11.0.134.dist-info/LICENSE,sha256=W_1kcxEzOnZXIYJ1GVUipbmUu6dNLt-Pc-OI55h3k-A,1081
767
+ snaptrade_python_sdk-11.0.134.dist-info/METADATA,sha256=QRdykaFCrd3vzMCwDvHDcgEEKogzFb_IiQmCZcNmDmY,93410
768
+ snaptrade_python_sdk-11.0.134.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
769
+ snaptrade_python_sdk-11.0.134.dist-info/RECORD,,