snaptrade-python-sdk 13.4.0__py3-none-any.whl → 13.4.1__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.
- snaptrade_client/__init__.py +1 -1
- snaptrade_client/api_client.py +1 -1
- snaptrade_client/configuration.py +1 -1
- snaptrade_client/paths/accounts_account_id_orders_recent/get.py +2 -2
- snaptrade_client/paths/accounts_account_id_recent_orders_v2/get.py +2 -2
- {snaptrade_python_sdk-13.4.0.dist-info → snaptrade_python_sdk-13.4.1.dist-info}/METADATA +3 -6
- {snaptrade_python_sdk-13.4.0.dist-info → snaptrade_python_sdk-13.4.1.dist-info}/RECORD +9 -9
- {snaptrade_python_sdk-13.4.0.dist-info → snaptrade_python_sdk-13.4.1.dist-info}/LICENSE +0 -0
- {snaptrade_python_sdk-13.4.0.dist-info → snaptrade_python_sdk-13.4.1.dist-info}/WHEEL +0 -0
snaptrade_client/__init__.py
CHANGED
snaptrade_client/api_client.py
CHANGED
|
@@ -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.
|
|
1178
|
+
self.user_agent = 'Konfig/13.4.1/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.
|
|
540
|
+
"SDK Package Version: 13.4.1".\
|
|
541
541
|
format(env=sys.platform, pyversion=sys.version)
|
|
542
542
|
|
|
543
543
|
def get_host_settings(self):
|
|
@@ -700,7 +700,7 @@ class GetAllAccountRecentOrders(BaseApi, typing.Generic[TAuth]):
|
|
|
700
700
|
ApiResponseFor200,
|
|
701
701
|
api_client.ApiResponseWithoutDeserialization,
|
|
702
702
|
]:
|
|
703
|
-
""" A lightweight endpoint that returns the latest page of orders placed in the last 24 hours in the specified account, in the same `kind`-discriminated format as `/accounts/{accountId}/orders/all`. For most brokerages, the default page size is 100 meaning the endpoint will return a max of 100 orders. This endpoint is realtime and can be used to quickly check if account state has recently changed due to an execution, or check status of recently placed orders. Differs from `/accounts/{accountId}/orders/all` in that it is always realtime, and only checks the last 24 hours as opposed to the last 30 days. By default only returns executed orders, but that can be changed by setting *only_executed* to false. Every order carries a `legs` list with at least one leg; switch on `legs[].instrument.kind` and `order_type.kind` to know which fields are present. `data_freshness.as_of` is the time of this live request. **Beta:** this endpoint and its response schema may change.
|
|
703
|
+
""" A lightweight endpoint that returns the latest page of orders placed in the last 24 hours in the specified account, in the same `kind`-discriminated format as `/accounts/{accountId}/orders/all`. For most brokerages, the default page size is 100 meaning the endpoint will return a max of 100 orders. This endpoint is realtime and can be used to quickly check if account state has recently changed due to an execution, or check status of recently placed orders. Differs from `/accounts/{accountId}/orders/all` in that it is always realtime, and only checks the last 24 hours as opposed to the last 30 days. By default only returns executed orders, but that can be changed by setting *only_executed* to false. Every order carries a `legs` list with at least one leg; switch on `legs[].instrument.kind` and `order_type.kind` to know which fields are present. `data_freshness.as_of` is the time of this live request. **Beta:** this endpoint and its response schema may change. """
|
|
704
704
|
args = self._get_all_account_recent_orders_mapped_args(
|
|
705
705
|
query_params=query_params,
|
|
706
706
|
path_params=path_params,
|
|
@@ -763,7 +763,7 @@ class ApiForget(BaseApi, typing.Generic[TAuth]):
|
|
|
763
763
|
ApiResponseFor200,
|
|
764
764
|
api_client.ApiResponseWithoutDeserialization,
|
|
765
765
|
]:
|
|
766
|
-
""" A lightweight endpoint that returns the latest page of orders placed in the last 24 hours in the specified account, in the same `kind`-discriminated format as `/accounts/{accountId}/orders/all`. For most brokerages, the default page size is 100 meaning the endpoint will return a max of 100 orders. This endpoint is realtime and can be used to quickly check if account state has recently changed due to an execution, or check status of recently placed orders. Differs from `/accounts/{accountId}/orders/all` in that it is always realtime, and only checks the last 24 hours as opposed to the last 30 days. By default only returns executed orders, but that can be changed by setting *only_executed* to false. Every order carries a `legs` list with at least one leg; switch on `legs[].instrument.kind` and `order_type.kind` to know which fields are present. `data_freshness.as_of` is the time of this live request. **Beta:** this endpoint and its response schema may change.
|
|
766
|
+
""" A lightweight endpoint that returns the latest page of orders placed in the last 24 hours in the specified account, in the same `kind`-discriminated format as `/accounts/{accountId}/orders/all`. For most brokerages, the default page size is 100 meaning the endpoint will return a max of 100 orders. This endpoint is realtime and can be used to quickly check if account state has recently changed due to an execution, or check status of recently placed orders. Differs from `/accounts/{accountId}/orders/all` in that it is always realtime, and only checks the last 24 hours as opposed to the last 30 days. By default only returns executed orders, but that can be changed by setting *only_executed* to false. Every order carries a `legs` list with at least one leg; switch on `legs[].instrument.kind` and `order_type.kind` to know which fields are present. `data_freshness.as_of` is the time of this live request. **Beta:** this endpoint and its response schema may change. """
|
|
767
767
|
args = self._get_all_account_recent_orders_mapped_args(
|
|
768
768
|
query_params=query_params,
|
|
769
769
|
path_params=path_params,
|
|
@@ -681,7 +681,7 @@ class GetUserAccountRecentOrdersV2(BaseApi, typing.Generic[TAuth]):
|
|
|
681
681
|
ApiResponseFor200,
|
|
682
682
|
api_client.ApiResponseWithoutDeserialization,
|
|
683
683
|
]:
|
|
684
|
-
""" A lightweight endpoint that returns a list of orders executed in the last 24 hours in the specified account using the V2 order format. This endpoint is realtime and can be used to quickly check if account state has recently changed due to an execution, or check status of recently placed orders. Differs from /orders in that it is realtime, and only checks the last 24 hours as opposed to the last 30 days. By default only returns executed orders, but that can be changed by setting *only_executed* to false.
|
|
684
|
+
""" A lightweight endpoint that returns a list of orders executed in the last 24 hours in the specified account using the V2 order format. This endpoint is realtime and can be used to quickly check if account state has recently changed due to an execution, or check status of recently placed orders. Differs from /orders in that it is realtime, and only checks the last 24 hours as opposed to the last 30 days. By default only returns executed orders, but that can be changed by setting *only_executed* to false. """
|
|
685
685
|
args = self._get_user_account_recent_orders_v2_mapped_args(
|
|
686
686
|
query_params=query_params,
|
|
687
687
|
path_params=path_params,
|
|
@@ -744,7 +744,7 @@ class ApiForget(BaseApi, typing.Generic[TAuth]):
|
|
|
744
744
|
ApiResponseFor200,
|
|
745
745
|
api_client.ApiResponseWithoutDeserialization,
|
|
746
746
|
]:
|
|
747
|
-
""" A lightweight endpoint that returns a list of orders executed in the last 24 hours in the specified account using the V2 order format. This endpoint is realtime and can be used to quickly check if account state has recently changed due to an execution, or check status of recently placed orders. Differs from /orders in that it is realtime, and only checks the last 24 hours as opposed to the last 30 days. By default only returns executed orders, but that can be changed by setting *only_executed* to false.
|
|
747
|
+
""" A lightweight endpoint that returns a list of orders executed in the last 24 hours in the specified account using the V2 order format. This endpoint is realtime and can be used to quickly check if account state has recently changed due to an execution, or check status of recently placed orders. Differs from /orders in that it is realtime, and only checks the last 24 hours as opposed to the last 30 days. By default only returns executed orders, but that can be changed by setting *only_executed* to false. """
|
|
748
748
|
args = self._get_user_account_recent_orders_v2_mapped_args(
|
|
749
749
|
query_params=query_params,
|
|
750
750
|
path_params=path_params,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: snaptrade-python-sdk
|
|
3
|
-
Version: 13.4.
|
|
3
|
+
Version: 13.4.1
|
|
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
|
-
[](https://pypi.org/project/snaptrade-python-sdk/13.4.1)
|
|
91
91
|
[](https://github.com/passiv/snaptrade-sdks/tree/master/sdks/python#readme)
|
|
92
92
|
[](https://snaptrade.com/)
|
|
93
93
|
|
|
@@ -184,7 +184,7 @@ Python >=3.8
|
|
|
184
184
|
## Installation<a id="installation"></a>
|
|
185
185
|
|
|
186
186
|
```sh
|
|
187
|
-
pip install snaptrade-python-sdk==13.4.
|
|
187
|
+
pip install snaptrade-python-sdk==13.4.1
|
|
188
188
|
```
|
|
189
189
|
|
|
190
190
|
## Authentication<a id="authentication"></a>
|
|
@@ -951,8 +951,6 @@ Every order carries a `legs` list with at least one leg; switch on `legs[].instr
|
|
|
951
951
|
|
|
952
952
|
**Beta:** this endpoint and its response schema may change.
|
|
953
953
|
|
|
954
|
-
**Because of the cost of realtime requests, each call to this endpoint incurs an additional charge. You can find the exact cost for your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing)**
|
|
955
|
-
|
|
956
954
|
|
|
957
955
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
958
956
|
|
|
@@ -2880,7 +2878,6 @@ A lightweight endpoint that returns a list of orders executed in the last 24 hou
|
|
|
2880
2878
|
This endpoint is realtime and can be used to quickly check if account state has recently changed due to an execution, or check status of recently placed orders.
|
|
2881
2879
|
Differs from /orders in that it is realtime, and only checks the last 24 hours as opposed to the last 30 days.
|
|
2882
2880
|
By default only returns executed orders, but that can be changed by setting *only_executed* to false.
|
|
2883
|
-
**Because of the cost of realtime requests, each call to this endpoint incurs an additional charge. You can find the exact cost for your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing)**
|
|
2884
2881
|
|
|
2885
2882
|
|
|
2886
2883
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
snaptrade_client/__init__.py,sha256=
|
|
2
|
-
snaptrade_client/api_client.py,sha256=
|
|
1
|
+
snaptrade_client/__init__.py,sha256=ImrBCqC5GXikC-q6qv1JI3rgpJK2xHhIwPpHuWVDOd4,4370
|
|
2
|
+
snaptrade_client/api_client.py,sha256=JeuZEKb-OCipYCwZDD7936ZxiDDGvdtCKYWAPqQPMQw,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=xHjhZWAnlLIvvtGOQYUE-WmdDRZqhgkpB_auzT3rHG8,16169
|
|
@@ -89,7 +89,7 @@ snaptrade_client/auth.py,sha256=85VAIdB-s7SGAHoU0xZnPd7pc680Y58ILZgRiKVn2pk,4797
|
|
|
89
89
|
snaptrade_client/client.py,sha256=ncRPbSzbjqr4YVdjzfm8IrCgFhawclXFRlYJzkHNu98,6361
|
|
90
90
|
snaptrade_client/client.pyi,sha256=s5mcwbmAEVZMJrZOT3fTP9-_r7rf2L0qdJiX8RlnX9o,6358
|
|
91
91
|
snaptrade_client/client_custom.py,sha256=hNQMRFrY_KWEOCgf36fsZBs3sBU2SQtnZin8dAEVyYo,3931
|
|
92
|
-
snaptrade_client/configuration.py,sha256=
|
|
92
|
+
snaptrade_client/configuration.py,sha256=n-7EHXMfiMXc6SzqNfedXSXU7lv7pqd4MB-mIVP9ddY,26562
|
|
93
93
|
snaptrade_client/exceptions.py,sha256=pRlZiy1hSulcXfTCqqBU5Jys0hRBkxljOiv212M_yeo,10957
|
|
94
94
|
snaptrade_client/exceptions_base.py,sha256=LAQkaC5C61-SdBLfyMjb0K7AYJkWVuLmg2uCvHa71FM,2274
|
|
95
95
|
snaptrade_client/model/__init__.py,sha256=ayi2MIzcf0eAIsY13ToiNplV9tW-pMBFrC0I9yckGM8,350
|
|
@@ -720,7 +720,7 @@ snaptrade_client/paths/accounts_account_id_orders_details_v2_brokerage_order_id/
|
|
|
720
720
|
snaptrade_client/paths/accounts_account_id_orders_details_v2_brokerage_order_id/get.py,sha256=1FYKDaSRGvImpRPwb15mTD_DwJ6421GfTVQra41qQVI,30527
|
|
721
721
|
snaptrade_client/paths/accounts_account_id_orders_details_v2_brokerage_order_id/get.pyi,sha256=Jrdu1oG2NvaEZevdrwmOmJDDuIIpKeBBuy28PbFpyA8,7214
|
|
722
722
|
snaptrade_client/paths/accounts_account_id_orders_recent/__init__.py,sha256=SjULL4ef2jdpEAiMolNfdIgpBtONl96XUD7LKn-yMG0,357
|
|
723
|
-
snaptrade_client/paths/accounts_account_id_orders_recent/get.py,sha256=
|
|
723
|
+
snaptrade_client/paths/accounts_account_id_orders_recent/get.py,sha256=tWQ0LtM8UX5JNlV4vt5U4_UeNq4meIV9ENhJATnau1M,33991
|
|
724
724
|
snaptrade_client/paths/accounts_account_id_orders_recent/get.pyi,sha256=XKKO5n-c078UYGK6psqynWrr_evXHtLAg_XOIQRNhx0,6089
|
|
725
725
|
snaptrade_client/paths/accounts_account_id_orders_v2/__init__.py,sha256=bLxvW4BvuS8smxB8nP-1X0-OjS-Mcty5RRl1Bbe2AVE,349
|
|
726
726
|
snaptrade_client/paths/accounts_account_id_orders_v2/get.py,sha256=RuVTBuLSy8tUT9jRriu0I0-X8GibFsqpPm1CuP5vQn4,32299
|
|
@@ -738,7 +738,7 @@ snaptrade_client/paths/accounts_account_id_recent_orders/__init__.py,sha256=9ZDF
|
|
|
738
738
|
snaptrade_client/paths/accounts_account_id_recent_orders/get.py,sha256=ZZCWSuRErXclPxMBndm38K8M8dEp49liO8VlvwFKnis,33228
|
|
739
739
|
snaptrade_client/paths/accounts_account_id_recent_orders/get.pyi,sha256=d_XHn2gaLuufH7xFoqumS7dP0t3V_EOWXZSDhPbywIk,7323
|
|
740
740
|
snaptrade_client/paths/accounts_account_id_recent_orders_v2/__init__.py,sha256=3K2mIfhY1oJOi2Dh8VB4JIVmm7d_ycX84OIJrIeA6GI,363
|
|
741
|
-
snaptrade_client/paths/accounts_account_id_recent_orders_v2/get.py,sha256=
|
|
741
|
+
snaptrade_client/paths/accounts_account_id_recent_orders_v2/get.py,sha256=rhEhAg96dSYWk5I6mPe545N_ZGovLzF2IT9Omx3n_WA,32362
|
|
742
742
|
snaptrade_client/paths/accounts_account_id_recent_orders_v2/get.pyi,sha256=vto1Uf2_ag3z50PKo0gX5OPRTaRxBgtZl58L1Aq176I,7342
|
|
743
743
|
snaptrade_client/paths/accounts_account_id_return_rates/__init__.py,sha256=oxMvoGv1lRCOvfyU2kAcqTig8iFDZY_QJ_I-r_afYD0,355
|
|
744
744
|
snaptrade_client/paths/accounts_account_id_return_rates/get.py,sha256=qa8tuRx6w12gSx0b8K5uXEyULxTF5U7jvoL1bybxIKo,28797
|
|
@@ -1171,7 +1171,7 @@ snaptrade_client/type/user_secret.py,sha256=B6gpY5ECG6fV4aCV7XH9TK9uW9UsZYZlng56
|
|
|
1171
1171
|
snaptrade_client/type/validated_trade_body.py,sha256=3d5fH-7GtjtWxBTBDyjK2RSmoFcMQpr7Sv6MXgCfKQc,4076
|
|
1172
1172
|
snaptrade_client/type_util.py,sha256=y93VO77G7QTwguvfc3HnevIWtLat__tNZXfpSCSxHoU,3749
|
|
1173
1173
|
snaptrade_client/validation_metadata.py,sha256=VTN5y-NudHXok1X468J4PnGze_tGEAcs1v3gsXmcrb0,3172
|
|
1174
|
-
snaptrade_python_sdk-13.4.
|
|
1175
|
-
snaptrade_python_sdk-13.4.
|
|
1176
|
-
snaptrade_python_sdk-13.4.
|
|
1177
|
-
snaptrade_python_sdk-13.4.
|
|
1174
|
+
snaptrade_python_sdk-13.4.1.dist-info/LICENSE,sha256=GxvPdqYTCDLPwtMD70oHKcnAL8Os4eOjPVhERWpJ5Cs,1081
|
|
1175
|
+
snaptrade_python_sdk-13.4.1.dist-info/METADATA,sha256=YDj6qschDwTSa0WNcpzZWxJKTOLqEY5J4oWM1uVdA4k,209327
|
|
1176
|
+
snaptrade_python_sdk-13.4.1.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
1177
|
+
snaptrade_python_sdk-13.4.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|