snaptrade-python-sdk 11.0.136__py3-none-any.whl → 11.0.138__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.136"
15
+ __version__ = "11.0.138"
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.136/python'
1158
+ self.user_agent = 'Konfig/11.0.138/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.136".\
441
+ "SDK Package Version: 11.0.138".\
442
442
  format(env=sys.platform, pyversion=sys.version)
443
443
 
444
444
  def get_host_settings(self):
@@ -51,6 +51,7 @@ class TradingInstrument(
51
51
  class MetaOapg:
52
52
  enum_value_to_name = {
53
53
  "EQUITY": "EQUITY",
54
+ "OPTION": "OPTION",
54
55
  "CRYPTOCURRENCY": "CRYPTOCURRENCY",
55
56
  "CRYPTOCURRENCY_PAIR": "CRYPTOCURRENCY_PAIR",
56
57
  }
@@ -59,6 +60,10 @@ class TradingInstrument(
59
60
  def EQUITY(cls):
60
61
  return cls("EQUITY")
61
62
 
63
+ @schemas.classproperty
64
+ def OPTION(cls):
65
+ return cls("OPTION")
66
+
62
67
  @schemas.classproperty
63
68
  def CRYPTOCURRENCY(cls):
64
69
  return cls("CRYPTOCURRENCY")
@@ -51,6 +51,10 @@ class TradingInstrument(
51
51
  def EQUITY(cls):
52
52
  return cls("EQUITY")
53
53
 
54
+ @schemas.classproperty
55
+ def OPTION(cls):
56
+ return cls("OPTION")
57
+
54
58
  @schemas.classproperty
55
59
  def CRYPTOCURRENCY(cls):
56
60
  return cls("CRYPTOCURRENCY")
@@ -294,7 +294,7 @@ class BaseApi(api_client.Api):
294
294
  AsyncGeneratorResponse,
295
295
  ]:
296
296
  """
297
- Place bracket equity order
297
+ Place bracket order
298
298
  :param skip_deserialization: If true then api_response.response will be set but
299
299
  api_response.body and api_response.headers will not be deserialized into schema
300
300
  class instances
@@ -440,7 +440,7 @@ class BaseApi(api_client.Api):
440
440
  api_client.ApiResponseWithoutDeserialization,
441
441
  ]:
442
442
  """
443
- Place bracket equity order
443
+ Place bracket order
444
444
  :param skip_deserialization: If true then api_response.response will be set but
445
445
  api_response.body and api_response.headers will not be deserialized into schema
446
446
  class instances
@@ -281,7 +281,7 @@ class BaseApi(api_client.Api):
281
281
  AsyncGeneratorResponse,
282
282
  ]:
283
283
  """
284
- Place bracket equity order
284
+ Place bracket order
285
285
  :param skip_deserialization: If true then api_response.response will be set but
286
286
  api_response.body and api_response.headers will not be deserialized into schema
287
287
  class instances
@@ -427,7 +427,7 @@ class BaseApi(api_client.Api):
427
427
  api_client.ApiResponseWithoutDeserialization,
428
428
  ]:
429
429
  """
430
- Place bracket equity order
430
+ Place bracket order
431
431
  :param skip_deserialization: If true then api_response.response will be set but
432
432
  api_response.body and api_response.headers will not be deserialized into schema
433
433
  class instances
@@ -262,7 +262,7 @@ class BaseApi(api_client.Api):
262
262
  AsyncGeneratorResponse,
263
263
  ]:
264
264
  """
265
- Place order
265
+ Place equity order
266
266
  :param skip_deserialization: If true then api_response.response will be set but
267
267
  api_response.body and api_response.headers will not be deserialized into schema
268
268
  class instances
@@ -393,7 +393,7 @@ class BaseApi(api_client.Api):
393
393
  api_client.ApiResponseWithoutDeserialization,
394
394
  ]:
395
395
  """
396
- Place order
396
+ Place equity order
397
397
  :param skip_deserialization: If true then api_response.response will be set but
398
398
  api_response.body and api_response.headers will not be deserialized into schema
399
399
  class instances
@@ -249,7 +249,7 @@ class BaseApi(api_client.Api):
249
249
  AsyncGeneratorResponse,
250
250
  ]:
251
251
  """
252
- Place order
252
+ Place equity order
253
253
  :param skip_deserialization: If true then api_response.response will be set but
254
254
  api_response.body and api_response.headers will not be deserialized into schema
255
255
  class instances
@@ -380,7 +380,7 @@ class BaseApi(api_client.Api):
380
380
  api_client.ApiResponseWithoutDeserialization,
381
381
  ]:
382
382
  """
383
- Place order
383
+ Place equity order
384
384
  :param skip_deserialization: If true then api_response.response will be set but
385
385
  api_response.body and api_response.headers will not be deserialized into schema
386
386
  class instances
@@ -17,7 +17,7 @@ from typing_extensions import TypedDict, Literal, TYPE_CHECKING
17
17
 
18
18
 
19
19
  class RequiredTradingInstrument(TypedDict):
20
- # The instrument's trading ticker symbol
20
+ # The instrument's trading ticker symbol. This currently supports stock symbols and Options symbols in the 21 character OCC format. For example `AAPL 131124C00240000` represents a call option on AAPL expiring on 2024-11-13 with a strike price of $240. For more information on the OCC format, see [here](https://en.wikipedia.org/wiki/Option_symbol#OCC_format)
21
21
  symbol: str
22
22
 
23
23
  # The instrument's type
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: snaptrade-python-sdk
3
- Version: 11.0.136
3
+ Version: 11.0.138
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.136-blue)](https://pypi.org/project/snaptrade-python-sdk/11.0.136)
33
+ [![PyPI](https://img.shields.io/badge/PyPI-v11.0.138-blue)](https://pypi.org/project/snaptrade-python-sdk/11.0.138)
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.136
112
+ pip install snaptrade-python-sdk==11.0.138
113
113
  ```
114
114
 
115
115
  ## Getting Started<a id="getting-started"></a>
@@ -1,5 +1,5 @@
1
- snaptrade_client/__init__.py,sha256=5koonYFGY2A-nh-XxGNBUcbR05wlK2a5QQ6Kz45Imtk,820
2
- snaptrade_client/api_client.py,sha256=jaDb20iypuuhUkRWBH0ppq-3sjcp5h0jBo_S1_fPebE,73975
1
+ snaptrade_client/__init__.py,sha256=VhnIbbVlM0SMhpk3ThjzZpdQqCOl5U8y8zRNyb3Mj_I,820
2
+ snaptrade_client/api_client.py,sha256=bqP2RBdqB0cURrThEwxOo7K8rG_IAYrX2kUZ1YpH0lE,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=tzjnjRYwLjqSTB2dTfnzm7iKXawFlfdMFSmUWPbH5cU,19262
80
+ snaptrade_client/configuration.py,sha256=vso2g1QZP2fO4RzcoyRePZoE4V50VrxvLOeZYJeLin8,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
@@ -391,8 +391,8 @@ snaptrade_client/model/time_in_force_strict.py,sha256=6mFx9KI5VMKCcMcusBZow9-wj8
391
391
  snaptrade_client/model/time_in_force_strict.pyi,sha256=UvOCluVAviGtar4hKBoDBRlpiPn40sKhW4w6uSzXcZo,1625
392
392
  snaptrade_client/model/trade_id.py,sha256=cbEaNeZ_8WW53ZCJFJVNM0CAh6veUNkwGqzUQBFoG8E,598
393
393
  snaptrade_client/model/trade_id.pyi,sha256=cbEaNeZ_8WW53ZCJFJVNM0CAh6veUNkwGqzUQBFoG8E,598
394
- snaptrade_client/model/trading_instrument.py,sha256=a6NUbYnRTzrl2OjSIKc4Tw-A6E5dbLi_yZ2wntMK5Zk,3847
395
- snaptrade_client/model/trading_instrument.pyi,sha256=1QcJq4kewpfufX5Sc26BavixMYIvxpN3nogmLJkL1IA,3550
394
+ snaptrade_client/model/trading_instrument.py,sha256=wEjNKB3IKUIECCLXABt5x2tp0GNOlijcAnAs5Ym_lTg,4021
395
+ snaptrade_client/model/trading_instrument.pyi,sha256=i0tAB4jo6TWozRUUksjuAtHIHqza1V2jSW9UxlMYmfY,3680
396
396
  snaptrade_client/model/transactions_status.py,sha256=tyGuPY9gq2rHu26Twg3PSvyBEOEW4BEV0UDreQj0OlM,6840
397
397
  snaptrade_client/model/transactions_status.pyi,sha256=tyGuPY9gq2rHu26Twg3PSvyBEOEW4BEV0UDreQj0OlM,6840
398
398
  snaptrade_client/model/underlying_symbol.py,sha256=z-wwtN1bCGTk4_qIOnZM0WZAZhQqNfEdUC6-Sx_P-co,15766
@@ -472,8 +472,8 @@ snaptrade_client/paths/accounts_account_id_symbols/__init__.py,sha256=W4appqLUjn
472
472
  snaptrade_client/paths/accounts_account_id_symbols/post.py,sha256=lY_qckOwveAIspofejARKiQI4R4M-eA_sMrS1qgtIqE,22211
473
473
  snaptrade_client/paths/accounts_account_id_symbols/post.pyi,sha256=7BOOwzqpCb39oCxp_ZKSVpQx1fQjkwBpWGyjptFM1C0,22009
474
474
  snaptrade_client/paths/accounts_account_id_trading_bracket/__init__.py,sha256=QBPAt6nOa154uffyl5sircs20NaIQEyV_d3ZBDGFIDo,361
475
- snaptrade_client/paths/accounts_account_id_trading_bracket/post.py,sha256=gMbY75_mMGclQFVysD0xS7lShEad1_KOOkLBpVrvKS0,28044
476
- snaptrade_client/paths/accounts_account_id_trading_bracket/post.pyi,sha256=RsuVePcr_BEDjlp1XIYTeKU3S_lGRfFC75PZGBri7EE,27790
475
+ snaptrade_client/paths/accounts_account_id_trading_bracket/post.py,sha256=ZN21XiREm9MA5iA_5l4bC8n2hU5fOA4I9DYtancEE18,28030
476
+ snaptrade_client/paths/accounts_account_id_trading_bracket/post.pyi,sha256=Va8t8rWomEB07Mflk3eSQ3yz1SY7xIdx1-Zti-kuxtw,27776
477
477
  snaptrade_client/paths/accounts_account_id_trading_cancel/__init__.py,sha256=MJxSaVr3G9c_q18MFEhXT13t8kAeMsXQvpmfukC4T-8,359
478
478
  snaptrade_client/paths/accounts_account_id_trading_cancel/post.py,sha256=Ph-TuHSR34RGCPMDn31AcQ1OmaVjUhOuVa9AO5mV8r0,23404
479
479
  snaptrade_client/paths/accounts_account_id_trading_cancel/post.pyi,sha256=BLAyPyOErz9_q0ggtkiIGY2q6hLwyg2V83VKcXLO_84,23180
@@ -579,8 +579,8 @@ snaptrade_client/paths/trade_impact/__init__.py,sha256=Ahc5LzJcfLoux_9jiEMVkF5c-
579
579
  snaptrade_client/paths/trade_impact/post.py,sha256=gycxVhNtjzsgEHaPfTruKOSufJuH5jAbwYP4YsTNaW0,25430
580
580
  snaptrade_client/paths/trade_impact/post.pyi,sha256=-um0creYorDD-UH85zUbPnONXy9ZphqZEmIakUpdJCs,25176
581
581
  snaptrade_client/paths/trade_place/__init__.py,sha256=83mA3Q0syyXA7ghAZOOJMQumSWVhvpkP3etJxeLmZZY,313
582
- snaptrade_client/paths/trade_place/post.py,sha256=5R7MtNV1Jn6H_3lbpR_fucOui9ExQCmfwz_HJf53hqA,26758
583
- snaptrade_client/paths/trade_place/post.pyi,sha256=xDpMZweKxcSClPF-b0Ep6_THM1QFQF5EwHLU-Atukys,26504
582
+ snaptrade_client/paths/trade_place/post.py,sha256=y3UI93E_gYhGQ9d-KQfHM6r1xUelSjCNgqESju0HSnQ,26772
583
+ snaptrade_client/paths/trade_place/post.pyi,sha256=dWdAHMwm0hBkEqoNcm-s-eKZR75ryC-Vj-L6OW-9N-k,26518
584
584
  snaptrade_client/paths/trade_trade_id/__init__.py,sha256=EDXCsrx0SP8La12CshBpoPw_Ve9bBIF-EXx3FLBIDcc,319
585
585
  snaptrade_client/paths/trade_trade_id/post.py,sha256=MU1ydQfvpuxrMmjluX887yjofWC32cm6bi6tHbCwF0k,22385
586
586
  snaptrade_client/paths/trade_trade_id/post.pyi,sha256=bO40OO_iPO8XykRqox6CmvlNt01Cqh0ehHviaG50ZxY,22161
@@ -746,7 +746,7 @@ snaptrade_client/type/time.py,sha256=8wOcPUj4gua_yXsX_ywzTW7rVXSOh7zY-x-BSiQfiaY
746
746
  snaptrade_client/type/time_in_force.py,sha256=KNosd1xbe4B8AFAZFi0P68wPreUz9w8W0gZWGvKeDEM,389
747
747
  snaptrade_client/type/time_in_force_strict.py,sha256=opH8YGpacD-5SD11dF_fpESJ1TERnbnkLvlKjs-dYQY,427
748
748
  snaptrade_client/type/trade_id.py,sha256=4iIIlK2A4Shut27nLvw6HRPv6BXGDHNJ5Xer84K9i8s,385
749
- snaptrade_client/type/trading_instrument.py,sha256=TQ91fO_6XChi_Uqm-n3hacAmnPXHDETcov7vdvLyT_s,675
749
+ snaptrade_client/type/trading_instrument.py,sha256=SiJ4-of50dQuHccuZA5iozAR7rMjicxpTe8wqTt-BAU,994
750
750
  snaptrade_client/type/transactions_status.py,sha256=W-SlpGb9dhxOBY7d2KNSi1H1sDw4oAUX7c0kYuA-GsM,1199
751
751
  snaptrade_client/type/underlying_symbol.py,sha256=lne2ye556eJXKZxpureuSKd4Ebd4KrhWN8RmySjzkX0,2526
752
752
  snaptrade_client/type/units.py,sha256=5Oy2dds7WXh0CpBEQYR5dFfSPUqmX0hQQWK79DPQCZA,385
@@ -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.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,,
766
+ snaptrade_python_sdk-11.0.138.dist-info/LICENSE,sha256=W_1kcxEzOnZXIYJ1GVUipbmUu6dNLt-Pc-OI55h3k-A,1081
767
+ snaptrade_python_sdk-11.0.138.dist-info/METADATA,sha256=IeBEexd5nxGFCO3Zt0T1Pjos7U8d108k0g_EXqOKMKc,93499
768
+ snaptrade_python_sdk-11.0.138.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
769
+ snaptrade_python_sdk-11.0.138.dist-info/RECORD,,