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.klines.client.models.log_level import LogLevel
|
23
20
|
|
24
21
|
from crypticorn.klines.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
|
20
|
-
from typing import List, Optional
|
21
|
-
from typing_extensions import Annotated
|
22
18
|
from crypticorn.klines.client.models.change_in_timeframe import ChangeInTimeframe
|
23
19
|
from crypticorn.klines.client.models.market_type import MarketType
|
24
20
|
from crypticorn.klines.client.models.timeframe import Timeframe
|
@@ -82,10 +78,7 @@ class ChangeInTimeframeApi:
|
|
82
78
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
83
79
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
84
80
|
) -> List[ChangeInTimeframe]:
|
85
|
-
"""Get Change In Timeframe
|
86
|
-
|
87
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
88
|
-
"""
|
81
|
+
"""Get Change In Timeframe"""
|
89
82
|
if self.is_sync:
|
90
83
|
return self._get_change_in_timeframe_sync(
|
91
84
|
market=market,
|
@@ -131,10 +124,7 @@ class ChangeInTimeframeApi:
|
|
131
124
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
132
125
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
133
126
|
) -> ApiResponse[List[ChangeInTimeframe]]:
|
134
|
-
"""Get Change In Timeframe with HTTP info
|
135
|
-
|
136
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
137
|
-
"""
|
127
|
+
"""Get Change In Timeframe with HTTP info"""
|
138
128
|
if self.is_sync:
|
139
129
|
return self._get_change_in_timeframe_sync_with_http_info(
|
140
130
|
market=market,
|
@@ -180,10 +170,7 @@ class ChangeInTimeframeApi:
|
|
180
170
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
181
171
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
182
172
|
) -> RESTResponseType:
|
183
|
-
"""Get Change In Timeframe without preloading content
|
184
|
-
|
185
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
186
|
-
"""
|
173
|
+
"""Get Change In Timeframe without preloading content"""
|
187
174
|
if self.is_sync:
|
188
175
|
return self._get_change_in_timeframe_sync_without_preload_content(
|
189
176
|
market=market,
|
@@ -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 Optional
|
21
|
-
from typing_extensions import Annotated
|
22
18
|
from crypticorn.klines.client.models.funding_rate_response import FundingRateResponse
|
23
19
|
|
24
20
|
from crypticorn.klines.client.api_client import ApiClient, RequestSerialized
|
@@ -85,10 +81,7 @@ class FundingRatesApi:
|
|
85
81
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
86
82
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
87
83
|
) -> FundingRateResponse:
|
88
|
-
"""Funding Rate
|
89
|
-
|
90
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
91
|
-
"""
|
84
|
+
"""Funding Rate"""
|
92
85
|
if self.is_sync:
|
93
86
|
return self._get_funding_rates_sync(
|
94
87
|
symbol=symbol,
|
@@ -143,10 +136,7 @@ class FundingRatesApi:
|
|
143
136
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
144
137
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
145
138
|
) -> ApiResponse[FundingRateResponse]:
|
146
|
-
"""Funding Rate with HTTP info
|
147
|
-
|
148
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
149
|
-
"""
|
139
|
+
"""Funding Rate with HTTP info"""
|
150
140
|
if self.is_sync:
|
151
141
|
return self._get_funding_rates_sync_with_http_info(
|
152
142
|
symbol=symbol,
|
@@ -201,10 +191,7 @@ class FundingRatesApi:
|
|
201
191
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
202
192
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
203
193
|
) -> RESTResponseType:
|
204
|
-
"""Funding Rate without preloading content
|
205
|
-
|
206
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
207
|
-
"""
|
194
|
+
"""Funding Rate without preloading content"""
|
208
195
|
if self.is_sync:
|
209
196
|
return self._get_funding_rates_sync_without_preload_content(
|
210
197
|
symbol=symbol,
|
@@ -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.klines.client.models.market_type import MarketType
|
23
19
|
from crypticorn.klines.client.models.ohlcv import OHLCV
|
24
20
|
from crypticorn.klines.client.models.sort_direction import SortDirection
|
@@ -96,10 +92,7 @@ class OHLCVDataApi:
|
|
96
92
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
97
93
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
98
94
|
) -> List[OHLCV]:
|
99
|
-
"""Get Ohlcv
|
100
|
-
|
101
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
102
|
-
"""
|
95
|
+
"""Get Ohlcv"""
|
103
96
|
if self.is_sync:
|
104
97
|
return self._get_ohlcv_sync(
|
105
98
|
market=market,
|
@@ -168,10 +161,7 @@ class OHLCVDataApi:
|
|
168
161
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
169
162
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
170
163
|
) -> ApiResponse[List[OHLCV]]:
|
171
|
-
"""Get Ohlcv with HTTP info
|
172
|
-
|
173
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
174
|
-
"""
|
164
|
+
"""Get Ohlcv with HTTP info"""
|
175
165
|
if self.is_sync:
|
176
166
|
return self._get_ohlcv_sync_with_http_info(
|
177
167
|
market=market,
|
@@ -240,10 +230,7 @@ class OHLCVDataApi:
|
|
240
230
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
241
231
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
242
232
|
) -> RESTResponseType:
|
243
|
-
"""Get Ohlcv without preloading content
|
244
|
-
|
245
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
246
|
-
"""
|
233
|
+
"""Get Ohlcv without preloading content"""
|
247
234
|
if self.is_sync:
|
248
235
|
return self._get_ohlcv_sync_without_preload_content(
|
249
236
|
market=market,
|
@@ -11,13 +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 StrictStr, field_validator
|
20
|
-
from typing import Optional
|
21
18
|
|
22
19
|
from crypticorn.klines.client.api_client import ApiClient, RequestSerialized
|
23
20
|
from crypticorn.klines.client.api_response import ApiResponse
|
@@ -71,10 +68,7 @@ class StatusApi:
|
|
71
68
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
72
69
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
73
70
|
) -> str:
|
74
|
-
"""Time
|
75
|
-
|
76
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
77
|
-
"""
|
71
|
+
"""Time"""
|
78
72
|
if self.is_sync:
|
79
73
|
return self._get_time_sync(
|
80
74
|
type=type,
|
@@ -111,10 +105,7 @@ class StatusApi:
|
|
111
105
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
112
106
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
113
107
|
) -> ApiResponse[str]:
|
114
|
-
"""Time with HTTP info
|
115
|
-
|
116
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
117
|
-
"""
|
108
|
+
"""Time with HTTP info"""
|
118
109
|
if self.is_sync:
|
119
110
|
return self._get_time_sync_with_http_info(
|
120
111
|
type=type,
|
@@ -151,10 +142,7 @@ class StatusApi:
|
|
151
142
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
152
143
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
153
144
|
) -> RESTResponseType:
|
154
|
-
"""Time without preloading content
|
155
|
-
|
156
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
157
|
-
"""
|
145
|
+
"""Time without preloading content"""
|
158
146
|
if self.is_sync:
|
159
147
|
return self._get_time_sync_without_preload_content(
|
160
148
|
type=type,
|
@@ -513,10 +501,7 @@ class StatusApi:
|
|
513
501
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
514
502
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
515
503
|
) -> str:
|
516
|
-
"""Ping
|
517
|
-
|
518
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
519
|
-
"""
|
504
|
+
"""Ping"""
|
520
505
|
if self.is_sync:
|
521
506
|
return self._ping_sync(
|
522
507
|
_request_timeout=_request_timeout,
|
@@ -550,10 +535,7 @@ class StatusApi:
|
|
550
535
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
551
536
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
552
537
|
) -> ApiResponse[str]:
|
553
|
-
"""Ping with HTTP info
|
554
|
-
|
555
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
556
|
-
"""
|
538
|
+
"""Ping with HTTP info"""
|
557
539
|
if self.is_sync:
|
558
540
|
return self._ping_sync_with_http_info(
|
559
541
|
_request_timeout=_request_timeout,
|
@@ -587,10 +569,7 @@ class StatusApi:
|
|
587
569
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
588
570
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
589
571
|
) -> RESTResponseType:
|
590
|
-
"""Ping without preloading content
|
591
|
-
|
592
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
593
|
-
"""
|
572
|
+
"""Ping without preloading content"""
|
594
573
|
if self.is_sync:
|
595
574
|
return self._ping_sync_without_preload_content(
|
596
575
|
_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, StrictStr
|
20
|
-
from typing import List
|
21
|
-
from typing_extensions import Annotated
|
22
18
|
from crypticorn.klines.client.models.market_type import MarketType
|
23
19
|
|
24
20
|
from crypticorn.klines.client.api_client import ApiClient, RequestSerialized
|
@@ -73,10 +69,7 @@ class SymbolsApi:
|
|
73
69
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
74
70
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
75
71
|
) -> List[str]:
|
76
|
-
"""Symbols
|
77
|
-
|
78
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
79
|
-
"""
|
72
|
+
"""Symbols"""
|
80
73
|
if self.is_sync:
|
81
74
|
return self._get_klines_symbols_sync(
|
82
75
|
market=market,
|
@@ -113,10 +106,7 @@ class SymbolsApi:
|
|
113
106
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
114
107
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
115
108
|
) -> ApiResponse[List[str]]:
|
116
|
-
"""Symbols with HTTP info
|
117
|
-
|
118
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
119
|
-
"""
|
109
|
+
"""Symbols with HTTP info"""
|
120
110
|
if self.is_sync:
|
121
111
|
return self._get_klines_symbols_sync_with_http_info(
|
122
112
|
market=market,
|
@@ -153,10 +143,7 @@ class SymbolsApi:
|
|
153
143
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
154
144
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
155
145
|
) -> RESTResponseType:
|
156
|
-
"""Symbols without preloading content
|
157
|
-
|
158
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
159
|
-
"""
|
146
|
+
"""Symbols without preloading content"""
|
160
147
|
if self.is_sync:
|
161
148
|
return self._get_klines_symbols_sync_without_preload_content(
|
162
149
|
market=market,
|