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,8 +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 StrictInt, StrictStr
|
20
|
-
from typing import Any, List, Optional
|
21
19
|
from crypticorn.klines.client.models.ohlcv import OHLCV
|
22
20
|
from crypticorn.klines.client.models.resolution import Resolution
|
23
21
|
from crypticorn.klines.client.models.search_symbol import SearchSymbol
|
@@ -77,10 +75,7 @@ class UDFApi:
|
|
77
75
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
78
76
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
79
77
|
) -> SymbolInfo:
|
80
|
-
"""Get Symbol
|
81
|
-
|
82
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
83
|
-
"""
|
78
|
+
"""Get Symbol"""
|
84
79
|
if self.is_sync:
|
85
80
|
return self._get_symbol_sync(
|
86
81
|
symbol=symbol,
|
@@ -117,10 +112,7 @@ class UDFApi:
|
|
117
112
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
118
113
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
119
114
|
) -> ApiResponse[SymbolInfo]:
|
120
|
-
"""Get Symbol with HTTP info
|
121
|
-
|
122
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
123
|
-
"""
|
115
|
+
"""Get Symbol with HTTP info"""
|
124
116
|
if self.is_sync:
|
125
117
|
return self._get_symbol_sync_with_http_info(
|
126
118
|
symbol=symbol,
|
@@ -157,10 +149,7 @@ class UDFApi:
|
|
157
149
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
158
150
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
159
151
|
) -> RESTResponseType:
|
160
|
-
"""Get Symbol without preloading content
|
161
|
-
|
162
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
163
|
-
"""
|
152
|
+
"""Get Symbol without preloading content"""
|
164
153
|
if self.is_sync:
|
165
154
|
return self._get_symbol_sync_without_preload_content(
|
166
155
|
symbol=symbol,
|
@@ -517,10 +506,7 @@ class UDFApi:
|
|
517
506
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
518
507
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
519
508
|
) -> SymbolGroup:
|
520
|
-
"""Get Symbol Info
|
521
|
-
|
522
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
523
|
-
"""
|
509
|
+
"""Get Symbol Info"""
|
524
510
|
if self.is_sync:
|
525
511
|
return self._get_symbol_info_sync(
|
526
512
|
group=group,
|
@@ -557,10 +543,7 @@ class UDFApi:
|
|
557
543
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
558
544
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
559
545
|
) -> ApiResponse[SymbolGroup]:
|
560
|
-
"""Get Symbol Info with HTTP info
|
561
|
-
|
562
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
563
|
-
"""
|
546
|
+
"""Get Symbol Info with HTTP info"""
|
564
547
|
if self.is_sync:
|
565
548
|
return self._get_symbol_info_sync_with_http_info(
|
566
549
|
group=group,
|
@@ -597,10 +580,7 @@ class UDFApi:
|
|
597
580
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
598
581
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
599
582
|
) -> RESTResponseType:
|
600
|
-
"""Get Symbol Info without preloading content
|
601
|
-
|
602
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
603
|
-
"""
|
583
|
+
"""Get Symbol Info without preloading content"""
|
604
584
|
if self.is_sync:
|
605
585
|
return self._get_symbol_info_sync_without_preload_content(
|
606
586
|
group=group,
|
@@ -962,10 +942,7 @@ class UDFApi:
|
|
962
942
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
963
943
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
964
944
|
) -> UDFConfig:
|
965
|
-
"""Get Config
|
966
|
-
|
967
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
968
|
-
"""
|
945
|
+
"""Get Config"""
|
969
946
|
if self.is_sync:
|
970
947
|
return self._get_udf_config_sync(
|
971
948
|
_request_timeout=_request_timeout,
|
@@ -999,10 +976,7 @@ class UDFApi:
|
|
999
976
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1000
977
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1001
978
|
) -> ApiResponse[UDFConfig]:
|
1002
|
-
"""Get Config with HTTP info
|
1003
|
-
|
1004
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
1005
|
-
"""
|
979
|
+
"""Get Config with HTTP info"""
|
1006
980
|
if self.is_sync:
|
1007
981
|
return self._get_udf_config_sync_with_http_info(
|
1008
982
|
_request_timeout=_request_timeout,
|
@@ -1036,10 +1010,7 @@ class UDFApi:
|
|
1036
1010
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1037
1011
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1038
1012
|
) -> RESTResponseType:
|
1039
|
-
"""Get Config without preloading content
|
1040
|
-
|
1041
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
1042
|
-
"""
|
1013
|
+
"""Get Config without preloading content"""
|
1043
1014
|
if self.is_sync:
|
1044
1015
|
return self._get_udf_config_sync_without_preload_content(
|
1045
1016
|
_request_timeout=_request_timeout,
|
@@ -1375,10 +1346,7 @@ class UDFApi:
|
|
1375
1346
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1376
1347
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1377
1348
|
) -> OHLCV:
|
1378
|
-
"""Get History
|
1379
|
-
|
1380
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
1381
|
-
"""
|
1349
|
+
"""Get History"""
|
1382
1350
|
if self.is_sync:
|
1383
1351
|
return self._get_udf_history_sync(
|
1384
1352
|
symbol=symbol,
|
@@ -1427,10 +1395,7 @@ class UDFApi:
|
|
1427
1395
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1428
1396
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1429
1397
|
) -> ApiResponse[OHLCV]:
|
1430
|
-
"""Get History with HTTP info
|
1431
|
-
|
1432
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
1433
|
-
"""
|
1398
|
+
"""Get History with HTTP info"""
|
1434
1399
|
if self.is_sync:
|
1435
1400
|
return self._get_udf_history_sync_with_http_info(
|
1436
1401
|
symbol=symbol,
|
@@ -1479,10 +1444,7 @@ class UDFApi:
|
|
1479
1444
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1480
1445
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1481
1446
|
) -> RESTResponseType:
|
1482
|
-
"""Get History without preloading content
|
1483
|
-
|
1484
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
1485
|
-
"""
|
1447
|
+
"""Get History without preloading content"""
|
1486
1448
|
if self.is_sync:
|
1487
1449
|
return self._get_udf_history_sync_without_preload_content(
|
1488
1450
|
symbol=symbol,
|
@@ -1939,10 +1901,7 @@ class UDFApi:
|
|
1939
1901
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1940
1902
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1941
1903
|
) -> object:
|
1942
|
-
"""Options Handler
|
1943
|
-
|
1944
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
1945
|
-
"""
|
1904
|
+
"""Options Handler"""
|
1946
1905
|
if self.is_sync:
|
1947
1906
|
return self._options_handler_sync(
|
1948
1907
|
path=path,
|
@@ -1979,10 +1938,7 @@ class UDFApi:
|
|
1979
1938
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1980
1939
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1981
1940
|
) -> ApiResponse[object]:
|
1982
|
-
"""Options Handler with HTTP info
|
1983
|
-
|
1984
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
1985
|
-
"""
|
1941
|
+
"""Options Handler with HTTP info"""
|
1986
1942
|
if self.is_sync:
|
1987
1943
|
return self._options_handler_sync_with_http_info(
|
1988
1944
|
path=path,
|
@@ -2019,10 +1975,7 @@ class UDFApi:
|
|
2019
1975
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2020
1976
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2021
1977
|
) -> RESTResponseType:
|
2022
|
-
"""Options Handler without preloading content
|
2023
|
-
|
2024
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
2025
|
-
"""
|
1978
|
+
"""Options Handler without preloading content"""
|
2026
1979
|
if self.is_sync:
|
2027
1980
|
return self._options_handler_sync_without_preload_content(
|
2028
1981
|
path=path,
|
@@ -2381,10 +2334,7 @@ class UDFApi:
|
|
2381
2334
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2382
2335
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2383
2336
|
) -> List[SearchSymbol]:
|
2384
|
-
"""Search Symbols
|
2385
|
-
|
2386
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
2387
|
-
"""
|
2337
|
+
"""Search Symbols"""
|
2388
2338
|
if self.is_sync:
|
2389
2339
|
return self._search_symbols_sync(
|
2390
2340
|
query=query,
|
@@ -2424,10 +2374,7 @@ class UDFApi:
|
|
2424
2374
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2425
2375
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2426
2376
|
) -> ApiResponse[List[SearchSymbol]]:
|
2427
|
-
"""Search Symbols with HTTP info
|
2428
|
-
|
2429
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
2430
|
-
"""
|
2377
|
+
"""Search Symbols with HTTP info"""
|
2431
2378
|
if self.is_sync:
|
2432
2379
|
return self._search_symbols_sync_with_http_info(
|
2433
2380
|
query=query,
|
@@ -2467,10 +2414,7 @@ class UDFApi:
|
|
2467
2414
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2468
2415
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2469
2416
|
) -> RESTResponseType:
|
2470
|
-
"""Search Symbols without preloading content
|
2471
|
-
|
2472
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
2473
|
-
"""
|
2417
|
+
"""Search Symbols without preloading content"""
|
2474
2418
|
if self.is_sync:
|
2475
2419
|
return self._search_symbols_sync_without_preload_content(
|
2476
2420
|
query=query,
|
@@ -33,11 +33,6 @@ from crypticorn.klines.client import rest
|
|
33
33
|
from crypticorn.klines.client.exceptions import (
|
34
34
|
ApiValueError,
|
35
35
|
ApiException,
|
36
|
-
BadRequestException,
|
37
|
-
UnauthorizedException,
|
38
|
-
ForbiddenException,
|
39
|
-
NotFoundException,
|
40
|
-
ServiceException,
|
41
36
|
)
|
42
37
|
|
43
38
|
RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]]
|
@@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional
|
|
22
22
|
from crypticorn.klines.client.models.api_error_identifier import ApiErrorIdentifier
|
23
23
|
from crypticorn.klines.client.models.api_error_level import ApiErrorLevel
|
24
24
|
from crypticorn.klines.client.models.api_error_type import ApiErrorType
|
25
|
-
from typing import
|
25
|
+
from typing import Set
|
26
26
|
from typing_extensions import Self
|
27
27
|
|
28
28
|
|
@@ -19,7 +19,7 @@ import json
|
|
19
19
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional, Union
|
22
|
-
from typing import
|
22
|
+
from typing import Set
|
23
23
|
from typing_extensions import Self
|
24
24
|
|
25
25
|
|
@@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
|
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
22
22
|
from crypticorn.klines.client.models.internal_exchange import InternalExchange
|
23
23
|
from crypticorn.klines.client.models.symbol_type import SymbolType
|
24
|
-
from typing import
|
24
|
+
from typing import Set
|
25
25
|
from typing_extensions import Self
|
26
26
|
|
27
27
|
|
@@ -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.metrics.client.models.log_level import LogLevel
|
23
20
|
|
24
21
|
from crypticorn.metrics.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, 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, 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
|
) -> Dict[str, object]:
|
1801
|
-
"""Get Threads
|
1802
|
-
|
1803
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
1804
|
-
"""
|
1762
|
+
"""Get Threads"""
|
1805
1763
|
if self.is_sync:
|
1806
1764
|
return self._get_threads_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[Dict[str, object]]:
|
1838
|
-
"""Get Threads with HTTP info
|
1839
|
-
|
1840
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
1841
|
-
"""
|
1796
|
+
"""Get Threads with HTTP info"""
|
1842
1797
|
if self.is_sync:
|
1843
1798
|
return self._get_threads_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
|
-
"""Get Threads without preloading content
|
1876
|
-
|
1877
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
1878
|
-
"""
|
1830
|
+
"""Get Threads without preloading content"""
|
1879
1831
|
if self.is_sync:
|
1880
1832
|
return self._get_threads_sync_without_preload_content(
|
1881
1833
|
_request_timeout=_request_timeout,
|
@@ -2210,10 +2162,7 @@ class AdminApi:
|
|
2210
2162
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2211
2163
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2212
2164
|
) -> str:
|
2213
|
-
"""Get Uptime
|
2214
|
-
|
2215
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
2216
|
-
"""
|
2165
|
+
"""Get Uptime"""
|
2217
2166
|
if self.is_sync:
|
2218
2167
|
return self._get_uptime_sync(
|
2219
2168
|
type=type,
|
@@ -2250,10 +2199,7 @@ class AdminApi:
|
|
2250
2199
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2251
2200
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2252
2201
|
) -> ApiResponse[str]:
|
2253
|
-
"""Get Uptime with HTTP info
|
2254
|
-
|
2255
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
2256
|
-
"""
|
2202
|
+
"""Get Uptime with HTTP info"""
|
2257
2203
|
if self.is_sync:
|
2258
2204
|
return self._get_uptime_sync_with_http_info(
|
2259
2205
|
type=type,
|
@@ -2290,10 +2236,7 @@ class AdminApi:
|
|
2290
2236
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2291
2237
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2292
2238
|
) -> RESTResponseType:
|
2293
|
-
"""Get Uptime without preloading content
|
2294
|
-
|
2295
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
2296
|
-
"""
|
2239
|
+
"""Get Uptime without preloading content"""
|
2297
2240
|
if self.is_sync:
|
2298
2241
|
return self._get_uptime_sync_without_preload_content(
|
2299
2242
|
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 List, Optional
|
21
|
-
from typing_extensions import Annotated
|
22
18
|
from crypticorn.metrics.client.models.exchange_availability import ExchangeAvailability
|
23
19
|
from crypticorn.metrics.client.models.exchange_mapping import ExchangeMapping
|
24
20
|
from crypticorn.metrics.client.models.internal_exchange import InternalExchange
|
@@ -109,10 +105,7 @@ class ExchangesApi:
|
|
109
105
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
110
106
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
111
107
|
) -> List[ExchangeAvailability]:
|
112
|
-
"""Get Available Exchanges
|
113
|
-
|
114
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
115
|
-
"""
|
108
|
+
"""Get Available Exchanges"""
|
116
109
|
if self.is_sync:
|
117
110
|
return self._get_available_exchanges_sync(
|
118
111
|
market=market,
|
@@ -192,10 +185,7 @@ class ExchangesApi:
|
|
192
185
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
193
186
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
194
187
|
) -> ApiResponse[List[ExchangeAvailability]]:
|
195
|
-
"""Get Available Exchanges with HTTP info
|
196
|
-
|
197
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
198
|
-
"""
|
188
|
+
"""Get Available Exchanges with HTTP info"""
|
199
189
|
if self.is_sync:
|
200
190
|
return self._get_available_exchanges_sync_with_http_info(
|
201
191
|
market=market,
|
@@ -275,10 +265,7 @@ class ExchangesApi:
|
|
275
265
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
276
266
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
277
267
|
) -> RESTResponseType:
|
278
|
-
"""Get Available Exchanges without preloading content
|
279
|
-
|
280
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
281
|
-
"""
|
268
|
+
"""Get Available Exchanges without preloading content"""
|
282
269
|
if self.is_sync:
|
283
270
|
return self._get_available_exchanges_sync_without_preload_content(
|
284
271
|
market=market,
|
@@ -942,10 +929,7 @@ class ExchangesApi:
|
|
942
929
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
943
930
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
944
931
|
) -> List[str]:
|
945
|
-
"""Get Exchange List
|
946
|
-
|
947
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
948
|
-
"""
|
932
|
+
"""Get Exchange List"""
|
949
933
|
if self.is_sync:
|
950
934
|
return self._get_available_exchanges_for_market_sync(
|
951
935
|
market=market,
|
@@ -984,10 +968,7 @@ class ExchangesApi:
|
|
984
968
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
985
969
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
986
970
|
) -> ApiResponse[List[str]]:
|
987
|
-
"""Get Exchange List with HTTP info
|
988
|
-
|
989
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
990
|
-
"""
|
971
|
+
"""Get Exchange List with HTTP info"""
|
991
972
|
if self.is_sync:
|
992
973
|
return self._get_available_exchanges_for_market_sync_with_http_info(
|
993
974
|
market=market,
|
@@ -1026,10 +1007,7 @@ class ExchangesApi:
|
|
1026
1007
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1027
1008
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1028
1009
|
) -> RESTResponseType:
|
1029
|
-
"""Get Exchange List without preloading content
|
1030
|
-
|
1031
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
1032
|
-
"""
|
1010
|
+
"""Get Exchange List without preloading content"""
|
1033
1011
|
if self.is_sync:
|
1034
1012
|
return (
|
1035
1013
|
self._get_available_exchanges_for_market_sync_without_preload_content(
|
@@ -1415,10 +1393,7 @@ class ExchangesApi:
|
|
1415
1393
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1416
1394
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1417
1395
|
) -> List[ExchangeMapping]:
|
1418
|
-
"""Get Exchange Mappings
|
1419
|
-
|
1420
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
1421
|
-
"""
|
1396
|
+
"""Get Exchange Mappings"""
|
1422
1397
|
if self.is_sync:
|
1423
1398
|
return self._get_exchange_mappings_sync(
|
1424
1399
|
market=market,
|
@@ -1463,10 +1438,7 @@ class ExchangesApi:
|
|
1463
1438
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1464
1439
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1465
1440
|
) -> ApiResponse[List[ExchangeMapping]]:
|
1466
|
-
"""Get Exchange Mappings with HTTP info
|
1467
|
-
|
1468
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
1469
|
-
"""
|
1441
|
+
"""Get Exchange Mappings with HTTP info"""
|
1470
1442
|
if self.is_sync:
|
1471
1443
|
return self._get_exchange_mappings_sync_with_http_info(
|
1472
1444
|
market=market,
|
@@ -1511,10 +1483,7 @@ class ExchangesApi:
|
|
1511
1483
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1512
1484
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1513
1485
|
) -> RESTResponseType:
|
1514
|
-
"""Get Exchange Mappings without preloading content
|
1515
|
-
|
1516
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
1517
|
-
"""
|
1486
|
+
"""Get Exchange Mappings without preloading content"""
|
1518
1487
|
if self.is_sync:
|
1519
1488
|
return self._get_exchange_mappings_sync_without_preload_content(
|
1520
1489
|
market=market,
|
@@ -1948,10 +1917,7 @@ class ExchangesApi:
|
|
1948
1917
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1949
1918
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1950
1919
|
) -> List[ExchangeMapping]:
|
1951
|
-
"""Get Exchange Mappings For Pair
|
1952
|
-
|
1953
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
1954
|
-
"""
|
1920
|
+
"""Get Exchange Mappings For Pair"""
|
1955
1921
|
if self.is_sync:
|
1956
1922
|
return self._get_exchange_mappings_for_pair_sync(
|
1957
1923
|
pair=pair,
|
@@ -2013,10 +1979,7 @@ class ExchangesApi:
|
|
2013
1979
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2014
1980
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2015
1981
|
) -> ApiResponse[List[ExchangeMapping]]:
|
2016
|
-
"""Get Exchange Mappings For Pair with HTTP info
|
2017
|
-
|
2018
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
2019
|
-
"""
|
1982
|
+
"""Get Exchange Mappings For Pair with HTTP info"""
|
2020
1983
|
if self.is_sync:
|
2021
1984
|
return self._get_exchange_mappings_for_pair_sync_with_http_info(
|
2022
1985
|
pair=pair,
|
@@ -2078,10 +2041,7 @@ class ExchangesApi:
|
|
2078
2041
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2079
2042
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2080
2043
|
) -> RESTResponseType:
|
2081
|
-
"""Get Exchange Mappings For Pair without preloading content
|
2082
|
-
|
2083
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
2084
|
-
"""
|
2044
|
+
"""Get Exchange Mappings For Pair without preloading content"""
|
2085
2045
|
if self.is_sync:
|
2086
2046
|
return self._get_exchange_mappings_for_pair_sync_without_preload_content(
|
2087
2047
|
pair=pair,
|