crypticorn 2.1.2__py3-none-any.whl → 2.1.4__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 (32) hide show
  1. crypticorn/common/auth.py +0 -28
  2. crypticorn/common/auth_client.py +14 -18
  3. crypticorn/common/errors.py +216 -253
  4. crypticorn/common/sorter.py +36 -0
  5. crypticorn/pay/client/__init__.py +1 -0
  6. crypticorn/pay/client/api/now_payments_api.py +3 -16
  7. crypticorn/pay/client/api/payments_api.py +0 -42
  8. crypticorn/pay/client/api/products_api.py +18 -57
  9. crypticorn/pay/client/configuration.py +2 -1
  10. crypticorn/pay/client/models/__init__.py +1 -0
  11. crypticorn/pay/client/models/body_create_now_invoice.py +98 -0
  12. crypticorn/pay/client/models/body_create_product.py +98 -0
  13. crypticorn/pay/client/models/body_get_products.py +87 -0
  14. crypticorn/pay/client/models/body_handle_now_webhook.py +98 -0
  15. crypticorn/pay/client/models/body_update_product.py +98 -0
  16. crypticorn/pay/client/models/now_webhook_payload.py +1 -1
  17. crypticorn/pay/client/models/product_model.py +9 -0
  18. crypticorn/pay/client/models/scope.py +56 -0
  19. crypticorn/trade/client/api/api_keys_api.py +5 -70
  20. crypticorn/trade/client/api/bots_api.py +4 -56
  21. crypticorn/trade/client/api/exchanges_api.py +2 -19
  22. crypticorn/trade/client/api/futures_trading_panel_api.py +6 -74
  23. crypticorn/trade/client/api/notifications_api.py +6 -87
  24. crypticorn/trade/client/api/orders_api.py +2 -15
  25. crypticorn/trade/client/api/strategies_api.py +4 -56
  26. crypticorn/trade/client/api/trading_actions_api.py +1 -14
  27. crypticorn/trade/client/configuration.py +2 -1
  28. crypticorn/trade/client/models/api_error_identifier.py +4 -0
  29. {crypticorn-2.1.2.dist-info → crypticorn-2.1.4.dist-info}/METADATA +1 -1
  30. {crypticorn-2.1.2.dist-info → crypticorn-2.1.4.dist-info}/RECORD +32 -25
  31. {crypticorn-2.1.2.dist-info → crypticorn-2.1.4.dist-info}/WHEEL +0 -0
  32. {crypticorn-2.1.2.dist-info → crypticorn-2.1.4.dist-info}/top_level.txt +0 -0
@@ -41,7 +41,6 @@ class APIKeysApi:
41
41
  async def create_api_key(
42
42
  self,
43
43
  api_key_model: APIKeyModel,
44
- access_token: Optional[StrictStr] = None,
45
44
  _request_timeout: Union[
46
45
  None,
47
46
  Annotated[StrictFloat, Field(gt=0)],
@@ -59,8 +58,6 @@ class APIKeysApi:
59
58
 
60
59
  :param api_key_model: (required)
61
60
  :type api_key_model: APIKeyModel
62
- :param access_token:
63
- :type access_token: str
64
61
  :param _request_timeout: timeout setting for this request. If one
65
62
  number provided, it will be total request
66
63
  timeout. It can also be a pair (tuple) of
@@ -85,7 +82,6 @@ class APIKeysApi:
85
82
 
86
83
  _param = self._create_api_key_serialize(
87
84
  api_key_model=api_key_model,
88
- access_token=access_token,
89
85
  _request_auth=_request_auth,
90
86
  _content_type=_content_type,
91
87
  _headers=_headers,
@@ -109,7 +105,6 @@ class APIKeysApi:
109
105
  async def create_api_key_with_http_info(
110
106
  self,
111
107
  api_key_model: APIKeyModel,
112
- access_token: Optional[StrictStr] = None,
113
108
  _request_timeout: Union[
114
109
  None,
115
110
  Annotated[StrictFloat, Field(gt=0)],
@@ -127,8 +122,6 @@ class APIKeysApi:
127
122
 
128
123
  :param api_key_model: (required)
129
124
  :type api_key_model: APIKeyModel
130
- :param access_token:
131
- :type access_token: str
132
125
  :param _request_timeout: timeout setting for this request. If one
133
126
  number provided, it will be total request
134
127
  timeout. It can also be a pair (tuple) of
@@ -153,7 +146,6 @@ class APIKeysApi:
153
146
 
154
147
  _param = self._create_api_key_serialize(
155
148
  api_key_model=api_key_model,
156
- access_token=access_token,
157
149
  _request_auth=_request_auth,
158
150
  _content_type=_content_type,
159
151
  _headers=_headers,
@@ -177,7 +169,6 @@ class APIKeysApi:
177
169
  async def create_api_key_without_preload_content(
178
170
  self,
179
171
  api_key_model: APIKeyModel,
180
- access_token: Optional[StrictStr] = None,
181
172
  _request_timeout: Union[
182
173
  None,
183
174
  Annotated[StrictFloat, Field(gt=0)],
@@ -195,8 +186,6 @@ class APIKeysApi:
195
186
 
196
187
  :param api_key_model: (required)
197
188
  :type api_key_model: APIKeyModel
198
- :param access_token:
199
- :type access_token: str
200
189
  :param _request_timeout: timeout setting for this request. If one
201
190
  number provided, it will be total request
202
191
  timeout. It can also be a pair (tuple) of
@@ -221,7 +210,6 @@ class APIKeysApi:
221
210
 
222
211
  _param = self._create_api_key_serialize(
223
212
  api_key_model=api_key_model,
224
- access_token=access_token,
225
213
  _request_auth=_request_auth,
226
214
  _content_type=_content_type,
227
215
  _headers=_headers,
@@ -240,7 +228,6 @@ class APIKeysApi:
240
228
  def _create_api_key_serialize(
241
229
  self,
242
230
  api_key_model,
243
- access_token,
244
231
  _request_auth,
245
232
  _content_type,
246
233
  _headers,
@@ -285,7 +272,7 @@ class APIKeysApi:
285
272
  _header_params["Content-Type"] = _default_content_type
286
273
 
287
274
  # authentication setting
288
- _auth_settings: List[str] = ["HTTPBearer"]
275
+ _auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
289
276
 
290
277
  return self.api_client.param_serialize(
291
278
  method="POST",
@@ -306,7 +293,6 @@ class APIKeysApi:
306
293
  async def delete_api_key(
307
294
  self,
308
295
  id: StrictStr,
309
- access_token: Optional[StrictStr] = None,
310
296
  _request_timeout: Union[
311
297
  None,
312
298
  Annotated[StrictFloat, Field(gt=0)],
@@ -324,8 +310,6 @@ class APIKeysApi:
324
310
 
325
311
  :param id: (required)
326
312
  :type id: str
327
- :param access_token:
328
- :type access_token: str
329
313
  :param _request_timeout: timeout setting for this request. If one
330
314
  number provided, it will be total request
331
315
  timeout. It can also be a pair (tuple) of
@@ -350,7 +334,6 @@ class APIKeysApi:
350
334
 
351
335
  _param = self._delete_api_key_serialize(
352
336
  id=id,
353
- access_token=access_token,
354
337
  _request_auth=_request_auth,
355
338
  _content_type=_content_type,
356
339
  _headers=_headers,
@@ -374,7 +357,6 @@ class APIKeysApi:
374
357
  async def delete_api_key_with_http_info(
375
358
  self,
376
359
  id: StrictStr,
377
- access_token: Optional[StrictStr] = None,
378
360
  _request_timeout: Union[
379
361
  None,
380
362
  Annotated[StrictFloat, Field(gt=0)],
@@ -392,8 +374,6 @@ class APIKeysApi:
392
374
 
393
375
  :param id: (required)
394
376
  :type id: str
395
- :param access_token:
396
- :type access_token: str
397
377
  :param _request_timeout: timeout setting for this request. If one
398
378
  number provided, it will be total request
399
379
  timeout. It can also be a pair (tuple) of
@@ -418,7 +398,6 @@ class APIKeysApi:
418
398
 
419
399
  _param = self._delete_api_key_serialize(
420
400
  id=id,
421
- access_token=access_token,
422
401
  _request_auth=_request_auth,
423
402
  _content_type=_content_type,
424
403
  _headers=_headers,
@@ -442,7 +421,6 @@ class APIKeysApi:
442
421
  async def delete_api_key_without_preload_content(
443
422
  self,
444
423
  id: StrictStr,
445
- access_token: Optional[StrictStr] = None,
446
424
  _request_timeout: Union[
447
425
  None,
448
426
  Annotated[StrictFloat, Field(gt=0)],
@@ -460,8 +438,6 @@ class APIKeysApi:
460
438
 
461
439
  :param id: (required)
462
440
  :type id: str
463
- :param access_token:
464
- :type access_token: str
465
441
  :param _request_timeout: timeout setting for this request. If one
466
442
  number provided, it will be total request
467
443
  timeout. It can also be a pair (tuple) of
@@ -486,7 +462,6 @@ class APIKeysApi:
486
462
 
487
463
  _param = self._delete_api_key_serialize(
488
464
  id=id,
489
- access_token=access_token,
490
465
  _request_auth=_request_auth,
491
466
  _content_type=_content_type,
492
467
  _headers=_headers,
@@ -505,7 +480,6 @@ class APIKeysApi:
505
480
  def _delete_api_key_serialize(
506
481
  self,
507
482
  id,
508
- access_token,
509
483
  _request_auth,
510
484
  _content_type,
511
485
  _headers,
@@ -540,7 +514,7 @@ class APIKeysApi:
540
514
  )
541
515
 
542
516
  # authentication setting
543
- _auth_settings: List[str] = ["HTTPBearer"]
517
+ _auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
544
518
 
545
519
  return self.api_client.param_serialize(
546
520
  method="DELETE",
@@ -561,7 +535,6 @@ class APIKeysApi:
561
535
  async def get_api_key_by_id(
562
536
  self,
563
537
  id: StrictStr,
564
- access_token: Optional[StrictStr] = None,
565
538
  _request_timeout: Union[
566
539
  None,
567
540
  Annotated[StrictFloat, Field(gt=0)],
@@ -579,8 +552,6 @@ class APIKeysApi:
579
552
 
580
553
  :param id: (required)
581
554
  :type id: str
582
- :param access_token:
583
- :type access_token: str
584
555
  :param _request_timeout: timeout setting for this request. If one
585
556
  number provided, it will be total request
586
557
  timeout. It can also be a pair (tuple) of
@@ -605,7 +576,6 @@ class APIKeysApi:
605
576
 
606
577
  _param = self._get_api_key_by_id_serialize(
607
578
  id=id,
608
- access_token=access_token,
609
579
  _request_auth=_request_auth,
610
580
  _content_type=_content_type,
611
581
  _headers=_headers,
@@ -629,7 +599,6 @@ class APIKeysApi:
629
599
  async def get_api_key_by_id_with_http_info(
630
600
  self,
631
601
  id: StrictStr,
632
- access_token: Optional[StrictStr] = None,
633
602
  _request_timeout: Union[
634
603
  None,
635
604
  Annotated[StrictFloat, Field(gt=0)],
@@ -647,8 +616,6 @@ class APIKeysApi:
647
616
 
648
617
  :param id: (required)
649
618
  :type id: str
650
- :param access_token:
651
- :type access_token: str
652
619
  :param _request_timeout: timeout setting for this request. If one
653
620
  number provided, it will be total request
654
621
  timeout. It can also be a pair (tuple) of
@@ -673,7 +640,6 @@ class APIKeysApi:
673
640
 
674
641
  _param = self._get_api_key_by_id_serialize(
675
642
  id=id,
676
- access_token=access_token,
677
643
  _request_auth=_request_auth,
678
644
  _content_type=_content_type,
679
645
  _headers=_headers,
@@ -697,7 +663,6 @@ class APIKeysApi:
697
663
  async def get_api_key_by_id_without_preload_content(
698
664
  self,
699
665
  id: StrictStr,
700
- access_token: Optional[StrictStr] = None,
701
666
  _request_timeout: Union[
702
667
  None,
703
668
  Annotated[StrictFloat, Field(gt=0)],
@@ -715,8 +680,6 @@ class APIKeysApi:
715
680
 
716
681
  :param id: (required)
717
682
  :type id: str
718
- :param access_token:
719
- :type access_token: str
720
683
  :param _request_timeout: timeout setting for this request. If one
721
684
  number provided, it will be total request
722
685
  timeout. It can also be a pair (tuple) of
@@ -741,7 +704,6 @@ class APIKeysApi:
741
704
 
742
705
  _param = self._get_api_key_by_id_serialize(
743
706
  id=id,
744
- access_token=access_token,
745
707
  _request_auth=_request_auth,
746
708
  _content_type=_content_type,
747
709
  _headers=_headers,
@@ -760,7 +722,6 @@ class APIKeysApi:
760
722
  def _get_api_key_by_id_serialize(
761
723
  self,
762
724
  id,
763
- access_token,
764
725
  _request_auth,
765
726
  _content_type,
766
727
  _headers,
@@ -795,7 +756,7 @@ class APIKeysApi:
795
756
  )
796
757
 
797
758
  # authentication setting
798
- _auth_settings: List[str] = ["HTTPBearer"]
759
+ _auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
799
760
 
800
761
  return self.api_client.param_serialize(
801
762
  method="GET",
@@ -817,7 +778,6 @@ class APIKeysApi:
817
778
  self,
818
779
  limit: Optional[StrictInt] = None,
819
780
  offset: Optional[StrictInt] = None,
820
- access_token: Optional[StrictStr] = None,
821
781
  _request_timeout: Union[
822
782
  None,
823
783
  Annotated[StrictFloat, Field(gt=0)],
@@ -837,8 +797,6 @@ class APIKeysApi:
837
797
  :type limit: int
838
798
  :param offset:
839
799
  :type offset: int
840
- :param access_token:
841
- :type access_token: str
842
800
  :param _request_timeout: timeout setting for this request. If one
843
801
  number provided, it will be total request
844
802
  timeout. It can also be a pair (tuple) of
@@ -864,7 +822,6 @@ class APIKeysApi:
864
822
  _param = self._get_api_keys_serialize(
865
823
  limit=limit,
866
824
  offset=offset,
867
- access_token=access_token,
868
825
  _request_auth=_request_auth,
869
826
  _content_type=_content_type,
870
827
  _headers=_headers,
@@ -889,7 +846,6 @@ class APIKeysApi:
889
846
  self,
890
847
  limit: Optional[StrictInt] = None,
891
848
  offset: Optional[StrictInt] = None,
892
- access_token: Optional[StrictStr] = None,
893
849
  _request_timeout: Union[
894
850
  None,
895
851
  Annotated[StrictFloat, Field(gt=0)],
@@ -909,8 +865,6 @@ class APIKeysApi:
909
865
  :type limit: int
910
866
  :param offset:
911
867
  :type offset: int
912
- :param access_token:
913
- :type access_token: str
914
868
  :param _request_timeout: timeout setting for this request. If one
915
869
  number provided, it will be total request
916
870
  timeout. It can also be a pair (tuple) of
@@ -936,7 +890,6 @@ class APIKeysApi:
936
890
  _param = self._get_api_keys_serialize(
937
891
  limit=limit,
938
892
  offset=offset,
939
- access_token=access_token,
940
893
  _request_auth=_request_auth,
941
894
  _content_type=_content_type,
942
895
  _headers=_headers,
@@ -961,7 +914,6 @@ class APIKeysApi:
961
914
  self,
962
915
  limit: Optional[StrictInt] = None,
963
916
  offset: Optional[StrictInt] = None,
964
- access_token: Optional[StrictStr] = None,
965
917
  _request_timeout: Union[
966
918
  None,
967
919
  Annotated[StrictFloat, Field(gt=0)],
@@ -981,8 +933,6 @@ class APIKeysApi:
981
933
  :type limit: int
982
934
  :param offset:
983
935
  :type offset: int
984
- :param access_token:
985
- :type access_token: str
986
936
  :param _request_timeout: timeout setting for this request. If one
987
937
  number provided, it will be total request
988
938
  timeout. It can also be a pair (tuple) of
@@ -1008,7 +958,6 @@ class APIKeysApi:
1008
958
  _param = self._get_api_keys_serialize(
1009
959
  limit=limit,
1010
960
  offset=offset,
1011
- access_token=access_token,
1012
961
  _request_auth=_request_auth,
1013
962
  _content_type=_content_type,
1014
963
  _headers=_headers,
@@ -1028,7 +977,6 @@ class APIKeysApi:
1028
977
  self,
1029
978
  limit,
1030
979
  offset,
1031
- access_token,
1032
980
  _request_auth,
1033
981
  _content_type,
1034
982
  _headers,
@@ -1069,7 +1017,7 @@ class APIKeysApi:
1069
1017
  )
1070
1018
 
1071
1019
  # authentication setting
1072
- _auth_settings: List[str] = ["HTTPBearer"]
1020
+ _auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
1073
1021
 
1074
1022
  return self.api_client.param_serialize(
1075
1023
  method="GET",
@@ -1091,7 +1039,6 @@ class APIKeysApi:
1091
1039
  self,
1092
1040
  id: StrictStr,
1093
1041
  api_key_model: APIKeyModel,
1094
- access_token: Optional[StrictStr] = None,
1095
1042
  _request_timeout: Union[
1096
1043
  None,
1097
1044
  Annotated[StrictFloat, Field(gt=0)],
@@ -1111,8 +1058,6 @@ class APIKeysApi:
1111
1058
  :type id: str
1112
1059
  :param api_key_model: (required)
1113
1060
  :type api_key_model: APIKeyModel
1114
- :param access_token:
1115
- :type access_token: str
1116
1061
  :param _request_timeout: timeout setting for this request. If one
1117
1062
  number provided, it will be total request
1118
1063
  timeout. It can also be a pair (tuple) of
@@ -1138,7 +1083,6 @@ class APIKeysApi:
1138
1083
  _param = self._update_api_key_serialize(
1139
1084
  id=id,
1140
1085
  api_key_model=api_key_model,
1141
- access_token=access_token,
1142
1086
  _request_auth=_request_auth,
1143
1087
  _content_type=_content_type,
1144
1088
  _headers=_headers,
@@ -1163,7 +1107,6 @@ class APIKeysApi:
1163
1107
  self,
1164
1108
  id: StrictStr,
1165
1109
  api_key_model: APIKeyModel,
1166
- access_token: Optional[StrictStr] = None,
1167
1110
  _request_timeout: Union[
1168
1111
  None,
1169
1112
  Annotated[StrictFloat, Field(gt=0)],
@@ -1183,8 +1126,6 @@ class APIKeysApi:
1183
1126
  :type id: str
1184
1127
  :param api_key_model: (required)
1185
1128
  :type api_key_model: APIKeyModel
1186
- :param access_token:
1187
- :type access_token: str
1188
1129
  :param _request_timeout: timeout setting for this request. If one
1189
1130
  number provided, it will be total request
1190
1131
  timeout. It can also be a pair (tuple) of
@@ -1210,7 +1151,6 @@ class APIKeysApi:
1210
1151
  _param = self._update_api_key_serialize(
1211
1152
  id=id,
1212
1153
  api_key_model=api_key_model,
1213
- access_token=access_token,
1214
1154
  _request_auth=_request_auth,
1215
1155
  _content_type=_content_type,
1216
1156
  _headers=_headers,
@@ -1235,7 +1175,6 @@ class APIKeysApi:
1235
1175
  self,
1236
1176
  id: StrictStr,
1237
1177
  api_key_model: APIKeyModel,
1238
- access_token: Optional[StrictStr] = None,
1239
1178
  _request_timeout: Union[
1240
1179
  None,
1241
1180
  Annotated[StrictFloat, Field(gt=0)],
@@ -1255,8 +1194,6 @@ class APIKeysApi:
1255
1194
  :type id: str
1256
1195
  :param api_key_model: (required)
1257
1196
  :type api_key_model: APIKeyModel
1258
- :param access_token:
1259
- :type access_token: str
1260
1197
  :param _request_timeout: timeout setting for this request. If one
1261
1198
  number provided, it will be total request
1262
1199
  timeout. It can also be a pair (tuple) of
@@ -1282,7 +1219,6 @@ class APIKeysApi:
1282
1219
  _param = self._update_api_key_serialize(
1283
1220
  id=id,
1284
1221
  api_key_model=api_key_model,
1285
- access_token=access_token,
1286
1222
  _request_auth=_request_auth,
1287
1223
  _content_type=_content_type,
1288
1224
  _headers=_headers,
@@ -1302,7 +1238,6 @@ class APIKeysApi:
1302
1238
  self,
1303
1239
  id,
1304
1240
  api_key_model,
1305
- access_token,
1306
1241
  _request_auth,
1307
1242
  _content_type,
1308
1243
  _headers,
@@ -1349,7 +1284,7 @@ class APIKeysApi:
1349
1284
  _header_params["Content-Type"] = _default_content_type
1350
1285
 
1351
1286
  # authentication setting
1352
- _auth_settings: List[str] = ["HTTPBearer"]
1287
+ _auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
1353
1288
 
1354
1289
  return self.api_client.param_serialize(
1355
1290
  method="PUT",