crypticorn 2.4.7__py3-none-any.whl → 2.5.0__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.
- crypticorn/cli/init.py +7 -4
- crypticorn/common/__init__.py +1 -0
- crypticorn/common/auth.py +7 -3
- crypticorn/common/errors.py +21 -0
- crypticorn/common/exceptions.py +83 -0
- crypticorn/common/utils.py +11 -4
- crypticorn/klines/client/__init__.py +10 -3
- crypticorn/klines/client/api/__init__.py +1 -0
- crypticorn/klines/client/api/change_in_timeframe_api.py +331 -0
- crypticorn/klines/client/api/funding_rates_api.py +13 -13
- crypticorn/klines/client/api/health_check_api.py +8 -8
- crypticorn/klines/client/api/ohlcv_data_api.py +38 -26
- crypticorn/klines/client/api/symbols_api.py +26 -20
- crypticorn/klines/client/api/udf_api.py +229 -229
- crypticorn/klines/client/api_client.py +8 -5
- crypticorn/klines/client/configuration.py +80 -37
- crypticorn/klines/client/models/__init__.py +9 -3
- crypticorn/klines/client/models/base_response_list_change_in_timeframe_response.py +123 -0
- crypticorn/klines/client/models/change_in_timeframe_response.py +86 -0
- crypticorn/klines/client/models/market_type.py +35 -0
- crypticorn/klines/client/models/response_get_udf_history.py +198 -0
- crypticorn/klines/client/rest.py +111 -159
- crypticorn/klines/main.py +32 -22
- crypticorn/metrics/main.py +39 -40
- crypticorn/pay/client/__init__.py +0 -3
- crypticorn/pay/client/api/now_payments_api.py +1 -53
- crypticorn/pay/client/models/__init__.py +0 -3
- crypticorn/pay/client/models/payment.py +3 -3
- crypticorn/pay/client/models/scope.py +6 -1
- crypticorn/trade/client/__init__.py +8 -6
- crypticorn/trade/client/api/__init__.py +0 -1
- crypticorn/trade/client/api/api_keys_api.py +167 -273
- crypticorn/trade/client/api/bots_api.py +140 -226
- crypticorn/trade/client/api/exchanges_api.py +31 -51
- crypticorn/trade/client/api/futures_trading_panel_api.py +169 -272
- crypticorn/trade/client/api/notifications_api.py +200 -323
- crypticorn/trade/client/api/orders_api.py +40 -60
- crypticorn/trade/client/api/status_api.py +31 -49
- crypticorn/trade/client/api/strategies_api.py +137 -223
- crypticorn/trade/client/api/trading_actions_api.py +106 -170
- crypticorn/trade/client/api_client.py +111 -153
- crypticorn/trade/client/api_response.py +2 -3
- crypticorn/trade/client/configuration.py +128 -115
- crypticorn/trade/client/exceptions.py +25 -21
- crypticorn/trade/client/models/__init__.py +8 -6
- crypticorn/trade/client/models/action_model.py +108 -54
- crypticorn/trade/client/models/api_error_identifier.py +76 -72
- crypticorn/trade/client/models/api_error_level.py +9 -11
- crypticorn/trade/client/models/api_error_type.py +9 -11
- crypticorn/trade/client/models/bot_model.py +57 -36
- crypticorn/trade/client/models/bot_status.py +9 -11
- crypticorn/trade/client/models/exchange.py +7 -9
- crypticorn/trade/client/models/exchange_key_model.py +43 -32
- crypticorn/trade/client/models/execution_ids.py +18 -18
- crypticorn/trade/client/models/futures_balance.py +43 -27
- crypticorn/trade/client/models/futures_trading_action.py +102 -50
- crypticorn/trade/client/models/http_validation_error.py +19 -15
- crypticorn/trade/client/models/margin_mode.py +7 -9
- crypticorn/trade/client/models/market_type.py +7 -9
- crypticorn/trade/client/models/notification_model.py +52 -32
- crypticorn/trade/client/models/order_model.py +112 -72
- crypticorn/trade/client/models/order_status.py +10 -12
- crypticorn/trade/client/models/post_futures_action.py +20 -16
- crypticorn/trade/client/models/strategy_exchange_info.py +15 -16
- crypticorn/trade/client/models/strategy_model_input.py +61 -33
- crypticorn/trade/client/models/strategy_model_output.py +61 -33
- crypticorn/trade/client/models/tpsl.py +39 -25
- crypticorn/trade/client/models/trading_action_type.py +9 -11
- crypticorn/trade/client/models/validation_error.py +24 -18
- crypticorn/trade/client/models/validation_error_loc_inner.py +37 -16
- crypticorn/trade/client/rest.py +23 -38
- {crypticorn-2.4.7.dist-info → crypticorn-2.5.0.dist-info}/METADATA +1 -1
- {crypticorn-2.4.7.dist-info → crypticorn-2.5.0.dist-info}/RECORD +76 -70
- {crypticorn-2.4.7.dist-info → crypticorn-2.5.0.dist-info}/WHEEL +1 -1
- {crypticorn-2.4.7.dist-info → crypticorn-2.5.0.dist-info}/entry_points.txt +0 -0
- {crypticorn-2.4.7.dist-info → crypticorn-2.5.0.dist-info}/top_level.txt +0 -0
@@ -1,14 +1,14 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
|
3
3
|
"""
|
4
|
-
|
4
|
+
Trading API
|
5
5
|
|
6
|
-
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
7
7
|
|
8
|
-
|
9
|
-
|
8
|
+
The version of the OpenAPI document: 0.1.0
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
10
|
|
11
|
-
|
11
|
+
Do not edit the class manually.
|
12
12
|
""" # noqa: E501
|
13
13
|
|
14
14
|
import warnings
|
@@ -37,7 +37,6 @@ class APIKeysApi:
|
|
37
37
|
api_client = ApiClient.get_default()
|
38
38
|
self.api_client = api_client
|
39
39
|
|
40
|
-
|
41
40
|
@validate_call
|
42
41
|
async def create_exchange_key(
|
43
42
|
self,
|
@@ -46,9 +45,8 @@ class APIKeysApi:
|
|
46
45
|
None,
|
47
46
|
Annotated[StrictFloat, Field(gt=0)],
|
48
47
|
Tuple[
|
49
|
-
Annotated[StrictFloat, Field(gt=0)],
|
50
|
-
|
51
|
-
]
|
48
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
49
|
+
],
|
52
50
|
] = None,
|
53
51
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
54
52
|
_content_type: Optional[StrictStr] = None,
|
@@ -80,23 +78,22 @@ class APIKeysApi:
|
|
80
78
|
in the spec for a single request.
|
81
79
|
:type _host_index: int, optional
|
82
80
|
:return: Returns the result object.
|
83
|
-
"""
|
81
|
+
""" # noqa: E501
|
84
82
|
|
85
83
|
_param = self._create_exchange_key_serialize(
|
86
84
|
exchange_key_model=exchange_key_model,
|
87
85
|
_request_auth=_request_auth,
|
88
86
|
_content_type=_content_type,
|
89
87
|
_headers=_headers,
|
90
|
-
_host_index=_host_index
|
88
|
+
_host_index=_host_index,
|
91
89
|
)
|
92
90
|
|
93
91
|
_response_types_map: Dict[str, Optional[str]] = {
|
94
|
-
|
95
|
-
|
92
|
+
"200": "object",
|
93
|
+
"422": "HTTPValidationError",
|
96
94
|
}
|
97
95
|
response_data = await self.api_client.call_api(
|
98
|
-
*_param,
|
99
|
-
_request_timeout=_request_timeout
|
96
|
+
*_param, _request_timeout=_request_timeout
|
100
97
|
)
|
101
98
|
await response_data.read()
|
102
99
|
return self.api_client.response_deserialize(
|
@@ -104,7 +101,6 @@ class APIKeysApi:
|
|
104
101
|
response_types_map=_response_types_map,
|
105
102
|
).data
|
106
103
|
|
107
|
-
|
108
104
|
@validate_call
|
109
105
|
async def create_exchange_key_with_http_info(
|
110
106
|
self,
|
@@ -113,9 +109,8 @@ class APIKeysApi:
|
|
113
109
|
None,
|
114
110
|
Annotated[StrictFloat, Field(gt=0)],
|
115
111
|
Tuple[
|
116
|
-
Annotated[StrictFloat, Field(gt=0)],
|
117
|
-
|
118
|
-
]
|
112
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
113
|
+
],
|
119
114
|
] = None,
|
120
115
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
121
116
|
_content_type: Optional[StrictStr] = None,
|
@@ -147,23 +142,22 @@ class APIKeysApi:
|
|
147
142
|
in the spec for a single request.
|
148
143
|
:type _host_index: int, optional
|
149
144
|
:return: Returns the result object.
|
150
|
-
"""
|
145
|
+
""" # noqa: E501
|
151
146
|
|
152
147
|
_param = self._create_exchange_key_serialize(
|
153
148
|
exchange_key_model=exchange_key_model,
|
154
149
|
_request_auth=_request_auth,
|
155
150
|
_content_type=_content_type,
|
156
151
|
_headers=_headers,
|
157
|
-
_host_index=_host_index
|
152
|
+
_host_index=_host_index,
|
158
153
|
)
|
159
154
|
|
160
155
|
_response_types_map: Dict[str, Optional[str]] = {
|
161
|
-
|
162
|
-
|
156
|
+
"200": "object",
|
157
|
+
"422": "HTTPValidationError",
|
163
158
|
}
|
164
159
|
response_data = await self.api_client.call_api(
|
165
|
-
*_param,
|
166
|
-
_request_timeout=_request_timeout
|
160
|
+
*_param, _request_timeout=_request_timeout
|
167
161
|
)
|
168
162
|
await response_data.read()
|
169
163
|
return self.api_client.response_deserialize(
|
@@ -171,7 +165,6 @@ class APIKeysApi:
|
|
171
165
|
response_types_map=_response_types_map,
|
172
166
|
)
|
173
167
|
|
174
|
-
|
175
168
|
@validate_call
|
176
169
|
async def create_exchange_key_without_preload_content(
|
177
170
|
self,
|
@@ -180,9 +173,8 @@ class APIKeysApi:
|
|
180
173
|
None,
|
181
174
|
Annotated[StrictFloat, Field(gt=0)],
|
182
175
|
Tuple[
|
183
|
-
Annotated[StrictFloat, Field(gt=0)],
|
184
|
-
|
185
|
-
]
|
176
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
177
|
+
],
|
186
178
|
] = None,
|
187
179
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
188
180
|
_content_type: Optional[StrictStr] = None,
|
@@ -214,27 +206,25 @@ class APIKeysApi:
|
|
214
206
|
in the spec for a single request.
|
215
207
|
:type _host_index: int, optional
|
216
208
|
:return: Returns the result object.
|
217
|
-
"""
|
209
|
+
""" # noqa: E501
|
218
210
|
|
219
211
|
_param = self._create_exchange_key_serialize(
|
220
212
|
exchange_key_model=exchange_key_model,
|
221
213
|
_request_auth=_request_auth,
|
222
214
|
_content_type=_content_type,
|
223
215
|
_headers=_headers,
|
224
|
-
_host_index=_host_index
|
216
|
+
_host_index=_host_index,
|
225
217
|
)
|
226
218
|
|
227
219
|
_response_types_map: Dict[str, Optional[str]] = {
|
228
|
-
|
229
|
-
|
220
|
+
"200": "object",
|
221
|
+
"422": "HTTPValidationError",
|
230
222
|
}
|
231
223
|
response_data = await self.api_client.call_api(
|
232
|
-
*_param,
|
233
|
-
_request_timeout=_request_timeout
|
224
|
+
*_param, _request_timeout=_request_timeout
|
234
225
|
)
|
235
226
|
return response_data.response
|
236
227
|
|
237
|
-
|
238
228
|
def _create_exchange_key_serialize(
|
239
229
|
self,
|
240
230
|
exchange_key_model,
|
@@ -246,8 +236,7 @@ class APIKeysApi:
|
|
246
236
|
|
247
237
|
_host = None
|
248
238
|
|
249
|
-
_collection_formats: Dict[str, str] = {
|
250
|
-
}
|
239
|
+
_collection_formats: Dict[str, str] = {}
|
251
240
|
|
252
241
|
_path_params: Dict[str, str] = {}
|
253
242
|
_query_params: List[Tuple[str, str]] = []
|
@@ -266,38 +255,28 @@ class APIKeysApi:
|
|
266
255
|
if exchange_key_model is not None:
|
267
256
|
_body_params = exchange_key_model
|
268
257
|
|
269
|
-
|
270
258
|
# set the HTTP header `Accept`
|
271
|
-
if
|
272
|
-
_header_params[
|
273
|
-
[
|
274
|
-
'application/json'
|
275
|
-
]
|
259
|
+
if "Accept" not in _header_params:
|
260
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
261
|
+
["application/json"]
|
276
262
|
)
|
277
263
|
|
278
264
|
# set the HTTP header `Content-Type`
|
279
265
|
if _content_type:
|
280
|
-
_header_params[
|
266
|
+
_header_params["Content-Type"] = _content_type
|
281
267
|
else:
|
282
|
-
_default_content_type = (
|
283
|
-
|
284
|
-
[
|
285
|
-
'application/json'
|
286
|
-
]
|
287
|
-
)
|
268
|
+
_default_content_type = self.api_client.select_header_content_type(
|
269
|
+
["application/json"]
|
288
270
|
)
|
289
271
|
if _default_content_type is not None:
|
290
|
-
_header_params[
|
272
|
+
_header_params["Content-Type"] = _default_content_type
|
291
273
|
|
292
274
|
# authentication setting
|
293
|
-
_auth_settings: List[str] = [
|
294
|
-
'APIKeyHeader',
|
295
|
-
'HTTPBearer'
|
296
|
-
]
|
275
|
+
_auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
|
297
276
|
|
298
277
|
return self.api_client.param_serialize(
|
299
|
-
method=
|
300
|
-
resource_path=
|
278
|
+
method="POST",
|
279
|
+
resource_path="/api-keys",
|
301
280
|
path_params=_path_params,
|
302
281
|
query_params=_query_params,
|
303
282
|
header_params=_header_params,
|
@@ -307,12 +286,9 @@ class APIKeysApi:
|
|
307
286
|
auth_settings=_auth_settings,
|
308
287
|
collection_formats=_collection_formats,
|
309
288
|
_host=_host,
|
310
|
-
_request_auth=_request_auth
|
289
|
+
_request_auth=_request_auth,
|
311
290
|
)
|
312
291
|
|
313
|
-
|
314
|
-
|
315
|
-
|
316
292
|
@validate_call
|
317
293
|
async def delete_exchange_key(
|
318
294
|
self,
|
@@ -321,9 +297,8 @@ class APIKeysApi:
|
|
321
297
|
None,
|
322
298
|
Annotated[StrictFloat, Field(gt=0)],
|
323
299
|
Tuple[
|
324
|
-
Annotated[StrictFloat, Field(gt=0)],
|
325
|
-
|
326
|
-
]
|
300
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
301
|
+
],
|
327
302
|
] = None,
|
328
303
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
329
304
|
_content_type: Optional[StrictStr] = None,
|
@@ -355,23 +330,22 @@ class APIKeysApi:
|
|
355
330
|
in the spec for a single request.
|
356
331
|
:type _host_index: int, optional
|
357
332
|
:return: Returns the result object.
|
358
|
-
"""
|
333
|
+
""" # noqa: E501
|
359
334
|
|
360
335
|
_param = self._delete_exchange_key_serialize(
|
361
336
|
id=id,
|
362
337
|
_request_auth=_request_auth,
|
363
338
|
_content_type=_content_type,
|
364
339
|
_headers=_headers,
|
365
|
-
_host_index=_host_index
|
340
|
+
_host_index=_host_index,
|
366
341
|
)
|
367
342
|
|
368
343
|
_response_types_map: Dict[str, Optional[str]] = {
|
369
|
-
|
370
|
-
|
344
|
+
"200": "object",
|
345
|
+
"422": "HTTPValidationError",
|
371
346
|
}
|
372
347
|
response_data = await self.api_client.call_api(
|
373
|
-
*_param,
|
374
|
-
_request_timeout=_request_timeout
|
348
|
+
*_param, _request_timeout=_request_timeout
|
375
349
|
)
|
376
350
|
await response_data.read()
|
377
351
|
return self.api_client.response_deserialize(
|
@@ -379,7 +353,6 @@ class APIKeysApi:
|
|
379
353
|
response_types_map=_response_types_map,
|
380
354
|
).data
|
381
355
|
|
382
|
-
|
383
356
|
@validate_call
|
384
357
|
async def delete_exchange_key_with_http_info(
|
385
358
|
self,
|
@@ -388,9 +361,8 @@ class APIKeysApi:
|
|
388
361
|
None,
|
389
362
|
Annotated[StrictFloat, Field(gt=0)],
|
390
363
|
Tuple[
|
391
|
-
Annotated[StrictFloat, Field(gt=0)],
|
392
|
-
|
393
|
-
]
|
364
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
365
|
+
],
|
394
366
|
] = None,
|
395
367
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
396
368
|
_content_type: Optional[StrictStr] = None,
|
@@ -422,23 +394,22 @@ class APIKeysApi:
|
|
422
394
|
in the spec for a single request.
|
423
395
|
:type _host_index: int, optional
|
424
396
|
:return: Returns the result object.
|
425
|
-
"""
|
397
|
+
""" # noqa: E501
|
426
398
|
|
427
399
|
_param = self._delete_exchange_key_serialize(
|
428
400
|
id=id,
|
429
401
|
_request_auth=_request_auth,
|
430
402
|
_content_type=_content_type,
|
431
403
|
_headers=_headers,
|
432
|
-
_host_index=_host_index
|
404
|
+
_host_index=_host_index,
|
433
405
|
)
|
434
406
|
|
435
407
|
_response_types_map: Dict[str, Optional[str]] = {
|
436
|
-
|
437
|
-
|
408
|
+
"200": "object",
|
409
|
+
"422": "HTTPValidationError",
|
438
410
|
}
|
439
411
|
response_data = await self.api_client.call_api(
|
440
|
-
*_param,
|
441
|
-
_request_timeout=_request_timeout
|
412
|
+
*_param, _request_timeout=_request_timeout
|
442
413
|
)
|
443
414
|
await response_data.read()
|
444
415
|
return self.api_client.response_deserialize(
|
@@ -446,7 +417,6 @@ class APIKeysApi:
|
|
446
417
|
response_types_map=_response_types_map,
|
447
418
|
)
|
448
419
|
|
449
|
-
|
450
420
|
@validate_call
|
451
421
|
async def delete_exchange_key_without_preload_content(
|
452
422
|
self,
|
@@ -455,9 +425,8 @@ class APIKeysApi:
|
|
455
425
|
None,
|
456
426
|
Annotated[StrictFloat, Field(gt=0)],
|
457
427
|
Tuple[
|
458
|
-
Annotated[StrictFloat, Field(gt=0)],
|
459
|
-
|
460
|
-
]
|
428
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
429
|
+
],
|
461
430
|
] = None,
|
462
431
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
463
432
|
_content_type: Optional[StrictStr] = None,
|
@@ -489,27 +458,25 @@ class APIKeysApi:
|
|
489
458
|
in the spec for a single request.
|
490
459
|
:type _host_index: int, optional
|
491
460
|
:return: Returns the result object.
|
492
|
-
"""
|
461
|
+
""" # noqa: E501
|
493
462
|
|
494
463
|
_param = self._delete_exchange_key_serialize(
|
495
464
|
id=id,
|
496
465
|
_request_auth=_request_auth,
|
497
466
|
_content_type=_content_type,
|
498
467
|
_headers=_headers,
|
499
|
-
_host_index=_host_index
|
468
|
+
_host_index=_host_index,
|
500
469
|
)
|
501
470
|
|
502
471
|
_response_types_map: Dict[str, Optional[str]] = {
|
503
|
-
|
504
|
-
|
472
|
+
"200": "object",
|
473
|
+
"422": "HTTPValidationError",
|
505
474
|
}
|
506
475
|
response_data = await self.api_client.call_api(
|
507
|
-
*_param,
|
508
|
-
_request_timeout=_request_timeout
|
476
|
+
*_param, _request_timeout=_request_timeout
|
509
477
|
)
|
510
478
|
return response_data.response
|
511
479
|
|
512
|
-
|
513
480
|
def _delete_exchange_key_serialize(
|
514
481
|
self,
|
515
482
|
id,
|
@@ -521,8 +488,7 @@ class APIKeysApi:
|
|
521
488
|
|
522
489
|
_host = None
|
523
490
|
|
524
|
-
_collection_formats: Dict[str, str] = {
|
525
|
-
}
|
491
|
+
_collection_formats: Dict[str, str] = {}
|
526
492
|
|
527
493
|
_path_params: Dict[str, str] = {}
|
528
494
|
_query_params: List[Tuple[str, str]] = []
|
@@ -535,31 +501,24 @@ class APIKeysApi:
|
|
535
501
|
|
536
502
|
# process the path parameters
|
537
503
|
if id is not None:
|
538
|
-
_path_params[
|
504
|
+
_path_params["id"] = id
|
539
505
|
# process the query parameters
|
540
506
|
# process the header parameters
|
541
507
|
# process the form parameters
|
542
508
|
# process the body parameter
|
543
509
|
|
544
|
-
|
545
510
|
# set the HTTP header `Accept`
|
546
|
-
if
|
547
|
-
_header_params[
|
548
|
-
[
|
549
|
-
'application/json'
|
550
|
-
]
|
511
|
+
if "Accept" not in _header_params:
|
512
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
513
|
+
["application/json"]
|
551
514
|
)
|
552
515
|
|
553
|
-
|
554
516
|
# authentication setting
|
555
|
-
_auth_settings: List[str] = [
|
556
|
-
'APIKeyHeader',
|
557
|
-
'HTTPBearer'
|
558
|
-
]
|
517
|
+
_auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
|
559
518
|
|
560
519
|
return self.api_client.param_serialize(
|
561
|
-
method=
|
562
|
-
resource_path=
|
520
|
+
method="DELETE",
|
521
|
+
resource_path="/api-keys/{id}",
|
563
522
|
path_params=_path_params,
|
564
523
|
query_params=_query_params,
|
565
524
|
header_params=_header_params,
|
@@ -569,12 +528,9 @@ class APIKeysApi:
|
|
569
528
|
auth_settings=_auth_settings,
|
570
529
|
collection_formats=_collection_formats,
|
571
530
|
_host=_host,
|
572
|
-
_request_auth=_request_auth
|
531
|
+
_request_auth=_request_auth,
|
573
532
|
)
|
574
533
|
|
575
|
-
|
576
|
-
|
577
|
-
|
578
534
|
@validate_call
|
579
535
|
async def get_exchange_key_by_id(
|
580
536
|
self,
|
@@ -583,9 +539,8 @@ class APIKeysApi:
|
|
583
539
|
None,
|
584
540
|
Annotated[StrictFloat, Field(gt=0)],
|
585
541
|
Tuple[
|
586
|
-
Annotated[StrictFloat, Field(gt=0)],
|
587
|
-
|
588
|
-
]
|
542
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
543
|
+
],
|
589
544
|
] = None,
|
590
545
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
591
546
|
_content_type: Optional[StrictStr] = None,
|
@@ -617,23 +572,22 @@ class APIKeysApi:
|
|
617
572
|
in the spec for a single request.
|
618
573
|
:type _host_index: int, optional
|
619
574
|
:return: Returns the result object.
|
620
|
-
"""
|
575
|
+
""" # noqa: E501
|
621
576
|
|
622
577
|
_param = self._get_exchange_key_by_id_serialize(
|
623
578
|
id=id,
|
624
579
|
_request_auth=_request_auth,
|
625
580
|
_content_type=_content_type,
|
626
581
|
_headers=_headers,
|
627
|
-
_host_index=_host_index
|
582
|
+
_host_index=_host_index,
|
628
583
|
)
|
629
584
|
|
630
585
|
_response_types_map: Dict[str, Optional[str]] = {
|
631
|
-
|
632
|
-
|
586
|
+
"200": "ExchangeKeyModel",
|
587
|
+
"422": "HTTPValidationError",
|
633
588
|
}
|
634
589
|
response_data = await self.api_client.call_api(
|
635
|
-
*_param,
|
636
|
-
_request_timeout=_request_timeout
|
590
|
+
*_param, _request_timeout=_request_timeout
|
637
591
|
)
|
638
592
|
await response_data.read()
|
639
593
|
return self.api_client.response_deserialize(
|
@@ -641,7 +595,6 @@ class APIKeysApi:
|
|
641
595
|
response_types_map=_response_types_map,
|
642
596
|
).data
|
643
597
|
|
644
|
-
|
645
598
|
@validate_call
|
646
599
|
async def get_exchange_key_by_id_with_http_info(
|
647
600
|
self,
|
@@ -650,9 +603,8 @@ class APIKeysApi:
|
|
650
603
|
None,
|
651
604
|
Annotated[StrictFloat, Field(gt=0)],
|
652
605
|
Tuple[
|
653
|
-
Annotated[StrictFloat, Field(gt=0)],
|
654
|
-
|
655
|
-
]
|
606
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
607
|
+
],
|
656
608
|
] = None,
|
657
609
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
658
610
|
_content_type: Optional[StrictStr] = None,
|
@@ -684,23 +636,22 @@ class APIKeysApi:
|
|
684
636
|
in the spec for a single request.
|
685
637
|
:type _host_index: int, optional
|
686
638
|
:return: Returns the result object.
|
687
|
-
"""
|
639
|
+
""" # noqa: E501
|
688
640
|
|
689
641
|
_param = self._get_exchange_key_by_id_serialize(
|
690
642
|
id=id,
|
691
643
|
_request_auth=_request_auth,
|
692
644
|
_content_type=_content_type,
|
693
645
|
_headers=_headers,
|
694
|
-
_host_index=_host_index
|
646
|
+
_host_index=_host_index,
|
695
647
|
)
|
696
648
|
|
697
649
|
_response_types_map: Dict[str, Optional[str]] = {
|
698
|
-
|
699
|
-
|
650
|
+
"200": "ExchangeKeyModel",
|
651
|
+
"422": "HTTPValidationError",
|
700
652
|
}
|
701
653
|
response_data = await self.api_client.call_api(
|
702
|
-
*_param,
|
703
|
-
_request_timeout=_request_timeout
|
654
|
+
*_param, _request_timeout=_request_timeout
|
704
655
|
)
|
705
656
|
await response_data.read()
|
706
657
|
return self.api_client.response_deserialize(
|
@@ -708,7 +659,6 @@ class APIKeysApi:
|
|
708
659
|
response_types_map=_response_types_map,
|
709
660
|
)
|
710
661
|
|
711
|
-
|
712
662
|
@validate_call
|
713
663
|
async def get_exchange_key_by_id_without_preload_content(
|
714
664
|
self,
|
@@ -717,9 +667,8 @@ class APIKeysApi:
|
|
717
667
|
None,
|
718
668
|
Annotated[StrictFloat, Field(gt=0)],
|
719
669
|
Tuple[
|
720
|
-
Annotated[StrictFloat, Field(gt=0)],
|
721
|
-
|
722
|
-
]
|
670
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
671
|
+
],
|
723
672
|
] = None,
|
724
673
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
725
674
|
_content_type: Optional[StrictStr] = None,
|
@@ -751,27 +700,25 @@ class APIKeysApi:
|
|
751
700
|
in the spec for a single request.
|
752
701
|
:type _host_index: int, optional
|
753
702
|
:return: Returns the result object.
|
754
|
-
"""
|
703
|
+
""" # noqa: E501
|
755
704
|
|
756
705
|
_param = self._get_exchange_key_by_id_serialize(
|
757
706
|
id=id,
|
758
707
|
_request_auth=_request_auth,
|
759
708
|
_content_type=_content_type,
|
760
709
|
_headers=_headers,
|
761
|
-
_host_index=_host_index
|
710
|
+
_host_index=_host_index,
|
762
711
|
)
|
763
712
|
|
764
713
|
_response_types_map: Dict[str, Optional[str]] = {
|
765
|
-
|
766
|
-
|
714
|
+
"200": "ExchangeKeyModel",
|
715
|
+
"422": "HTTPValidationError",
|
767
716
|
}
|
768
717
|
response_data = await self.api_client.call_api(
|
769
|
-
*_param,
|
770
|
-
_request_timeout=_request_timeout
|
718
|
+
*_param, _request_timeout=_request_timeout
|
771
719
|
)
|
772
720
|
return response_data.response
|
773
721
|
|
774
|
-
|
775
722
|
def _get_exchange_key_by_id_serialize(
|
776
723
|
self,
|
777
724
|
id,
|
@@ -783,8 +730,7 @@ class APIKeysApi:
|
|
783
730
|
|
784
731
|
_host = None
|
785
732
|
|
786
|
-
_collection_formats: Dict[str, str] = {
|
787
|
-
}
|
733
|
+
_collection_formats: Dict[str, str] = {}
|
788
734
|
|
789
735
|
_path_params: Dict[str, str] = {}
|
790
736
|
_query_params: List[Tuple[str, str]] = []
|
@@ -797,31 +743,24 @@ class APIKeysApi:
|
|
797
743
|
|
798
744
|
# process the path parameters
|
799
745
|
if id is not None:
|
800
|
-
_path_params[
|
746
|
+
_path_params["id"] = id
|
801
747
|
# process the query parameters
|
802
748
|
# process the header parameters
|
803
749
|
# process the form parameters
|
804
750
|
# process the body parameter
|
805
751
|
|
806
|
-
|
807
752
|
# set the HTTP header `Accept`
|
808
|
-
if
|
809
|
-
_header_params[
|
810
|
-
[
|
811
|
-
'application/json'
|
812
|
-
]
|
753
|
+
if "Accept" not in _header_params:
|
754
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
755
|
+
["application/json"]
|
813
756
|
)
|
814
757
|
|
815
|
-
|
816
758
|
# authentication setting
|
817
|
-
_auth_settings: List[str] = [
|
818
|
-
'APIKeyHeader',
|
819
|
-
'HTTPBearer'
|
820
|
-
]
|
759
|
+
_auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
|
821
760
|
|
822
761
|
return self.api_client.param_serialize(
|
823
|
-
method=
|
824
|
-
resource_path=
|
762
|
+
method="GET",
|
763
|
+
resource_path="/api-keys/{id}",
|
825
764
|
path_params=_path_params,
|
826
765
|
query_params=_query_params,
|
827
766
|
header_params=_header_params,
|
@@ -831,12 +770,9 @@ class APIKeysApi:
|
|
831
770
|
auth_settings=_auth_settings,
|
832
771
|
collection_formats=_collection_formats,
|
833
772
|
_host=_host,
|
834
|
-
_request_auth=_request_auth
|
773
|
+
_request_auth=_request_auth,
|
835
774
|
)
|
836
775
|
|
837
|
-
|
838
|
-
|
839
|
-
|
840
776
|
@validate_call
|
841
777
|
async def get_exchange_keys(
|
842
778
|
self,
|
@@ -846,9 +782,8 @@ class APIKeysApi:
|
|
846
782
|
None,
|
847
783
|
Annotated[StrictFloat, Field(gt=0)],
|
848
784
|
Tuple[
|
849
|
-
Annotated[StrictFloat, Field(gt=0)],
|
850
|
-
|
851
|
-
]
|
785
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
786
|
+
],
|
852
787
|
] = None,
|
853
788
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
854
789
|
_content_type: Optional[StrictStr] = None,
|
@@ -882,7 +817,7 @@ class APIKeysApi:
|
|
882
817
|
in the spec for a single request.
|
883
818
|
:type _host_index: int, optional
|
884
819
|
:return: Returns the result object.
|
885
|
-
"""
|
820
|
+
""" # noqa: E501
|
886
821
|
|
887
822
|
_param = self._get_exchange_keys_serialize(
|
888
823
|
limit=limit,
|
@@ -890,16 +825,15 @@ class APIKeysApi:
|
|
890
825
|
_request_auth=_request_auth,
|
891
826
|
_content_type=_content_type,
|
892
827
|
_headers=_headers,
|
893
|
-
_host_index=_host_index
|
828
|
+
_host_index=_host_index,
|
894
829
|
)
|
895
830
|
|
896
831
|
_response_types_map: Dict[str, Optional[str]] = {
|
897
|
-
|
898
|
-
|
832
|
+
"200": "List[ExchangeKeyModel]",
|
833
|
+
"422": "HTTPValidationError",
|
899
834
|
}
|
900
835
|
response_data = await self.api_client.call_api(
|
901
|
-
*_param,
|
902
|
-
_request_timeout=_request_timeout
|
836
|
+
*_param, _request_timeout=_request_timeout
|
903
837
|
)
|
904
838
|
await response_data.read()
|
905
839
|
return self.api_client.response_deserialize(
|
@@ -907,7 +841,6 @@ class APIKeysApi:
|
|
907
841
|
response_types_map=_response_types_map,
|
908
842
|
).data
|
909
843
|
|
910
|
-
|
911
844
|
@validate_call
|
912
845
|
async def get_exchange_keys_with_http_info(
|
913
846
|
self,
|
@@ -917,9 +850,8 @@ class APIKeysApi:
|
|
917
850
|
None,
|
918
851
|
Annotated[StrictFloat, Field(gt=0)],
|
919
852
|
Tuple[
|
920
|
-
Annotated[StrictFloat, Field(gt=0)],
|
921
|
-
|
922
|
-
]
|
853
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
854
|
+
],
|
923
855
|
] = None,
|
924
856
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
925
857
|
_content_type: Optional[StrictStr] = None,
|
@@ -953,7 +885,7 @@ class APIKeysApi:
|
|
953
885
|
in the spec for a single request.
|
954
886
|
:type _host_index: int, optional
|
955
887
|
:return: Returns the result object.
|
956
|
-
"""
|
888
|
+
""" # noqa: E501
|
957
889
|
|
958
890
|
_param = self._get_exchange_keys_serialize(
|
959
891
|
limit=limit,
|
@@ -961,16 +893,15 @@ class APIKeysApi:
|
|
961
893
|
_request_auth=_request_auth,
|
962
894
|
_content_type=_content_type,
|
963
895
|
_headers=_headers,
|
964
|
-
_host_index=_host_index
|
896
|
+
_host_index=_host_index,
|
965
897
|
)
|
966
898
|
|
967
899
|
_response_types_map: Dict[str, Optional[str]] = {
|
968
|
-
|
969
|
-
|
900
|
+
"200": "List[ExchangeKeyModel]",
|
901
|
+
"422": "HTTPValidationError",
|
970
902
|
}
|
971
903
|
response_data = await self.api_client.call_api(
|
972
|
-
*_param,
|
973
|
-
_request_timeout=_request_timeout
|
904
|
+
*_param, _request_timeout=_request_timeout
|
974
905
|
)
|
975
906
|
await response_data.read()
|
976
907
|
return self.api_client.response_deserialize(
|
@@ -978,7 +909,6 @@ class APIKeysApi:
|
|
978
909
|
response_types_map=_response_types_map,
|
979
910
|
)
|
980
911
|
|
981
|
-
|
982
912
|
@validate_call
|
983
913
|
async def get_exchange_keys_without_preload_content(
|
984
914
|
self,
|
@@ -988,9 +918,8 @@ class APIKeysApi:
|
|
988
918
|
None,
|
989
919
|
Annotated[StrictFloat, Field(gt=0)],
|
990
920
|
Tuple[
|
991
|
-
Annotated[StrictFloat, Field(gt=0)],
|
992
|
-
|
993
|
-
]
|
921
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
922
|
+
],
|
994
923
|
] = None,
|
995
924
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
996
925
|
_content_type: Optional[StrictStr] = None,
|
@@ -1024,7 +953,7 @@ class APIKeysApi:
|
|
1024
953
|
in the spec for a single request.
|
1025
954
|
:type _host_index: int, optional
|
1026
955
|
:return: Returns the result object.
|
1027
|
-
"""
|
956
|
+
""" # noqa: E501
|
1028
957
|
|
1029
958
|
_param = self._get_exchange_keys_serialize(
|
1030
959
|
limit=limit,
|
@@ -1032,20 +961,18 @@ class APIKeysApi:
|
|
1032
961
|
_request_auth=_request_auth,
|
1033
962
|
_content_type=_content_type,
|
1034
963
|
_headers=_headers,
|
1035
|
-
_host_index=_host_index
|
964
|
+
_host_index=_host_index,
|
1036
965
|
)
|
1037
966
|
|
1038
967
|
_response_types_map: Dict[str, Optional[str]] = {
|
1039
|
-
|
1040
|
-
|
968
|
+
"200": "List[ExchangeKeyModel]",
|
969
|
+
"422": "HTTPValidationError",
|
1041
970
|
}
|
1042
971
|
response_data = await self.api_client.call_api(
|
1043
|
-
*_param,
|
1044
|
-
_request_timeout=_request_timeout
|
972
|
+
*_param, _request_timeout=_request_timeout
|
1045
973
|
)
|
1046
974
|
return response_data.response
|
1047
975
|
|
1048
|
-
|
1049
976
|
def _get_exchange_keys_serialize(
|
1050
977
|
self,
|
1051
978
|
limit,
|
@@ -1058,8 +985,7 @@ class APIKeysApi:
|
|
1058
985
|
|
1059
986
|
_host = None
|
1060
987
|
|
1061
|
-
_collection_formats: Dict[str, str] = {
|
1062
|
-
}
|
988
|
+
_collection_formats: Dict[str, str] = {}
|
1063
989
|
|
1064
990
|
_path_params: Dict[str, str] = {}
|
1065
991
|
_query_params: List[Tuple[str, str]] = []
|
@@ -1073,36 +999,29 @@ class APIKeysApi:
|
|
1073
999
|
# process the path parameters
|
1074
1000
|
# process the query parameters
|
1075
1001
|
if limit is not None:
|
1076
|
-
|
1077
|
-
_query_params.append((
|
1078
|
-
|
1002
|
+
|
1003
|
+
_query_params.append(("limit", limit))
|
1004
|
+
|
1079
1005
|
if offset is not None:
|
1080
|
-
|
1081
|
-
_query_params.append((
|
1082
|
-
|
1006
|
+
|
1007
|
+
_query_params.append(("offset", offset))
|
1008
|
+
|
1083
1009
|
# process the header parameters
|
1084
1010
|
# process the form parameters
|
1085
1011
|
# process the body parameter
|
1086
1012
|
|
1087
|
-
|
1088
1013
|
# set the HTTP header `Accept`
|
1089
|
-
if
|
1090
|
-
_header_params[
|
1091
|
-
[
|
1092
|
-
'application/json'
|
1093
|
-
]
|
1014
|
+
if "Accept" not in _header_params:
|
1015
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
1016
|
+
["application/json"]
|
1094
1017
|
)
|
1095
1018
|
|
1096
|
-
|
1097
1019
|
# authentication setting
|
1098
|
-
_auth_settings: List[str] = [
|
1099
|
-
'APIKeyHeader',
|
1100
|
-
'HTTPBearer'
|
1101
|
-
]
|
1020
|
+
_auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
|
1102
1021
|
|
1103
1022
|
return self.api_client.param_serialize(
|
1104
|
-
method=
|
1105
|
-
resource_path=
|
1023
|
+
method="GET",
|
1024
|
+
resource_path="/api-keys",
|
1106
1025
|
path_params=_path_params,
|
1107
1026
|
query_params=_query_params,
|
1108
1027
|
header_params=_header_params,
|
@@ -1112,12 +1031,9 @@ class APIKeysApi:
|
|
1112
1031
|
auth_settings=_auth_settings,
|
1113
1032
|
collection_formats=_collection_formats,
|
1114
1033
|
_host=_host,
|
1115
|
-
_request_auth=_request_auth
|
1034
|
+
_request_auth=_request_auth,
|
1116
1035
|
)
|
1117
1036
|
|
1118
|
-
|
1119
|
-
|
1120
|
-
|
1121
1037
|
@validate_call
|
1122
1038
|
async def update_exchange_key(
|
1123
1039
|
self,
|
@@ -1127,9 +1043,8 @@ class APIKeysApi:
|
|
1127
1043
|
None,
|
1128
1044
|
Annotated[StrictFloat, Field(gt=0)],
|
1129
1045
|
Tuple[
|
1130
|
-
Annotated[StrictFloat, Field(gt=0)],
|
1131
|
-
|
1132
|
-
]
|
1046
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1047
|
+
],
|
1133
1048
|
] = None,
|
1134
1049
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1135
1050
|
_content_type: Optional[StrictStr] = None,
|
@@ -1163,7 +1078,7 @@ class APIKeysApi:
|
|
1163
1078
|
in the spec for a single request.
|
1164
1079
|
:type _host_index: int, optional
|
1165
1080
|
:return: Returns the result object.
|
1166
|
-
"""
|
1081
|
+
""" # noqa: E501
|
1167
1082
|
|
1168
1083
|
_param = self._update_exchange_key_serialize(
|
1169
1084
|
id=id,
|
@@ -1171,16 +1086,15 @@ class APIKeysApi:
|
|
1171
1086
|
_request_auth=_request_auth,
|
1172
1087
|
_content_type=_content_type,
|
1173
1088
|
_headers=_headers,
|
1174
|
-
_host_index=_host_index
|
1089
|
+
_host_index=_host_index,
|
1175
1090
|
)
|
1176
1091
|
|
1177
1092
|
_response_types_map: Dict[str, Optional[str]] = {
|
1178
|
-
|
1179
|
-
|
1093
|
+
"200": "object",
|
1094
|
+
"422": "HTTPValidationError",
|
1180
1095
|
}
|
1181
1096
|
response_data = await self.api_client.call_api(
|
1182
|
-
*_param,
|
1183
|
-
_request_timeout=_request_timeout
|
1097
|
+
*_param, _request_timeout=_request_timeout
|
1184
1098
|
)
|
1185
1099
|
await response_data.read()
|
1186
1100
|
return self.api_client.response_deserialize(
|
@@ -1188,7 +1102,6 @@ class APIKeysApi:
|
|
1188
1102
|
response_types_map=_response_types_map,
|
1189
1103
|
).data
|
1190
1104
|
|
1191
|
-
|
1192
1105
|
@validate_call
|
1193
1106
|
async def update_exchange_key_with_http_info(
|
1194
1107
|
self,
|
@@ -1198,9 +1111,8 @@ class APIKeysApi:
|
|
1198
1111
|
None,
|
1199
1112
|
Annotated[StrictFloat, Field(gt=0)],
|
1200
1113
|
Tuple[
|
1201
|
-
Annotated[StrictFloat, Field(gt=0)],
|
1202
|
-
|
1203
|
-
]
|
1114
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1115
|
+
],
|
1204
1116
|
] = None,
|
1205
1117
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1206
1118
|
_content_type: Optional[StrictStr] = None,
|
@@ -1234,7 +1146,7 @@ class APIKeysApi:
|
|
1234
1146
|
in the spec for a single request.
|
1235
1147
|
:type _host_index: int, optional
|
1236
1148
|
:return: Returns the result object.
|
1237
|
-
"""
|
1149
|
+
""" # noqa: E501
|
1238
1150
|
|
1239
1151
|
_param = self._update_exchange_key_serialize(
|
1240
1152
|
id=id,
|
@@ -1242,16 +1154,15 @@ class APIKeysApi:
|
|
1242
1154
|
_request_auth=_request_auth,
|
1243
1155
|
_content_type=_content_type,
|
1244
1156
|
_headers=_headers,
|
1245
|
-
_host_index=_host_index
|
1157
|
+
_host_index=_host_index,
|
1246
1158
|
)
|
1247
1159
|
|
1248
1160
|
_response_types_map: Dict[str, Optional[str]] = {
|
1249
|
-
|
1250
|
-
|
1161
|
+
"200": "object",
|
1162
|
+
"422": "HTTPValidationError",
|
1251
1163
|
}
|
1252
1164
|
response_data = await self.api_client.call_api(
|
1253
|
-
*_param,
|
1254
|
-
_request_timeout=_request_timeout
|
1165
|
+
*_param, _request_timeout=_request_timeout
|
1255
1166
|
)
|
1256
1167
|
await response_data.read()
|
1257
1168
|
return self.api_client.response_deserialize(
|
@@ -1259,7 +1170,6 @@ class APIKeysApi:
|
|
1259
1170
|
response_types_map=_response_types_map,
|
1260
1171
|
)
|
1261
1172
|
|
1262
|
-
|
1263
1173
|
@validate_call
|
1264
1174
|
async def update_exchange_key_without_preload_content(
|
1265
1175
|
self,
|
@@ -1269,9 +1179,8 @@ class APIKeysApi:
|
|
1269
1179
|
None,
|
1270
1180
|
Annotated[StrictFloat, Field(gt=0)],
|
1271
1181
|
Tuple[
|
1272
|
-
Annotated[StrictFloat, Field(gt=0)],
|
1273
|
-
|
1274
|
-
]
|
1182
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1183
|
+
],
|
1275
1184
|
] = None,
|
1276
1185
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1277
1186
|
_content_type: Optional[StrictStr] = None,
|
@@ -1305,7 +1214,7 @@ class APIKeysApi:
|
|
1305
1214
|
in the spec for a single request.
|
1306
1215
|
:type _host_index: int, optional
|
1307
1216
|
:return: Returns the result object.
|
1308
|
-
"""
|
1217
|
+
""" # noqa: E501
|
1309
1218
|
|
1310
1219
|
_param = self._update_exchange_key_serialize(
|
1311
1220
|
id=id,
|
@@ -1313,20 +1222,18 @@ class APIKeysApi:
|
|
1313
1222
|
_request_auth=_request_auth,
|
1314
1223
|
_content_type=_content_type,
|
1315
1224
|
_headers=_headers,
|
1316
|
-
_host_index=_host_index
|
1225
|
+
_host_index=_host_index,
|
1317
1226
|
)
|
1318
1227
|
|
1319
1228
|
_response_types_map: Dict[str, Optional[str]] = {
|
1320
|
-
|
1321
|
-
|
1229
|
+
"200": "object",
|
1230
|
+
"422": "HTTPValidationError",
|
1322
1231
|
}
|
1323
1232
|
response_data = await self.api_client.call_api(
|
1324
|
-
*_param,
|
1325
|
-
_request_timeout=_request_timeout
|
1233
|
+
*_param, _request_timeout=_request_timeout
|
1326
1234
|
)
|
1327
1235
|
return response_data.response
|
1328
1236
|
|
1329
|
-
|
1330
1237
|
def _update_exchange_key_serialize(
|
1331
1238
|
self,
|
1332
1239
|
id,
|
@@ -1339,8 +1246,7 @@ class APIKeysApi:
|
|
1339
1246
|
|
1340
1247
|
_host = None
|
1341
1248
|
|
1342
|
-
_collection_formats: Dict[str, str] = {
|
1343
|
-
}
|
1249
|
+
_collection_formats: Dict[str, str] = {}
|
1344
1250
|
|
1345
1251
|
_path_params: Dict[str, str] = {}
|
1346
1252
|
_query_params: List[Tuple[str, str]] = []
|
@@ -1353,7 +1259,7 @@ class APIKeysApi:
|
|
1353
1259
|
|
1354
1260
|
# process the path parameters
|
1355
1261
|
if id is not None:
|
1356
|
-
_path_params[
|
1262
|
+
_path_params["id"] = id
|
1357
1263
|
# process the query parameters
|
1358
1264
|
# process the header parameters
|
1359
1265
|
# process the form parameters
|
@@ -1361,38 +1267,28 @@ class APIKeysApi:
|
|
1361
1267
|
if exchange_key_model is not None:
|
1362
1268
|
_body_params = exchange_key_model
|
1363
1269
|
|
1364
|
-
|
1365
1270
|
# set the HTTP header `Accept`
|
1366
|
-
if
|
1367
|
-
_header_params[
|
1368
|
-
[
|
1369
|
-
'application/json'
|
1370
|
-
]
|
1271
|
+
if "Accept" not in _header_params:
|
1272
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
1273
|
+
["application/json"]
|
1371
1274
|
)
|
1372
1275
|
|
1373
1276
|
# set the HTTP header `Content-Type`
|
1374
1277
|
if _content_type:
|
1375
|
-
_header_params[
|
1278
|
+
_header_params["Content-Type"] = _content_type
|
1376
1279
|
else:
|
1377
|
-
_default_content_type = (
|
1378
|
-
|
1379
|
-
[
|
1380
|
-
'application/json'
|
1381
|
-
]
|
1382
|
-
)
|
1280
|
+
_default_content_type = self.api_client.select_header_content_type(
|
1281
|
+
["application/json"]
|
1383
1282
|
)
|
1384
1283
|
if _default_content_type is not None:
|
1385
|
-
_header_params[
|
1284
|
+
_header_params["Content-Type"] = _default_content_type
|
1386
1285
|
|
1387
1286
|
# authentication setting
|
1388
|
-
_auth_settings: List[str] = [
|
1389
|
-
'APIKeyHeader',
|
1390
|
-
'HTTPBearer'
|
1391
|
-
]
|
1287
|
+
_auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
|
1392
1288
|
|
1393
1289
|
return self.api_client.param_serialize(
|
1394
|
-
method=
|
1395
|
-
resource_path=
|
1290
|
+
method="PUT",
|
1291
|
+
resource_path="/api-keys/{id}",
|
1396
1292
|
path_params=_path_params,
|
1397
1293
|
query_params=_query_params,
|
1398
1294
|
header_params=_header_params,
|
@@ -1402,7 +1298,5 @@ class APIKeysApi:
|
|
1402
1298
|
auth_settings=_auth_settings,
|
1403
1299
|
collection_formats=_collection_formats,
|
1404
1300
|
_host=_host,
|
1405
|
-
_request_auth=_request_auth
|
1301
|
+
_request_auth=_request_auth,
|
1406
1302
|
)
|
1407
|
-
|
1408
|
-
|