snaptrade-python-sdk 11.0.156__py3-none-any.whl → 11.0.158__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: snaptrade-python-sdk
3
- Version: 11.0.156
3
+ Version: 11.0.158
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.156-blue)](https://pypi.org/project/snaptrade-python-sdk/11.0.156)
33
+ [![PyPI](https://img.shields.io/badge/PyPI-v11.0.158-blue)](https://pypi.org/project/snaptrade-python-sdk/11.0.158)
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
 
@@ -70,6 +70,7 @@ Connect brokerage accounts to your app for live positions and trading
70
70
  * [`snaptrade.connections.remove_brokerage_authorization`](#snaptradeconnectionsremove_brokerage_authorization)
71
71
  * [`snaptrade.connections.return_rates`](#snaptradeconnectionsreturn_rates)
72
72
  * [`snaptrade.connections.session_events`](#snaptradeconnectionssession_events)
73
+ * [`snaptrade.experimental_endpoints.get_user_account_order_detail_v2`](#snaptradeexperimental_endpointsget_user_account_order_detail_v2)
73
74
  * [`snaptrade.experimental_endpoints.get_user_account_orders_v2`](#snaptradeexperimental_endpointsget_user_account_orders_v2)
74
75
  * [`snaptrade.experimental_endpoints.get_user_account_recent_orders_v2`](#snaptradeexperimental_endpointsget_user_account_recent_orders_v2)
75
76
  * [`snaptrade.options.get_options_chain`](#snaptradeoptionsget_options_chain)
@@ -111,7 +112,7 @@ Python >=3.8
111
112
  ## Installation<a id="installation"></a>
112
113
 
113
114
  ```sh
114
- pip install snaptrade-python-sdk==11.0.156
115
+ pip install snaptrade-python-sdk==11.0.158
115
116
  ```
116
117
 
117
118
  ## Getting Started<a id="getting-started"></a>
@@ -1227,6 +1228,58 @@ Optional comma separated list of session IDs used to filter the request on speci
1227
1228
 
1228
1229
  ---
1229
1230
 
1231
+ ### `snaptrade.experimental_endpoints.get_user_account_order_detail_v2`<a id="snaptradeexperimental_endpointsget_user_account_order_detail_v2"></a>
1232
+
1233
+ Returns the detail of a single order using the external order ID provided in the request body.
1234
+
1235
+ The V2 order response format includes all legs of the order in the `legs` list field.
1236
+ If the order is single legged, `legs` will be a list of one leg.
1237
+
1238
+ This endpoint is always realtime and does not rely on cached data.
1239
+
1240
+ This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
1241
+
1242
+
1243
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
1244
+
1245
+ ```python
1246
+ get_user_account_order_detail_v2_response = (
1247
+ snaptrade.experimental_endpoints.get_user_account_order_detail_v2(
1248
+ brokerage_order_id="66a033fa-da74-4fcf-b527-feefdec9257e",
1249
+ account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
1250
+ user_id="snaptrade-user-123",
1251
+ user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
1252
+ )
1253
+ )
1254
+ ```
1255
+
1256
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
1257
+
1258
+ ##### brokerage_order_id: `str`<a id="brokerage_order_id-str"></a>
1259
+
1260
+ Order ID returned by brokerage. This is the unique identifier for the order in the brokerage system.
1261
+
1262
+ ##### account_id: `str`<a id="account_id-str"></a>
1263
+
1264
+ ##### user_id: `str`<a id="user_id-str"></a>
1265
+
1266
+ ##### user_secret: `str`<a id="user_secret-str"></a>
1267
+
1268
+ #### ⚙️ Request Body<a id="⚙️-request-body"></a>
1269
+
1270
+ [`Any`](./snaptrade_client/type/typing_any.py)
1271
+ #### 🔄 Return<a id="🔄-return"></a>
1272
+
1273
+ [`AccountOrderRecordV2`](./snaptrade_client/type/account_order_record_v2.py)
1274
+
1275
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
1276
+
1277
+ `/accounts/{accountId}/orders/details/v2` `post`
1278
+
1279
+ [🔙 **Back to Table of Contents**](#table-of-contents)
1280
+
1281
+ ---
1282
+
1230
1283
  ### `snaptrade.experimental_endpoints.get_user_account_orders_v2`<a id="snaptradeexperimental_endpointsget_user_account_orders_v2"></a>
1231
1284
 
1232
1285
  Returns a list of recent orders in the specified account.
@@ -1,8 +1,8 @@
1
- snaptrade_client/__init__.py,sha256=VDGUFZHF-JjV4b63B5MWORdLMHHGoH9UIajodM6yWLQ,820
2
- snaptrade_client/api_client.py,sha256=Vz0A5bg03TYYfI-trpc0KStKUnrnIFYajf_XbWblxcw,73975
1
+ snaptrade_client/__init__.py,sha256=GP8hBVl83esK5kDL5O0wWeFO9v4DN1a-vBU3hdytu0g,820
2
+ snaptrade_client/api_client.py,sha256=2OXiHHBd9mDJzsqzVAsS7d3CXqSRWc2o4eps95YPcwg,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
- snaptrade_client/apis/path_to_api.py,sha256=U2W6P3ea6gIUTB16bJ16y4fIBuaOF_TqUyGmuFF6STM,12851
5
+ snaptrade_client/apis/path_to_api.py,sha256=EkrpFAqq0p_ZS3M_umHizEacLPBPR4qgYDyEkWNUr_g,13146
6
6
  snaptrade_client/apis/paths/__init__.py,sha256=oIb-tz_ei5m0RWOOB0qXTkBKu61nYtwOUlWvQbD5gFE,243
7
7
  snaptrade_client/apis/paths/accounts.py,sha256=aHSwrwNqPSa2ikmR-WP0dg2LbRBSNBB3n3_2OTCcxs4,103
8
8
  snaptrade_client/apis/paths/accounts_account_id.py,sha256=Xv0hHwov50tVcdtqCS-Np0BmqMhUwrvjIQLaa9yPF3U,207
@@ -14,6 +14,7 @@ snaptrade_client/apis/paths/accounts_account_id_options_chain.py,sha256=0x2p_tMU
14
14
  snaptrade_client/apis/paths/accounts_account_id_orders.py,sha256=2rP-vnv9VQm1Acdw0d8iaFYGFI5XqiP0XBYXeJ9kHaw,136
15
15
  snaptrade_client/apis/paths/accounts_account_id_orders_cancel.py,sha256=JPwBTe7P9cKjrJzw0vfApfYBZXwtWExU7xpTgV50zKE,152
16
16
  snaptrade_client/apis/paths/accounts_account_id_orders_details.py,sha256=CN3IJK-lgcfT00uJIQjJMu82S58fFGwg3gR7QRNnOn0,154
17
+ snaptrade_client/apis/paths/accounts_account_id_orders_details_v2.py,sha256=n4qrp4G4h4ttKRkrImfzMB0ephN63glQo3HUGqM5QZs,159
17
18
  snaptrade_client/apis/paths/accounts_account_id_orders_v2.py,sha256=M3R_rOJ8LnyOyomildPh38bBSba1B3giWrK0FqvuBXc,141
18
19
  snaptrade_client/apis/paths/accounts_account_id_positions.py,sha256=ovywLJiI569NLjYSgCcl1_6QGBeUT_02OAYYTHLq8Cc,142
19
20
  snaptrade_client/apis/paths/accounts_account_id_quotes.py,sha256=_2v0DiUngr6a-Mi1EUrCfOn94e45pDhnH5Q9RdquIMA,136
@@ -69,7 +70,7 @@ snaptrade_client/apis/tags/authentication_api_generated.py,sha256=Gt6muDG-vWm-Z8
69
70
  snaptrade_client/apis/tags/connections_api.py,sha256=pNGuSjvX2Fg2IJymMvM3DcoUllKUmUQQpTtLVbY2Yi8,163
70
71
  snaptrade_client/apis/tags/connections_api_generated.py,sha256=inWc0qR9q4SFyTWsfw_iI8foMNGaQ6oeZ1LaQy_qnjQ,1242
71
72
  snaptrade_client/apis/tags/experimental_endpoints_api.py,sha256=eyniA9I0b58Ns-Uz55a2yQnuwr39BMiW0W1SaLS8MgY,204
72
- snaptrade_client/apis/tags/experimental_endpoints_api_generated.py,sha256=z183cw7FXcGixI2UN2hgfsxIZpSBApCBO8v8RzocWt0,635
73
+ snaptrade_client/apis/tags/experimental_endpoints_api_generated.py,sha256=lE52NHkCgx07K-UG7fITFumqSGZQy-ZQkFBZLN1firk,774
73
74
  snaptrade_client/apis/tags/options_api.py,sha256=tl2HI1JChvEGrE5mcSLN85Ah5AHtjVa4n8Hx7GY-ZNA,147
74
75
  snaptrade_client/apis/tags/options_api_generated.py,sha256=cZibnPAKx1t5eoDBuMrjE1Gty5Kso9jqzTsUhE-M4Jg,582
75
76
  snaptrade_client/apis/tags/reference_data_api.py,sha256=DdmRsoiG7nLk8EgXWT1KvurcQnPYAlr1Dz0kdpdWGRQ,172
@@ -81,12 +82,12 @@ snaptrade_client/apis/tags/transactions_and_reporting_api_generated.py,sha256=Tw
81
82
  snaptrade_client/client.py,sha256=p-1j4DS7DHuwClS8Kh4VHbTFB7jf-DMpkrh5PcCmYTg,2308
82
83
  snaptrade_client/client.pyi,sha256=p-1j4DS7DHuwClS8Kh4VHbTFB7jf-DMpkrh5PcCmYTg,2308
83
84
  snaptrade_client/client_custom.py,sha256=Jx9ulCzelMFlESjzVFQSjBlYcH4dWxSJJWZDMPLyetM,745
84
- snaptrade_client/configuration.py,sha256=B6jByb5ltcfMssMQBl1vd8xcL9IBL-rCdTK-U6EcK48,19262
85
+ snaptrade_client/configuration.py,sha256=ZUqLgRwyvMXOCinV4F3lcXpitcs_nX1dRcjDwpkSI4w,19262
85
86
  snaptrade_client/exceptions.py,sha256=X0apI_sgQpGpa-qIqPUClReCdHAxeSuA6GW0YH_RsWg,7771
86
87
  snaptrade_client/exceptions_base.py,sha256=LAQkaC5C61-SdBLfyMjb0K7AYJkWVuLmg2uCvHa71FM,2274
87
88
  snaptrade_client/model/__init__.py,sha256=ayi2MIzcf0eAIsY13ToiNplV9tW-pMBFrC0I9yckGM8,350
88
- snaptrade_client/model/account.py,sha256=0qSPckzvw3rh-wzx8iIDpoLcv8SwVYK0gH8QD-FhLt8,15680
89
- snaptrade_client/model/account.pyi,sha256=0qSPckzvw3rh-wzx8iIDpoLcv8SwVYK0gH8QD-FhLt8,15680
89
+ snaptrade_client/model/account.py,sha256=FvFzdPDanskUzaNFakLZYqO3U9Qe9ArluK-cg9KYULc,18478
90
+ snaptrade_client/model/account.pyi,sha256=FvFzdPDanskUzaNFakLZYqO3U9Qe9ArluK-cg9KYULc,18478
90
91
  snaptrade_client/model/account_balance.py,sha256=ymF9edctposRKBwnaXBx1M-8n41Rcx7sF5A3keZ_LfI,5726
91
92
  snaptrade_client/model/account_balance.pyi,sha256=ymF9edctposRKBwnaXBx1M-8n41Rcx7sF5A3keZ_LfI,5726
92
93
  snaptrade_client/model/account_cash_restrictions.py,sha256=k23jFvKGgT18Vpw_uUfUyzcTFRdKA9fVyWxQzxXhcQk,1281
@@ -448,8 +449,8 @@ snaptrade_client/model/user_secret.pyi,sha256=7xf__S566WtTq7VthmdVtrCBIfgpnYWYqE
448
449
  snaptrade_client/model/validated_trade_body.py,sha256=NkTel1ulgSjBd6K7vur6puEbfrg3u1vdmtUKArOu8ws,3085
449
450
  snaptrade_client/model/validated_trade_body.pyi,sha256=NkTel1ulgSjBd6K7vur6puEbfrg3u1vdmtUKArOu8ws,3085
450
451
  snaptrade_client/models/__init__.py,sha256=LYhX90J0EoL66K0NyZeVU5Za5Rc3K6w59Aca2HbGyNs,14234
451
- snaptrade_client/operation_parameter_map.py,sha256=A-CnmImTxEal5nbbqP49BHGYYSm3_RjjW8iCe8fSQMM,19137
452
- snaptrade_client/paths/__init__.py,sha256=O5AyZd3nQk5HAoQSp2mwdtnBGBmnOhYS6m3JBRk244c,3672
452
+ snaptrade_client/operation_parameter_map.py,sha256=i4lsWDfno7RR8KOo1JjSuhjzl8xS0U68dVB0DYfj_pg,19499
453
+ snaptrade_client/paths/__init__.py,sha256=n0HLZtwaZzzuy4SdXmdFWF8crDdYCFX1eBeoykqbgvI,3758
453
454
  snaptrade_client/paths/accounts/__init__.py,sha256=_Bqi6B13A-kgd0AOpqmcE1vTxJDfoz-r3Hwf-AmwW6A,307
454
455
  snaptrade_client/paths/accounts/get.py,sha256=XR5J2YLyYQrfHRVSK0hfUJKhVsu-6P7ii5AeRgGz8Ao,16835
455
456
  snaptrade_client/paths/accounts/get.pyi,sha256=6fsjWz70WuEn-bupBDeaHJ46o7TJikwp0akJqKaob88,16633
@@ -482,6 +483,9 @@ snaptrade_client/paths/accounts_account_id_orders_cancel/post.pyi,sha256=7rGmsso
482
483
  snaptrade_client/paths/accounts_account_id_orders_details/__init__.py,sha256=6PWLMs5Y6WxEM5h99FQSSpvq7Btg4dfrgMkWk3mhBYo,359
483
484
  snaptrade_client/paths/accounts_account_id_orders_details/post.py,sha256=sKlgBkbf_3AYG1i-Te5DNON5B74Lp_I7tMNYzT0gwiI,25690
484
485
  snaptrade_client/paths/accounts_account_id_orders_details/post.pyi,sha256=UDhFYZKTQJ47rIh37A2cbiVVwmNjJbDZaOJ9Y5pwEx4,25436
486
+ snaptrade_client/paths/accounts_account_id_orders_details_v2/__init__.py,sha256=oSTt6VeXjyqu2l9JnEGByZdcRZTdx7EtoyUYnU9hVcQ,365
487
+ snaptrade_client/paths/accounts_account_id_orders_details_v2/post.py,sha256=Q3n00zDY7i6TwVnYkTN8U3Ua6tcD5kSwZ6W2Me30pBE,25829
488
+ snaptrade_client/paths/accounts_account_id_orders_details_v2/post.pyi,sha256=IDJRudDO93HOJsAz11-0w3CNWIt5U4rmtmxWtz4ABb0,25575
485
489
  snaptrade_client/paths/accounts_account_id_orders_v2/__init__.py,sha256=bLxvW4BvuS8smxB8nP-1X0-OjS-Mcty5RRl1Bbe2AVE,349
486
490
  snaptrade_client/paths/accounts_account_id_orders_v2/get.py,sha256=bNxhD1o7ZWyCAxXbElbRkX_zSZ107nwBbfyjoVSzsU4,21226
487
491
  snaptrade_client/paths/accounts_account_id_orders_v2/get.pyi,sha256=xuyziqQ2H4YxTYnyLLeyaRO6M0nakQNth9LZqJtBYQo,20811
@@ -623,7 +627,7 @@ snaptrade_client/request_before_url_hook.py,sha256=BDDHBJ5nxDTEYvlXEBmxU2OJFoh--
623
627
  snaptrade_client/rest.py,sha256=lfRDJY_itGJnSc441cmmDhIqS7AtpK-YvP5TPuQBpgY,11033
624
628
  snaptrade_client/schemas.py,sha256=PDgpxzIO5UZUoUbsY5lB9qpKu7av8n3HB5c-cEX2L0E,96080
625
629
  snaptrade_client/type/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
626
- snaptrade_client/type/account.py,sha256=wpb6n3pdkKvENr_ecfyVt-Q-AQlYfTaKWJo7r6y8VUM,2657
630
+ snaptrade_client/type/account.py,sha256=C0TRS8G1d9YLRN4Aux21pxyY7hL0cpAMp2coxs2OnV8,2998
627
631
  snaptrade_client/type/account_balance.py,sha256=LMZTMiyn8wh1HqrDol68hqtlm_arHZppF2-ZQAzLIj0,832
628
632
  snaptrade_client/type/account_cash_restrictions.py,sha256=tDIaP1SJ810Ca0XFESrl5WOMU_0RN7spfddQ8oBtmT8,414
629
633
  snaptrade_client/type/account_holdings.py,sha256=kyntdmzWVjP3BgLz2aGKwcGI2xp7q7v0ktdMygKiYmg,1079
@@ -806,7 +810,7 @@ snaptrade_client/type/user_secret.py,sha256=pKCVhqf1rROHwa6tvoyA5OAKXCBAmNDvIQCf
806
810
  snaptrade_client/type/validated_trade_body.py,sha256=ZIPBQWii_a-9zHaBCJ6bQtmL1_I7AG0zwuvkY-ZQ6R4,890
807
811
  snaptrade_client/type_util.py,sha256=JIrMYgJzd4IJ8Ne2vqcahlPA9dVmphL9sn8gwccCB4Y,563
808
812
  snaptrade_client/validation_metadata.py,sha256=VTN5y-NudHXok1X468J4PnGze_tGEAcs1v3gsXmcrb0,3172
809
- snaptrade_python_sdk-11.0.156.dist-info/LICENSE,sha256=GxvPdqYTCDLPwtMD70oHKcnAL8Os4eOjPVhERWpJ5Cs,1081
810
- snaptrade_python_sdk-11.0.156.dist-info/METADATA,sha256=s8CGOPmEFGfwN18sK9NXauzbxvG0oJDJa0B15eDbzyQ,100781
811
- snaptrade_python_sdk-11.0.156.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
812
- snaptrade_python_sdk-11.0.156.dist-info/RECORD,,
813
+ snaptrade_python_sdk-11.0.158.dist-info/LICENSE,sha256=GxvPdqYTCDLPwtMD70oHKcnAL8Os4eOjPVhERWpJ5Cs,1081
814
+ snaptrade_python_sdk-11.0.158.dist-info/METADATA,sha256=gPu2MnAa0WDgsD6lCqdyz7X0OZ4IJmlxrqdQAEdQxic,102716
815
+ snaptrade_python_sdk-11.0.158.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
816
+ snaptrade_python_sdk-11.0.158.dist-info/RECORD,,