snaptrade-python-sdk 11.0.126__py3-none-any.whl → 11.0.127__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 -3
- snaptrade_client/apis/paths/accounts_account_id_orders_details.py +7 -0
- snaptrade_client/apis/tags/account_information_api_generated.py +1 -1
- snaptrade_client/configuration.py +1 -1
- snaptrade_client/operation_parameter_map.py +5 -5
- snaptrade_client/paths/__init__.py +1 -1
- snaptrade_client/paths/{accounts_account_id_orders_brokerage_order_id → accounts_account_id_orders_details}/__init__.py +2 -2
- snaptrade_client/paths/{accounts_account_id_orders_brokerage_order_id/get.py → accounts_account_id_orders_details/post.py} +167 -37
- snaptrade_client/paths/{accounts_account_id_orders_brokerage_order_id/get.pyi → accounts_account_id_orders_details/post.pyi} +166 -37
- {snaptrade_python_sdk-11.0.126.dist-info → snaptrade_python_sdk-11.0.127.dist-info}/METADATA +15 -10
- {snaptrade_python_sdk-11.0.126.dist-info → snaptrade_python_sdk-11.0.127.dist-info}/RECORD +15 -15
- snaptrade_client/apis/paths/accounts_account_id_orders_brokerage_order_id.py +0 -7
- {snaptrade_python_sdk-11.0.126.dist-info → snaptrade_python_sdk-11.0.127.dist-info}/LICENSE +0 -0
- {snaptrade_python_sdk-11.0.126.dist-info → snaptrade_python_sdk-11.0.127.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.127/python'
|
|
1159
1159
|
|
|
1160
1160
|
def __enter__(self):
|
|
1161
1161
|
return self
|
|
@@ -20,10 +20,10 @@ from snaptrade_client.apis.paths.accounts_account_id import AccountsAccountId
|
|
|
20
20
|
from snaptrade_client.apis.paths.accounts_account_id_balances import AccountsAccountIdBalances
|
|
21
21
|
from snaptrade_client.apis.paths.accounts_account_id_positions import AccountsAccountIdPositions
|
|
22
22
|
from snaptrade_client.apis.paths.accounts_account_id_orders import AccountsAccountIdOrders
|
|
23
|
-
from snaptrade_client.apis.paths.accounts_account_id_orders_brokerage_order_id import AccountsAccountIdOrdersBrokerageOrderId
|
|
24
23
|
from snaptrade_client.apis.paths.accounts_account_id_recent_orders import AccountsAccountIdRecentOrders
|
|
25
24
|
from snaptrade_client.apis.paths.accounts_account_id_return_rates import AccountsAccountIdReturnRates
|
|
26
25
|
from snaptrade_client.apis.paths.accounts_account_id_activities import AccountsAccountIdActivities
|
|
26
|
+
from snaptrade_client.apis.paths.accounts_account_id_orders_details import AccountsAccountIdOrdersDetails
|
|
27
27
|
from snaptrade_client.apis.paths.accounts_account_id_options import AccountsAccountIdOptions
|
|
28
28
|
from snaptrade_client.apis.paths.accounts_account_id_options_chain import AccountsAccountIdOptionsChain
|
|
29
29
|
from snaptrade_client.apis.paths.activities import Activities
|
|
@@ -76,10 +76,10 @@ PathToApi = typing_extensions.TypedDict(
|
|
|
76
76
|
PathValues.ACCOUNTS_ACCOUNT_ID_BALANCES: AccountsAccountIdBalances,
|
|
77
77
|
PathValues.ACCOUNTS_ACCOUNT_ID_POSITIONS: AccountsAccountIdPositions,
|
|
78
78
|
PathValues.ACCOUNTS_ACCOUNT_ID_ORDERS: AccountsAccountIdOrders,
|
|
79
|
-
PathValues.ACCOUNTS_ACCOUNT_ID_ORDERS_BROKERAGE_ORDER_ID: AccountsAccountIdOrdersBrokerageOrderId,
|
|
80
79
|
PathValues.ACCOUNTS_ACCOUNT_ID_RECENT_ORDERS: AccountsAccountIdRecentOrders,
|
|
81
80
|
PathValues.ACCOUNTS_ACCOUNT_ID_RETURN_RATES: AccountsAccountIdReturnRates,
|
|
82
81
|
PathValues.ACCOUNTS_ACCOUNT_ID_ACTIVITIES: AccountsAccountIdActivities,
|
|
82
|
+
PathValues.ACCOUNTS_ACCOUNT_ID_ORDERS_DETAILS: AccountsAccountIdOrdersDetails,
|
|
83
83
|
PathValues.ACCOUNTS_ACCOUNT_ID_OPTIONS: AccountsAccountIdOptions,
|
|
84
84
|
PathValues.ACCOUNTS_ACCOUNT_ID_OPTIONS_CHAIN: AccountsAccountIdOptionsChain,
|
|
85
85
|
PathValues.ACTIVITIES: Activities,
|
|
@@ -133,10 +133,10 @@ path_to_api = PathToApi(
|
|
|
133
133
|
PathValues.ACCOUNTS_ACCOUNT_ID_BALANCES: AccountsAccountIdBalances,
|
|
134
134
|
PathValues.ACCOUNTS_ACCOUNT_ID_POSITIONS: AccountsAccountIdPositions,
|
|
135
135
|
PathValues.ACCOUNTS_ACCOUNT_ID_ORDERS: AccountsAccountIdOrders,
|
|
136
|
-
PathValues.ACCOUNTS_ACCOUNT_ID_ORDERS_BROKERAGE_ORDER_ID: AccountsAccountIdOrdersBrokerageOrderId,
|
|
137
136
|
PathValues.ACCOUNTS_ACCOUNT_ID_RECENT_ORDERS: AccountsAccountIdRecentOrders,
|
|
138
137
|
PathValues.ACCOUNTS_ACCOUNT_ID_RETURN_RATES: AccountsAccountIdReturnRates,
|
|
139
138
|
PathValues.ACCOUNTS_ACCOUNT_ID_ACTIVITIES: AccountsAccountIdActivities,
|
|
139
|
+
PathValues.ACCOUNTS_ACCOUNT_ID_ORDERS_DETAILS: AccountsAccountIdOrdersDetails,
|
|
140
140
|
PathValues.ACCOUNTS_ACCOUNT_ID_OPTIONS: AccountsAccountIdOptions,
|
|
141
141
|
PathValues.ACCOUNTS_ACCOUNT_ID_OPTIONS_CHAIN: AccountsAccountIdOptionsChain,
|
|
142
142
|
PathValues.ACTIVITIES: Activities,
|
|
@@ -13,7 +13,7 @@ from snaptrade_client.paths.accounts_account_id_activities.get import GetAccount
|
|
|
13
13
|
from snaptrade_client.paths.holdings.get import GetAllUserHoldings
|
|
14
14
|
from snaptrade_client.paths.accounts_account_id_balances.get import GetUserAccountBalance
|
|
15
15
|
from snaptrade_client.paths.accounts_account_id.get import GetUserAccountDetails
|
|
16
|
-
from snaptrade_client.paths.
|
|
16
|
+
from snaptrade_client.paths.accounts_account_id_orders_details.post import GetUserAccountOrderDetail
|
|
17
17
|
from snaptrade_client.paths.accounts_account_id_orders.get import GetUserAccountOrders
|
|
18
18
|
from snaptrade_client.paths.accounts_account_id_positions.get import GetUserAccountPositions
|
|
19
19
|
from snaptrade_client.paths.accounts_account_id_recent_orders.get import GetUserAccountRecentOrders
|
|
@@ -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.127".\
|
|
442
442
|
format(env=sys.platform, pyversion=sys.version)
|
|
443
443
|
|
|
444
444
|
def get_host_settings(self):
|
|
@@ -66,19 +66,19 @@ operation_parameter_map = {
|
|
|
66
66
|
},
|
|
67
67
|
]
|
|
68
68
|
},
|
|
69
|
-
'/accounts/{accountId}/orders/
|
|
69
|
+
'/accounts/{accountId}/orders/details-POST': {
|
|
70
70
|
'parameters': [
|
|
71
71
|
{
|
|
72
|
-
'name': '
|
|
72
|
+
'name': 'external_order_id'
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
|
-
'name': '
|
|
75
|
+
'name': 'accountId'
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
|
-
'name': '
|
|
78
|
+
'name': 'userId'
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
|
-
'name': '
|
|
81
|
+
'name': 'userSecret'
|
|
82
82
|
},
|
|
83
83
|
]
|
|
84
84
|
},
|
|
@@ -25,10 +25,10 @@ class PathValues(str, enum.Enum):
|
|
|
25
25
|
ACCOUNTS_ACCOUNT_ID_BALANCES = "/accounts/{accountId}/balances"
|
|
26
26
|
ACCOUNTS_ACCOUNT_ID_POSITIONS = "/accounts/{accountId}/positions"
|
|
27
27
|
ACCOUNTS_ACCOUNT_ID_ORDERS = "/accounts/{accountId}/orders"
|
|
28
|
-
ACCOUNTS_ACCOUNT_ID_ORDERS_BROKERAGE_ORDER_ID = "/accounts/{accountId}/orders/{brokerageOrderId}"
|
|
29
28
|
ACCOUNTS_ACCOUNT_ID_RECENT_ORDERS = "/accounts/{accountId}/recentOrders"
|
|
30
29
|
ACCOUNTS_ACCOUNT_ID_RETURN_RATES = "/accounts/{accountId}/returnRates"
|
|
31
30
|
ACCOUNTS_ACCOUNT_ID_ACTIVITIES = "/accounts/{accountId}/activities"
|
|
31
|
+
ACCOUNTS_ACCOUNT_ID_ORDERS_DETAILS = "/accounts/{accountId}/orders/details"
|
|
32
32
|
ACCOUNTS_ACCOUNT_ID_OPTIONS = "/accounts/{accountId}/options"
|
|
33
33
|
ACCOUNTS_ACCOUNT_ID_OPTIONS_CHAIN = "/accounts/{accountId}/optionsChain"
|
|
34
34
|
ACTIVITIES = "/activities"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# do not import all endpoints into this module because that uses a lot of memory and stack frames
|
|
2
2
|
# if you need the ability to import all endpoints from this module, import them with
|
|
3
|
-
# from snaptrade_client.paths.
|
|
3
|
+
# from snaptrade_client.paths.accounts_account_id_orders_details import Api
|
|
4
4
|
|
|
5
5
|
from snaptrade_client.paths import PathValues
|
|
6
6
|
|
|
7
|
-
path = PathValues.
|
|
7
|
+
path = PathValues.ACCOUNTS_ACCOUNT_ID_ORDERS_DETAILS
|
|
@@ -32,10 +32,12 @@ import frozendict # noqa: F401
|
|
|
32
32
|
|
|
33
33
|
from snaptrade_client import schemas # noqa: F401
|
|
34
34
|
|
|
35
|
+
from snaptrade_client.model.model400_failed_request_response import Model400FailedRequestResponse as Model400FailedRequestResponseSchema
|
|
35
36
|
from snaptrade_client.model.account_order_record import AccountOrderRecord as AccountOrderRecordSchema
|
|
36
37
|
from snaptrade_client.model.model500_unexpected_exception_response import Model500UnexpectedExceptionResponse as Model500UnexpectedExceptionResponseSchema
|
|
37
38
|
from snaptrade_client.model.model404_failed_request_response import Model404FailedRequestResponse as Model404FailedRequestResponseSchema
|
|
38
39
|
|
|
40
|
+
from snaptrade_client.type.model400_failed_request_response import Model400FailedRequestResponse
|
|
39
41
|
from snaptrade_client.type.model500_unexpected_exception_response import Model500UnexpectedExceptionResponse
|
|
40
42
|
from snaptrade_client.type.account_order_record import AccountOrderRecord
|
|
41
43
|
from snaptrade_client.type.model404_failed_request_response import Model404FailedRequestResponse
|
|
@@ -80,12 +82,10 @@ request_query_user_secret = api_client.QueryParameter(
|
|
|
80
82
|
)
|
|
81
83
|
# Path params
|
|
82
84
|
AccountIdSchema = schemas.UUIDSchema
|
|
83
|
-
BrokerageOrderIdSchema = schemas.StrSchema
|
|
84
85
|
RequestRequiredPathParams = typing_extensions.TypedDict(
|
|
85
86
|
'RequestRequiredPathParams',
|
|
86
87
|
{
|
|
87
88
|
'accountId': typing.Union[AccountIdSchema, str, uuid.UUID, ],
|
|
88
|
-
'brokerageOrderId': typing.Union[BrokerageOrderIdSchema, str, ],
|
|
89
89
|
}
|
|
90
90
|
)
|
|
91
91
|
RequestOptionalPathParams = typing_extensions.TypedDict(
|
|
@@ -106,10 +106,69 @@ request_path_account_id = api_client.PathParameter(
|
|
|
106
106
|
schema=AccountIdSchema,
|
|
107
107
|
required=True,
|
|
108
108
|
)
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
109
|
+
# body param
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
class SchemaForRequestBodyApplicationJson(
|
|
113
|
+
schemas.DictSchema
|
|
114
|
+
):
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
class MetaOapg:
|
|
118
|
+
required = {
|
|
119
|
+
"external_order_id",
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
class properties:
|
|
123
|
+
external_order_id = schemas.StrSchema
|
|
124
|
+
__annotations__ = {
|
|
125
|
+
"external_order_id": external_order_id,
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
external_order_id: MetaOapg.properties.external_order_id
|
|
129
|
+
|
|
130
|
+
@typing.overload
|
|
131
|
+
def __getitem__(self, name: typing_extensions.Literal["external_order_id"]) -> MetaOapg.properties.external_order_id: ...
|
|
132
|
+
|
|
133
|
+
@typing.overload
|
|
134
|
+
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
|
|
135
|
+
|
|
136
|
+
def __getitem__(self, name: typing.Union[typing_extensions.Literal["external_order_id", ], str]):
|
|
137
|
+
# dict_instance[name] accessor
|
|
138
|
+
return super().__getitem__(name)
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
@typing.overload
|
|
142
|
+
def get_item_oapg(self, name: typing_extensions.Literal["external_order_id"]) -> MetaOapg.properties.external_order_id: ...
|
|
143
|
+
|
|
144
|
+
@typing.overload
|
|
145
|
+
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
|
|
146
|
+
|
|
147
|
+
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["external_order_id", ], str]):
|
|
148
|
+
return super().get_item_oapg(name)
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
def __new__(
|
|
152
|
+
cls,
|
|
153
|
+
*args: typing.Union[dict, frozendict.frozendict, ],
|
|
154
|
+
external_order_id: typing.Union[MetaOapg.properties.external_order_id, str, ],
|
|
155
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
156
|
+
**kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
|
|
157
|
+
) -> 'SchemaForRequestBodyApplicationJson':
|
|
158
|
+
return super().__new__(
|
|
159
|
+
cls,
|
|
160
|
+
*args,
|
|
161
|
+
external_order_id=external_order_id,
|
|
162
|
+
_configuration=_configuration,
|
|
163
|
+
**kwargs,
|
|
164
|
+
)
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
request_body_typing_any = api_client.RequestBody(
|
|
168
|
+
content={
|
|
169
|
+
'application/json': api_client.MediaType(
|
|
170
|
+
schema=SchemaForRequestBodyApplicationJson),
|
|
171
|
+
},
|
|
113
172
|
required=True,
|
|
114
173
|
)
|
|
115
174
|
_auth = [
|
|
@@ -138,6 +197,27 @@ _response_for_200 = api_client.OpenApiResponse(
|
|
|
138
197
|
schema=SchemaFor200ResponseBodyApplicationJson),
|
|
139
198
|
},
|
|
140
199
|
)
|
|
200
|
+
SchemaFor400ResponseBodyApplicationJson = Model400FailedRequestResponseSchema
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
@dataclass
|
|
204
|
+
class ApiResponseFor400(api_client.ApiResponse):
|
|
205
|
+
body: Model400FailedRequestResponse
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
@dataclass
|
|
209
|
+
class ApiResponseFor400Async(api_client.AsyncApiResponse):
|
|
210
|
+
body: Model400FailedRequestResponse
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
_response_for_400 = api_client.OpenApiResponse(
|
|
214
|
+
response_cls=ApiResponseFor400,
|
|
215
|
+
response_cls_async=ApiResponseFor400Async,
|
|
216
|
+
content={
|
|
217
|
+
'application/json': api_client.MediaType(
|
|
218
|
+
schema=SchemaFor400ResponseBodyApplicationJson),
|
|
219
|
+
},
|
|
220
|
+
)
|
|
141
221
|
SchemaFor404ResponseBodyApplicationJson = Model404FailedRequestResponseSchema
|
|
142
222
|
|
|
143
223
|
|
|
@@ -182,6 +262,7 @@ _response_for_500 = api_client.OpenApiResponse(
|
|
|
182
262
|
)
|
|
183
263
|
_status_code_to_response = {
|
|
184
264
|
'200': _response_for_200,
|
|
265
|
+
'400': _response_for_400,
|
|
185
266
|
'404': _response_for_404,
|
|
186
267
|
'500': _response_for_500,
|
|
187
268
|
}
|
|
@@ -194,35 +275,40 @@ class BaseApi(api_client.Api):
|
|
|
194
275
|
|
|
195
276
|
def _get_user_account_order_detail_mapped_args(
|
|
196
277
|
self,
|
|
278
|
+
body: typing.Optional[typing.Any] = None,
|
|
279
|
+
external_order_id: typing.Optional[str] = None,
|
|
280
|
+
account_id: typing.Optional[str] = None,
|
|
197
281
|
user_id: typing.Optional[str] = None,
|
|
198
282
|
user_secret: typing.Optional[str] = None,
|
|
199
|
-
account_id: typing.Optional[str] = None,
|
|
200
|
-
brokerage_order_id: typing.Optional[str] = None,
|
|
201
283
|
query_params: typing.Optional[dict] = {},
|
|
202
284
|
path_params: typing.Optional[dict] = {},
|
|
203
285
|
) -> api_client.MappedArgs:
|
|
204
286
|
args: api_client.MappedArgs = api_client.MappedArgs()
|
|
205
287
|
_query_params = {}
|
|
206
288
|
_path_params = {}
|
|
289
|
+
_body = {}
|
|
290
|
+
if external_order_id is not None:
|
|
291
|
+
_body["external_order_id"] = external_order_id
|
|
292
|
+
args.body = body if body is not None else _body
|
|
207
293
|
if user_id is not None:
|
|
208
294
|
_query_params["userId"] = user_id
|
|
209
295
|
if user_secret is not None:
|
|
210
296
|
_query_params["userSecret"] = user_secret
|
|
211
297
|
if account_id is not None:
|
|
212
298
|
_path_params["accountId"] = account_id
|
|
213
|
-
if brokerage_order_id is not None:
|
|
214
|
-
_path_params["brokerageOrderId"] = brokerage_order_id
|
|
215
299
|
args.query = query_params if query_params else _query_params
|
|
216
300
|
args.path = path_params if path_params else _path_params
|
|
217
301
|
return args
|
|
218
302
|
|
|
219
303
|
async def _aget_user_account_order_detail_oapg(
|
|
220
304
|
self,
|
|
305
|
+
body: typing.Any = None,
|
|
221
306
|
query_params: typing.Optional[dict] = {},
|
|
222
307
|
path_params: typing.Optional[dict] = {},
|
|
223
308
|
skip_deserialization: bool = True,
|
|
224
309
|
timeout: typing.Optional[typing.Union[float, typing.Tuple]] = None,
|
|
225
310
|
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
|
311
|
+
content_type: str = 'application/json',
|
|
226
312
|
stream: bool = False,
|
|
227
313
|
**kwargs,
|
|
228
314
|
) -> typing.Union[
|
|
@@ -243,7 +329,6 @@ class BaseApi(api_client.Api):
|
|
|
243
329
|
_path_params = {}
|
|
244
330
|
for parameter in (
|
|
245
331
|
request_path_account_id,
|
|
246
|
-
request_path_brokerage_order_id,
|
|
247
332
|
):
|
|
248
333
|
parameter_data = path_params.get(parameter.name, schemas.unset)
|
|
249
334
|
if parameter_data is schemas.unset:
|
|
@@ -273,20 +358,36 @@ class BaseApi(api_client.Api):
|
|
|
273
358
|
if accept_content_types:
|
|
274
359
|
for accept_content_type in accept_content_types:
|
|
275
360
|
_headers.add('Accept', accept_content_type)
|
|
276
|
-
method = '
|
|
361
|
+
method = 'post'.upper()
|
|
362
|
+
_headers.add('Content-Type', content_type)
|
|
363
|
+
|
|
364
|
+
if body is schemas.unset:
|
|
365
|
+
raise exceptions.ApiValueError(
|
|
366
|
+
'The required body parameter has an invalid value of: unset. Set a valid value instead')
|
|
367
|
+
_fields = None
|
|
368
|
+
_body = None
|
|
277
369
|
request_before_hook(
|
|
278
370
|
resource_path=used_path,
|
|
279
371
|
method=method,
|
|
280
372
|
configuration=self.api_client.configuration,
|
|
281
|
-
path_template='/accounts/{accountId}/orders/
|
|
373
|
+
path_template='/accounts/{accountId}/orders/details',
|
|
374
|
+
body=body,
|
|
282
375
|
auth_settings=_auth,
|
|
283
376
|
headers=_headers,
|
|
284
377
|
)
|
|
378
|
+
serialized_data = request_body_typing_any.serialize(body, content_type)
|
|
379
|
+
if 'fields' in serialized_data:
|
|
380
|
+
_fields = serialized_data['fields']
|
|
381
|
+
elif 'body' in serialized_data:
|
|
382
|
+
_body = serialized_data['body']
|
|
285
383
|
|
|
286
384
|
response = await self.api_client.async_call_api(
|
|
287
385
|
resource_path=used_path,
|
|
288
386
|
method=method,
|
|
289
387
|
headers=_headers,
|
|
388
|
+
fields=_fields,
|
|
389
|
+
serialized_body=_body,
|
|
390
|
+
body=body,
|
|
290
391
|
auth_settings=_auth,
|
|
291
392
|
prefix_separator_iterator=prefix_separator_iterator,
|
|
292
393
|
timeout=timeout,
|
|
@@ -349,11 +450,13 @@ class BaseApi(api_client.Api):
|
|
|
349
450
|
|
|
350
451
|
def _get_user_account_order_detail_oapg(
|
|
351
452
|
self,
|
|
453
|
+
body: typing.Any = None,
|
|
352
454
|
query_params: typing.Optional[dict] = {},
|
|
353
455
|
path_params: typing.Optional[dict] = {},
|
|
354
456
|
skip_deserialization: bool = True,
|
|
355
457
|
timeout: typing.Optional[typing.Union[float, typing.Tuple]] = None,
|
|
356
458
|
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
|
459
|
+
content_type: str = 'application/json',
|
|
357
460
|
stream: bool = False,
|
|
358
461
|
) -> typing.Union[
|
|
359
462
|
ApiResponseFor200,
|
|
@@ -372,7 +475,6 @@ class BaseApi(api_client.Api):
|
|
|
372
475
|
_path_params = {}
|
|
373
476
|
for parameter in (
|
|
374
477
|
request_path_account_id,
|
|
375
|
-
request_path_brokerage_order_id,
|
|
376
478
|
):
|
|
377
479
|
parameter_data = path_params.get(parameter.name, schemas.unset)
|
|
378
480
|
if parameter_data is schemas.unset:
|
|
@@ -402,20 +504,36 @@ class BaseApi(api_client.Api):
|
|
|
402
504
|
if accept_content_types:
|
|
403
505
|
for accept_content_type in accept_content_types:
|
|
404
506
|
_headers.add('Accept', accept_content_type)
|
|
405
|
-
method = '
|
|
507
|
+
method = 'post'.upper()
|
|
508
|
+
_headers.add('Content-Type', content_type)
|
|
509
|
+
|
|
510
|
+
if body is schemas.unset:
|
|
511
|
+
raise exceptions.ApiValueError(
|
|
512
|
+
'The required body parameter has an invalid value of: unset. Set a valid value instead')
|
|
513
|
+
_fields = None
|
|
514
|
+
_body = None
|
|
406
515
|
request_before_hook(
|
|
407
516
|
resource_path=used_path,
|
|
408
517
|
method=method,
|
|
409
518
|
configuration=self.api_client.configuration,
|
|
410
|
-
path_template='/accounts/{accountId}/orders/
|
|
519
|
+
path_template='/accounts/{accountId}/orders/details',
|
|
520
|
+
body=body,
|
|
411
521
|
auth_settings=_auth,
|
|
412
522
|
headers=_headers,
|
|
413
523
|
)
|
|
524
|
+
serialized_data = request_body_typing_any.serialize(body, content_type)
|
|
525
|
+
if 'fields' in serialized_data:
|
|
526
|
+
_fields = serialized_data['fields']
|
|
527
|
+
elif 'body' in serialized_data:
|
|
528
|
+
_body = serialized_data['body']
|
|
414
529
|
|
|
415
530
|
response = self.api_client.call_api(
|
|
416
531
|
resource_path=used_path,
|
|
417
532
|
method=method,
|
|
418
533
|
headers=_headers,
|
|
534
|
+
fields=_fields,
|
|
535
|
+
serialized_body=_body,
|
|
536
|
+
body=body,
|
|
419
537
|
auth_settings=_auth,
|
|
420
538
|
prefix_separator_iterator=prefix_separator_iterator,
|
|
421
539
|
timeout=timeout,
|
|
@@ -450,10 +568,11 @@ class GetUserAccountOrderDetail(BaseApi):
|
|
|
450
568
|
|
|
451
569
|
async def aget_user_account_order_detail(
|
|
452
570
|
self,
|
|
571
|
+
body: typing.Optional[typing.Any] = None,
|
|
572
|
+
external_order_id: typing.Optional[str] = None,
|
|
573
|
+
account_id: typing.Optional[str] = None,
|
|
453
574
|
user_id: typing.Optional[str] = None,
|
|
454
575
|
user_secret: typing.Optional[str] = None,
|
|
455
|
-
account_id: typing.Optional[str] = None,
|
|
456
|
-
brokerage_order_id: typing.Optional[str] = None,
|
|
457
576
|
query_params: typing.Optional[dict] = {},
|
|
458
577
|
path_params: typing.Optional[dict] = {},
|
|
459
578
|
**kwargs,
|
|
@@ -463,14 +582,16 @@ class GetUserAccountOrderDetail(BaseApi):
|
|
|
463
582
|
AsyncGeneratorResponse,
|
|
464
583
|
]:
|
|
465
584
|
args = self._get_user_account_order_detail_mapped_args(
|
|
585
|
+
body=body,
|
|
466
586
|
query_params=query_params,
|
|
467
587
|
path_params=path_params,
|
|
588
|
+
external_order_id=external_order_id,
|
|
589
|
+
account_id=account_id,
|
|
468
590
|
user_id=user_id,
|
|
469
591
|
user_secret=user_secret,
|
|
470
|
-
account_id=account_id,
|
|
471
|
-
brokerage_order_id=brokerage_order_id,
|
|
472
592
|
)
|
|
473
593
|
return await self._aget_user_account_order_detail_oapg(
|
|
594
|
+
body=args.body,
|
|
474
595
|
query_params=args.query,
|
|
475
596
|
path_params=args.path,
|
|
476
597
|
**kwargs,
|
|
@@ -478,39 +599,43 @@ class GetUserAccountOrderDetail(BaseApi):
|
|
|
478
599
|
|
|
479
600
|
def get_user_account_order_detail(
|
|
480
601
|
self,
|
|
602
|
+
body: typing.Optional[typing.Any] = None,
|
|
603
|
+
external_order_id: typing.Optional[str] = None,
|
|
604
|
+
account_id: typing.Optional[str] = None,
|
|
481
605
|
user_id: typing.Optional[str] = None,
|
|
482
606
|
user_secret: typing.Optional[str] = None,
|
|
483
|
-
account_id: typing.Optional[str] = None,
|
|
484
|
-
brokerage_order_id: typing.Optional[str] = None,
|
|
485
607
|
query_params: typing.Optional[dict] = {},
|
|
486
608
|
path_params: typing.Optional[dict] = {},
|
|
487
609
|
) -> typing.Union[
|
|
488
610
|
ApiResponseFor200,
|
|
489
611
|
api_client.ApiResponseWithoutDeserialization,
|
|
490
612
|
]:
|
|
491
|
-
""" Returns the detail of a single order in the
|
|
613
|
+
""" Returns the detail of a single order using the external order ID provided in the request body. This endpoint is always realtime and does not rely on cached data. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint. """
|
|
492
614
|
args = self._get_user_account_order_detail_mapped_args(
|
|
615
|
+
body=body,
|
|
493
616
|
query_params=query_params,
|
|
494
617
|
path_params=path_params,
|
|
618
|
+
external_order_id=external_order_id,
|
|
619
|
+
account_id=account_id,
|
|
495
620
|
user_id=user_id,
|
|
496
621
|
user_secret=user_secret,
|
|
497
|
-
account_id=account_id,
|
|
498
|
-
brokerage_order_id=brokerage_order_id,
|
|
499
622
|
)
|
|
500
623
|
return self._get_user_account_order_detail_oapg(
|
|
624
|
+
body=args.body,
|
|
501
625
|
query_params=args.query,
|
|
502
626
|
path_params=args.path,
|
|
503
627
|
)
|
|
504
628
|
|
|
505
|
-
class
|
|
629
|
+
class ApiForpost(BaseApi):
|
|
506
630
|
# this class is used by api classes that refer to endpoints by path and http method names
|
|
507
631
|
|
|
508
|
-
async def
|
|
632
|
+
async def apost(
|
|
509
633
|
self,
|
|
634
|
+
body: typing.Optional[typing.Any] = None,
|
|
635
|
+
external_order_id: typing.Optional[str] = None,
|
|
636
|
+
account_id: typing.Optional[str] = None,
|
|
510
637
|
user_id: typing.Optional[str] = None,
|
|
511
638
|
user_secret: typing.Optional[str] = None,
|
|
512
|
-
account_id: typing.Optional[str] = None,
|
|
513
|
-
brokerage_order_id: typing.Optional[str] = None,
|
|
514
639
|
query_params: typing.Optional[dict] = {},
|
|
515
640
|
path_params: typing.Optional[dict] = {},
|
|
516
641
|
**kwargs,
|
|
@@ -520,41 +645,46 @@ class ApiForget(BaseApi):
|
|
|
520
645
|
AsyncGeneratorResponse,
|
|
521
646
|
]:
|
|
522
647
|
args = self._get_user_account_order_detail_mapped_args(
|
|
648
|
+
body=body,
|
|
523
649
|
query_params=query_params,
|
|
524
650
|
path_params=path_params,
|
|
651
|
+
external_order_id=external_order_id,
|
|
652
|
+
account_id=account_id,
|
|
525
653
|
user_id=user_id,
|
|
526
654
|
user_secret=user_secret,
|
|
527
|
-
account_id=account_id,
|
|
528
|
-
brokerage_order_id=brokerage_order_id,
|
|
529
655
|
)
|
|
530
656
|
return await self._aget_user_account_order_detail_oapg(
|
|
657
|
+
body=args.body,
|
|
531
658
|
query_params=args.query,
|
|
532
659
|
path_params=args.path,
|
|
533
660
|
**kwargs,
|
|
534
661
|
)
|
|
535
662
|
|
|
536
|
-
def
|
|
663
|
+
def post(
|
|
537
664
|
self,
|
|
665
|
+
body: typing.Optional[typing.Any] = None,
|
|
666
|
+
external_order_id: typing.Optional[str] = None,
|
|
667
|
+
account_id: typing.Optional[str] = None,
|
|
538
668
|
user_id: typing.Optional[str] = None,
|
|
539
669
|
user_secret: typing.Optional[str] = None,
|
|
540
|
-
account_id: typing.Optional[str] = None,
|
|
541
|
-
brokerage_order_id: typing.Optional[str] = None,
|
|
542
670
|
query_params: typing.Optional[dict] = {},
|
|
543
671
|
path_params: typing.Optional[dict] = {},
|
|
544
672
|
) -> typing.Union[
|
|
545
673
|
ApiResponseFor200,
|
|
546
674
|
api_client.ApiResponseWithoutDeserialization,
|
|
547
675
|
]:
|
|
548
|
-
""" Returns the detail of a single order in the
|
|
676
|
+
""" Returns the detail of a single order using the external order ID provided in the request body. This endpoint is always realtime and does not rely on cached data. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint. """
|
|
549
677
|
args = self._get_user_account_order_detail_mapped_args(
|
|
678
|
+
body=body,
|
|
550
679
|
query_params=query_params,
|
|
551
680
|
path_params=path_params,
|
|
681
|
+
external_order_id=external_order_id,
|
|
682
|
+
account_id=account_id,
|
|
552
683
|
user_id=user_id,
|
|
553
684
|
user_secret=user_secret,
|
|
554
|
-
account_id=account_id,
|
|
555
|
-
brokerage_order_id=brokerage_order_id,
|
|
556
685
|
)
|
|
557
686
|
return self._get_user_account_order_detail_oapg(
|
|
687
|
+
body=args.body,
|
|
558
688
|
query_params=args.query,
|
|
559
689
|
path_params=args.path,
|
|
560
690
|
)
|
|
@@ -32,10 +32,12 @@ import frozendict # noqa: F401
|
|
|
32
32
|
|
|
33
33
|
from snaptrade_client import schemas # noqa: F401
|
|
34
34
|
|
|
35
|
+
from snaptrade_client.model.model400_failed_request_response import Model400FailedRequestResponse as Model400FailedRequestResponseSchema
|
|
35
36
|
from snaptrade_client.model.account_order_record import AccountOrderRecord as AccountOrderRecordSchema
|
|
36
37
|
from snaptrade_client.model.model500_unexpected_exception_response import Model500UnexpectedExceptionResponse as Model500UnexpectedExceptionResponseSchema
|
|
37
38
|
from snaptrade_client.model.model404_failed_request_response import Model404FailedRequestResponse as Model404FailedRequestResponseSchema
|
|
38
39
|
|
|
40
|
+
from snaptrade_client.type.model400_failed_request_response import Model400FailedRequestResponse
|
|
39
41
|
from snaptrade_client.type.model500_unexpected_exception_response import Model500UnexpectedExceptionResponse
|
|
40
42
|
from snaptrade_client.type.account_order_record import AccountOrderRecord
|
|
41
43
|
from snaptrade_client.type.model404_failed_request_response import Model404FailedRequestResponse
|
|
@@ -78,12 +80,10 @@ request_query_user_secret = api_client.QueryParameter(
|
|
|
78
80
|
)
|
|
79
81
|
# Path params
|
|
80
82
|
AccountIdSchema = schemas.UUIDSchema
|
|
81
|
-
BrokerageOrderIdSchema = schemas.StrSchema
|
|
82
83
|
RequestRequiredPathParams = typing_extensions.TypedDict(
|
|
83
84
|
'RequestRequiredPathParams',
|
|
84
85
|
{
|
|
85
86
|
'accountId': typing.Union[AccountIdSchema, str, uuid.UUID, ],
|
|
86
|
-
'brokerageOrderId': typing.Union[BrokerageOrderIdSchema, str, ],
|
|
87
87
|
}
|
|
88
88
|
)
|
|
89
89
|
RequestOptionalPathParams = typing_extensions.TypedDict(
|
|
@@ -104,10 +104,69 @@ request_path_account_id = api_client.PathParameter(
|
|
|
104
104
|
schema=AccountIdSchema,
|
|
105
105
|
required=True,
|
|
106
106
|
)
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
107
|
+
# body param
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
class SchemaForRequestBodyApplicationJson(
|
|
111
|
+
schemas.DictSchema
|
|
112
|
+
):
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
class MetaOapg:
|
|
116
|
+
required = {
|
|
117
|
+
"external_order_id",
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
class properties:
|
|
121
|
+
external_order_id = schemas.StrSchema
|
|
122
|
+
__annotations__ = {
|
|
123
|
+
"external_order_id": external_order_id,
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
external_order_id: MetaOapg.properties.external_order_id
|
|
127
|
+
|
|
128
|
+
@typing.overload
|
|
129
|
+
def __getitem__(self, name: typing_extensions.Literal["external_order_id"]) -> MetaOapg.properties.external_order_id: ...
|
|
130
|
+
|
|
131
|
+
@typing.overload
|
|
132
|
+
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
|
|
133
|
+
|
|
134
|
+
def __getitem__(self, name: typing.Union[typing_extensions.Literal["external_order_id", ], str]):
|
|
135
|
+
# dict_instance[name] accessor
|
|
136
|
+
return super().__getitem__(name)
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
@typing.overload
|
|
140
|
+
def get_item_oapg(self, name: typing_extensions.Literal["external_order_id"]) -> MetaOapg.properties.external_order_id: ...
|
|
141
|
+
|
|
142
|
+
@typing.overload
|
|
143
|
+
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
|
|
144
|
+
|
|
145
|
+
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["external_order_id", ], str]):
|
|
146
|
+
return super().get_item_oapg(name)
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
def __new__(
|
|
150
|
+
cls,
|
|
151
|
+
*args: typing.Union[dict, frozendict.frozendict, ],
|
|
152
|
+
external_order_id: typing.Union[MetaOapg.properties.external_order_id, str, ],
|
|
153
|
+
_configuration: typing.Optional[schemas.Configuration] = None,
|
|
154
|
+
**kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
|
|
155
|
+
) -> 'SchemaForRequestBodyApplicationJson':
|
|
156
|
+
return super().__new__(
|
|
157
|
+
cls,
|
|
158
|
+
*args,
|
|
159
|
+
external_order_id=external_order_id,
|
|
160
|
+
_configuration=_configuration,
|
|
161
|
+
**kwargs,
|
|
162
|
+
)
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
request_body_typing_any = api_client.RequestBody(
|
|
166
|
+
content={
|
|
167
|
+
'application/json': api_client.MediaType(
|
|
168
|
+
schema=SchemaForRequestBodyApplicationJson),
|
|
169
|
+
},
|
|
111
170
|
required=True,
|
|
112
171
|
)
|
|
113
172
|
SchemaFor200ResponseBodyApplicationJson = AccountOrderRecordSchema
|
|
@@ -131,6 +190,27 @@ _response_for_200 = api_client.OpenApiResponse(
|
|
|
131
190
|
schema=SchemaFor200ResponseBodyApplicationJson),
|
|
132
191
|
},
|
|
133
192
|
)
|
|
193
|
+
SchemaFor400ResponseBodyApplicationJson = Model400FailedRequestResponseSchema
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
@dataclass
|
|
197
|
+
class ApiResponseFor400(api_client.ApiResponse):
|
|
198
|
+
body: Model400FailedRequestResponse
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
@dataclass
|
|
202
|
+
class ApiResponseFor400Async(api_client.AsyncApiResponse):
|
|
203
|
+
body: Model400FailedRequestResponse
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
_response_for_400 = api_client.OpenApiResponse(
|
|
207
|
+
response_cls=ApiResponseFor400,
|
|
208
|
+
response_cls_async=ApiResponseFor400Async,
|
|
209
|
+
content={
|
|
210
|
+
'application/json': api_client.MediaType(
|
|
211
|
+
schema=SchemaFor400ResponseBodyApplicationJson),
|
|
212
|
+
},
|
|
213
|
+
)
|
|
134
214
|
SchemaFor404ResponseBodyApplicationJson = Model404FailedRequestResponseSchema
|
|
135
215
|
|
|
136
216
|
|
|
@@ -182,35 +262,40 @@ class BaseApi(api_client.Api):
|
|
|
182
262
|
|
|
183
263
|
def _get_user_account_order_detail_mapped_args(
|
|
184
264
|
self,
|
|
265
|
+
body: typing.Optional[typing.Any] = None,
|
|
266
|
+
external_order_id: typing.Optional[str] = None,
|
|
267
|
+
account_id: typing.Optional[str] = None,
|
|
185
268
|
user_id: typing.Optional[str] = None,
|
|
186
269
|
user_secret: typing.Optional[str] = None,
|
|
187
|
-
account_id: typing.Optional[str] = None,
|
|
188
|
-
brokerage_order_id: typing.Optional[str] = None,
|
|
189
270
|
query_params: typing.Optional[dict] = {},
|
|
190
271
|
path_params: typing.Optional[dict] = {},
|
|
191
272
|
) -> api_client.MappedArgs:
|
|
192
273
|
args: api_client.MappedArgs = api_client.MappedArgs()
|
|
193
274
|
_query_params = {}
|
|
194
275
|
_path_params = {}
|
|
276
|
+
_body = {}
|
|
277
|
+
if external_order_id is not None:
|
|
278
|
+
_body["external_order_id"] = external_order_id
|
|
279
|
+
args.body = body if body is not None else _body
|
|
195
280
|
if user_id is not None:
|
|
196
281
|
_query_params["userId"] = user_id
|
|
197
282
|
if user_secret is not None:
|
|
198
283
|
_query_params["userSecret"] = user_secret
|
|
199
284
|
if account_id is not None:
|
|
200
285
|
_path_params["accountId"] = account_id
|
|
201
|
-
if brokerage_order_id is not None:
|
|
202
|
-
_path_params["brokerageOrderId"] = brokerage_order_id
|
|
203
286
|
args.query = query_params if query_params else _query_params
|
|
204
287
|
args.path = path_params if path_params else _path_params
|
|
205
288
|
return args
|
|
206
289
|
|
|
207
290
|
async def _aget_user_account_order_detail_oapg(
|
|
208
291
|
self,
|
|
292
|
+
body: typing.Any = None,
|
|
209
293
|
query_params: typing.Optional[dict] = {},
|
|
210
294
|
path_params: typing.Optional[dict] = {},
|
|
211
295
|
skip_deserialization: bool = True,
|
|
212
296
|
timeout: typing.Optional[typing.Union[float, typing.Tuple]] = None,
|
|
213
297
|
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
|
298
|
+
content_type: str = 'application/json',
|
|
214
299
|
stream: bool = False,
|
|
215
300
|
**kwargs,
|
|
216
301
|
) -> typing.Union[
|
|
@@ -231,7 +316,6 @@ class BaseApi(api_client.Api):
|
|
|
231
316
|
_path_params = {}
|
|
232
317
|
for parameter in (
|
|
233
318
|
request_path_account_id,
|
|
234
|
-
request_path_brokerage_order_id,
|
|
235
319
|
):
|
|
236
320
|
parameter_data = path_params.get(parameter.name, schemas.unset)
|
|
237
321
|
if parameter_data is schemas.unset:
|
|
@@ -261,20 +345,36 @@ class BaseApi(api_client.Api):
|
|
|
261
345
|
if accept_content_types:
|
|
262
346
|
for accept_content_type in accept_content_types:
|
|
263
347
|
_headers.add('Accept', accept_content_type)
|
|
264
|
-
method = '
|
|
348
|
+
method = 'post'.upper()
|
|
349
|
+
_headers.add('Content-Type', content_type)
|
|
350
|
+
|
|
351
|
+
if body is schemas.unset:
|
|
352
|
+
raise exceptions.ApiValueError(
|
|
353
|
+
'The required body parameter has an invalid value of: unset. Set a valid value instead')
|
|
354
|
+
_fields = None
|
|
355
|
+
_body = None
|
|
265
356
|
request_before_hook(
|
|
266
357
|
resource_path=used_path,
|
|
267
358
|
method=method,
|
|
268
359
|
configuration=self.api_client.configuration,
|
|
269
|
-
path_template='/accounts/{accountId}/orders/
|
|
360
|
+
path_template='/accounts/{accountId}/orders/details',
|
|
361
|
+
body=body,
|
|
270
362
|
auth_settings=_auth,
|
|
271
363
|
headers=_headers,
|
|
272
364
|
)
|
|
365
|
+
serialized_data = request_body_typing_any.serialize(body, content_type)
|
|
366
|
+
if 'fields' in serialized_data:
|
|
367
|
+
_fields = serialized_data['fields']
|
|
368
|
+
elif 'body' in serialized_data:
|
|
369
|
+
_body = serialized_data['body']
|
|
273
370
|
|
|
274
371
|
response = await self.api_client.async_call_api(
|
|
275
372
|
resource_path=used_path,
|
|
276
373
|
method=method,
|
|
277
374
|
headers=_headers,
|
|
375
|
+
fields=_fields,
|
|
376
|
+
serialized_body=_body,
|
|
377
|
+
body=body,
|
|
278
378
|
auth_settings=_auth,
|
|
279
379
|
prefix_separator_iterator=prefix_separator_iterator,
|
|
280
380
|
timeout=timeout,
|
|
@@ -337,11 +437,13 @@ class BaseApi(api_client.Api):
|
|
|
337
437
|
|
|
338
438
|
def _get_user_account_order_detail_oapg(
|
|
339
439
|
self,
|
|
440
|
+
body: typing.Any = None,
|
|
340
441
|
query_params: typing.Optional[dict] = {},
|
|
341
442
|
path_params: typing.Optional[dict] = {},
|
|
342
443
|
skip_deserialization: bool = True,
|
|
343
444
|
timeout: typing.Optional[typing.Union[float, typing.Tuple]] = None,
|
|
344
445
|
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
|
446
|
+
content_type: str = 'application/json',
|
|
345
447
|
stream: bool = False,
|
|
346
448
|
) -> typing.Union[
|
|
347
449
|
ApiResponseFor200,
|
|
@@ -360,7 +462,6 @@ class BaseApi(api_client.Api):
|
|
|
360
462
|
_path_params = {}
|
|
361
463
|
for parameter in (
|
|
362
464
|
request_path_account_id,
|
|
363
|
-
request_path_brokerage_order_id,
|
|
364
465
|
):
|
|
365
466
|
parameter_data = path_params.get(parameter.name, schemas.unset)
|
|
366
467
|
if parameter_data is schemas.unset:
|
|
@@ -390,20 +491,36 @@ class BaseApi(api_client.Api):
|
|
|
390
491
|
if accept_content_types:
|
|
391
492
|
for accept_content_type in accept_content_types:
|
|
392
493
|
_headers.add('Accept', accept_content_type)
|
|
393
|
-
method = '
|
|
494
|
+
method = 'post'.upper()
|
|
495
|
+
_headers.add('Content-Type', content_type)
|
|
496
|
+
|
|
497
|
+
if body is schemas.unset:
|
|
498
|
+
raise exceptions.ApiValueError(
|
|
499
|
+
'The required body parameter has an invalid value of: unset. Set a valid value instead')
|
|
500
|
+
_fields = None
|
|
501
|
+
_body = None
|
|
394
502
|
request_before_hook(
|
|
395
503
|
resource_path=used_path,
|
|
396
504
|
method=method,
|
|
397
505
|
configuration=self.api_client.configuration,
|
|
398
|
-
path_template='/accounts/{accountId}/orders/
|
|
506
|
+
path_template='/accounts/{accountId}/orders/details',
|
|
507
|
+
body=body,
|
|
399
508
|
auth_settings=_auth,
|
|
400
509
|
headers=_headers,
|
|
401
510
|
)
|
|
511
|
+
serialized_data = request_body_typing_any.serialize(body, content_type)
|
|
512
|
+
if 'fields' in serialized_data:
|
|
513
|
+
_fields = serialized_data['fields']
|
|
514
|
+
elif 'body' in serialized_data:
|
|
515
|
+
_body = serialized_data['body']
|
|
402
516
|
|
|
403
517
|
response = self.api_client.call_api(
|
|
404
518
|
resource_path=used_path,
|
|
405
519
|
method=method,
|
|
406
520
|
headers=_headers,
|
|
521
|
+
fields=_fields,
|
|
522
|
+
serialized_body=_body,
|
|
523
|
+
body=body,
|
|
407
524
|
auth_settings=_auth,
|
|
408
525
|
prefix_separator_iterator=prefix_separator_iterator,
|
|
409
526
|
timeout=timeout,
|
|
@@ -438,10 +555,11 @@ class GetUserAccountOrderDetail(BaseApi):
|
|
|
438
555
|
|
|
439
556
|
async def aget_user_account_order_detail(
|
|
440
557
|
self,
|
|
558
|
+
body: typing.Optional[typing.Any] = None,
|
|
559
|
+
external_order_id: typing.Optional[str] = None,
|
|
560
|
+
account_id: typing.Optional[str] = None,
|
|
441
561
|
user_id: typing.Optional[str] = None,
|
|
442
562
|
user_secret: typing.Optional[str] = None,
|
|
443
|
-
account_id: typing.Optional[str] = None,
|
|
444
|
-
brokerage_order_id: typing.Optional[str] = None,
|
|
445
563
|
query_params: typing.Optional[dict] = {},
|
|
446
564
|
path_params: typing.Optional[dict] = {},
|
|
447
565
|
**kwargs,
|
|
@@ -451,14 +569,16 @@ class GetUserAccountOrderDetail(BaseApi):
|
|
|
451
569
|
AsyncGeneratorResponse,
|
|
452
570
|
]:
|
|
453
571
|
args = self._get_user_account_order_detail_mapped_args(
|
|
572
|
+
body=body,
|
|
454
573
|
query_params=query_params,
|
|
455
574
|
path_params=path_params,
|
|
575
|
+
external_order_id=external_order_id,
|
|
576
|
+
account_id=account_id,
|
|
456
577
|
user_id=user_id,
|
|
457
578
|
user_secret=user_secret,
|
|
458
|
-
account_id=account_id,
|
|
459
|
-
brokerage_order_id=brokerage_order_id,
|
|
460
579
|
)
|
|
461
580
|
return await self._aget_user_account_order_detail_oapg(
|
|
581
|
+
body=args.body,
|
|
462
582
|
query_params=args.query,
|
|
463
583
|
path_params=args.path,
|
|
464
584
|
**kwargs,
|
|
@@ -466,39 +586,43 @@ class GetUserAccountOrderDetail(BaseApi):
|
|
|
466
586
|
|
|
467
587
|
def get_user_account_order_detail(
|
|
468
588
|
self,
|
|
589
|
+
body: typing.Optional[typing.Any] = None,
|
|
590
|
+
external_order_id: typing.Optional[str] = None,
|
|
591
|
+
account_id: typing.Optional[str] = None,
|
|
469
592
|
user_id: typing.Optional[str] = None,
|
|
470
593
|
user_secret: typing.Optional[str] = None,
|
|
471
|
-
account_id: typing.Optional[str] = None,
|
|
472
|
-
brokerage_order_id: typing.Optional[str] = None,
|
|
473
594
|
query_params: typing.Optional[dict] = {},
|
|
474
595
|
path_params: typing.Optional[dict] = {},
|
|
475
596
|
) -> typing.Union[
|
|
476
597
|
ApiResponseFor200,
|
|
477
598
|
api_client.ApiResponseWithoutDeserialization,
|
|
478
599
|
]:
|
|
479
|
-
""" Returns the detail of a single order in the
|
|
600
|
+
""" Returns the detail of a single order using the external order ID provided in the request body. This endpoint is always realtime and does not rely on cached data. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint. """
|
|
480
601
|
args = self._get_user_account_order_detail_mapped_args(
|
|
602
|
+
body=body,
|
|
481
603
|
query_params=query_params,
|
|
482
604
|
path_params=path_params,
|
|
605
|
+
external_order_id=external_order_id,
|
|
606
|
+
account_id=account_id,
|
|
483
607
|
user_id=user_id,
|
|
484
608
|
user_secret=user_secret,
|
|
485
|
-
account_id=account_id,
|
|
486
|
-
brokerage_order_id=brokerage_order_id,
|
|
487
609
|
)
|
|
488
610
|
return self._get_user_account_order_detail_oapg(
|
|
611
|
+
body=args.body,
|
|
489
612
|
query_params=args.query,
|
|
490
613
|
path_params=args.path,
|
|
491
614
|
)
|
|
492
615
|
|
|
493
|
-
class
|
|
616
|
+
class ApiForpost(BaseApi):
|
|
494
617
|
# this class is used by api classes that refer to endpoints by path and http method names
|
|
495
618
|
|
|
496
|
-
async def
|
|
619
|
+
async def apost(
|
|
497
620
|
self,
|
|
621
|
+
body: typing.Optional[typing.Any] = None,
|
|
622
|
+
external_order_id: typing.Optional[str] = None,
|
|
623
|
+
account_id: typing.Optional[str] = None,
|
|
498
624
|
user_id: typing.Optional[str] = None,
|
|
499
625
|
user_secret: typing.Optional[str] = None,
|
|
500
|
-
account_id: typing.Optional[str] = None,
|
|
501
|
-
brokerage_order_id: typing.Optional[str] = None,
|
|
502
626
|
query_params: typing.Optional[dict] = {},
|
|
503
627
|
path_params: typing.Optional[dict] = {},
|
|
504
628
|
**kwargs,
|
|
@@ -508,41 +632,46 @@ class ApiForget(BaseApi):
|
|
|
508
632
|
AsyncGeneratorResponse,
|
|
509
633
|
]:
|
|
510
634
|
args = self._get_user_account_order_detail_mapped_args(
|
|
635
|
+
body=body,
|
|
511
636
|
query_params=query_params,
|
|
512
637
|
path_params=path_params,
|
|
638
|
+
external_order_id=external_order_id,
|
|
639
|
+
account_id=account_id,
|
|
513
640
|
user_id=user_id,
|
|
514
641
|
user_secret=user_secret,
|
|
515
|
-
account_id=account_id,
|
|
516
|
-
brokerage_order_id=brokerage_order_id,
|
|
517
642
|
)
|
|
518
643
|
return await self._aget_user_account_order_detail_oapg(
|
|
644
|
+
body=args.body,
|
|
519
645
|
query_params=args.query,
|
|
520
646
|
path_params=args.path,
|
|
521
647
|
**kwargs,
|
|
522
648
|
)
|
|
523
649
|
|
|
524
|
-
def
|
|
650
|
+
def post(
|
|
525
651
|
self,
|
|
652
|
+
body: typing.Optional[typing.Any] = None,
|
|
653
|
+
external_order_id: typing.Optional[str] = None,
|
|
654
|
+
account_id: typing.Optional[str] = None,
|
|
526
655
|
user_id: typing.Optional[str] = None,
|
|
527
656
|
user_secret: typing.Optional[str] = None,
|
|
528
|
-
account_id: typing.Optional[str] = None,
|
|
529
|
-
brokerage_order_id: typing.Optional[str] = None,
|
|
530
657
|
query_params: typing.Optional[dict] = {},
|
|
531
658
|
path_params: typing.Optional[dict] = {},
|
|
532
659
|
) -> typing.Union[
|
|
533
660
|
ApiResponseFor200,
|
|
534
661
|
api_client.ApiResponseWithoutDeserialization,
|
|
535
662
|
]:
|
|
536
|
-
""" Returns the detail of a single order in the
|
|
663
|
+
""" Returns the detail of a single order using the external order ID provided in the request body. This endpoint is always realtime and does not rely on cached data. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint. """
|
|
537
664
|
args = self._get_user_account_order_detail_mapped_args(
|
|
665
|
+
body=body,
|
|
538
666
|
query_params=query_params,
|
|
539
667
|
path_params=path_params,
|
|
668
|
+
external_order_id=external_order_id,
|
|
669
|
+
account_id=account_id,
|
|
540
670
|
user_id=user_id,
|
|
541
671
|
user_secret=user_secret,
|
|
542
|
-
account_id=account_id,
|
|
543
|
-
brokerage_order_id=brokerage_order_id,
|
|
544
672
|
)
|
|
545
673
|
return self._get_user_account_order_detail_oapg(
|
|
674
|
+
body=args.body,
|
|
546
675
|
query_params=args.query,
|
|
547
676
|
path_params=args.path,
|
|
548
677
|
)
|
{snaptrade_python_sdk-11.0.126.dist-info → snaptrade_python_sdk-11.0.127.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: snaptrade-python-sdk
|
|
3
|
-
Version: 11.0.
|
|
3
|
+
Version: 11.0.127
|
|
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
|
-
[](https://pypi.org/project/snaptrade-python-sdk/11.0.127)
|
|
34
34
|
[](https://github.com/passiv/snaptrade-sdks/tree/master/sdks/python#readme)
|
|
35
35
|
[](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.
|
|
112
|
+
pip install snaptrade-python-sdk==11.0.127
|
|
113
113
|
```
|
|
114
114
|
|
|
115
115
|
## Getting Started<a id="getting-started"></a>
|
|
@@ -401,7 +401,7 @@ get_user_account_details_response = (
|
|
|
401
401
|
|
|
402
402
|
### `snaptrade.account_information.get_user_account_order_detail`<a id="snaptradeaccount_informationget_user_account_order_detail"></a>
|
|
403
403
|
|
|
404
|
-
Returns the detail of a single order in the
|
|
404
|
+
Returns the detail of a single order using the external order ID provided in the request body.
|
|
405
405
|
|
|
406
406
|
This endpoint is always realtime and does not rely on cached data.
|
|
407
407
|
|
|
@@ -413,31 +413,36 @@ This endpoint only returns orders placed through SnapTrade. In other words, orde
|
|
|
413
413
|
```python
|
|
414
414
|
get_user_account_order_detail_response = (
|
|
415
415
|
snaptrade.account_information.get_user_account_order_detail(
|
|
416
|
+
external_order_id="66a033fa-da74-4fcf-b527-feefdec9257e",
|
|
417
|
+
account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
|
|
416
418
|
user_id="snaptrade-user-123",
|
|
417
419
|
user_secret="adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
418
|
-
account_id="917c8734-8470-4a3e-a18f-57c3f2ee6631",
|
|
419
|
-
brokerage_order_id="66a033fa-da74-4fcf-b527-feefdec9257e",
|
|
420
420
|
)
|
|
421
421
|
)
|
|
422
422
|
```
|
|
423
423
|
|
|
424
424
|
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
|
425
425
|
|
|
426
|
-
#####
|
|
426
|
+
##### external_order_id: `str`<a id="external_order_id-str"></a>
|
|
427
427
|
|
|
428
|
-
|
|
428
|
+
Order ID returned by brokerage. This is the unique identifier for the order in the brokerage system.
|
|
429
429
|
|
|
430
430
|
##### account_id: `str`<a id="account_id-str"></a>
|
|
431
431
|
|
|
432
|
-
#####
|
|
432
|
+
##### user_id: `str`<a id="user_id-str"></a>
|
|
433
|
+
|
|
434
|
+
##### user_secret: `str`<a id="user_secret-str"></a>
|
|
433
435
|
|
|
436
|
+
#### ⚙️ Request Body<a id="⚙️-request-body"></a>
|
|
437
|
+
|
|
438
|
+
[`Any`](./snaptrade_client/type/typing_any.py)
|
|
434
439
|
#### 🔄 Return<a id="🔄-return"></a>
|
|
435
440
|
|
|
436
441
|
[`AccountOrderRecord`](./snaptrade_client/type/account_order_record.py)
|
|
437
442
|
|
|
438
443
|
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
|
439
444
|
|
|
440
|
-
`/accounts/{accountId}/orders/
|
|
445
|
+
`/accounts/{accountId}/orders/details` `post`
|
|
441
446
|
|
|
442
447
|
[🔙 **Back to Table of Contents**](#table-of-contents)
|
|
443
448
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
snaptrade_client/__init__.py,sha256=
|
|
2
|
-
snaptrade_client/api_client.py,sha256=
|
|
1
|
+
snaptrade_client/__init__.py,sha256=fKH7fcERHy7Lvl68u2olGA8bif5MeJJrd431QYHil2Q,820
|
|
2
|
+
snaptrade_client/api_client.py,sha256=VGux4kSQm5ec3r1gNILr_QcHFdgK7tyK3D3EGLu5TJI,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
|
|
5
|
+
snaptrade_client/apis/path_to_api.py,sha256=-BsjWJKow8g8XEIcbYWGby5dg-E5JH2xCieyZRigmzw,12357
|
|
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
|
|
@@ -12,8 +12,8 @@ snaptrade_client/apis/paths/accounts_account_id_holdings.py,sha256=QCqmgaPTw1Ahl
|
|
|
12
12
|
snaptrade_client/apis/paths/accounts_account_id_options.py,sha256=Q2BpJm_phHSqbhC-fSqsnCkL2GTGhaoHuVC51x_pLoI,138
|
|
13
13
|
snaptrade_client/apis/paths/accounts_account_id_options_chain.py,sha256=0x2p_tMUy8K8Kx1R0KQVdp5M03qwddDufPS2aZbtqO8,149
|
|
14
14
|
snaptrade_client/apis/paths/accounts_account_id_orders.py,sha256=2rP-vnv9VQm1Acdw0d8iaFYGFI5XqiP0XBYXeJ9kHaw,136
|
|
15
|
-
snaptrade_client/apis/paths/accounts_account_id_orders_brokerage_order_id.py,sha256=uvxoSTzbz8KmS9YGAc0fhs8h2nrWOVw8Z2iEzSTbGfU,171
|
|
16
15
|
snaptrade_client/apis/paths/accounts_account_id_orders_cancel.py,sha256=JPwBTe7P9cKjrJzw0vfApfYBZXwtWExU7xpTgV50zKE,152
|
|
16
|
+
snaptrade_client/apis/paths/accounts_account_id_orders_details.py,sha256=CN3IJK-lgcfT00uJIQjJMu82S58fFGwg3gR7QRNnOn0,154
|
|
17
17
|
snaptrade_client/apis/paths/accounts_account_id_positions.py,sha256=ovywLJiI569NLjYSgCcl1_6QGBeUT_02OAYYTHLq8Cc,142
|
|
18
18
|
snaptrade_client/apis/paths/accounts_account_id_quotes.py,sha256=_2v0DiUngr6a-Mi1EUrCfOn94e45pDhnH5Q9RdquIMA,136
|
|
19
19
|
snaptrade_client/apis/paths/accounts_account_id_recent_orders.py,sha256=EeY-phJr21kpUIrZ-wBc2y6v4qP75R5t54hSqlqmw6k,149
|
|
@@ -59,7 +59,7 @@ snaptrade_client/apis/paths/trade_trade_id.py,sha256=obGSPVLZRpWmozwuCrxnDL2NQzN
|
|
|
59
59
|
snaptrade_client/apis/tag_to_api.py,sha256=4kBzm9kk13yI5s3At61eiaZ-B6suxtPv9Oq1z--nBks,1601
|
|
60
60
|
snaptrade_client/apis/tags/__init__.py,sha256=0gw9bF8gMwlrWqLRqYHijltHnho9T8l83Pobtm194pw,585
|
|
61
61
|
snaptrade_client/apis/tags/account_information_api.py,sha256=lbGNEG6xu9Y7xjiQnNKxafMIMwx2NA-kJraqymyd-j4,192
|
|
62
|
-
snaptrade_client/apis/tags/account_information_api_generated.py,sha256=
|
|
62
|
+
snaptrade_client/apis/tags/account_information_api_generated.py,sha256=jueUAgDMo1XuHPrWXuy4w7wDuFEVd9aImNmUfe88Vac,1726
|
|
63
63
|
snaptrade_client/apis/tags/api_status_api.py,sha256=N4rdI4EmxVg5mxhu-Q2UVkIKgDKrZWhRmO7R_T1IkZw,156
|
|
64
64
|
snaptrade_client/apis/tags/api_status_api_generated.py,sha256=fc7Ei4Aka6gYmg1StN-TfoL77kSIh8hZhtIvb5OM2Nk,425
|
|
65
65
|
snaptrade_client/apis/tags/authentication_api.py,sha256=9QKQmKP326PcQusLJaW5XDaCb7EF0chuVDQmgo5QMGo,175
|
|
@@ -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=
|
|
80
|
+
snaptrade_client/configuration.py,sha256=pitHb-laFChqPUlCVpt8Ymw6Sx-MoYtv5aqidDTa1S0,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
|
|
@@ -422,8 +422,8 @@ snaptrade_client/model/user_secret.pyi,sha256=7xf__S566WtTq7VthmdVtrCBIfgpnYWYqE
|
|
|
422
422
|
snaptrade_client/model/validated_trade_body.py,sha256=NkTel1ulgSjBd6K7vur6puEbfrg3u1vdmtUKArOu8ws,3085
|
|
423
423
|
snaptrade_client/model/validated_trade_body.pyi,sha256=NkTel1ulgSjBd6K7vur6puEbfrg3u1vdmtUKArOu8ws,3085
|
|
424
424
|
snaptrade_client/models/__init__.py,sha256=nEO5bHCM19h-AQp0rl6XNHrTZ4Aw4ffqVOPRYOPOr_I,13312
|
|
425
|
-
snaptrade_client/operation_parameter_map.py,sha256=
|
|
426
|
-
snaptrade_client/paths/__init__.py,sha256=
|
|
425
|
+
snaptrade_client/operation_parameter_map.py,sha256=vYwQo6Ut1eXnNP8CtISqVlEKUvv8NNe9D46hD-CYIRI,18252
|
|
426
|
+
snaptrade_client/paths/__init__.py,sha256=YGG613dY7WnYSd01RMtoFdoU0eEwQHy1mLiu6daKOMQ,3534
|
|
427
427
|
snaptrade_client/paths/accounts/__init__.py,sha256=_Bqi6B13A-kgd0AOpqmcE1vTxJDfoz-r3Hwf-AmwW6A,307
|
|
428
428
|
snaptrade_client/paths/accounts/get.py,sha256=MDE_4VCylBroYDkMQe9II1qCGf6gTTDGCShFyGLXf00,16463
|
|
429
429
|
snaptrade_client/paths/accounts/get.pyi,sha256=gna7qIU-95WqOFl6qTsP18ZY7SKi9CYEBAbARPAPPF4,16261
|
|
@@ -450,12 +450,12 @@ snaptrade_client/paths/accounts_account_id_options_chain/get.pyi,sha256=7qu-rIKE
|
|
|
450
450
|
snaptrade_client/paths/accounts_account_id_orders/__init__.py,sha256=zHuTi8F_iUeJNBtI08jQZe2-gAFrIDAYEl1B5y0XpTM,343
|
|
451
451
|
snaptrade_client/paths/accounts_account_id_orders/get.py,sha256=G995P3DYTYjlbOmqO1iyJSPjtO6KmFUOfGCBaozjeUU,21877
|
|
452
452
|
snaptrade_client/paths/accounts_account_id_orders/get.pyi,sha256=N23jjsdpQiilZqFXOF5Gj31PLdOXqEpKytqUwiB_AiI,21462
|
|
453
|
-
snaptrade_client/paths/accounts_account_id_orders_brokerage_order_id/__init__.py,sha256=HRMFYdm8PGjoYJ-0S1O80PZjXt3H4SBbiPvfGFFB9M0,381
|
|
454
|
-
snaptrade_client/paths/accounts_account_id_orders_brokerage_order_id/get.py,sha256=cY-r37PYauAK3_7rH3ZIy3k9qvyW15F1R3vSr1u6XvU,20819
|
|
455
|
-
snaptrade_client/paths/accounts_account_id_orders_brokerage_order_id/get.pyi,sha256=rkDYVT-32--8_hC3vzgaXCvKFEddTpD83nhCAyHiKxA,20595
|
|
456
453
|
snaptrade_client/paths/accounts_account_id_orders_cancel/__init__.py,sha256=UIeHlsXhxZyqf4ADkLxYxJUH6ChCcSkpeML1XWjxGdI,357
|
|
457
454
|
snaptrade_client/paths/accounts_account_id_orders_cancel/post.py,sha256=PipHEDsFEytBeeXn5ydOnD5bCTHcDfW5EWmaRuuWQyQ,24559
|
|
458
455
|
snaptrade_client/paths/accounts_account_id_orders_cancel/post.pyi,sha256=r1JJmy3TEKzeu7WAXPGP5RocDF6dDwFScC_-ffesP9E,24335
|
|
456
|
+
snaptrade_client/paths/accounts_account_id_orders_details/__init__.py,sha256=6PWLMs5Y6WxEM5h99FQSSpvq7Btg4dfrgMkWk3mhBYo,359
|
|
457
|
+
snaptrade_client/paths/accounts_account_id_orders_details/post.py,sha256=Y2OQbjd9MsJMCCqkVIeN5cQ9iYxs_brMeUUZf9VP5EU,25418
|
|
458
|
+
snaptrade_client/paths/accounts_account_id_orders_details/post.pyi,sha256=rZzDqLhRILvEoGiRyXQfY6W-UnJ_iPMdhuMg8Ir1dRo,25164
|
|
459
459
|
snaptrade_client/paths/accounts_account_id_positions/__init__.py,sha256=UB-B0t2OnlP8QvI9ptBNhqYsywmYsFZz9G8NJkVZBTM,349
|
|
460
460
|
snaptrade_client/paths/accounts_account_id_positions/get.py,sha256=mT1qThSd9z8ggJa0uXGdWA_N8cs0NH_ijLRsPIVnuWY,20204
|
|
461
461
|
snaptrade_client/paths/accounts_account_id_positions/get.pyi,sha256=wHZruGOsjMfVd6GW3qB8jPhMQNfr2dP4TbB71taNUVk,20002
|
|
@@ -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.
|
|
767
|
-
snaptrade_python_sdk-11.0.
|
|
768
|
-
snaptrade_python_sdk-11.0.
|
|
769
|
-
snaptrade_python_sdk-11.0.
|
|
766
|
+
snaptrade_python_sdk-11.0.127.dist-info/LICENSE,sha256=W_1kcxEzOnZXIYJ1GVUipbmUu6dNLt-Pc-OI55h3k-A,1081
|
|
767
|
+
snaptrade_python_sdk-11.0.127.dist-info/METADATA,sha256=6GvXYsc1Vf7C5CTW9yjnjSR0OmodBlTc5t2xuw9xSww,92887
|
|
768
|
+
snaptrade_python_sdk-11.0.127.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
769
|
+
snaptrade_python_sdk-11.0.127.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|