crypticorn 2.17.0rc4__py3-none-any.whl → 2.17.0rc6__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/auth/client/api/admin_api.py +6 -26
- crypticorn/auth/client/api/auth_api.py +36 -148
- crypticorn/auth/client/api/service_api.py +3 -16
- crypticorn/auth/client/api/user_api.py +33 -136
- crypticorn/auth/client/api/wallet_api.py +18 -76
- crypticorn/auth/client/api_client.py +0 -5
- crypticorn/auth/client/models/add_wallet_request.py +1 -1
- crypticorn/auth/client/models/authorize_user_request.py +1 -1
- crypticorn/auth/client/models/create_api_key_request.py +1 -1
- crypticorn/auth/client/models/create_user_request.py +1 -1
- crypticorn/auth/client/models/get_api_keys200_response_inner.py +1 -1
- crypticorn/auth/client/models/list_wallets200_response_balances_inner_sale_round.py +1 -1
- crypticorn/auth/client/models/list_wallets200_response_balances_inner_wallet.py +1 -1
- crypticorn/auth/client/models/list_wallets200_response_balances_inner_wallet_vesting_wallets_inner.py +1 -1
- crypticorn/auth/client/models/list_wallets200_response_data_inner.py +1 -1
- crypticorn/auth/client/models/logout_default_response.py +1 -1
- crypticorn/auth/client/models/oauth_callback200_response_user.py +1 -1
- crypticorn/auth/client/models/refresh_token_info200_response_user_session.py +1 -1
- crypticorn/auth/client/models/rotate_tokens200_response.py +1 -1
- crypticorn/auth/client/models/token_info200_response.py +1 -1
- crypticorn/auth/client/models/update_user_request.py +1 -1
- crypticorn/auth/client/models/user_by_username200_response.py +1 -1
- crypticorn/auth/client/models/verify200_response.py +1 -1
- crypticorn/auth/client/models/verify_email200_response_auth.py +1 -1
- crypticorn/auth/client/models/verify_email200_response_auth_auth.py +1 -1
- crypticorn/auth/client/models/whoami200_response.py +1 -1
- crypticorn/cli/init.py +1 -1
- crypticorn/cli/templates/.env.docker.temp +3 -0
- crypticorn/cli/templates/.env.example.temp +4 -0
- crypticorn/cli/templates/Dockerfile +5 -2
- crypticorn/client.py +0 -1
- crypticorn/common/auth.py +31 -4
- crypticorn/common/decorators.py +1 -2
- crypticorn/common/enums.py +0 -2
- crypticorn/common/errors.py +10 -0
- crypticorn/common/metrics.py +1 -1
- crypticorn/common/middleware.py +0 -1
- crypticorn/common/pagination.py +116 -24
- crypticorn/common/router/admin_router.py +1 -11
- crypticorn/common/router/status_router.py +33 -2
- crypticorn/common/scopes.py +2 -2
- crypticorn/common/utils.py +1 -2
- crypticorn/dex/__init__.py +6 -0
- crypticorn/dex/client/__init__.py +49 -0
- crypticorn/dex/client/api/__init__.py +6 -0
- crypticorn/dex/client/api/admin_api.py +2983 -0
- crypticorn/dex/client/api/signals_api.py +1794 -0
- crypticorn/dex/client/api/status_api.py +889 -0
- crypticorn/dex/client/api_client.py +753 -0
- crypticorn/dex/client/api_response.py +20 -0
- crypticorn/dex/client/configuration.py +620 -0
- crypticorn/dex/client/exceptions.py +220 -0
- crypticorn/dex/client/models/__init__.py +30 -0
- crypticorn/dex/client/models/api_error_identifier.py +121 -0
- crypticorn/dex/client/models/api_error_level.py +37 -0
- crypticorn/dex/client/models/api_error_type.py +37 -0
- crypticorn/dex/client/models/exception_detail.py +117 -0
- crypticorn/dex/client/models/log_level.py +38 -0
- crypticorn/dex/client/models/paginated_response_signal_with_token.py +134 -0
- crypticorn/dex/client/models/risk.py +86 -0
- crypticorn/dex/client/models/signal_overview_stats.py +156 -0
- crypticorn/dex/client/models/signal_volume.py +84 -0
- crypticorn/dex/client/models/signal_with_token.py +163 -0
- crypticorn/dex/client/models/token_data.py +127 -0
- crypticorn/dex/client/models/token_detail.py +116 -0
- crypticorn/dex/client/py.typed +0 -0
- crypticorn/dex/client/rest.py +217 -0
- crypticorn/dex/main.py +1 -0
- crypticorn/hive/client/api/admin_api.py +18 -75
- crypticorn/hive/client/api/data_api.py +6 -28
- crypticorn/hive/client/api/models_api.py +22 -88
- crypticorn/hive/client/api/status_api.py +6 -27
- crypticorn/hive/client/api_client.py +0 -5
- crypticorn/hive/client/models/coin_info.py +1 -1
- crypticorn/hive/client/models/exception_detail.py +1 -1
- crypticorn/hive/client/models/target_info.py +1 -1
- crypticorn/hive/utils.py +2 -2
- crypticorn/klines/client/api/admin_api.py +18 -75
- crypticorn/klines/client/api/change_in_timeframe_api.py +3 -16
- crypticorn/klines/client/api/funding_rates_api.py +3 -16
- crypticorn/klines/client/api/ohlcv_data_api.py +3 -16
- crypticorn/klines/client/api/status_api.py +6 -27
- crypticorn/klines/client/api/symbols_api.py +3 -16
- crypticorn/klines/client/api/udf_api.py +18 -74
- crypticorn/klines/client/api_client.py +0 -5
- crypticorn/klines/client/models/exception_detail.py +1 -1
- crypticorn/klines/client/models/ohlcv.py +1 -1
- crypticorn/klines/client/models/symbol_group.py +1 -1
- crypticorn/klines/client/models/udf_config.py +1 -1
- crypticorn/metrics/client/api/admin_api.py +18 -75
- crypticorn/metrics/client/api/exchanges_api.py +12 -52
- crypticorn/metrics/client/api/indicators_api.py +6 -28
- crypticorn/metrics/client/api/logs_api.py +3 -16
- crypticorn/metrics/client/api/marketcap_api.py +12 -52
- crypticorn/metrics/client/api/markets_api.py +3 -16
- crypticorn/metrics/client/api/quote_currencies_api.py +3 -16
- crypticorn/metrics/client/api/status_api.py +6 -27
- crypticorn/metrics/client/api/tokens_api.py +6 -26
- crypticorn/metrics/client/api_client.py +0 -5
- crypticorn/metrics/client/models/exception_detail.py +1 -1
- crypticorn/metrics/client/models/exchange_mapping.py +1 -1
- crypticorn/metrics/client/models/marketcap_ranking.py +1 -1
- crypticorn/metrics/client/models/marketcap_symbol_ranking.py +1 -1
- crypticorn/metrics/client/models/ohlcv.py +1 -1
- crypticorn/pay/client/api/admin_api.py +21 -87
- crypticorn/pay/client/api/now_payments_api.py +15 -64
- crypticorn/pay/client/api/payments_api.py +6 -28
- crypticorn/pay/client/api/products_api.py +12 -52
- crypticorn/pay/client/api/status_api.py +6 -27
- crypticorn/pay/client/api_client.py +0 -5
- crypticorn/pay/client/models/exception_detail.py +1 -1
- crypticorn/pay/client/models/now_create_invoice_req.py +1 -1
- crypticorn/pay/client/models/now_create_invoice_res.py +1 -1
- crypticorn/pay/client/models/product.py +1 -1
- crypticorn/pay/client/models/product_create.py +1 -1
- crypticorn/pay/client/models/product_update.py +1 -1
- crypticorn/trade/client/__init__.py +15 -0
- crypticorn/trade/client/api/admin_api.py +43 -107
- crypticorn/trade/client/api/api_keys_api.py +207 -184
- crypticorn/trade/client/api/bots_api.py +6557 -240
- crypticorn/trade/client/api/exchanges_api.py +9 -36
- crypticorn/trade/client/api/notifications_api.py +18 -72
- crypticorn/trade/client/api/orders_api.py +220 -115
- crypticorn/trade/client/api/status_api.py +6 -24
- crypticorn/trade/client/api/strategies_api.py +15 -60
- crypticorn/trade/client/api/trading_actions_api.py +431 -112
- crypticorn/trade/client/models/__init__.py +15 -0
- crypticorn/trade/client/models/bot.py +7 -18
- crypticorn/trade/client/models/bot_create.py +17 -1
- crypticorn/trade/client/models/bot_update.py +17 -1
- crypticorn/trade/client/models/exchange_key_create.py +17 -1
- crypticorn/trade/client/models/exchange_key_update.py +17 -1
- crypticorn/trade/client/models/notification.py +17 -1
- crypticorn/trade/client/models/notification_create.py +17 -1
- crypticorn/trade/client/models/notification_update.py +17 -1
- crypticorn/trade/client/models/orders_count.py +88 -0
- crypticorn/trade/client/models/paginated_response_futures_trading_action.py +134 -0
- crypticorn/trade/client/models/paginated_response_order.py +134 -0
- crypticorn/trade/client/models/paginated_response_union_futures_trading_action_spot_trading_action.py +141 -0
- crypticorn/trade/client/models/paginated_response_union_futures_trading_action_spot_trading_action_data_inner.py +165 -0
- crypticorn/trade/client/models/pn_l.py +95 -0
- crypticorn/trade/client/models/spot_trading_action.py +207 -0
- crypticorn/trade/client/models/strategy.py +17 -1
- crypticorn/trade/client/models/strategy_create.py +17 -1
- crypticorn/trade/client/models/strategy_update.py +17 -1
- {crypticorn-2.17.0rc4.dist-info → crypticorn-2.17.0rc6.dist-info}/METADATA +3 -3
- {crypticorn-2.17.0rc4.dist-info → crypticorn-2.17.0rc6.dist-info}/RECORD +151 -116
- {crypticorn-2.17.0rc4.dist-info → crypticorn-2.17.0rc6.dist-info}/WHEEL +0 -0
- {crypticorn-2.17.0rc4.dist-info → crypticorn-2.17.0rc6.dist-info}/entry_points.txt +0 -0
- {crypticorn-2.17.0rc4.dist-info → crypticorn-2.17.0rc6.dist-info}/licenses/LICENSE +0 -0
- {crypticorn-2.17.0rc4.dist-info → crypticorn-2.17.0rc6.dist-info}/top_level.txt +0 -0
@@ -16,9 +16,6 @@ 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, StrictFloat, StrictInt, StrictStr, field_validator
|
20
|
-
from typing import Any, Dict, List, Optional, Union
|
21
|
-
from typing_extensions import Annotated
|
22
19
|
from crypticorn.pay.client.models.log_level import LogLevel
|
23
20
|
|
24
21
|
from crypticorn.pay.client.api_client import ApiClient, RequestSerialized
|
@@ -72,10 +69,7 @@ class AdminApi:
|
|
72
69
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
73
70
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
74
71
|
) -> Dict[str, object]:
|
75
|
-
"""Get Container Limits
|
76
|
-
|
77
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
78
|
-
"""
|
72
|
+
"""Get Container Limits"""
|
79
73
|
if self.is_sync:
|
80
74
|
return self._get_container_limits_sync(
|
81
75
|
_request_timeout=_request_timeout,
|
@@ -109,10 +103,7 @@ class AdminApi:
|
|
109
103
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
110
104
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
111
105
|
) -> ApiResponse[Dict[str, object]]:
|
112
|
-
"""Get Container Limits with HTTP info
|
113
|
-
|
114
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
115
|
-
"""
|
106
|
+
"""Get Container Limits with HTTP info"""
|
116
107
|
if self.is_sync:
|
117
108
|
return self._get_container_limits_sync_with_http_info(
|
118
109
|
_request_timeout=_request_timeout,
|
@@ -146,10 +137,7 @@ class AdminApi:
|
|
146
137
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
147
138
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
148
139
|
) -> RESTResponseType:
|
149
|
-
"""Get Container Limits without preloading content
|
150
|
-
|
151
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
152
|
-
"""
|
140
|
+
"""Get Container Limits without preloading content"""
|
153
141
|
if self.is_sync:
|
154
142
|
return self._get_container_limits_sync_without_preload_content(
|
155
143
|
_request_timeout=_request_timeout,
|
@@ -489,10 +477,7 @@ class AdminApi:
|
|
489
477
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
490
478
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
491
479
|
) -> Dict[str, Optional[str]]:
|
492
|
-
"""List Installed Packages
|
493
|
-
|
494
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
495
|
-
"""
|
480
|
+
"""List Installed Packages"""
|
496
481
|
if self.is_sync:
|
497
482
|
return self._get_dependencies_sync(
|
498
483
|
include=include,
|
@@ -534,10 +519,7 @@ class AdminApi:
|
|
534
519
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
535
520
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
536
521
|
) -> ApiResponse[Dict[str, Optional[str]]]:
|
537
|
-
"""List Installed Packages with HTTP info
|
538
|
-
|
539
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
540
|
-
"""
|
522
|
+
"""List Installed Packages with HTTP info"""
|
541
523
|
if self.is_sync:
|
542
524
|
return self._get_dependencies_sync_with_http_info(
|
543
525
|
include=include,
|
@@ -579,10 +561,7 @@ class AdminApi:
|
|
579
561
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
580
562
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
581
563
|
) -> RESTResponseType:
|
582
|
-
"""List Installed Packages without preloading content
|
583
|
-
|
584
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
585
|
-
"""
|
564
|
+
"""List Installed Packages without preloading content"""
|
586
565
|
if self.is_sync:
|
587
566
|
return self._get_dependencies_sync_without_preload_content(
|
588
567
|
include=include,
|
@@ -973,10 +952,7 @@ class AdminApi:
|
|
973
952
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
974
953
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
975
954
|
) -> LogLevel:
|
976
|
-
"""Get Logging Level
|
977
|
-
|
978
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
979
|
-
"""
|
955
|
+
"""Get Logging Level"""
|
980
956
|
if self.is_sync:
|
981
957
|
return self._get_log_level_sync(
|
982
958
|
_request_timeout=_request_timeout,
|
@@ -1010,10 +986,7 @@ class AdminApi:
|
|
1010
986
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1011
987
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1012
988
|
) -> ApiResponse[LogLevel]:
|
1013
|
-
"""Get Logging Level with HTTP info
|
1014
|
-
|
1015
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
1016
|
-
"""
|
989
|
+
"""Get Logging Level with HTTP info"""
|
1017
990
|
if self.is_sync:
|
1018
991
|
return self._get_log_level_sync_with_http_info(
|
1019
992
|
_request_timeout=_request_timeout,
|
@@ -1047,10 +1020,7 @@ class AdminApi:
|
|
1047
1020
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1048
1021
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1049
1022
|
) -> RESTResponseType:
|
1050
|
-
"""Get Logging Level without preloading content
|
1051
|
-
|
1052
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
1053
|
-
"""
|
1023
|
+
"""Get Logging Level without preloading content"""
|
1054
1024
|
if self.is_sync:
|
1055
1025
|
return self._get_log_level_sync_without_preload_content(
|
1056
1026
|
_request_timeout=_request_timeout,
|
@@ -1387,10 +1357,7 @@ class AdminApi:
|
|
1387
1357
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1388
1358
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1389
1359
|
) -> float:
|
1390
|
-
"""Get Memory Usage
|
1391
|
-
|
1392
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
1393
|
-
"""
|
1360
|
+
"""Get Memory Usage"""
|
1394
1361
|
if self.is_sync:
|
1395
1362
|
return self._get_memory_usage_sync(
|
1396
1363
|
_request_timeout=_request_timeout,
|
@@ -1424,10 +1391,7 @@ class AdminApi:
|
|
1424
1391
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1425
1392
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1426
1393
|
) -> ApiResponse[float]:
|
1427
|
-
"""Get Memory Usage with HTTP info
|
1428
|
-
|
1429
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
1430
|
-
"""
|
1394
|
+
"""Get Memory Usage with HTTP info"""
|
1431
1395
|
if self.is_sync:
|
1432
1396
|
return self._get_memory_usage_sync_with_http_info(
|
1433
1397
|
_request_timeout=_request_timeout,
|
@@ -1461,10 +1425,7 @@ class AdminApi:
|
|
1461
1425
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1462
1426
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1463
1427
|
) -> RESTResponseType:
|
1464
|
-
"""Get Memory Usage without preloading content
|
1465
|
-
|
1466
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
1467
|
-
"""
|
1428
|
+
"""Get Memory Usage without preloading content"""
|
1468
1429
|
if self.is_sync:
|
1469
1430
|
return self._get_memory_usage_sync_without_preload_content(
|
1470
1431
|
_request_timeout=_request_timeout,
|
@@ -1798,10 +1759,7 @@ class AdminApi:
|
|
1798
1759
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1799
1760
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1800
1761
|
) -> object:
|
1801
|
-
"""Metrics
|
1802
|
-
|
1803
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
1804
|
-
"""
|
1762
|
+
"""Metrics"""
|
1805
1763
|
if self.is_sync:
|
1806
1764
|
return self._get_metrics_sync(
|
1807
1765
|
_request_timeout=_request_timeout,
|
@@ -1835,10 +1793,7 @@ class AdminApi:
|
|
1835
1793
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1836
1794
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1837
1795
|
) -> ApiResponse[object]:
|
1838
|
-
"""Metrics with HTTP info
|
1839
|
-
|
1840
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
1841
|
-
"""
|
1796
|
+
"""Metrics with HTTP info"""
|
1842
1797
|
if self.is_sync:
|
1843
1798
|
return self._get_metrics_sync_with_http_info(
|
1844
1799
|
_request_timeout=_request_timeout,
|
@@ -1872,10 +1827,7 @@ class AdminApi:
|
|
1872
1827
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1873
1828
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1874
1829
|
) -> RESTResponseType:
|
1875
|
-
"""Metrics without preloading content
|
1876
|
-
|
1877
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
1878
|
-
"""
|
1830
|
+
"""Metrics without preloading content"""
|
1879
1831
|
if self.is_sync:
|
1880
1832
|
return self._get_metrics_sync_without_preload_content(
|
1881
1833
|
_request_timeout=_request_timeout,
|
@@ -2209,10 +2161,7 @@ class AdminApi:
|
|
2209
2161
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2210
2162
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2211
2163
|
) -> Dict[str, object]:
|
2212
|
-
"""Get Threads
|
2213
|
-
|
2214
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
2215
|
-
"""
|
2164
|
+
"""Get Threads"""
|
2216
2165
|
if self.is_sync:
|
2217
2166
|
return self._get_threads_sync(
|
2218
2167
|
_request_timeout=_request_timeout,
|
@@ -2246,10 +2195,7 @@ class AdminApi:
|
|
2246
2195
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2247
2196
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2248
2197
|
) -> ApiResponse[Dict[str, object]]:
|
2249
|
-
"""Get Threads with HTTP info
|
2250
|
-
|
2251
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
2252
|
-
"""
|
2198
|
+
"""Get Threads with HTTP info"""
|
2253
2199
|
if self.is_sync:
|
2254
2200
|
return self._get_threads_sync_with_http_info(
|
2255
2201
|
_request_timeout=_request_timeout,
|
@@ -2283,10 +2229,7 @@ class AdminApi:
|
|
2283
2229
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2284
2230
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2285
2231
|
) -> RESTResponseType:
|
2286
|
-
"""Get Threads without preloading content
|
2287
|
-
|
2288
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
2289
|
-
"""
|
2232
|
+
"""Get Threads without preloading content"""
|
2290
2233
|
if self.is_sync:
|
2291
2234
|
return self._get_threads_sync_without_preload_content(
|
2292
2235
|
_request_timeout=_request_timeout,
|
@@ -2621,10 +2564,7 @@ class AdminApi:
|
|
2621
2564
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2622
2565
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2623
2566
|
) -> str:
|
2624
|
-
"""Get Uptime
|
2625
|
-
|
2626
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
2627
|
-
"""
|
2567
|
+
"""Get Uptime"""
|
2628
2568
|
if self.is_sync:
|
2629
2569
|
return self._get_uptime_sync(
|
2630
2570
|
type=type,
|
@@ -2661,10 +2601,7 @@ class AdminApi:
|
|
2661
2601
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2662
2602
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2663
2603
|
) -> ApiResponse[str]:
|
2664
|
-
"""Get Uptime with HTTP info
|
2665
|
-
|
2666
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
2667
|
-
"""
|
2604
|
+
"""Get Uptime with HTTP info"""
|
2668
2605
|
if self.is_sync:
|
2669
2606
|
return self._get_uptime_sync_with_http_info(
|
2670
2607
|
type=type,
|
@@ -2701,10 +2638,7 @@ class AdminApi:
|
|
2701
2638
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2702
2639
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2703
2640
|
) -> RESTResponseType:
|
2704
|
-
"""Get Uptime without preloading content
|
2705
|
-
|
2706
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
2707
|
-
"""
|
2641
|
+
"""Get Uptime without preloading content"""
|
2708
2642
|
if self.is_sync:
|
2709
2643
|
return self._get_uptime_sync_without_preload_content(
|
2710
2644
|
type=type,
|
@@ -11,14 +11,10 @@ Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
Do not edit the class manually.
|
12
12
|
""" # noqa: E501
|
13
13
|
|
14
|
-
import warnings
|
15
14
|
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
16
15
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
17
16
|
from typing_extensions import Annotated
|
18
17
|
|
19
|
-
from pydantic import Field, StrictInt, StrictStr
|
20
|
-
from typing import Any, List
|
21
|
-
from typing_extensions import Annotated
|
22
18
|
from crypticorn.pay.client.models.now_create_invoice_req import NowCreateInvoiceReq
|
23
19
|
from crypticorn.pay.client.models.now_create_invoice_res import NowCreateInvoiceRes
|
24
20
|
from crypticorn.pay.client.models.payment import Payment
|
@@ -75,10 +71,7 @@ class NOWPaymentsApi:
|
|
75
71
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
76
72
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
77
73
|
) -> NowCreateInvoiceRes:
|
78
|
-
"""Create Invoice
|
79
|
-
|
80
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
81
|
-
"""
|
74
|
+
"""Create Invoice"""
|
82
75
|
if self.is_sync:
|
83
76
|
return self._create_now_invoice_sync(
|
84
77
|
now_create_invoice_req=now_create_invoice_req,
|
@@ -115,10 +108,7 @@ class NOWPaymentsApi:
|
|
115
108
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
116
109
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
117
110
|
) -> ApiResponse[NowCreateInvoiceRes]:
|
118
|
-
"""Create Invoice with HTTP info
|
119
|
-
|
120
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
121
|
-
"""
|
111
|
+
"""Create Invoice with HTTP info"""
|
122
112
|
if self.is_sync:
|
123
113
|
return self._create_now_invoice_sync_with_http_info(
|
124
114
|
now_create_invoice_req=now_create_invoice_req,
|
@@ -155,10 +145,7 @@ class NOWPaymentsApi:
|
|
155
145
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
156
146
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
157
147
|
) -> RESTResponseType:
|
158
|
-
"""Create Invoice without preloading content
|
159
|
-
|
160
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
161
|
-
"""
|
148
|
+
"""Create Invoice without preloading content"""
|
162
149
|
if self.is_sync:
|
163
150
|
return self._create_now_invoice_sync_without_preload_content(
|
164
151
|
now_create_invoice_req=now_create_invoice_req,
|
@@ -525,10 +512,7 @@ class NOWPaymentsApi:
|
|
525
512
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
526
513
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
527
514
|
) -> str:
|
528
|
-
"""Get Status
|
529
|
-
|
530
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
531
|
-
"""
|
515
|
+
"""Get Status"""
|
532
516
|
if self.is_sync:
|
533
517
|
return self._get_now_api_status_sync(
|
534
518
|
_request_timeout=_request_timeout,
|
@@ -562,10 +546,7 @@ class NOWPaymentsApi:
|
|
562
546
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
563
547
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
564
548
|
) -> ApiResponse[str]:
|
565
|
-
"""Get Status with HTTP info
|
566
|
-
|
567
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
568
|
-
"""
|
549
|
+
"""Get Status with HTTP info"""
|
569
550
|
if self.is_sync:
|
570
551
|
return self._get_now_api_status_sync_with_http_info(
|
571
552
|
_request_timeout=_request_timeout,
|
@@ -599,10 +580,7 @@ class NOWPaymentsApi:
|
|
599
580
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
600
581
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
601
582
|
) -> RESTResponseType:
|
602
|
-
"""Get Status without preloading content
|
603
|
-
|
604
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
605
|
-
"""
|
583
|
+
"""Get Status without preloading content"""
|
606
584
|
if self.is_sync:
|
607
585
|
return self._get_now_api_status_sync_without_preload_content(
|
608
586
|
_request_timeout=_request_timeout,
|
@@ -937,10 +915,7 @@ class NOWPaymentsApi:
|
|
937
915
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
938
916
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
939
917
|
) -> Payment:
|
940
|
-
"""Get Now Payment By Invoice
|
941
|
-
|
942
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
943
|
-
"""
|
918
|
+
"""Get Now Payment By Invoice"""
|
944
919
|
if self.is_sync:
|
945
920
|
return self._get_now_payment_by_invoice_sync(
|
946
921
|
id=id,
|
@@ -977,10 +952,7 @@ class NOWPaymentsApi:
|
|
977
952
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
978
953
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
979
954
|
) -> ApiResponse[Payment]:
|
980
|
-
"""Get Now Payment By Invoice with HTTP info
|
981
|
-
|
982
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
983
|
-
"""
|
955
|
+
"""Get Now Payment By Invoice with HTTP info"""
|
984
956
|
if self.is_sync:
|
985
957
|
return self._get_now_payment_by_invoice_sync_with_http_info(
|
986
958
|
id=id,
|
@@ -1017,10 +989,7 @@ class NOWPaymentsApi:
|
|
1017
989
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1018
990
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1019
991
|
) -> RESTResponseType:
|
1020
|
-
"""Get Now Payment By Invoice without preloading content
|
1021
|
-
|
1022
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
1023
|
-
"""
|
992
|
+
"""Get Now Payment By Invoice without preloading content"""
|
1024
993
|
if self.is_sync:
|
1025
994
|
return self._get_now_payment_by_invoice_sync_without_preload_content(
|
1026
995
|
id=id,
|
@@ -1379,10 +1348,7 @@ class NOWPaymentsApi:
|
|
1379
1348
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1380
1349
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1381
1350
|
) -> List[Payment]:
|
1382
|
-
"""Get Now Payments
|
1383
|
-
|
1384
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
1385
|
-
"""
|
1351
|
+
"""Get Now Payments"""
|
1386
1352
|
if self.is_sync:
|
1387
1353
|
return self._get_now_payments_sync(
|
1388
1354
|
_request_timeout=_request_timeout,
|
@@ -1416,10 +1382,7 @@ class NOWPaymentsApi:
|
|
1416
1382
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1417
1383
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1418
1384
|
) -> ApiResponse[List[Payment]]:
|
1419
|
-
"""Get Now Payments with HTTP info
|
1420
|
-
|
1421
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
1422
|
-
"""
|
1385
|
+
"""Get Now Payments with HTTP info"""
|
1423
1386
|
if self.is_sync:
|
1424
1387
|
return self._get_now_payments_sync_with_http_info(
|
1425
1388
|
_request_timeout=_request_timeout,
|
@@ -1453,10 +1416,7 @@ class NOWPaymentsApi:
|
|
1453
1416
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1454
1417
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1455
1418
|
) -> RESTResponseType:
|
1456
|
-
"""Get Now Payments without preloading content
|
1457
|
-
|
1458
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
1459
|
-
"""
|
1419
|
+
"""Get Now Payments without preloading content"""
|
1460
1420
|
if self.is_sync:
|
1461
1421
|
return self._get_now_payments_sync_without_preload_content(
|
1462
1422
|
_request_timeout=_request_timeout,
|
@@ -1790,10 +1750,7 @@ class NOWPaymentsApi:
|
|
1790
1750
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1791
1751
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1792
1752
|
) -> object:
|
1793
|
-
"""Handle Webhook
|
1794
|
-
|
1795
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
1796
|
-
"""
|
1753
|
+
"""Handle Webhook"""
|
1797
1754
|
if self.is_sync:
|
1798
1755
|
return self._handle_now_webhook_sync(
|
1799
1756
|
_request_timeout=_request_timeout,
|
@@ -1827,10 +1784,7 @@ class NOWPaymentsApi:
|
|
1827
1784
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1828
1785
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1829
1786
|
) -> ApiResponse[object]:
|
1830
|
-
"""Handle Webhook with HTTP info
|
1831
|
-
|
1832
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
1833
|
-
"""
|
1787
|
+
"""Handle Webhook with HTTP info"""
|
1834
1788
|
if self.is_sync:
|
1835
1789
|
return self._handle_now_webhook_sync_with_http_info(
|
1836
1790
|
_request_timeout=_request_timeout,
|
@@ -1864,10 +1818,7 @@ class NOWPaymentsApi:
|
|
1864
1818
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1865
1819
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1866
1820
|
) -> RESTResponseType:
|
1867
|
-
"""Handle Webhook without preloading content
|
1868
|
-
|
1869
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
1870
|
-
"""
|
1821
|
+
"""Handle Webhook without preloading content"""
|
1871
1822
|
if self.is_sync:
|
1872
1823
|
return self._handle_now_webhook_sync_without_preload_content(
|
1873
1824
|
_request_timeout=_request_timeout,
|
@@ -11,14 +11,10 @@ Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
Do not edit the class manually.
|
12
12
|
""" # noqa: E501
|
13
13
|
|
14
|
-
import warnings
|
15
14
|
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
16
15
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
17
16
|
from typing_extensions import Annotated
|
18
17
|
|
19
|
-
from pydantic import Field, StrictInt, StrictStr, field_validator
|
20
|
-
from typing import List, Optional
|
21
|
-
from typing_extensions import Annotated
|
22
18
|
from crypticorn.pay.client.models.payment import Payment
|
23
19
|
from crypticorn.pay.client.models.subscription import Subscription
|
24
20
|
|
@@ -85,10 +81,7 @@ class PaymentsApi:
|
|
85
81
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
86
82
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
87
83
|
) -> List[Payment]:
|
88
|
-
"""Get Payment History
|
89
|
-
|
90
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
91
|
-
"""
|
84
|
+
"""Get Payment History"""
|
92
85
|
if self.is_sync:
|
93
86
|
return self._get_payment_history_sync(
|
94
87
|
limit=limit,
|
@@ -138,10 +131,7 @@ class PaymentsApi:
|
|
138
131
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
139
132
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
140
133
|
) -> ApiResponse[List[Payment]]:
|
141
|
-
"""Get Payment History with HTTP info
|
142
|
-
|
143
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
144
|
-
"""
|
134
|
+
"""Get Payment History with HTTP info"""
|
145
135
|
if self.is_sync:
|
146
136
|
return self._get_payment_history_sync_with_http_info(
|
147
137
|
limit=limit,
|
@@ -191,10 +181,7 @@ class PaymentsApi:
|
|
191
181
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
192
182
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
193
183
|
) -> RESTResponseType:
|
194
|
-
"""Get Payment History without preloading content
|
195
|
-
|
196
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
197
|
-
"""
|
184
|
+
"""Get Payment History without preloading content"""
|
198
185
|
if self.is_sync:
|
199
186
|
return self._get_payment_history_sync_without_preload_content(
|
200
187
|
limit=limit,
|
@@ -650,10 +637,7 @@ class PaymentsApi:
|
|
650
637
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
651
638
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
652
639
|
) -> List[Subscription]:
|
653
|
-
"""Get Subscriptions
|
654
|
-
|
655
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
656
|
-
"""
|
640
|
+
"""Get Subscriptions"""
|
657
641
|
if self.is_sync:
|
658
642
|
return self._get_subscriptions_sync(
|
659
643
|
user_id=user_id,
|
@@ -703,10 +687,7 @@ class PaymentsApi:
|
|
703
687
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
704
688
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
705
689
|
) -> ApiResponse[List[Subscription]]:
|
706
|
-
"""Get Subscriptions with HTTP info
|
707
|
-
|
708
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
709
|
-
"""
|
690
|
+
"""Get Subscriptions with HTTP info"""
|
710
691
|
if self.is_sync:
|
711
692
|
return self._get_subscriptions_sync_with_http_info(
|
712
693
|
user_id=user_id,
|
@@ -756,10 +737,7 @@ class PaymentsApi:
|
|
756
737
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
757
738
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
758
739
|
) -> RESTResponseType:
|
759
|
-
"""Get Subscriptions without preloading content
|
760
|
-
|
761
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
762
|
-
"""
|
740
|
+
"""Get Subscriptions without preloading content"""
|
763
741
|
if self.is_sync:
|
764
742
|
return self._get_subscriptions_sync_without_preload_content(
|
765
743
|
user_id=user_id,
|