snaptrade-python-sdk 11.0.135__py3-none-any.whl → 11.0.136__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.135"
15
+ __version__ = "11.0.136"
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.135/python'
1158
+ self.user_agent = 'Konfig/11.0.136/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.135".\
441
+ "SDK Package Version: 11.0.136".\
442
442
  format(env=sys.platform, pyversion=sys.version)
443
443
 
444
444
  def get_host_settings(self):
@@ -190,16 +190,16 @@ class AccountOrderRecord(
190
190
 
191
191
 
192
192
  class total_quantity(
193
- schemas.NumberBase,
193
+ schemas.StrBase,
194
194
  schemas.NoneBase,
195
195
  schemas.Schema,
196
- schemas.NoneDecimalMixin
196
+ schemas.NoneStrMixin
197
197
  ):
198
198
 
199
199
 
200
200
  def __new__(
201
201
  cls,
202
- *args: typing.Union[None, decimal.Decimal, int, float, ],
202
+ *args: typing.Union[None, str, ],
203
203
  _configuration: typing.Optional[schemas.Configuration] = None,
204
204
  ) -> 'total_quantity':
205
205
  return super().__new__(
@@ -210,16 +210,16 @@ class AccountOrderRecord(
210
210
 
211
211
 
212
212
  class open_quantity(
213
- schemas.NumberBase,
213
+ schemas.StrBase,
214
214
  schemas.NoneBase,
215
215
  schemas.Schema,
216
- schemas.NoneDecimalMixin
216
+ schemas.NoneStrMixin
217
217
  ):
218
218
 
219
219
 
220
220
  def __new__(
221
221
  cls,
222
- *args: typing.Union[None, decimal.Decimal, int, float, ],
222
+ *args: typing.Union[None, str, ],
223
223
  _configuration: typing.Optional[schemas.Configuration] = None,
224
224
  ) -> 'open_quantity':
225
225
  return super().__new__(
@@ -230,16 +230,16 @@ class AccountOrderRecord(
230
230
 
231
231
 
232
232
  class canceled_quantity(
233
- schemas.NumberBase,
233
+ schemas.StrBase,
234
234
  schemas.NoneBase,
235
235
  schemas.Schema,
236
- schemas.NoneDecimalMixin
236
+ schemas.NoneStrMixin
237
237
  ):
238
238
 
239
239
 
240
240
  def __new__(
241
241
  cls,
242
- *args: typing.Union[None, decimal.Decimal, int, float, ],
242
+ *args: typing.Union[None, str, ],
243
243
  _configuration: typing.Optional[schemas.Configuration] = None,
244
244
  ) -> 'canceled_quantity':
245
245
  return super().__new__(
@@ -250,16 +250,16 @@ class AccountOrderRecord(
250
250
 
251
251
 
252
252
  class filled_quantity(
253
- schemas.NumberBase,
253
+ schemas.StrBase,
254
254
  schemas.NoneBase,
255
255
  schemas.Schema,
256
- schemas.NoneDecimalMixin
256
+ schemas.NoneStrMixin
257
257
  ):
258
258
 
259
259
 
260
260
  def __new__(
261
261
  cls,
262
- *args: typing.Union[None, decimal.Decimal, int, float, ],
262
+ *args: typing.Union[None, str, ],
263
263
  _configuration: typing.Optional[schemas.Configuration] = None,
264
264
  ) -> 'filled_quantity':
265
265
  return super().__new__(
@@ -610,10 +610,10 @@ class AccountOrderRecord(
610
610
  quote_universal_symbol: typing.Union[MetaOapg.properties.quote_universal_symbol, 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,
611
611
  quote_currency: typing.Union[MetaOapg.properties.quote_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,
612
612
  action: typing.Union[MetaOapg.properties.action, str, schemas.Unset] = schemas.unset,
613
- total_quantity: typing.Union[MetaOapg.properties.total_quantity, None, decimal.Decimal, int, float, schemas.Unset] = schemas.unset,
614
- open_quantity: typing.Union[MetaOapg.properties.open_quantity, None, decimal.Decimal, int, float, schemas.Unset] = schemas.unset,
615
- canceled_quantity: typing.Union[MetaOapg.properties.canceled_quantity, None, decimal.Decimal, int, float, schemas.Unset] = schemas.unset,
616
- filled_quantity: typing.Union[MetaOapg.properties.filled_quantity, None, decimal.Decimal, int, float, schemas.Unset] = schemas.unset,
613
+ total_quantity: typing.Union[MetaOapg.properties.total_quantity, None, str, schemas.Unset] = schemas.unset,
614
+ open_quantity: typing.Union[MetaOapg.properties.open_quantity, None, str, schemas.Unset] = schemas.unset,
615
+ canceled_quantity: typing.Union[MetaOapg.properties.canceled_quantity, None, str, schemas.Unset] = schemas.unset,
616
+ filled_quantity: typing.Union[MetaOapg.properties.filled_quantity, None, str, schemas.Unset] = schemas.unset,
617
617
  execution_price: typing.Union[MetaOapg.properties.execution_price, None, decimal.Decimal, int, float, schemas.Unset] = schemas.unset,
618
618
  limit_price: typing.Union[MetaOapg.properties.limit_price, None, decimal.Decimal, int, float, schemas.Unset] = schemas.unset,
619
619
  stop_price: typing.Union[MetaOapg.properties.stop_price, None, decimal.Decimal, int, float, schemas.Unset] = schemas.unset,
@@ -190,16 +190,16 @@ class AccountOrderRecord(
190
190
 
191
191
 
192
192
  class total_quantity(
193
- schemas.NumberBase,
193
+ schemas.StrBase,
194
194
  schemas.NoneBase,
195
195
  schemas.Schema,
196
- schemas.NoneDecimalMixin
196
+ schemas.NoneStrMixin
197
197
  ):
198
198
 
199
199
 
200
200
  def __new__(
201
201
  cls,
202
- *args: typing.Union[None, decimal.Decimal, int, float, ],
202
+ *args: typing.Union[None, str, ],
203
203
  _configuration: typing.Optional[schemas.Configuration] = None,
204
204
  ) -> 'total_quantity':
205
205
  return super().__new__(
@@ -210,16 +210,16 @@ class AccountOrderRecord(
210
210
 
211
211
 
212
212
  class open_quantity(
213
- schemas.NumberBase,
213
+ schemas.StrBase,
214
214
  schemas.NoneBase,
215
215
  schemas.Schema,
216
- schemas.NoneDecimalMixin
216
+ schemas.NoneStrMixin
217
217
  ):
218
218
 
219
219
 
220
220
  def __new__(
221
221
  cls,
222
- *args: typing.Union[None, decimal.Decimal, int, float, ],
222
+ *args: typing.Union[None, str, ],
223
223
  _configuration: typing.Optional[schemas.Configuration] = None,
224
224
  ) -> 'open_quantity':
225
225
  return super().__new__(
@@ -230,16 +230,16 @@ class AccountOrderRecord(
230
230
 
231
231
 
232
232
  class canceled_quantity(
233
- schemas.NumberBase,
233
+ schemas.StrBase,
234
234
  schemas.NoneBase,
235
235
  schemas.Schema,
236
- schemas.NoneDecimalMixin
236
+ schemas.NoneStrMixin
237
237
  ):
238
238
 
239
239
 
240
240
  def __new__(
241
241
  cls,
242
- *args: typing.Union[None, decimal.Decimal, int, float, ],
242
+ *args: typing.Union[None, str, ],
243
243
  _configuration: typing.Optional[schemas.Configuration] = None,
244
244
  ) -> 'canceled_quantity':
245
245
  return super().__new__(
@@ -250,16 +250,16 @@ class AccountOrderRecord(
250
250
 
251
251
 
252
252
  class filled_quantity(
253
- schemas.NumberBase,
253
+ schemas.StrBase,
254
254
  schemas.NoneBase,
255
255
  schemas.Schema,
256
- schemas.NoneDecimalMixin
256
+ schemas.NoneStrMixin
257
257
  ):
258
258
 
259
259
 
260
260
  def __new__(
261
261
  cls,
262
- *args: typing.Union[None, decimal.Decimal, int, float, ],
262
+ *args: typing.Union[None, str, ],
263
263
  _configuration: typing.Optional[schemas.Configuration] = None,
264
264
  ) -> 'filled_quantity':
265
265
  return super().__new__(
@@ -610,10 +610,10 @@ class AccountOrderRecord(
610
610
  quote_universal_symbol: typing.Union[MetaOapg.properties.quote_universal_symbol, 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,
611
611
  quote_currency: typing.Union[MetaOapg.properties.quote_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,
612
612
  action: typing.Union[MetaOapg.properties.action, str, schemas.Unset] = schemas.unset,
613
- total_quantity: typing.Union[MetaOapg.properties.total_quantity, None, decimal.Decimal, int, float, schemas.Unset] = schemas.unset,
614
- open_quantity: typing.Union[MetaOapg.properties.open_quantity, None, decimal.Decimal, int, float, schemas.Unset] = schemas.unset,
615
- canceled_quantity: typing.Union[MetaOapg.properties.canceled_quantity, None, decimal.Decimal, int, float, schemas.Unset] = schemas.unset,
616
- filled_quantity: typing.Union[MetaOapg.properties.filled_quantity, None, decimal.Decimal, int, float, schemas.Unset] = schemas.unset,
613
+ total_quantity: typing.Union[MetaOapg.properties.total_quantity, None, str, schemas.Unset] = schemas.unset,
614
+ open_quantity: typing.Union[MetaOapg.properties.open_quantity, None, str, schemas.Unset] = schemas.unset,
615
+ canceled_quantity: typing.Union[MetaOapg.properties.canceled_quantity, None, str, schemas.Unset] = schemas.unset,
616
+ filled_quantity: typing.Union[MetaOapg.properties.filled_quantity, None, str, schemas.Unset] = schemas.unset,
617
617
  execution_price: typing.Union[MetaOapg.properties.execution_price, None, decimal.Decimal, int, float, schemas.Unset] = schemas.unset,
618
618
  limit_price: typing.Union[MetaOapg.properties.limit_price, None, decimal.Decimal, int, float, schemas.Unset] = schemas.unset,
619
619
  stop_price: typing.Union[MetaOapg.properties.stop_price, None, decimal.Decimal, int, float, schemas.Unset] = schemas.unset,
@@ -46,16 +46,16 @@ class OptionalAccountOrderRecord(TypedDict, total=False):
46
46
  action: str
47
47
 
48
48
  # The total number of shares or contracts of the order. This should be the sum of the filled, canceled, and open quantities. Can be a decimal number for fractional shares.
49
- total_quantity: typing.Optional[typing.Union[int, float]]
49
+ total_quantity: typing.Optional[str]
50
50
 
51
51
  # The number of shares or contracts that are still open (waiting for execution). Can be a decimal number for fractional shares.
52
- open_quantity: typing.Optional[typing.Union[int, float]]
52
+ open_quantity: typing.Optional[str]
53
53
 
54
54
  # The number of shares or contracts that have been canceled. Can be a decimal number for fractional shares.
55
- canceled_quantity: typing.Optional[typing.Union[int, float]]
55
+ canceled_quantity: typing.Optional[str]
56
56
 
57
57
  # The number of shares or contracts that have been filled. Can be a decimal number for fractional shares.
58
- filled_quantity: typing.Optional[typing.Union[int, float]]
58
+ filled_quantity: typing.Optional[str]
59
59
 
60
60
  # The price at which the order was executed.
61
61
  execution_price: typing.Optional[typing.Union[int, float]]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: snaptrade-python-sdk
3
- Version: 11.0.135
3
+ Version: 11.0.136
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.135-blue)](https://pypi.org/project/snaptrade-python-sdk/11.0.135)
33
+ [![PyPI](https://img.shields.io/badge/PyPI-v11.0.136-blue)](https://pypi.org/project/snaptrade-python-sdk/11.0.136)
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.135
112
+ pip install snaptrade-python-sdk==11.0.136
113
113
  ```
114
114
 
115
115
  ## Getting Started<a id="getting-started"></a>
@@ -1,5 +1,5 @@
1
- snaptrade_client/__init__.py,sha256=khsYHD2_DoUUJ_GebKG7JDrSdb2l7DsEMuKMVKCc_LQ,820
2
- snaptrade_client/api_client.py,sha256=vU8xnU_I6SXtcfFoLiPv3Qe-WBzg6_lhpBWQEKbNixE,73975
1
+ snaptrade_client/__init__.py,sha256=5koonYFGY2A-nh-XxGNBUcbR05wlK2a5QQ6Kz45Imtk,820
2
+ snaptrade_client/api_client.py,sha256=jaDb20iypuuhUkRWBH0ppq-3sjcp5h0jBo_S1_fPebE,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=NjjqTbDFjpy_-I4DOloCtKguO0JT5cUPVrAI0a8GDL8,19262
80
+ snaptrade_client/configuration.py,sha256=tzjnjRYwLjqSTB2dTfnzm7iKXawFlfdMFSmUWPbH5cU,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
@@ -97,8 +97,8 @@ snaptrade_client/model/account_ids.py,sha256=KE84XlAg6CbSURNEiSQCGyWSq4gr7PPX5dK
97
97
  snaptrade_client/model/account_ids.pyi,sha256=KE84XlAg6CbSURNEiSQCGyWSq4gr7PPX5dK3zDQbG38,600
98
98
  snaptrade_client/model/account_meta.py,sha256=DinCJws8L_EvoyL0TaZ3mxqmF7WHP8qdgjmQpMMuyVM,1877
99
99
  snaptrade_client/model/account_meta.pyi,sha256=DinCJws8L_EvoyL0TaZ3mxqmF7WHP8qdgjmQpMMuyVM,1877
100
- snaptrade_client/model/account_order_record.py,sha256=s-2Rw8dpTG79ZV48E377JqYX8-pZ3EFxHypsQQWZR9o,31930
101
- snaptrade_client/model/account_order_record.pyi,sha256=s-2Rw8dpTG79ZV48E377JqYX8-pZ3EFxHypsQQWZR9o,31930
100
+ snaptrade_client/model/account_order_record.py,sha256=8iJAzCQm73UqoVmMr3bNlc1cMzk4_S90qAIbs4ZnBWA,31710
101
+ snaptrade_client/model/account_order_record.pyi,sha256=8iJAzCQm73UqoVmMr3bNlc1cMzk4_S90qAIbs4ZnBWA,31710
102
102
  snaptrade_client/model/account_order_record_status.py,sha256=LO2hNdzRtyeMklQe_9eF9NzCqU3AGNTtHmaTaYO4re0,3481
103
103
  snaptrade_client/model/account_order_record_status.pyi,sha256=6Za57NOSn68EAfsTrbSo5ON82lKHuu7LRkpTXI2id2Q,2636
104
104
  snaptrade_client/model/account_simple.py,sha256=wn9QxG5mIsGTRA10XWCJGUsJ8x_CUyYFRcP2DzVUMyE,4291
@@ -599,7 +599,7 @@ snaptrade_client/type/account_holdings_account.py,sha256=Vv8GPeCnLi1AxaPyJS2BNrT
599
599
  snaptrade_client/type/account_id.py,sha256=6xYSAdrRj15wXu1OIXIgpS_bhxXaLNT-bAYW1U08dIQ,387
600
600
  snaptrade_client/type/account_ids.py,sha256=tD7-0yhINoqozMbLIKQ_XTVVQdNOTXMvhATvjAP4OCs,388
601
601
  snaptrade_client/type/account_meta.py,sha256=LuUXBeqct8pJwTvL-BlRhxHqn5IMLqlfguCUPSGnLz0,390
602
- snaptrade_client/type/account_order_record.py,sha256=jotmCeSfdRmPO61qo0ygPdWWUxE2Fbot-4MKZfYWv8M,5815
602
+ snaptrade_client/type/account_order_record.py,sha256=fR62IbSHjdeZBXnWMUhqk400fLy6racYQcLYdI05UR0,5731
603
603
  snaptrade_client/type/account_order_record_status.py,sha256=7UCcPLIE_QVcBm488PfbuIwnQFetCu7wANTmsrg_NMg,677
604
604
  snaptrade_client/type/account_simple.py,sha256=4vmKftyvxG72FXtiS0wG4IK81rfBvjcFcGO0j1NVvDo,1133
605
605
  snaptrade_client/type/account_sync_status.py,sha256=i85qixRiLAFDJo0sYiSATocIuPv-ZEgwPkZaiMjKD58,776
@@ -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.135.dist-info/LICENSE,sha256=W_1kcxEzOnZXIYJ1GVUipbmUu6dNLt-Pc-OI55h3k-A,1081
767
- snaptrade_python_sdk-11.0.135.dist-info/METADATA,sha256=bE2VqZW6Mgj_iMgSsJ0VtKSq-C-OTPG1uib40imhJEI,93499
768
- snaptrade_python_sdk-11.0.135.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
769
- snaptrade_python_sdk-11.0.135.dist-info/RECORD,,
766
+ snaptrade_python_sdk-11.0.136.dist-info/LICENSE,sha256=W_1kcxEzOnZXIYJ1GVUipbmUu6dNLt-Pc-OI55h3k-A,1081
767
+ snaptrade_python_sdk-11.0.136.dist-info/METADATA,sha256=oFZwfAe1BlVqR3Yza2Gn1AMW49sAz27wnSTqJlc0b78,93499
768
+ snaptrade_python_sdk-11.0.136.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
769
+ snaptrade_python_sdk-11.0.136.dist-info/RECORD,,