crypticorn 2.11.9__py3-none-any.whl → 2.12.1__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 +48 -8
- crypticorn/common/exceptions.py +11 -0
- crypticorn/hive/client/__init__.py +1 -0
- crypticorn/hive/client/models/__init__.py +1 -0
- crypticorn/hive/client/models/api_error_identifier.py +2 -0
- crypticorn/hive/client/models/coin_info.py +106 -0
- crypticorn/hive/client/models/data_info.py +17 -6
- crypticorn/hive/client/models/target_info.py +20 -6
- crypticorn/pay/client/__init__.py +5 -3
- crypticorn/pay/client/api/admin_api.py +35 -33
- crypticorn/pay/client/api/now_payments_api.py +476 -5
- crypticorn/pay/client/api/payments_api.py +43 -264
- crypticorn/pay/client/api/products_api.py +16 -16
- crypticorn/pay/client/models/__init__.py +5 -3
- crypticorn/pay/client/models/api_error_identifier.py +117 -0
- crypticorn/pay/client/models/api_error_level.py +37 -0
- crypticorn/pay/client/models/api_error_type.py +37 -0
- crypticorn/pay/client/models/exception_detail.py +7 -4
- crypticorn/pay/client/models/{product_read.py → product.py} +4 -4
- crypticorn/pay/client/models/product_create.py +1 -1
- crypticorn/pay/client/models/scope.py +1 -0
- crypticorn/pay/client/models/{product_sub_read.py → subscription.py} +5 -5
- crypticorn/trade/client/api/api_keys_api.py +61 -19
- crypticorn/trade/client/api/orders_api.py +3 -0
- crypticorn/trade/client/models/api_error_identifier.py +1 -1
- crypticorn/trade/client/models/bot.py +5 -5
- crypticorn/trade/client/models/exchange_key.py +13 -6
- crypticorn/trade/client/models/futures_trading_action.py +5 -5
- crypticorn/trade/client/models/notification.py +5 -5
- crypticorn/trade/client/models/order.py +5 -5
- crypticorn/trade/client/models/strategy.py +5 -5
- {crypticorn-2.11.9.dist-info → crypticorn-2.12.1.dist-info}/METADATA +1 -1
- {crypticorn-2.11.9.dist-info → crypticorn-2.12.1.dist-info}/RECORD +37 -34
- {crypticorn-2.11.9.dist-info → crypticorn-2.12.1.dist-info}/WHEEL +1 -1
- crypticorn/pay/client/models/response_getuptime.py +0 -159
- {crypticorn-2.11.9.dist-info → crypticorn-2.12.1.dist-info}/entry_points.txt +0 -0
- {crypticorn-2.11.9.dist-info → crypticorn-2.12.1.dist-info}/licenses/LICENSE +0 -0
- {crypticorn-2.11.9.dist-info → crypticorn-2.12.1.dist-info}/top_level.txt +0 -0
@@ -16,11 +16,10 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
16
16
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
17
17
|
from typing_extensions import Annotated
|
18
18
|
|
19
|
-
from pydantic import Field, StrictInt, StrictStr, field_validator
|
20
|
-
from typing import Any, Dict, List, Optional
|
19
|
+
from pydantic import Field, StrictFloat, StrictInt, StrictStr, field_validator
|
20
|
+
from typing import Any, Dict, List, Optional, Union
|
21
21
|
from typing_extensions import Annotated
|
22
22
|
from crypticorn.pay.client.models.log_level import LogLevel
|
23
|
-
from crypticorn.pay.client.models.response_getuptime import ResponseGetuptime
|
24
23
|
|
25
24
|
from crypticorn.pay.client.api_client import ApiClient, RequestSerialized
|
26
25
|
from crypticorn.pay.client.api_response import ApiResponse
|
@@ -272,7 +271,7 @@ class AdminApi:
|
|
272
271
|
include: Annotated[
|
273
272
|
Optional[List[Optional[StrictStr]]],
|
274
273
|
Field(
|
275
|
-
description="List of
|
274
|
+
description="List of regex patterns to match against package names. If not provided, all installed packages will be returned."
|
276
275
|
),
|
277
276
|
] = None,
|
278
277
|
_request_timeout: Union[
|
@@ -286,12 +285,12 @@ class AdminApi:
|
|
286
285
|
_content_type: Optional[StrictStr] = None,
|
287
286
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
288
287
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
289
|
-
) ->
|
288
|
+
) -> Dict[str, Optional[str]]:
|
290
289
|
"""List Installed Packages
|
291
290
|
|
292
|
-
Return a list of installed packages and versions.
|
291
|
+
Return a list of installed packages and versions. The include parameter accepts regex patterns to match against package names. For example: - crypticorn.* will match all packages starting with 'crypticorn' - .*tic.* will match all packages containing 'tic' in their name
|
293
292
|
|
294
|
-
:param include: List of
|
293
|
+
:param include: List of regex patterns to match against package names. If not provided, all installed packages will be returned.
|
295
294
|
:type include: List[Optional[str]]
|
296
295
|
:param _request_timeout: timeout setting for this request. If one
|
297
296
|
number provided, it will be total request
|
@@ -324,7 +323,7 @@ class AdminApi:
|
|
324
323
|
)
|
325
324
|
|
326
325
|
_response_types_map: Dict[str, Optional[str]] = {
|
327
|
-
"200": "
|
326
|
+
"200": "Dict[str, Optional[str]]",
|
328
327
|
}
|
329
328
|
response_data = await self.api_client.call_api(
|
330
329
|
*_param, _request_timeout=_request_timeout
|
@@ -341,7 +340,7 @@ class AdminApi:
|
|
341
340
|
include: Annotated[
|
342
341
|
Optional[List[Optional[StrictStr]]],
|
343
342
|
Field(
|
344
|
-
description="List of
|
343
|
+
description="List of regex patterns to match against package names. If not provided, all installed packages will be returned."
|
345
344
|
),
|
346
345
|
] = None,
|
347
346
|
_request_timeout: Union[
|
@@ -355,12 +354,12 @@ class AdminApi:
|
|
355
354
|
_content_type: Optional[StrictStr] = None,
|
356
355
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
357
356
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
358
|
-
) -> ApiResponse[
|
357
|
+
) -> ApiResponse[Dict[str, Optional[str]]]:
|
359
358
|
"""List Installed Packages
|
360
359
|
|
361
|
-
Return a list of installed packages and versions.
|
360
|
+
Return a list of installed packages and versions. The include parameter accepts regex patterns to match against package names. For example: - crypticorn.* will match all packages starting with 'crypticorn' - .*tic.* will match all packages containing 'tic' in their name
|
362
361
|
|
363
|
-
:param include: List of
|
362
|
+
:param include: List of regex patterns to match against package names. If not provided, all installed packages will be returned.
|
364
363
|
:type include: List[Optional[str]]
|
365
364
|
:param _request_timeout: timeout setting for this request. If one
|
366
365
|
number provided, it will be total request
|
@@ -393,7 +392,7 @@ class AdminApi:
|
|
393
392
|
)
|
394
393
|
|
395
394
|
_response_types_map: Dict[str, Optional[str]] = {
|
396
|
-
"200": "
|
395
|
+
"200": "Dict[str, Optional[str]]",
|
397
396
|
}
|
398
397
|
response_data = await self.api_client.call_api(
|
399
398
|
*_param, _request_timeout=_request_timeout
|
@@ -410,7 +409,7 @@ class AdminApi:
|
|
410
409
|
include: Annotated[
|
411
410
|
Optional[List[Optional[StrictStr]]],
|
412
411
|
Field(
|
413
|
-
description="List of
|
412
|
+
description="List of regex patterns to match against package names. If not provided, all installed packages will be returned."
|
414
413
|
),
|
415
414
|
] = None,
|
416
415
|
_request_timeout: Union[
|
@@ -427,9 +426,9 @@ class AdminApi:
|
|
427
426
|
) -> RESTResponseType:
|
428
427
|
"""List Installed Packages
|
429
428
|
|
430
|
-
Return a list of installed packages and versions.
|
429
|
+
Return a list of installed packages and versions. The include parameter accepts regex patterns to match against package names. For example: - crypticorn.* will match all packages starting with 'crypticorn' - .*tic.* will match all packages containing 'tic' in their name
|
431
430
|
|
432
|
-
:param include: List of
|
431
|
+
:param include: List of regex patterns to match against package names. If not provided, all installed packages will be returned.
|
433
432
|
:type include: List[Optional[str]]
|
434
433
|
:param _request_timeout: timeout setting for this request. If one
|
435
434
|
number provided, it will be total request
|
@@ -462,7 +461,7 @@ class AdminApi:
|
|
462
461
|
)
|
463
462
|
|
464
463
|
_response_types_map: Dict[str, Optional[str]] = {
|
465
|
-
"200": "
|
464
|
+
"200": "Dict[str, Optional[str]]",
|
466
465
|
}
|
467
466
|
response_data = await self.api_client.call_api(
|
468
467
|
*_param, _request_timeout=_request_timeout
|
@@ -542,9 +541,9 @@ class AdminApi:
|
|
542
541
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
543
542
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
544
543
|
) -> LogLevel:
|
545
|
-
"""Get Logging Level
|
544
|
+
"""(Deprecated) Get Logging Level
|
546
545
|
|
547
|
-
Get the log level of the server logger.
|
546
|
+
Get the log level of the server logger. Will be removed in a future release.
|
548
547
|
|
549
548
|
:param _request_timeout: timeout setting for this request. If one
|
550
549
|
number provided, it will be total request
|
@@ -567,6 +566,7 @@ class AdminApi:
|
|
567
566
|
:type _host_index: int, optional
|
568
567
|
:return: Returns the result object.
|
569
568
|
""" # noqa: E501
|
569
|
+
warnings.warn("GET /admin/log-level is deprecated.", DeprecationWarning)
|
570
570
|
|
571
571
|
_param = self._get_log_level_serialize(
|
572
572
|
_request_auth=_request_auth,
|
@@ -602,9 +602,9 @@ class AdminApi:
|
|
602
602
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
603
603
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
604
604
|
) -> ApiResponse[LogLevel]:
|
605
|
-
"""Get Logging Level
|
605
|
+
"""(Deprecated) Get Logging Level
|
606
606
|
|
607
|
-
Get the log level of the server logger.
|
607
|
+
Get the log level of the server logger. Will be removed in a future release.
|
608
608
|
|
609
609
|
:param _request_timeout: timeout setting for this request. If one
|
610
610
|
number provided, it will be total request
|
@@ -627,6 +627,7 @@ class AdminApi:
|
|
627
627
|
:type _host_index: int, optional
|
628
628
|
:return: Returns the result object.
|
629
629
|
""" # noqa: E501
|
630
|
+
warnings.warn("GET /admin/log-level is deprecated.", DeprecationWarning)
|
630
631
|
|
631
632
|
_param = self._get_log_level_serialize(
|
632
633
|
_request_auth=_request_auth,
|
@@ -662,9 +663,9 @@ class AdminApi:
|
|
662
663
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
663
664
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
664
665
|
) -> RESTResponseType:
|
665
|
-
"""Get Logging Level
|
666
|
+
"""(Deprecated) Get Logging Level
|
666
667
|
|
667
|
-
Get the log level of the server logger.
|
668
|
+
Get the log level of the server logger. Will be removed in a future release.
|
668
669
|
|
669
670
|
:param _request_timeout: timeout setting for this request. If one
|
670
671
|
number provided, it will be total request
|
@@ -687,6 +688,7 @@ class AdminApi:
|
|
687
688
|
:type _host_index: int, optional
|
688
689
|
:return: Returns the result object.
|
689
690
|
""" # noqa: E501
|
691
|
+
warnings.warn("GET /admin/log-level is deprecated.", DeprecationWarning)
|
690
692
|
|
691
693
|
_param = self._get_log_level_serialize(
|
692
694
|
_request_auth=_request_auth,
|
@@ -768,7 +770,7 @@ class AdminApi:
|
|
768
770
|
_content_type: Optional[StrictStr] = None,
|
769
771
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
770
772
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
771
|
-
) ->
|
773
|
+
) -> float:
|
772
774
|
"""Get Memory Usage
|
773
775
|
|
774
776
|
Resident Set Size (RSS) in MB — the actual memory used by the process in RAM. Represents the physical memory footprint. Important for monitoring real usage.
|
@@ -803,7 +805,7 @@ class AdminApi:
|
|
803
805
|
)
|
804
806
|
|
805
807
|
_response_types_map: Dict[str, Optional[str]] = {
|
806
|
-
"200": "
|
808
|
+
"200": "float",
|
807
809
|
}
|
808
810
|
response_data = await self.api_client.call_api(
|
809
811
|
*_param, _request_timeout=_request_timeout
|
@@ -828,7 +830,7 @@ class AdminApi:
|
|
828
830
|
_content_type: Optional[StrictStr] = None,
|
829
831
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
830
832
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
831
|
-
) -> ApiResponse[
|
833
|
+
) -> ApiResponse[float]:
|
832
834
|
"""Get Memory Usage
|
833
835
|
|
834
836
|
Resident Set Size (RSS) in MB — the actual memory used by the process in RAM. Represents the physical memory footprint. Important for monitoring real usage.
|
@@ -863,7 +865,7 @@ class AdminApi:
|
|
863
865
|
)
|
864
866
|
|
865
867
|
_response_types_map: Dict[str, Optional[str]] = {
|
866
|
-
"200": "
|
868
|
+
"200": "float",
|
867
869
|
}
|
868
870
|
response_data = await self.api_client.call_api(
|
869
871
|
*_param, _request_timeout=_request_timeout
|
@@ -923,7 +925,7 @@ class AdminApi:
|
|
923
925
|
)
|
924
926
|
|
925
927
|
_response_types_map: Dict[str, Optional[str]] = {
|
926
|
-
"200": "
|
928
|
+
"200": "float",
|
927
929
|
}
|
928
930
|
response_data = await self.api_client.call_api(
|
929
931
|
*_param, _request_timeout=_request_timeout
|
@@ -1223,7 +1225,7 @@ class AdminApi:
|
|
1223
1225
|
_content_type: Optional[StrictStr] = None,
|
1224
1226
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1225
1227
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1226
|
-
) ->
|
1228
|
+
) -> str:
|
1227
1229
|
"""Get Uptime
|
1228
1230
|
|
1229
1231
|
Return the server uptime in seconds or human-readable form.
|
@@ -1261,7 +1263,7 @@ class AdminApi:
|
|
1261
1263
|
)
|
1262
1264
|
|
1263
1265
|
_response_types_map: Dict[str, Optional[str]] = {
|
1264
|
-
"200": "
|
1266
|
+
"200": "str",
|
1265
1267
|
}
|
1266
1268
|
response_data = await self.api_client.call_api(
|
1267
1269
|
*_param, _request_timeout=_request_timeout
|
@@ -1287,7 +1289,7 @@ class AdminApi:
|
|
1287
1289
|
_content_type: Optional[StrictStr] = None,
|
1288
1290
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1289
1291
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1290
|
-
) -> ApiResponse[
|
1292
|
+
) -> ApiResponse[str]:
|
1291
1293
|
"""Get Uptime
|
1292
1294
|
|
1293
1295
|
Return the server uptime in seconds or human-readable form.
|
@@ -1325,7 +1327,7 @@ class AdminApi:
|
|
1325
1327
|
)
|
1326
1328
|
|
1327
1329
|
_response_types_map: Dict[str, Optional[str]] = {
|
1328
|
-
"200": "
|
1330
|
+
"200": "str",
|
1329
1331
|
}
|
1330
1332
|
response_data = await self.api_client.call_api(
|
1331
1333
|
*_param, _request_timeout=_request_timeout
|
@@ -1389,7 +1391,7 @@ class AdminApi:
|
|
1389
1391
|
)
|
1390
1392
|
|
1391
1393
|
_response_types_map: Dict[str, Optional[str]] = {
|
1392
|
-
"200": "
|
1394
|
+
"200": "str",
|
1393
1395
|
}
|
1394
1396
|
response_data = await self.api_client.call_api(
|
1395
1397
|
*_param, _request_timeout=_request_timeout
|