crypticorn 2.1.3__py3-none-any.whl → 2.1.5__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/common/errors.py +215 -252
- crypticorn/common/sorter.py +38 -0
- crypticorn/pay/client/__init__.py +1 -0
- crypticorn/pay/client/api/now_payments_api.py +3 -16
- crypticorn/pay/client/api/payments_api.py +0 -42
- crypticorn/pay/client/api/products_api.py +3 -42
- crypticorn/pay/client/configuration.py +2 -1
- crypticorn/pay/client/models/__init__.py +1 -0
- crypticorn/pay/client/models/body_create_now_invoice.py +98 -0
- crypticorn/{trade/client/models/update_notification.py → pay/client/models/body_create_product.py} +20 -17
- crypticorn/pay/client/models/body_get_products.py +87 -0
- crypticorn/pay/client/models/body_handle_now_webhook.py +98 -0
- crypticorn/pay/client/models/body_update_product.py +98 -0
- crypticorn/pay/client/models/product_model.py +9 -0
- crypticorn/pay/client/models/scope.py +56 -0
- crypticorn/trade/client/api/api_keys_api.py +5 -70
- crypticorn/trade/client/api/bots_api.py +4 -56
- crypticorn/trade/client/api/exchanges_api.py +2 -19
- crypticorn/trade/client/api/futures_trading_panel_api.py +21 -89
- crypticorn/trade/client/api/notifications_api.py +6 -87
- crypticorn/trade/client/api/orders_api.py +2 -15
- crypticorn/trade/client/api/strategies_api.py +4 -56
- crypticorn/trade/client/api/trading_actions_api.py +1 -14
- crypticorn/trade/client/configuration.py +2 -1
- crypticorn/trade/client/models/api_error_identifier.py +49 -43
- crypticorn/trade/client/models/api_error_level.py +2 -2
- {crypticorn-2.1.3.dist-info → crypticorn-2.1.5.dist-info}/METADATA +3 -3
- {crypticorn-2.1.3.dist-info → crypticorn-2.1.5.dist-info}/RECORD +30 -26
- crypticorn/trade/client/models/notification_type.py +0 -37
- crypticorn/trade/client/models/strategy_model.py +0 -158
- {crypticorn-2.1.3.dist-info → crypticorn-2.1.5.dist-info}/WHEEL +0 -0
- {crypticorn-2.1.3.dist-info → crypticorn-2.1.5.dist-info}/top_level.txt +0 -0
@@ -17,7 +17,7 @@ from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
17
|
from typing_extensions import Annotated
|
18
18
|
|
19
19
|
from pydantic import StrictStr
|
20
|
-
from typing import Any, Dict, List
|
20
|
+
from typing import Any, Dict, List
|
21
21
|
from crypticorn.trade.client.models.futures_balance import FuturesBalance
|
22
22
|
|
23
23
|
from crypticorn.trade.client.api_client import ApiClient, RequestSerialized
|
@@ -43,7 +43,6 @@ class FuturesTradingPanelApi:
|
|
43
43
|
order_id: StrictStr,
|
44
44
|
symbol: StrictStr,
|
45
45
|
key: StrictStr,
|
46
|
-
access_token: Optional[StrictStr] = None,
|
47
46
|
_request_timeout: Union[
|
48
47
|
None,
|
49
48
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -65,8 +64,6 @@ class FuturesTradingPanelApi:
|
|
65
64
|
:type symbol: str
|
66
65
|
:param key: (required)
|
67
66
|
:type key: str
|
68
|
-
:param access_token:
|
69
|
-
:type access_token: str
|
70
67
|
:param _request_timeout: timeout setting for this request. If one
|
71
68
|
number provided, it will be total request
|
72
69
|
timeout. It can also be a pair (tuple) of
|
@@ -93,7 +90,6 @@ class FuturesTradingPanelApi:
|
|
93
90
|
order_id=order_id,
|
94
91
|
symbol=symbol,
|
95
92
|
key=key,
|
96
|
-
access_token=access_token,
|
97
93
|
_request_auth=_request_auth,
|
98
94
|
_content_type=_content_type,
|
99
95
|
_headers=_headers,
|
@@ -119,7 +115,6 @@ class FuturesTradingPanelApi:
|
|
119
115
|
order_id: StrictStr,
|
120
116
|
symbol: StrictStr,
|
121
117
|
key: StrictStr,
|
122
|
-
access_token: Optional[StrictStr] = None,
|
123
118
|
_request_timeout: Union[
|
124
119
|
None,
|
125
120
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -141,8 +136,6 @@ class FuturesTradingPanelApi:
|
|
141
136
|
:type symbol: str
|
142
137
|
:param key: (required)
|
143
138
|
:type key: str
|
144
|
-
:param access_token:
|
145
|
-
:type access_token: str
|
146
139
|
:param _request_timeout: timeout setting for this request. If one
|
147
140
|
number provided, it will be total request
|
148
141
|
timeout. It can also be a pair (tuple) of
|
@@ -169,7 +162,6 @@ class FuturesTradingPanelApi:
|
|
169
162
|
order_id=order_id,
|
170
163
|
symbol=symbol,
|
171
164
|
key=key,
|
172
|
-
access_token=access_token,
|
173
165
|
_request_auth=_request_auth,
|
174
166
|
_content_type=_content_type,
|
175
167
|
_headers=_headers,
|
@@ -195,7 +187,6 @@ class FuturesTradingPanelApi:
|
|
195
187
|
order_id: StrictStr,
|
196
188
|
symbol: StrictStr,
|
197
189
|
key: StrictStr,
|
198
|
-
access_token: Optional[StrictStr] = None,
|
199
190
|
_request_timeout: Union[
|
200
191
|
None,
|
201
192
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -217,8 +208,6 @@ class FuturesTradingPanelApi:
|
|
217
208
|
:type symbol: str
|
218
209
|
:param key: (required)
|
219
210
|
:type key: str
|
220
|
-
:param access_token:
|
221
|
-
:type access_token: str
|
222
211
|
:param _request_timeout: timeout setting for this request. If one
|
223
212
|
number provided, it will be total request
|
224
213
|
timeout. It can also be a pair (tuple) of
|
@@ -245,7 +234,6 @@ class FuturesTradingPanelApi:
|
|
245
234
|
order_id=order_id,
|
246
235
|
symbol=symbol,
|
247
236
|
key=key,
|
248
|
-
access_token=access_token,
|
249
237
|
_request_auth=_request_auth,
|
250
238
|
_content_type=_content_type,
|
251
239
|
_headers=_headers,
|
@@ -266,7 +254,6 @@ class FuturesTradingPanelApi:
|
|
266
254
|
order_id,
|
267
255
|
symbol,
|
268
256
|
key,
|
269
|
-
access_token,
|
270
257
|
_request_auth,
|
271
258
|
_content_type,
|
272
259
|
_headers,
|
@@ -311,7 +298,7 @@ class FuturesTradingPanelApi:
|
|
311
298
|
)
|
312
299
|
|
313
300
|
# authentication setting
|
314
|
-
_auth_settings: List[str] = ["HTTPBearer"]
|
301
|
+
_auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
|
315
302
|
|
316
303
|
return self.api_client.param_serialize(
|
317
304
|
method="DELETE",
|
@@ -331,7 +318,6 @@ class FuturesTradingPanelApi:
|
|
331
318
|
@validate_call
|
332
319
|
async def get_futures_balance(
|
333
320
|
self,
|
334
|
-
access_token: Optional[StrictStr] = None,
|
335
321
|
_request_timeout: Union[
|
336
322
|
None,
|
337
323
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -347,8 +333,6 @@ class FuturesTradingPanelApi:
|
|
347
333
|
"""Get Futures Balance
|
348
334
|
|
349
335
|
|
350
|
-
:param access_token:
|
351
|
-
:type access_token: str
|
352
336
|
:param _request_timeout: timeout setting for this request. If one
|
353
337
|
number provided, it will be total request
|
354
338
|
timeout. It can also be a pair (tuple) of
|
@@ -372,7 +356,6 @@ class FuturesTradingPanelApi:
|
|
372
356
|
""" # noqa: E501
|
373
357
|
|
374
358
|
_param = self._get_futures_balance_serialize(
|
375
|
-
access_token=access_token,
|
376
359
|
_request_auth=_request_auth,
|
377
360
|
_content_type=_content_type,
|
378
361
|
_headers=_headers,
|
@@ -381,7 +364,6 @@ class FuturesTradingPanelApi:
|
|
381
364
|
|
382
365
|
_response_types_map: Dict[str, Optional[str]] = {
|
383
366
|
"200": "List[FuturesBalance]",
|
384
|
-
"422": "HTTPValidationError",
|
385
367
|
}
|
386
368
|
response_data = await self.api_client.call_api(
|
387
369
|
*_param, _request_timeout=_request_timeout
|
@@ -395,7 +377,6 @@ class FuturesTradingPanelApi:
|
|
395
377
|
@validate_call
|
396
378
|
async def get_futures_balance_with_http_info(
|
397
379
|
self,
|
398
|
-
access_token: Optional[StrictStr] = None,
|
399
380
|
_request_timeout: Union[
|
400
381
|
None,
|
401
382
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -411,8 +392,6 @@ class FuturesTradingPanelApi:
|
|
411
392
|
"""Get Futures Balance
|
412
393
|
|
413
394
|
|
414
|
-
:param access_token:
|
415
|
-
:type access_token: str
|
416
395
|
:param _request_timeout: timeout setting for this request. If one
|
417
396
|
number provided, it will be total request
|
418
397
|
timeout. It can also be a pair (tuple) of
|
@@ -436,7 +415,6 @@ class FuturesTradingPanelApi:
|
|
436
415
|
""" # noqa: E501
|
437
416
|
|
438
417
|
_param = self._get_futures_balance_serialize(
|
439
|
-
access_token=access_token,
|
440
418
|
_request_auth=_request_auth,
|
441
419
|
_content_type=_content_type,
|
442
420
|
_headers=_headers,
|
@@ -445,7 +423,6 @@ class FuturesTradingPanelApi:
|
|
445
423
|
|
446
424
|
_response_types_map: Dict[str, Optional[str]] = {
|
447
425
|
"200": "List[FuturesBalance]",
|
448
|
-
"422": "HTTPValidationError",
|
449
426
|
}
|
450
427
|
response_data = await self.api_client.call_api(
|
451
428
|
*_param, _request_timeout=_request_timeout
|
@@ -459,7 +436,6 @@ class FuturesTradingPanelApi:
|
|
459
436
|
@validate_call
|
460
437
|
async def get_futures_balance_without_preload_content(
|
461
438
|
self,
|
462
|
-
access_token: Optional[StrictStr] = None,
|
463
439
|
_request_timeout: Union[
|
464
440
|
None,
|
465
441
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -475,8 +451,6 @@ class FuturesTradingPanelApi:
|
|
475
451
|
"""Get Futures Balance
|
476
452
|
|
477
453
|
|
478
|
-
:param access_token:
|
479
|
-
:type access_token: str
|
480
454
|
:param _request_timeout: timeout setting for this request. If one
|
481
455
|
number provided, it will be total request
|
482
456
|
timeout. It can also be a pair (tuple) of
|
@@ -500,7 +474,6 @@ class FuturesTradingPanelApi:
|
|
500
474
|
""" # noqa: E501
|
501
475
|
|
502
476
|
_param = self._get_futures_balance_serialize(
|
503
|
-
access_token=access_token,
|
504
477
|
_request_auth=_request_auth,
|
505
478
|
_content_type=_content_type,
|
506
479
|
_headers=_headers,
|
@@ -509,7 +482,6 @@ class FuturesTradingPanelApi:
|
|
509
482
|
|
510
483
|
_response_types_map: Dict[str, Optional[str]] = {
|
511
484
|
"200": "List[FuturesBalance]",
|
512
|
-
"422": "HTTPValidationError",
|
513
485
|
}
|
514
486
|
response_data = await self.api_client.call_api(
|
515
487
|
*_param, _request_timeout=_request_timeout
|
@@ -518,7 +490,6 @@ class FuturesTradingPanelApi:
|
|
518
490
|
|
519
491
|
def _get_futures_balance_serialize(
|
520
492
|
self,
|
521
|
-
access_token,
|
522
493
|
_request_auth,
|
523
494
|
_content_type,
|
524
495
|
_headers,
|
@@ -551,7 +522,7 @@ class FuturesTradingPanelApi:
|
|
551
522
|
)
|
552
523
|
|
553
524
|
# authentication setting
|
554
|
-
_auth_settings: List[str] = ["HTTPBearer"]
|
525
|
+
_auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
|
555
526
|
|
556
527
|
return self.api_client.param_serialize(
|
557
528
|
method="GET",
|
@@ -572,7 +543,6 @@ class FuturesTradingPanelApi:
|
|
572
543
|
async def get_futures_ledger(
|
573
544
|
self,
|
574
545
|
key: StrictStr,
|
575
|
-
access_token: Optional[StrictStr] = None,
|
576
546
|
_request_timeout: Union[
|
577
547
|
None,
|
578
548
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -590,8 +560,6 @@ class FuturesTradingPanelApi:
|
|
590
560
|
|
591
561
|
:param key: (required)
|
592
562
|
:type key: str
|
593
|
-
:param access_token:
|
594
|
-
:type access_token: str
|
595
563
|
:param _request_timeout: timeout setting for this request. If one
|
596
564
|
number provided, it will be total request
|
597
565
|
timeout. It can also be a pair (tuple) of
|
@@ -616,7 +584,6 @@ class FuturesTradingPanelApi:
|
|
616
584
|
|
617
585
|
_param = self._get_futures_ledger_serialize(
|
618
586
|
key=key,
|
619
|
-
access_token=access_token,
|
620
587
|
_request_auth=_request_auth,
|
621
588
|
_content_type=_content_type,
|
622
589
|
_headers=_headers,
|
@@ -640,7 +607,6 @@ class FuturesTradingPanelApi:
|
|
640
607
|
async def get_futures_ledger_with_http_info(
|
641
608
|
self,
|
642
609
|
key: StrictStr,
|
643
|
-
access_token: Optional[StrictStr] = None,
|
644
610
|
_request_timeout: Union[
|
645
611
|
None,
|
646
612
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -658,8 +624,6 @@ class FuturesTradingPanelApi:
|
|
658
624
|
|
659
625
|
:param key: (required)
|
660
626
|
:type key: str
|
661
|
-
:param access_token:
|
662
|
-
:type access_token: str
|
663
627
|
:param _request_timeout: timeout setting for this request. If one
|
664
628
|
number provided, it will be total request
|
665
629
|
timeout. It can also be a pair (tuple) of
|
@@ -684,7 +648,6 @@ class FuturesTradingPanelApi:
|
|
684
648
|
|
685
649
|
_param = self._get_futures_ledger_serialize(
|
686
650
|
key=key,
|
687
|
-
access_token=access_token,
|
688
651
|
_request_auth=_request_auth,
|
689
652
|
_content_type=_content_type,
|
690
653
|
_headers=_headers,
|
@@ -708,7 +671,6 @@ class FuturesTradingPanelApi:
|
|
708
671
|
async def get_futures_ledger_without_preload_content(
|
709
672
|
self,
|
710
673
|
key: StrictStr,
|
711
|
-
access_token: Optional[StrictStr] = None,
|
712
674
|
_request_timeout: Union[
|
713
675
|
None,
|
714
676
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -726,8 +688,6 @@ class FuturesTradingPanelApi:
|
|
726
688
|
|
727
689
|
:param key: (required)
|
728
690
|
:type key: str
|
729
|
-
:param access_token:
|
730
|
-
:type access_token: str
|
731
691
|
:param _request_timeout: timeout setting for this request. If one
|
732
692
|
number provided, it will be total request
|
733
693
|
timeout. It can also be a pair (tuple) of
|
@@ -752,7 +712,6 @@ class FuturesTradingPanelApi:
|
|
752
712
|
|
753
713
|
_param = self._get_futures_ledger_serialize(
|
754
714
|
key=key,
|
755
|
-
access_token=access_token,
|
756
715
|
_request_auth=_request_auth,
|
757
716
|
_content_type=_content_type,
|
758
717
|
_headers=_headers,
|
@@ -771,7 +730,6 @@ class FuturesTradingPanelApi:
|
|
771
730
|
def _get_futures_ledger_serialize(
|
772
731
|
self,
|
773
732
|
key,
|
774
|
-
access_token,
|
775
733
|
_request_auth,
|
776
734
|
_content_type,
|
777
735
|
_headers,
|
@@ -808,7 +766,7 @@ class FuturesTradingPanelApi:
|
|
808
766
|
)
|
809
767
|
|
810
768
|
# authentication setting
|
811
|
-
_auth_settings: List[str] = ["HTTPBearer"]
|
769
|
+
_auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
|
812
770
|
|
813
771
|
return self.api_client.param_serialize(
|
814
772
|
method="GET",
|
@@ -829,7 +787,6 @@ class FuturesTradingPanelApi:
|
|
829
787
|
async def get_historical_futures_orders(
|
830
788
|
self,
|
831
789
|
key: StrictStr,
|
832
|
-
access_token: Optional[StrictStr] = None,
|
833
790
|
_request_timeout: Union[
|
834
791
|
None,
|
835
792
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -847,8 +804,6 @@ class FuturesTradingPanelApi:
|
|
847
804
|
|
848
805
|
:param key: (required)
|
849
806
|
:type key: str
|
850
|
-
:param access_token:
|
851
|
-
:type access_token: str
|
852
807
|
:param _request_timeout: timeout setting for this request. If one
|
853
808
|
number provided, it will be total request
|
854
809
|
timeout. It can also be a pair (tuple) of
|
@@ -873,7 +828,6 @@ class FuturesTradingPanelApi:
|
|
873
828
|
|
874
829
|
_param = self._get_historical_futures_orders_serialize(
|
875
830
|
key=key,
|
876
|
-
access_token=access_token,
|
877
831
|
_request_auth=_request_auth,
|
878
832
|
_content_type=_content_type,
|
879
833
|
_headers=_headers,
|
@@ -897,7 +851,6 @@ class FuturesTradingPanelApi:
|
|
897
851
|
async def get_historical_futures_orders_with_http_info(
|
898
852
|
self,
|
899
853
|
key: StrictStr,
|
900
|
-
access_token: Optional[StrictStr] = None,
|
901
854
|
_request_timeout: Union[
|
902
855
|
None,
|
903
856
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -915,8 +868,6 @@ class FuturesTradingPanelApi:
|
|
915
868
|
|
916
869
|
:param key: (required)
|
917
870
|
:type key: str
|
918
|
-
:param access_token:
|
919
|
-
:type access_token: str
|
920
871
|
:param _request_timeout: timeout setting for this request. If one
|
921
872
|
number provided, it will be total request
|
922
873
|
timeout. It can also be a pair (tuple) of
|
@@ -941,7 +892,6 @@ class FuturesTradingPanelApi:
|
|
941
892
|
|
942
893
|
_param = self._get_historical_futures_orders_serialize(
|
943
894
|
key=key,
|
944
|
-
access_token=access_token,
|
945
895
|
_request_auth=_request_auth,
|
946
896
|
_content_type=_content_type,
|
947
897
|
_headers=_headers,
|
@@ -965,7 +915,6 @@ class FuturesTradingPanelApi:
|
|
965
915
|
async def get_historical_futures_orders_without_preload_content(
|
966
916
|
self,
|
967
917
|
key: StrictStr,
|
968
|
-
access_token: Optional[StrictStr] = None,
|
969
918
|
_request_timeout: Union[
|
970
919
|
None,
|
971
920
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -983,8 +932,6 @@ class FuturesTradingPanelApi:
|
|
983
932
|
|
984
933
|
:param key: (required)
|
985
934
|
:type key: str
|
986
|
-
:param access_token:
|
987
|
-
:type access_token: str
|
988
935
|
:param _request_timeout: timeout setting for this request. If one
|
989
936
|
number provided, it will be total request
|
990
937
|
timeout. It can also be a pair (tuple) of
|
@@ -1009,7 +956,6 @@ class FuturesTradingPanelApi:
|
|
1009
956
|
|
1010
957
|
_param = self._get_historical_futures_orders_serialize(
|
1011
958
|
key=key,
|
1012
|
-
access_token=access_token,
|
1013
959
|
_request_auth=_request_auth,
|
1014
960
|
_content_type=_content_type,
|
1015
961
|
_headers=_headers,
|
@@ -1028,7 +974,6 @@ class FuturesTradingPanelApi:
|
|
1028
974
|
def _get_historical_futures_orders_serialize(
|
1029
975
|
self,
|
1030
976
|
key,
|
1031
|
-
access_token,
|
1032
977
|
_request_auth,
|
1033
978
|
_content_type,
|
1034
979
|
_headers,
|
@@ -1065,7 +1010,7 @@ class FuturesTradingPanelApi:
|
|
1065
1010
|
)
|
1066
1011
|
|
1067
1012
|
# authentication setting
|
1068
|
-
_auth_settings: List[str] = ["HTTPBearer"]
|
1013
|
+
_auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
|
1069
1014
|
|
1070
1015
|
return self.api_client.param_serialize(
|
1071
1016
|
method="GET",
|
@@ -1086,8 +1031,7 @@ class FuturesTradingPanelApi:
|
|
1086
1031
|
async def place_futures_order(
|
1087
1032
|
self,
|
1088
1033
|
key: StrictStr,
|
1089
|
-
|
1090
|
-
access_token: Optional[StrictStr] = None,
|
1034
|
+
body: Dict[str, Any],
|
1091
1035
|
_request_timeout: Union[
|
1092
1036
|
None,
|
1093
1037
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -1105,10 +1049,8 @@ class FuturesTradingPanelApi:
|
|
1105
1049
|
|
1106
1050
|
:param key: (required)
|
1107
1051
|
:type key: str
|
1108
|
-
:param
|
1109
|
-
:type
|
1110
|
-
:param access_token:
|
1111
|
-
:type access_token: str
|
1052
|
+
:param body: (required)
|
1053
|
+
:type body: object
|
1112
1054
|
:param _request_timeout: timeout setting for this request. If one
|
1113
1055
|
number provided, it will be total request
|
1114
1056
|
timeout. It can also be a pair (tuple) of
|
@@ -1133,8 +1075,7 @@ class FuturesTradingPanelApi:
|
|
1133
1075
|
|
1134
1076
|
_param = self._place_futures_order_serialize(
|
1135
1077
|
key=key,
|
1136
|
-
|
1137
|
-
access_token=access_token,
|
1078
|
+
body=body,
|
1138
1079
|
_request_auth=_request_auth,
|
1139
1080
|
_content_type=_content_type,
|
1140
1081
|
_headers=_headers,
|
@@ -1158,8 +1099,7 @@ class FuturesTradingPanelApi:
|
|
1158
1099
|
async def place_futures_order_with_http_info(
|
1159
1100
|
self,
|
1160
1101
|
key: StrictStr,
|
1161
|
-
|
1162
|
-
access_token: Optional[StrictStr] = None,
|
1102
|
+
body: Dict[str, Any],
|
1163
1103
|
_request_timeout: Union[
|
1164
1104
|
None,
|
1165
1105
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -1177,10 +1117,8 @@ class FuturesTradingPanelApi:
|
|
1177
1117
|
|
1178
1118
|
:param key: (required)
|
1179
1119
|
:type key: str
|
1180
|
-
:param
|
1181
|
-
:type
|
1182
|
-
:param access_token:
|
1183
|
-
:type access_token: str
|
1120
|
+
:param body: (required)
|
1121
|
+
:type body: object
|
1184
1122
|
:param _request_timeout: timeout setting for this request. If one
|
1185
1123
|
number provided, it will be total request
|
1186
1124
|
timeout. It can also be a pair (tuple) of
|
@@ -1205,8 +1143,7 @@ class FuturesTradingPanelApi:
|
|
1205
1143
|
|
1206
1144
|
_param = self._place_futures_order_serialize(
|
1207
1145
|
key=key,
|
1208
|
-
|
1209
|
-
access_token=access_token,
|
1146
|
+
body=body,
|
1210
1147
|
_request_auth=_request_auth,
|
1211
1148
|
_content_type=_content_type,
|
1212
1149
|
_headers=_headers,
|
@@ -1230,8 +1167,7 @@ class FuturesTradingPanelApi:
|
|
1230
1167
|
async def place_futures_order_without_preload_content(
|
1231
1168
|
self,
|
1232
1169
|
key: StrictStr,
|
1233
|
-
|
1234
|
-
access_token: Optional[StrictStr] = None,
|
1170
|
+
body: Dict[str, Any],
|
1235
1171
|
_request_timeout: Union[
|
1236
1172
|
None,
|
1237
1173
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -1249,10 +1185,8 @@ class FuturesTradingPanelApi:
|
|
1249
1185
|
|
1250
1186
|
:param key: (required)
|
1251
1187
|
:type key: str
|
1252
|
-
:param
|
1253
|
-
:type
|
1254
|
-
:param access_token:
|
1255
|
-
:type access_token: str
|
1188
|
+
:param body: (required)
|
1189
|
+
:type body: object
|
1256
1190
|
:param _request_timeout: timeout setting for this request. If one
|
1257
1191
|
number provided, it will be total request
|
1258
1192
|
timeout. It can also be a pair (tuple) of
|
@@ -1277,8 +1211,7 @@ class FuturesTradingPanelApi:
|
|
1277
1211
|
|
1278
1212
|
_param = self._place_futures_order_serialize(
|
1279
1213
|
key=key,
|
1280
|
-
|
1281
|
-
access_token=access_token,
|
1214
|
+
body=body,
|
1282
1215
|
_request_auth=_request_auth,
|
1283
1216
|
_content_type=_content_type,
|
1284
1217
|
_headers=_headers,
|
@@ -1297,8 +1230,7 @@ class FuturesTradingPanelApi:
|
|
1297
1230
|
def _place_futures_order_serialize(
|
1298
1231
|
self,
|
1299
1232
|
key,
|
1300
|
-
|
1301
|
-
access_token,
|
1233
|
+
body,
|
1302
1234
|
_request_auth,
|
1303
1235
|
_content_type,
|
1304
1236
|
_headers,
|
@@ -1327,8 +1259,8 @@ class FuturesTradingPanelApi:
|
|
1327
1259
|
# process the header parameters
|
1328
1260
|
# process the form parameters
|
1329
1261
|
# process the body parameter
|
1330
|
-
if
|
1331
|
-
_body_params =
|
1262
|
+
if body is not None:
|
1263
|
+
_body_params = body
|
1332
1264
|
|
1333
1265
|
# set the HTTP header `Accept`
|
1334
1266
|
if "Accept" not in _header_params:
|
@@ -1347,7 +1279,7 @@ class FuturesTradingPanelApi:
|
|
1347
1279
|
_header_params["Content-Type"] = _default_content_type
|
1348
1280
|
|
1349
1281
|
# authentication setting
|
1350
|
-
_auth_settings: List[str] = ["HTTPBearer"]
|
1282
|
+
_auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
|
1351
1283
|
|
1352
1284
|
return self.api_client.param_serialize(
|
1353
1285
|
method="POST",
|