crypticorn 2.4.5__py3-none-any.whl → 2.4.7__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/client.py +1 -1
- crypticorn/common/auth.py +7 -9
- crypticorn/common/errors.py +6 -1
- crypticorn/common/scopes.py +2 -1
- crypticorn/common/utils.py +15 -5
- crypticorn/klines/main.py +10 -5
- crypticorn/metrics/client/models/exchange_mapping.py +4 -2
- crypticorn/metrics/client/models/trading_status.py +1 -0
- crypticorn/metrics/main.py +5 -4
- crypticorn/pay/client/__init__.py +5 -4
- crypticorn/pay/client/api/payments_api.py +17 -17
- crypticorn/pay/client/api/products_api.py +49 -48
- crypticorn/pay/client/models/__init__.py +5 -4
- crypticorn/pay/client/models/payment.py +28 -147
- crypticorn/pay/client/models/product_create.py +120 -0
- crypticorn/pay/client/models/product_read.py +123 -0
- crypticorn/pay/client/models/product_sub_read.py +103 -0
- crypticorn/pay/client/models/product_update.py +142 -0
- crypticorn/trade/client/__init__.py +6 -8
- crypticorn/trade/client/api/__init__.py +1 -0
- crypticorn/trade/client/api/api_keys_api.py +273 -167
- crypticorn/trade/client/api/bots_api.py +226 -140
- crypticorn/trade/client/api/exchanges_api.py +51 -31
- crypticorn/trade/client/api/futures_trading_panel_api.py +272 -169
- crypticorn/trade/client/api/notifications_api.py +323 -200
- crypticorn/trade/client/api/orders_api.py +60 -40
- crypticorn/trade/client/api/status_api.py +49 -31
- crypticorn/trade/client/api/strategies_api.py +223 -137
- crypticorn/trade/client/api/trading_actions_api.py +170 -106
- crypticorn/trade/client/api_client.py +153 -111
- crypticorn/trade/client/api_response.py +3 -2
- crypticorn/trade/client/configuration.py +115 -128
- crypticorn/trade/client/exceptions.py +21 -25
- crypticorn/trade/client/models/__init__.py +6 -8
- crypticorn/trade/client/models/action_model.py +54 -108
- crypticorn/trade/client/models/api_error_identifier.py +72 -76
- crypticorn/trade/client/models/api_error_level.py +11 -9
- crypticorn/trade/client/models/api_error_type.py +11 -9
- crypticorn/trade/client/models/bot_model.py +36 -57
- crypticorn/trade/client/models/bot_status.py +11 -9
- crypticorn/trade/client/models/exchange.py +9 -7
- crypticorn/trade/client/models/exchange_key_model.py +34 -44
- crypticorn/trade/client/models/execution_ids.py +18 -18
- crypticorn/trade/client/models/futures_balance.py +27 -43
- crypticorn/trade/client/models/futures_trading_action.py +50 -102
- crypticorn/trade/client/models/http_validation_error.py +15 -19
- crypticorn/trade/client/models/margin_mode.py +9 -7
- crypticorn/trade/client/models/market_type.py +9 -7
- crypticorn/trade/client/models/notification_model.py +32 -52
- crypticorn/trade/client/models/order_model.py +72 -112
- crypticorn/trade/client/models/order_status.py +12 -10
- crypticorn/trade/client/models/post_futures_action.py +16 -20
- crypticorn/trade/client/models/strategy_exchange_info.py +16 -15
- crypticorn/trade/client/models/strategy_model_input.py +33 -61
- crypticorn/trade/client/models/strategy_model_output.py +33 -61
- crypticorn/trade/client/models/tpsl.py +25 -39
- crypticorn/trade/client/models/trading_action_type.py +11 -9
- crypticorn/trade/client/models/validation_error.py +18 -24
- crypticorn/trade/client/models/validation_error_loc_inner.py +16 -37
- crypticorn/trade/client/rest.py +38 -23
- {crypticorn-2.4.5.dist-info → crypticorn-2.4.7.dist-info}/METADATA +13 -2
- {crypticorn-2.4.5.dist-info → crypticorn-2.4.7.dist-info}/RECORD +65 -61
- {crypticorn-2.4.5.dist-info → crypticorn-2.4.7.dist-info}/WHEEL +0 -0
- {crypticorn-2.4.5.dist-info → crypticorn-2.4.7.dist-info}/entry_points.txt +0 -0
- {crypticorn-2.4.5.dist-info → crypticorn-2.4.7.dist-info}/top_level.txt +0 -0
@@ -1,14 +1,14 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
|
3
3
|
"""
|
4
|
-
Trading API
|
4
|
+
Trading API
|
5
5
|
|
6
|
-
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 0.1.0
|
9
|
-
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
8
|
+
The version of the OpenAPI document: 0.1.0
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
10
|
|
11
|
-
Do not edit the class manually.
|
11
|
+
Do not edit the class manually.
|
12
12
|
""" # noqa: E501
|
13
13
|
|
14
14
|
import warnings
|
@@ -37,6 +37,7 @@ class FuturesTradingPanelApi:
|
|
37
37
|
api_client = ApiClient.get_default()
|
38
38
|
self.api_client = api_client
|
39
39
|
|
40
|
+
|
40
41
|
@validate_call
|
41
42
|
async def cancel_futures_order(
|
42
43
|
self,
|
@@ -47,8 +48,9 @@ class FuturesTradingPanelApi:
|
|
47
48
|
None,
|
48
49
|
Annotated[StrictFloat, Field(gt=0)],
|
49
50
|
Tuple[
|
50
|
-
Annotated[StrictFloat, Field(gt=0)],
|
51
|
-
|
51
|
+
Annotated[StrictFloat, Field(gt=0)],
|
52
|
+
Annotated[StrictFloat, Field(gt=0)]
|
53
|
+
]
|
52
54
|
] = None,
|
53
55
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
54
56
|
_content_type: Optional[StrictStr] = None,
|
@@ -84,7 +86,7 @@ class FuturesTradingPanelApi:
|
|
84
86
|
in the spec for a single request.
|
85
87
|
:type _host_index: int, optional
|
86
88
|
:return: Returns the result object.
|
87
|
-
"""
|
89
|
+
""" # noqa: E501
|
88
90
|
|
89
91
|
_param = self._cancel_futures_order_serialize(
|
90
92
|
order_id=order_id,
|
@@ -93,15 +95,16 @@ class FuturesTradingPanelApi:
|
|
93
95
|
_request_auth=_request_auth,
|
94
96
|
_content_type=_content_type,
|
95
97
|
_headers=_headers,
|
96
|
-
_host_index=_host_index
|
98
|
+
_host_index=_host_index
|
97
99
|
)
|
98
100
|
|
99
101
|
_response_types_map: Dict[str, Optional[str]] = {
|
100
|
-
|
101
|
-
|
102
|
+
'200': "object",
|
103
|
+
'422': "HTTPValidationError",
|
102
104
|
}
|
103
105
|
response_data = await self.api_client.call_api(
|
104
|
-
*_param,
|
106
|
+
*_param,
|
107
|
+
_request_timeout=_request_timeout
|
105
108
|
)
|
106
109
|
await response_data.read()
|
107
110
|
return self.api_client.response_deserialize(
|
@@ -109,6 +112,7 @@ class FuturesTradingPanelApi:
|
|
109
112
|
response_types_map=_response_types_map,
|
110
113
|
).data
|
111
114
|
|
115
|
+
|
112
116
|
@validate_call
|
113
117
|
async def cancel_futures_order_with_http_info(
|
114
118
|
self,
|
@@ -119,8 +123,9 @@ class FuturesTradingPanelApi:
|
|
119
123
|
None,
|
120
124
|
Annotated[StrictFloat, Field(gt=0)],
|
121
125
|
Tuple[
|
122
|
-
Annotated[StrictFloat, Field(gt=0)],
|
123
|
-
|
126
|
+
Annotated[StrictFloat, Field(gt=0)],
|
127
|
+
Annotated[StrictFloat, Field(gt=0)]
|
128
|
+
]
|
124
129
|
] = None,
|
125
130
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
126
131
|
_content_type: Optional[StrictStr] = None,
|
@@ -156,7 +161,7 @@ class FuturesTradingPanelApi:
|
|
156
161
|
in the spec for a single request.
|
157
162
|
:type _host_index: int, optional
|
158
163
|
:return: Returns the result object.
|
159
|
-
"""
|
164
|
+
""" # noqa: E501
|
160
165
|
|
161
166
|
_param = self._cancel_futures_order_serialize(
|
162
167
|
order_id=order_id,
|
@@ -165,15 +170,16 @@ class FuturesTradingPanelApi:
|
|
165
170
|
_request_auth=_request_auth,
|
166
171
|
_content_type=_content_type,
|
167
172
|
_headers=_headers,
|
168
|
-
_host_index=_host_index
|
173
|
+
_host_index=_host_index
|
169
174
|
)
|
170
175
|
|
171
176
|
_response_types_map: Dict[str, Optional[str]] = {
|
172
|
-
|
173
|
-
|
177
|
+
'200': "object",
|
178
|
+
'422': "HTTPValidationError",
|
174
179
|
}
|
175
180
|
response_data = await self.api_client.call_api(
|
176
|
-
*_param,
|
181
|
+
*_param,
|
182
|
+
_request_timeout=_request_timeout
|
177
183
|
)
|
178
184
|
await response_data.read()
|
179
185
|
return self.api_client.response_deserialize(
|
@@ -181,6 +187,7 @@ class FuturesTradingPanelApi:
|
|
181
187
|
response_types_map=_response_types_map,
|
182
188
|
)
|
183
189
|
|
190
|
+
|
184
191
|
@validate_call
|
185
192
|
async def cancel_futures_order_without_preload_content(
|
186
193
|
self,
|
@@ -191,8 +198,9 @@ class FuturesTradingPanelApi:
|
|
191
198
|
None,
|
192
199
|
Annotated[StrictFloat, Field(gt=0)],
|
193
200
|
Tuple[
|
194
|
-
Annotated[StrictFloat, Field(gt=0)],
|
195
|
-
|
201
|
+
Annotated[StrictFloat, Field(gt=0)],
|
202
|
+
Annotated[StrictFloat, Field(gt=0)]
|
203
|
+
]
|
196
204
|
] = None,
|
197
205
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
198
206
|
_content_type: Optional[StrictStr] = None,
|
@@ -228,7 +236,7 @@ class FuturesTradingPanelApi:
|
|
228
236
|
in the spec for a single request.
|
229
237
|
:type _host_index: int, optional
|
230
238
|
:return: Returns the result object.
|
231
|
-
"""
|
239
|
+
""" # noqa: E501
|
232
240
|
|
233
241
|
_param = self._cancel_futures_order_serialize(
|
234
242
|
order_id=order_id,
|
@@ -237,18 +245,20 @@ class FuturesTradingPanelApi:
|
|
237
245
|
_request_auth=_request_auth,
|
238
246
|
_content_type=_content_type,
|
239
247
|
_headers=_headers,
|
240
|
-
_host_index=_host_index
|
248
|
+
_host_index=_host_index
|
241
249
|
)
|
242
250
|
|
243
251
|
_response_types_map: Dict[str, Optional[str]] = {
|
244
|
-
|
245
|
-
|
252
|
+
'200': "object",
|
253
|
+
'422': "HTTPValidationError",
|
246
254
|
}
|
247
255
|
response_data = await self.api_client.call_api(
|
248
|
-
*_param,
|
256
|
+
*_param,
|
257
|
+
_request_timeout=_request_timeout
|
249
258
|
)
|
250
259
|
return response_data.response
|
251
260
|
|
261
|
+
|
252
262
|
def _cancel_futures_order_serialize(
|
253
263
|
self,
|
254
264
|
order_id,
|
@@ -262,7 +272,8 @@ class FuturesTradingPanelApi:
|
|
262
272
|
|
263
273
|
_host = None
|
264
274
|
|
265
|
-
_collection_formats: Dict[str, str] = {
|
275
|
+
_collection_formats: Dict[str, str] = {
|
276
|
+
}
|
266
277
|
|
267
278
|
_path_params: Dict[str, str] = {}
|
268
279
|
_query_params: List[Tuple[str, str]] = []
|
@@ -276,33 +287,40 @@ class FuturesTradingPanelApi:
|
|
276
287
|
# process the path parameters
|
277
288
|
# process the query parameters
|
278
289
|
if order_id is not None:
|
279
|
-
|
280
|
-
_query_params.append((
|
281
|
-
|
290
|
+
|
291
|
+
_query_params.append(('orderId', order_id))
|
292
|
+
|
282
293
|
if symbol is not None:
|
283
|
-
|
284
|
-
_query_params.append((
|
285
|
-
|
294
|
+
|
295
|
+
_query_params.append(('symbol', symbol))
|
296
|
+
|
286
297
|
if key is not None:
|
287
|
-
|
288
|
-
_query_params.append((
|
289
|
-
|
298
|
+
|
299
|
+
_query_params.append(('key', key))
|
300
|
+
|
290
301
|
# process the header parameters
|
291
302
|
# process the form parameters
|
292
303
|
# process the body parameter
|
293
304
|
|
305
|
+
|
294
306
|
# set the HTTP header `Accept`
|
295
|
-
if
|
296
|
-
_header_params[
|
297
|
-
[
|
307
|
+
if 'Accept' not in _header_params:
|
308
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
309
|
+
[
|
310
|
+
'application/json'
|
311
|
+
]
|
298
312
|
)
|
299
313
|
|
314
|
+
|
300
315
|
# authentication setting
|
301
|
-
_auth_settings: List[str] = [
|
316
|
+
_auth_settings: List[str] = [
|
317
|
+
'APIKeyHeader',
|
318
|
+
'HTTPBearer'
|
319
|
+
]
|
302
320
|
|
303
321
|
return self.api_client.param_serialize(
|
304
|
-
method=
|
305
|
-
resource_path=
|
322
|
+
method='DELETE',
|
323
|
+
resource_path='/futures/orders',
|
306
324
|
path_params=_path_params,
|
307
325
|
query_params=_query_params,
|
308
326
|
header_params=_header_params,
|
@@ -312,9 +330,12 @@ class FuturesTradingPanelApi:
|
|
312
330
|
auth_settings=_auth_settings,
|
313
331
|
collection_formats=_collection_formats,
|
314
332
|
_host=_host,
|
315
|
-
_request_auth=_request_auth
|
333
|
+
_request_auth=_request_auth
|
316
334
|
)
|
317
335
|
|
336
|
+
|
337
|
+
|
338
|
+
|
318
339
|
@validate_call
|
319
340
|
async def get_futures_balance(
|
320
341
|
self,
|
@@ -322,8 +343,9 @@ class FuturesTradingPanelApi:
|
|
322
343
|
None,
|
323
344
|
Annotated[StrictFloat, Field(gt=0)],
|
324
345
|
Tuple[
|
325
|
-
Annotated[StrictFloat, Field(gt=0)],
|
326
|
-
|
346
|
+
Annotated[StrictFloat, Field(gt=0)],
|
347
|
+
Annotated[StrictFloat, Field(gt=0)]
|
348
|
+
]
|
327
349
|
] = None,
|
328
350
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
329
351
|
_content_type: Optional[StrictStr] = None,
|
@@ -353,20 +375,21 @@ class FuturesTradingPanelApi:
|
|
353
375
|
in the spec for a single request.
|
354
376
|
:type _host_index: int, optional
|
355
377
|
:return: Returns the result object.
|
356
|
-
"""
|
378
|
+
""" # noqa: E501
|
357
379
|
|
358
380
|
_param = self._get_futures_balance_serialize(
|
359
381
|
_request_auth=_request_auth,
|
360
382
|
_content_type=_content_type,
|
361
383
|
_headers=_headers,
|
362
|
-
_host_index=_host_index
|
384
|
+
_host_index=_host_index
|
363
385
|
)
|
364
386
|
|
365
387
|
_response_types_map: Dict[str, Optional[str]] = {
|
366
|
-
|
388
|
+
'200': "List[FuturesBalance]",
|
367
389
|
}
|
368
390
|
response_data = await self.api_client.call_api(
|
369
|
-
*_param,
|
391
|
+
*_param,
|
392
|
+
_request_timeout=_request_timeout
|
370
393
|
)
|
371
394
|
await response_data.read()
|
372
395
|
return self.api_client.response_deserialize(
|
@@ -374,6 +397,7 @@ class FuturesTradingPanelApi:
|
|
374
397
|
response_types_map=_response_types_map,
|
375
398
|
).data
|
376
399
|
|
400
|
+
|
377
401
|
@validate_call
|
378
402
|
async def get_futures_balance_with_http_info(
|
379
403
|
self,
|
@@ -381,8 +405,9 @@ class FuturesTradingPanelApi:
|
|
381
405
|
None,
|
382
406
|
Annotated[StrictFloat, Field(gt=0)],
|
383
407
|
Tuple[
|
384
|
-
Annotated[StrictFloat, Field(gt=0)],
|
385
|
-
|
408
|
+
Annotated[StrictFloat, Field(gt=0)],
|
409
|
+
Annotated[StrictFloat, Field(gt=0)]
|
410
|
+
]
|
386
411
|
] = None,
|
387
412
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
388
413
|
_content_type: Optional[StrictStr] = None,
|
@@ -412,20 +437,21 @@ class FuturesTradingPanelApi:
|
|
412
437
|
in the spec for a single request.
|
413
438
|
:type _host_index: int, optional
|
414
439
|
:return: Returns the result object.
|
415
|
-
"""
|
440
|
+
""" # noqa: E501
|
416
441
|
|
417
442
|
_param = self._get_futures_balance_serialize(
|
418
443
|
_request_auth=_request_auth,
|
419
444
|
_content_type=_content_type,
|
420
445
|
_headers=_headers,
|
421
|
-
_host_index=_host_index
|
446
|
+
_host_index=_host_index
|
422
447
|
)
|
423
448
|
|
424
449
|
_response_types_map: Dict[str, Optional[str]] = {
|
425
|
-
|
450
|
+
'200': "List[FuturesBalance]",
|
426
451
|
}
|
427
452
|
response_data = await self.api_client.call_api(
|
428
|
-
*_param,
|
453
|
+
*_param,
|
454
|
+
_request_timeout=_request_timeout
|
429
455
|
)
|
430
456
|
await response_data.read()
|
431
457
|
return self.api_client.response_deserialize(
|
@@ -433,6 +459,7 @@ class FuturesTradingPanelApi:
|
|
433
459
|
response_types_map=_response_types_map,
|
434
460
|
)
|
435
461
|
|
462
|
+
|
436
463
|
@validate_call
|
437
464
|
async def get_futures_balance_without_preload_content(
|
438
465
|
self,
|
@@ -440,8 +467,9 @@ class FuturesTradingPanelApi:
|
|
440
467
|
None,
|
441
468
|
Annotated[StrictFloat, Field(gt=0)],
|
442
469
|
Tuple[
|
443
|
-
Annotated[StrictFloat, Field(gt=0)],
|
444
|
-
|
470
|
+
Annotated[StrictFloat, Field(gt=0)],
|
471
|
+
Annotated[StrictFloat, Field(gt=0)]
|
472
|
+
]
|
445
473
|
] = None,
|
446
474
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
447
475
|
_content_type: Optional[StrictStr] = None,
|
@@ -471,23 +499,25 @@ class FuturesTradingPanelApi:
|
|
471
499
|
in the spec for a single request.
|
472
500
|
:type _host_index: int, optional
|
473
501
|
:return: Returns the result object.
|
474
|
-
"""
|
502
|
+
""" # noqa: E501
|
475
503
|
|
476
504
|
_param = self._get_futures_balance_serialize(
|
477
505
|
_request_auth=_request_auth,
|
478
506
|
_content_type=_content_type,
|
479
507
|
_headers=_headers,
|
480
|
-
_host_index=_host_index
|
508
|
+
_host_index=_host_index
|
481
509
|
)
|
482
510
|
|
483
511
|
_response_types_map: Dict[str, Optional[str]] = {
|
484
|
-
|
512
|
+
'200': "List[FuturesBalance]",
|
485
513
|
}
|
486
514
|
response_data = await self.api_client.call_api(
|
487
|
-
*_param,
|
515
|
+
*_param,
|
516
|
+
_request_timeout=_request_timeout
|
488
517
|
)
|
489
518
|
return response_data.response
|
490
519
|
|
520
|
+
|
491
521
|
def _get_futures_balance_serialize(
|
492
522
|
self,
|
493
523
|
_request_auth,
|
@@ -498,7 +528,8 @@ class FuturesTradingPanelApi:
|
|
498
528
|
|
499
529
|
_host = None
|
500
530
|
|
501
|
-
_collection_formats: Dict[str, str] = {
|
531
|
+
_collection_formats: Dict[str, str] = {
|
532
|
+
}
|
502
533
|
|
503
534
|
_path_params: Dict[str, str] = {}
|
504
535
|
_query_params: List[Tuple[str, str]] = []
|
@@ -515,18 +546,25 @@ class FuturesTradingPanelApi:
|
|
515
546
|
# process the form parameters
|
516
547
|
# process the body parameter
|
517
548
|
|
549
|
+
|
518
550
|
# set the HTTP header `Accept`
|
519
|
-
if
|
520
|
-
_header_params[
|
521
|
-
[
|
551
|
+
if 'Accept' not in _header_params:
|
552
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
553
|
+
[
|
554
|
+
'application/json'
|
555
|
+
]
|
522
556
|
)
|
523
557
|
|
558
|
+
|
524
559
|
# authentication setting
|
525
|
-
_auth_settings: List[str] = [
|
560
|
+
_auth_settings: List[str] = [
|
561
|
+
'APIKeyHeader',
|
562
|
+
'HTTPBearer'
|
563
|
+
]
|
526
564
|
|
527
565
|
return self.api_client.param_serialize(
|
528
|
-
method=
|
529
|
-
resource_path=
|
566
|
+
method='GET',
|
567
|
+
resource_path='/futures/balance',
|
530
568
|
path_params=_path_params,
|
531
569
|
query_params=_query_params,
|
532
570
|
header_params=_header_params,
|
@@ -536,9 +574,12 @@ class FuturesTradingPanelApi:
|
|
536
574
|
auth_settings=_auth_settings,
|
537
575
|
collection_formats=_collection_formats,
|
538
576
|
_host=_host,
|
539
|
-
_request_auth=_request_auth
|
577
|
+
_request_auth=_request_auth
|
540
578
|
)
|
541
579
|
|
580
|
+
|
581
|
+
|
582
|
+
|
542
583
|
@validate_call
|
543
584
|
async def get_futures_ledger(
|
544
585
|
self,
|
@@ -547,8 +588,9 @@ class FuturesTradingPanelApi:
|
|
547
588
|
None,
|
548
589
|
Annotated[StrictFloat, Field(gt=0)],
|
549
590
|
Tuple[
|
550
|
-
Annotated[StrictFloat, Field(gt=0)],
|
551
|
-
|
591
|
+
Annotated[StrictFloat, Field(gt=0)],
|
592
|
+
Annotated[StrictFloat, Field(gt=0)]
|
593
|
+
]
|
552
594
|
] = None,
|
553
595
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
554
596
|
_content_type: Optional[StrictStr] = None,
|
@@ -580,22 +622,23 @@ class FuturesTradingPanelApi:
|
|
580
622
|
in the spec for a single request.
|
581
623
|
:type _host_index: int, optional
|
582
624
|
:return: Returns the result object.
|
583
|
-
"""
|
625
|
+
""" # noqa: E501
|
584
626
|
|
585
627
|
_param = self._get_futures_ledger_serialize(
|
586
628
|
key=key,
|
587
629
|
_request_auth=_request_auth,
|
588
630
|
_content_type=_content_type,
|
589
631
|
_headers=_headers,
|
590
|
-
_host_index=_host_index
|
632
|
+
_host_index=_host_index
|
591
633
|
)
|
592
634
|
|
593
635
|
_response_types_map: Dict[str, Optional[str]] = {
|
594
|
-
|
595
|
-
|
636
|
+
'200': "object",
|
637
|
+
'422': "HTTPValidationError",
|
596
638
|
}
|
597
639
|
response_data = await self.api_client.call_api(
|
598
|
-
*_param,
|
640
|
+
*_param,
|
641
|
+
_request_timeout=_request_timeout
|
599
642
|
)
|
600
643
|
await response_data.read()
|
601
644
|
return self.api_client.response_deserialize(
|
@@ -603,6 +646,7 @@ class FuturesTradingPanelApi:
|
|
603
646
|
response_types_map=_response_types_map,
|
604
647
|
).data
|
605
648
|
|
649
|
+
|
606
650
|
@validate_call
|
607
651
|
async def get_futures_ledger_with_http_info(
|
608
652
|
self,
|
@@ -611,8 +655,9 @@ class FuturesTradingPanelApi:
|
|
611
655
|
None,
|
612
656
|
Annotated[StrictFloat, Field(gt=0)],
|
613
657
|
Tuple[
|
614
|
-
Annotated[StrictFloat, Field(gt=0)],
|
615
|
-
|
658
|
+
Annotated[StrictFloat, Field(gt=0)],
|
659
|
+
Annotated[StrictFloat, Field(gt=0)]
|
660
|
+
]
|
616
661
|
] = None,
|
617
662
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
618
663
|
_content_type: Optional[StrictStr] = None,
|
@@ -644,22 +689,23 @@ class FuturesTradingPanelApi:
|
|
644
689
|
in the spec for a single request.
|
645
690
|
:type _host_index: int, optional
|
646
691
|
:return: Returns the result object.
|
647
|
-
"""
|
692
|
+
""" # noqa: E501
|
648
693
|
|
649
694
|
_param = self._get_futures_ledger_serialize(
|
650
695
|
key=key,
|
651
696
|
_request_auth=_request_auth,
|
652
697
|
_content_type=_content_type,
|
653
698
|
_headers=_headers,
|
654
|
-
_host_index=_host_index
|
699
|
+
_host_index=_host_index
|
655
700
|
)
|
656
701
|
|
657
702
|
_response_types_map: Dict[str, Optional[str]] = {
|
658
|
-
|
659
|
-
|
703
|
+
'200': "object",
|
704
|
+
'422': "HTTPValidationError",
|
660
705
|
}
|
661
706
|
response_data = await self.api_client.call_api(
|
662
|
-
*_param,
|
707
|
+
*_param,
|
708
|
+
_request_timeout=_request_timeout
|
663
709
|
)
|
664
710
|
await response_data.read()
|
665
711
|
return self.api_client.response_deserialize(
|
@@ -667,6 +713,7 @@ class FuturesTradingPanelApi:
|
|
667
713
|
response_types_map=_response_types_map,
|
668
714
|
)
|
669
715
|
|
716
|
+
|
670
717
|
@validate_call
|
671
718
|
async def get_futures_ledger_without_preload_content(
|
672
719
|
self,
|
@@ -675,8 +722,9 @@ class FuturesTradingPanelApi:
|
|
675
722
|
None,
|
676
723
|
Annotated[StrictFloat, Field(gt=0)],
|
677
724
|
Tuple[
|
678
|
-
Annotated[StrictFloat, Field(gt=0)],
|
679
|
-
|
725
|
+
Annotated[StrictFloat, Field(gt=0)],
|
726
|
+
Annotated[StrictFloat, Field(gt=0)]
|
727
|
+
]
|
680
728
|
] = None,
|
681
729
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
682
730
|
_content_type: Optional[StrictStr] = None,
|
@@ -708,25 +756,27 @@ class FuturesTradingPanelApi:
|
|
708
756
|
in the spec for a single request.
|
709
757
|
:type _host_index: int, optional
|
710
758
|
:return: Returns the result object.
|
711
|
-
"""
|
759
|
+
""" # noqa: E501
|
712
760
|
|
713
761
|
_param = self._get_futures_ledger_serialize(
|
714
762
|
key=key,
|
715
763
|
_request_auth=_request_auth,
|
716
764
|
_content_type=_content_type,
|
717
765
|
_headers=_headers,
|
718
|
-
_host_index=_host_index
|
766
|
+
_host_index=_host_index
|
719
767
|
)
|
720
768
|
|
721
769
|
_response_types_map: Dict[str, Optional[str]] = {
|
722
|
-
|
723
|
-
|
770
|
+
'200': "object",
|
771
|
+
'422': "HTTPValidationError",
|
724
772
|
}
|
725
773
|
response_data = await self.api_client.call_api(
|
726
|
-
*_param,
|
774
|
+
*_param,
|
775
|
+
_request_timeout=_request_timeout
|
727
776
|
)
|
728
777
|
return response_data.response
|
729
778
|
|
779
|
+
|
730
780
|
def _get_futures_ledger_serialize(
|
731
781
|
self,
|
732
782
|
key,
|
@@ -738,7 +788,8 @@ class FuturesTradingPanelApi:
|
|
738
788
|
|
739
789
|
_host = None
|
740
790
|
|
741
|
-
_collection_formats: Dict[str, str] = {
|
791
|
+
_collection_formats: Dict[str, str] = {
|
792
|
+
}
|
742
793
|
|
743
794
|
_path_params: Dict[str, str] = {}
|
744
795
|
_query_params: List[Tuple[str, str]] = []
|
@@ -752,25 +803,32 @@ class FuturesTradingPanelApi:
|
|
752
803
|
# process the path parameters
|
753
804
|
# process the query parameters
|
754
805
|
if key is not None:
|
755
|
-
|
756
|
-
_query_params.append((
|
757
|
-
|
806
|
+
|
807
|
+
_query_params.append(('key', key))
|
808
|
+
|
758
809
|
# process the header parameters
|
759
810
|
# process the form parameters
|
760
811
|
# process the body parameter
|
761
812
|
|
813
|
+
|
762
814
|
# set the HTTP header `Accept`
|
763
|
-
if
|
764
|
-
_header_params[
|
765
|
-
[
|
815
|
+
if 'Accept' not in _header_params:
|
816
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
817
|
+
[
|
818
|
+
'application/json'
|
819
|
+
]
|
766
820
|
)
|
767
821
|
|
822
|
+
|
768
823
|
# authentication setting
|
769
|
-
_auth_settings: List[str] = [
|
824
|
+
_auth_settings: List[str] = [
|
825
|
+
'APIKeyHeader',
|
826
|
+
'HTTPBearer'
|
827
|
+
]
|
770
828
|
|
771
829
|
return self.api_client.param_serialize(
|
772
|
-
method=
|
773
|
-
resource_path=
|
830
|
+
method='GET',
|
831
|
+
resource_path='/futures/ledger',
|
774
832
|
path_params=_path_params,
|
775
833
|
query_params=_query_params,
|
776
834
|
header_params=_header_params,
|
@@ -780,9 +838,12 @@ class FuturesTradingPanelApi:
|
|
780
838
|
auth_settings=_auth_settings,
|
781
839
|
collection_formats=_collection_formats,
|
782
840
|
_host=_host,
|
783
|
-
_request_auth=_request_auth
|
841
|
+
_request_auth=_request_auth
|
784
842
|
)
|
785
843
|
|
844
|
+
|
845
|
+
|
846
|
+
|
786
847
|
@validate_call
|
787
848
|
async def get_historical_futures_orders(
|
788
849
|
self,
|
@@ -791,8 +852,9 @@ class FuturesTradingPanelApi:
|
|
791
852
|
None,
|
792
853
|
Annotated[StrictFloat, Field(gt=0)],
|
793
854
|
Tuple[
|
794
|
-
Annotated[StrictFloat, Field(gt=0)],
|
795
|
-
|
855
|
+
Annotated[StrictFloat, Field(gt=0)],
|
856
|
+
Annotated[StrictFloat, Field(gt=0)]
|
857
|
+
]
|
796
858
|
] = None,
|
797
859
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
798
860
|
_content_type: Optional[StrictStr] = None,
|
@@ -824,22 +886,23 @@ class FuturesTradingPanelApi:
|
|
824
886
|
in the spec for a single request.
|
825
887
|
:type _host_index: int, optional
|
826
888
|
:return: Returns the result object.
|
827
|
-
"""
|
889
|
+
""" # noqa: E501
|
828
890
|
|
829
891
|
_param = self._get_historical_futures_orders_serialize(
|
830
892
|
key=key,
|
831
893
|
_request_auth=_request_auth,
|
832
894
|
_content_type=_content_type,
|
833
895
|
_headers=_headers,
|
834
|
-
_host_index=_host_index
|
896
|
+
_host_index=_host_index
|
835
897
|
)
|
836
898
|
|
837
899
|
_response_types_map: Dict[str, Optional[str]] = {
|
838
|
-
|
839
|
-
|
900
|
+
'200': "object",
|
901
|
+
'422': "HTTPValidationError",
|
840
902
|
}
|
841
903
|
response_data = await self.api_client.call_api(
|
842
|
-
*_param,
|
904
|
+
*_param,
|
905
|
+
_request_timeout=_request_timeout
|
843
906
|
)
|
844
907
|
await response_data.read()
|
845
908
|
return self.api_client.response_deserialize(
|
@@ -847,6 +910,7 @@ class FuturesTradingPanelApi:
|
|
847
910
|
response_types_map=_response_types_map,
|
848
911
|
).data
|
849
912
|
|
913
|
+
|
850
914
|
@validate_call
|
851
915
|
async def get_historical_futures_orders_with_http_info(
|
852
916
|
self,
|
@@ -855,8 +919,9 @@ class FuturesTradingPanelApi:
|
|
855
919
|
None,
|
856
920
|
Annotated[StrictFloat, Field(gt=0)],
|
857
921
|
Tuple[
|
858
|
-
Annotated[StrictFloat, Field(gt=0)],
|
859
|
-
|
922
|
+
Annotated[StrictFloat, Field(gt=0)],
|
923
|
+
Annotated[StrictFloat, Field(gt=0)]
|
924
|
+
]
|
860
925
|
] = None,
|
861
926
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
862
927
|
_content_type: Optional[StrictStr] = None,
|
@@ -888,22 +953,23 @@ class FuturesTradingPanelApi:
|
|
888
953
|
in the spec for a single request.
|
889
954
|
:type _host_index: int, optional
|
890
955
|
:return: Returns the result object.
|
891
|
-
"""
|
956
|
+
""" # noqa: E501
|
892
957
|
|
893
958
|
_param = self._get_historical_futures_orders_serialize(
|
894
959
|
key=key,
|
895
960
|
_request_auth=_request_auth,
|
896
961
|
_content_type=_content_type,
|
897
962
|
_headers=_headers,
|
898
|
-
_host_index=_host_index
|
963
|
+
_host_index=_host_index
|
899
964
|
)
|
900
965
|
|
901
966
|
_response_types_map: Dict[str, Optional[str]] = {
|
902
|
-
|
903
|
-
|
967
|
+
'200': "object",
|
968
|
+
'422': "HTTPValidationError",
|
904
969
|
}
|
905
970
|
response_data = await self.api_client.call_api(
|
906
|
-
*_param,
|
971
|
+
*_param,
|
972
|
+
_request_timeout=_request_timeout
|
907
973
|
)
|
908
974
|
await response_data.read()
|
909
975
|
return self.api_client.response_deserialize(
|
@@ -911,6 +977,7 @@ class FuturesTradingPanelApi:
|
|
911
977
|
response_types_map=_response_types_map,
|
912
978
|
)
|
913
979
|
|
980
|
+
|
914
981
|
@validate_call
|
915
982
|
async def get_historical_futures_orders_without_preload_content(
|
916
983
|
self,
|
@@ -919,8 +986,9 @@ class FuturesTradingPanelApi:
|
|
919
986
|
None,
|
920
987
|
Annotated[StrictFloat, Field(gt=0)],
|
921
988
|
Tuple[
|
922
|
-
Annotated[StrictFloat, Field(gt=0)],
|
923
|
-
|
989
|
+
Annotated[StrictFloat, Field(gt=0)],
|
990
|
+
Annotated[StrictFloat, Field(gt=0)]
|
991
|
+
]
|
924
992
|
] = None,
|
925
993
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
926
994
|
_content_type: Optional[StrictStr] = None,
|
@@ -952,25 +1020,27 @@ class FuturesTradingPanelApi:
|
|
952
1020
|
in the spec for a single request.
|
953
1021
|
:type _host_index: int, optional
|
954
1022
|
:return: Returns the result object.
|
955
|
-
"""
|
1023
|
+
""" # noqa: E501
|
956
1024
|
|
957
1025
|
_param = self._get_historical_futures_orders_serialize(
|
958
1026
|
key=key,
|
959
1027
|
_request_auth=_request_auth,
|
960
1028
|
_content_type=_content_type,
|
961
1029
|
_headers=_headers,
|
962
|
-
_host_index=_host_index
|
1030
|
+
_host_index=_host_index
|
963
1031
|
)
|
964
1032
|
|
965
1033
|
_response_types_map: Dict[str, Optional[str]] = {
|
966
|
-
|
967
|
-
|
1034
|
+
'200': "object",
|
1035
|
+
'422': "HTTPValidationError",
|
968
1036
|
}
|
969
1037
|
response_data = await self.api_client.call_api(
|
970
|
-
*_param,
|
1038
|
+
*_param,
|
1039
|
+
_request_timeout=_request_timeout
|
971
1040
|
)
|
972
1041
|
return response_data.response
|
973
1042
|
|
1043
|
+
|
974
1044
|
def _get_historical_futures_orders_serialize(
|
975
1045
|
self,
|
976
1046
|
key,
|
@@ -982,7 +1052,8 @@ class FuturesTradingPanelApi:
|
|
982
1052
|
|
983
1053
|
_host = None
|
984
1054
|
|
985
|
-
_collection_formats: Dict[str, str] = {
|
1055
|
+
_collection_formats: Dict[str, str] = {
|
1056
|
+
}
|
986
1057
|
|
987
1058
|
_path_params: Dict[str, str] = {}
|
988
1059
|
_query_params: List[Tuple[str, str]] = []
|
@@ -996,25 +1067,32 @@ class FuturesTradingPanelApi:
|
|
996
1067
|
# process the path parameters
|
997
1068
|
# process the query parameters
|
998
1069
|
if key is not None:
|
999
|
-
|
1000
|
-
_query_params.append((
|
1001
|
-
|
1070
|
+
|
1071
|
+
_query_params.append(('key', key))
|
1072
|
+
|
1002
1073
|
# process the header parameters
|
1003
1074
|
# process the form parameters
|
1004
1075
|
# process the body parameter
|
1005
1076
|
|
1077
|
+
|
1006
1078
|
# set the HTTP header `Accept`
|
1007
|
-
if
|
1008
|
-
_header_params[
|
1009
|
-
[
|
1079
|
+
if 'Accept' not in _header_params:
|
1080
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1081
|
+
[
|
1082
|
+
'application/json'
|
1083
|
+
]
|
1010
1084
|
)
|
1011
1085
|
|
1086
|
+
|
1012
1087
|
# authentication setting
|
1013
|
-
_auth_settings: List[str] = [
|
1088
|
+
_auth_settings: List[str] = [
|
1089
|
+
'APIKeyHeader',
|
1090
|
+
'HTTPBearer'
|
1091
|
+
]
|
1014
1092
|
|
1015
1093
|
return self.api_client.param_serialize(
|
1016
|
-
method=
|
1017
|
-
resource_path=
|
1094
|
+
method='GET',
|
1095
|
+
resource_path='/futures/orders',
|
1018
1096
|
path_params=_path_params,
|
1019
1097
|
query_params=_query_params,
|
1020
1098
|
header_params=_header_params,
|
@@ -1024,9 +1102,12 @@ class FuturesTradingPanelApi:
|
|
1024
1102
|
auth_settings=_auth_settings,
|
1025
1103
|
collection_formats=_collection_formats,
|
1026
1104
|
_host=_host,
|
1027
|
-
_request_auth=_request_auth
|
1105
|
+
_request_auth=_request_auth
|
1028
1106
|
)
|
1029
1107
|
|
1108
|
+
|
1109
|
+
|
1110
|
+
|
1030
1111
|
@validate_call
|
1031
1112
|
async def place_futures_order(
|
1032
1113
|
self,
|
@@ -1036,8 +1117,9 @@ class FuturesTradingPanelApi:
|
|
1036
1117
|
None,
|
1037
1118
|
Annotated[StrictFloat, Field(gt=0)],
|
1038
1119
|
Tuple[
|
1039
|
-
Annotated[StrictFloat, Field(gt=0)],
|
1040
|
-
|
1120
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1121
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1122
|
+
]
|
1041
1123
|
] = None,
|
1042
1124
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1043
1125
|
_content_type: Optional[StrictStr] = None,
|
@@ -1071,7 +1153,7 @@ class FuturesTradingPanelApi:
|
|
1071
1153
|
in the spec for a single request.
|
1072
1154
|
:type _host_index: int, optional
|
1073
1155
|
:return: Returns the result object.
|
1074
|
-
"""
|
1156
|
+
""" # noqa: E501
|
1075
1157
|
|
1076
1158
|
_param = self._place_futures_order_serialize(
|
1077
1159
|
key=key,
|
@@ -1079,15 +1161,16 @@ class FuturesTradingPanelApi:
|
|
1079
1161
|
_request_auth=_request_auth,
|
1080
1162
|
_content_type=_content_type,
|
1081
1163
|
_headers=_headers,
|
1082
|
-
_host_index=_host_index
|
1164
|
+
_host_index=_host_index
|
1083
1165
|
)
|
1084
1166
|
|
1085
1167
|
_response_types_map: Dict[str, Optional[str]] = {
|
1086
|
-
|
1087
|
-
|
1168
|
+
'200': "object",
|
1169
|
+
'422': "HTTPValidationError",
|
1088
1170
|
}
|
1089
1171
|
response_data = await self.api_client.call_api(
|
1090
|
-
*_param,
|
1172
|
+
*_param,
|
1173
|
+
_request_timeout=_request_timeout
|
1091
1174
|
)
|
1092
1175
|
await response_data.read()
|
1093
1176
|
return self.api_client.response_deserialize(
|
@@ -1095,6 +1178,7 @@ class FuturesTradingPanelApi:
|
|
1095
1178
|
response_types_map=_response_types_map,
|
1096
1179
|
).data
|
1097
1180
|
|
1181
|
+
|
1098
1182
|
@validate_call
|
1099
1183
|
async def place_futures_order_with_http_info(
|
1100
1184
|
self,
|
@@ -1104,8 +1188,9 @@ class FuturesTradingPanelApi:
|
|
1104
1188
|
None,
|
1105
1189
|
Annotated[StrictFloat, Field(gt=0)],
|
1106
1190
|
Tuple[
|
1107
|
-
Annotated[StrictFloat, Field(gt=0)],
|
1108
|
-
|
1191
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1192
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1193
|
+
]
|
1109
1194
|
] = None,
|
1110
1195
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1111
1196
|
_content_type: Optional[StrictStr] = None,
|
@@ -1139,7 +1224,7 @@ class FuturesTradingPanelApi:
|
|
1139
1224
|
in the spec for a single request.
|
1140
1225
|
:type _host_index: int, optional
|
1141
1226
|
:return: Returns the result object.
|
1142
|
-
"""
|
1227
|
+
""" # noqa: E501
|
1143
1228
|
|
1144
1229
|
_param = self._place_futures_order_serialize(
|
1145
1230
|
key=key,
|
@@ -1147,15 +1232,16 @@ class FuturesTradingPanelApi:
|
|
1147
1232
|
_request_auth=_request_auth,
|
1148
1233
|
_content_type=_content_type,
|
1149
1234
|
_headers=_headers,
|
1150
|
-
_host_index=_host_index
|
1235
|
+
_host_index=_host_index
|
1151
1236
|
)
|
1152
1237
|
|
1153
1238
|
_response_types_map: Dict[str, Optional[str]] = {
|
1154
|
-
|
1155
|
-
|
1239
|
+
'200': "object",
|
1240
|
+
'422': "HTTPValidationError",
|
1156
1241
|
}
|
1157
1242
|
response_data = await self.api_client.call_api(
|
1158
|
-
*_param,
|
1243
|
+
*_param,
|
1244
|
+
_request_timeout=_request_timeout
|
1159
1245
|
)
|
1160
1246
|
await response_data.read()
|
1161
1247
|
return self.api_client.response_deserialize(
|
@@ -1163,6 +1249,7 @@ class FuturesTradingPanelApi:
|
|
1163
1249
|
response_types_map=_response_types_map,
|
1164
1250
|
)
|
1165
1251
|
|
1252
|
+
|
1166
1253
|
@validate_call
|
1167
1254
|
async def place_futures_order_without_preload_content(
|
1168
1255
|
self,
|
@@ -1172,8 +1259,9 @@ class FuturesTradingPanelApi:
|
|
1172
1259
|
None,
|
1173
1260
|
Annotated[StrictFloat, Field(gt=0)],
|
1174
1261
|
Tuple[
|
1175
|
-
Annotated[StrictFloat, Field(gt=0)],
|
1176
|
-
|
1262
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1263
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1264
|
+
]
|
1177
1265
|
] = None,
|
1178
1266
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1179
1267
|
_content_type: Optional[StrictStr] = None,
|
@@ -1207,7 +1295,7 @@ class FuturesTradingPanelApi:
|
|
1207
1295
|
in the spec for a single request.
|
1208
1296
|
:type _host_index: int, optional
|
1209
1297
|
:return: Returns the result object.
|
1210
|
-
"""
|
1298
|
+
""" # noqa: E501
|
1211
1299
|
|
1212
1300
|
_param = self._place_futures_order_serialize(
|
1213
1301
|
key=key,
|
@@ -1215,18 +1303,20 @@ class FuturesTradingPanelApi:
|
|
1215
1303
|
_request_auth=_request_auth,
|
1216
1304
|
_content_type=_content_type,
|
1217
1305
|
_headers=_headers,
|
1218
|
-
_host_index=_host_index
|
1306
|
+
_host_index=_host_index
|
1219
1307
|
)
|
1220
1308
|
|
1221
1309
|
_response_types_map: Dict[str, Optional[str]] = {
|
1222
|
-
|
1223
|
-
|
1310
|
+
'200': "object",
|
1311
|
+
'422': "HTTPValidationError",
|
1224
1312
|
}
|
1225
1313
|
response_data = await self.api_client.call_api(
|
1226
|
-
*_param,
|
1314
|
+
*_param,
|
1315
|
+
_request_timeout=_request_timeout
|
1227
1316
|
)
|
1228
1317
|
return response_data.response
|
1229
1318
|
|
1319
|
+
|
1230
1320
|
def _place_futures_order_serialize(
|
1231
1321
|
self,
|
1232
1322
|
key,
|
@@ -1239,7 +1329,8 @@ class FuturesTradingPanelApi:
|
|
1239
1329
|
|
1240
1330
|
_host = None
|
1241
1331
|
|
1242
|
-
_collection_formats: Dict[str, str] = {
|
1332
|
+
_collection_formats: Dict[str, str] = {
|
1333
|
+
}
|
1243
1334
|
|
1244
1335
|
_path_params: Dict[str, str] = {}
|
1245
1336
|
_query_params: List[Tuple[str, str]] = []
|
@@ -1253,37 +1344,47 @@ class FuturesTradingPanelApi:
|
|
1253
1344
|
# process the path parameters
|
1254
1345
|
# process the query parameters
|
1255
1346
|
if key is not None:
|
1256
|
-
|
1257
|
-
_query_params.append((
|
1258
|
-
|
1347
|
+
|
1348
|
+
_query_params.append(('key', key))
|
1349
|
+
|
1259
1350
|
# process the header parameters
|
1260
1351
|
# process the form parameters
|
1261
1352
|
# process the body parameter
|
1262
1353
|
if request_body is not None:
|
1263
1354
|
_body_params = request_body
|
1264
1355
|
|
1356
|
+
|
1265
1357
|
# set the HTTP header `Accept`
|
1266
|
-
if
|
1267
|
-
_header_params[
|
1268
|
-
[
|
1358
|
+
if 'Accept' not in _header_params:
|
1359
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1360
|
+
[
|
1361
|
+
'application/json'
|
1362
|
+
]
|
1269
1363
|
)
|
1270
1364
|
|
1271
1365
|
# set the HTTP header `Content-Type`
|
1272
1366
|
if _content_type:
|
1273
|
-
_header_params[
|
1367
|
+
_header_params['Content-Type'] = _content_type
|
1274
1368
|
else:
|
1275
|
-
_default_content_type =
|
1276
|
-
|
1369
|
+
_default_content_type = (
|
1370
|
+
self.api_client.select_header_content_type(
|
1371
|
+
[
|
1372
|
+
'application/json'
|
1373
|
+
]
|
1374
|
+
)
|
1277
1375
|
)
|
1278
1376
|
if _default_content_type is not None:
|
1279
|
-
_header_params[
|
1377
|
+
_header_params['Content-Type'] = _default_content_type
|
1280
1378
|
|
1281
1379
|
# authentication setting
|
1282
|
-
_auth_settings: List[str] = [
|
1380
|
+
_auth_settings: List[str] = [
|
1381
|
+
'APIKeyHeader',
|
1382
|
+
'HTTPBearer'
|
1383
|
+
]
|
1283
1384
|
|
1284
1385
|
return self.api_client.param_serialize(
|
1285
|
-
method=
|
1286
|
-
resource_path=
|
1386
|
+
method='POST',
|
1387
|
+
resource_path='/futures/orders',
|
1287
1388
|
path_params=_path_params,
|
1288
1389
|
query_params=_query_params,
|
1289
1390
|
header_params=_header_params,
|
@@ -1293,5 +1394,7 @@ class FuturesTradingPanelApi:
|
|
1293
1394
|
auth_settings=_auth_settings,
|
1294
1395
|
collection_formats=_collection_formats,
|
1295
1396
|
_host=_host,
|
1296
|
-
_request_auth=_request_auth
|
1397
|
+
_request_auth=_request_auth
|
1297
1398
|
)
|
1399
|
+
|
1400
|
+
|