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