snaptrade-python-sdk 11.0.157__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.
- snaptrade_client/__init__.py +1 -1
- snaptrade_client/api_client.py +1 -1
- snaptrade_client/apis/path_to_api.py +3 -0
- snaptrade_client/apis/paths/accounts_account_id_orders_details_v2.py +7 -0
- snaptrade_client/apis/tags/experimental_endpoints_api_generated.py +2 -0
- snaptrade_client/configuration.py +1 -1
- snaptrade_client/operation_parameter_map.py +16 -0
- snaptrade_client/paths/__init__.py +1 -0
- snaptrade_client/paths/accounts_account_id_orders_details_v2/__init__.py +7 -0
- snaptrade_client/paths/accounts_account_id_orders_details_v2/post.py +691 -0
- snaptrade_client/paths/accounts_account_id_orders_details_v2/post.pyi +678 -0
- {snaptrade_python_sdk-11.0.157.dist-info → snaptrade_python_sdk-11.0.158.dist-info}/METADATA +56 -3
- {snaptrade_python_sdk-11.0.157.dist-info → snaptrade_python_sdk-11.0.158.dist-info}/RECORD +15 -11
- {snaptrade_python_sdk-11.0.157.dist-info → snaptrade_python_sdk-11.0.158.dist-info}/LICENSE +0 -0
- {snaptrade_python_sdk-11.0.157.dist-info → snaptrade_python_sdk-11.0.158.dist-info}/WHEEL +0 -0
snaptrade_client/__init__.py
CHANGED
snaptrade_client/api_client.py
CHANGED
|
@@ -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.
|
|
1158
|
+
self.user_agent = 'Konfig/11.0.158/python'
|
|
1159
1159
|
|
|
1160
1160
|
def __enter__(self):
|
|
1161
1161
|
return self
|
|
@@ -55,6 +55,7 @@ from snaptrade_client.apis.paths.exchanges import Exchanges
|
|
|
55
55
|
from snaptrade_client.apis.paths.security_types import SecurityTypes
|
|
56
56
|
from snaptrade_client.apis.paths.symbols import Symbols
|
|
57
57
|
from snaptrade_client.apis.paths.symbols_query import SymbolsQuery
|
|
58
|
+
from snaptrade_client.apis.paths.accounts_account_id_orders_details_v2 import AccountsAccountIdOrdersDetailsV2
|
|
58
59
|
|
|
59
60
|
PathToApi = typing_extensions.TypedDict(
|
|
60
61
|
'PathToApi',
|
|
@@ -113,6 +114,7 @@ PathToApi = typing_extensions.TypedDict(
|
|
|
113
114
|
PathValues.SECURITY_TYPES: SecurityTypes,
|
|
114
115
|
PathValues.SYMBOLS: Symbols,
|
|
115
116
|
PathValues.SYMBOLS_QUERY: SymbolsQuery,
|
|
117
|
+
PathValues.ACCOUNTS_ACCOUNT_ID_ORDERS_DETAILS_V2: AccountsAccountIdOrdersDetailsV2,
|
|
116
118
|
}
|
|
117
119
|
)
|
|
118
120
|
|
|
@@ -172,5 +174,6 @@ path_to_api = PathToApi(
|
|
|
172
174
|
PathValues.SECURITY_TYPES: SecurityTypes,
|
|
173
175
|
PathValues.SYMBOLS: Symbols,
|
|
174
176
|
PathValues.SYMBOLS_QUERY: SymbolsQuery,
|
|
177
|
+
PathValues.ACCOUNTS_ACCOUNT_ID_ORDERS_DETAILS_V2: AccountsAccountIdOrdersDetailsV2,
|
|
175
178
|
}
|
|
176
179
|
)
|
|
@@ -9,11 +9,13 @@
|
|
|
9
9
|
Created by: https://snaptrade.com/
|
|
10
10
|
"""
|
|
11
11
|
|
|
12
|
+
from snaptrade_client.paths.accounts_account_id_orders_details_v2.post import GetUserAccountOrderDetailV2
|
|
12
13
|
from snaptrade_client.paths.accounts_account_id_orders_v2.get import GetUserAccountOrdersV2
|
|
13
14
|
from snaptrade_client.paths.accounts_account_id_recent_orders_v2.get import GetUserAccountRecentOrdersV2
|
|
14
15
|
|
|
15
16
|
|
|
16
17
|
class ExperimentalEndpointsApiGenerated(
|
|
18
|
+
GetUserAccountOrderDetailV2,
|
|
17
19
|
GetUserAccountOrdersV2,
|
|
18
20
|
GetUserAccountRecentOrdersV2,
|
|
19
21
|
):
|
|
@@ -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.
|
|
441
|
+
"SDK Package Version: 11.0.158".\
|
|
442
442
|
format(env=sys.platform, pyversion=sys.version)
|
|
443
443
|
|
|
444
444
|
def get_host_settings(self):
|
|
@@ -333,6 +333,22 @@ operation_parameter_map = {
|
|
|
333
333
|
},
|
|
334
334
|
]
|
|
335
335
|
},
|
|
336
|
+
'/accounts/{accountId}/orders/details/v2-POST': {
|
|
337
|
+
'parameters': [
|
|
338
|
+
{
|
|
339
|
+
'name': 'brokerage_order_id'
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
'name': 'accountId'
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
'name': 'userId'
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
'name': 'userSecret'
|
|
349
|
+
},
|
|
350
|
+
]
|
|
351
|
+
},
|
|
336
352
|
'/accounts/{accountId}/orders/v2-GET': {
|
|
337
353
|
'parameters': [
|
|
338
354
|
{
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# do not import all endpoints into this module because that uses a lot of memory and stack frames
|
|
2
|
+
# if you need the ability to import all endpoints from this module, import them with
|
|
3
|
+
# from snaptrade_client.paths.accounts_account_id_orders_details_v2 import Api
|
|
4
|
+
|
|
5
|
+
from snaptrade_client.paths import PathValues
|
|
6
|
+
|
|
7
|
+
path = PathValues.ACCOUNTS_ACCOUNT_ID_ORDERS_DETAILS_V2
|