crypticorn 1.0.2rc3__py3-none-any.whl → 2.0.0__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/__init__.py +3 -3
- crypticorn/auth/__init__.py +2 -0
- crypticorn/auth/client/__init__.py +112 -0
- crypticorn/auth/client/api/__init__.py +8 -0
- crypticorn/auth/client/api/admin_api.py +522 -0
- crypticorn/auth/client/api/auth_api.py +2089 -0
- crypticorn/auth/client/api/service_api.py +309 -0
- crypticorn/auth/client/api/user_api.py +2540 -0
- crypticorn/auth/client/api/wallet_api.py +1698 -0
- crypticorn/auth/client/api_client.py +758 -0
- crypticorn/auth/client/api_response.py +20 -0
- crypticorn/auth/client/configuration.py +584 -0
- crypticorn/auth/client/exceptions.py +220 -0
- crypticorn/auth/client/models/__init__.py +91 -0
- crypticorn/auth/client/models/add_wallet200_response.py +86 -0
- crypticorn/auth/client/models/add_wallet_request.py +107 -0
- crypticorn/auth/client/models/authorize_user200_response.py +107 -0
- crypticorn/auth/client/models/authorize_user200_response_auth.py +101 -0
- crypticorn/auth/client/models/authorize_user_request.py +96 -0
- crypticorn/auth/client/models/create_user_request.py +114 -0
- crypticorn/auth/client/models/list_wallets200_response.py +137 -0
- crypticorn/auth/client/models/list_wallets200_response_balances_inner.py +115 -0
- crypticorn/auth/client/models/list_wallets200_response_balances_inner_sale_round.py +115 -0
- crypticorn/auth/client/models/list_wallets200_response_balances_inner_wallet.py +168 -0
- crypticorn/auth/client/models/list_wallets200_response_balances_inner_wallet_vesting_wallets_inner.py +191 -0
- crypticorn/auth/client/models/list_wallets200_response_data_inner.py +102 -0
- crypticorn/auth/client/models/list_wallets200_response_user_value.py +118 -0
- crypticorn/auth/client/models/logout_default_response.py +108 -0
- crypticorn/auth/client/models/logout_default_response_issues_inner.py +83 -0
- crypticorn/auth/client/models/refresh_token_info200_response.py +97 -0
- crypticorn/auth/client/models/refresh_token_info200_response_user_session.py +105 -0
- crypticorn/auth/client/models/resend_verification_email_request.py +84 -0
- crypticorn/auth/client/models/revoke_user_tokens_request.py +83 -0
- crypticorn/auth/client/models/rotate_tokens200_response.py +110 -0
- crypticorn/auth/client/models/token_info200_response.py +97 -0
- crypticorn/auth/client/models/unlink_wallet_request.py +83 -0
- crypticorn/auth/client/models/update_user_request.py +93 -0
- crypticorn/auth/client/models/user_reset_password_request.py +87 -0
- crypticorn/auth/client/models/user_set_password_request.py +89 -0
- crypticorn/auth/client/models/verify200_response.py +110 -0
- crypticorn/auth/client/models/verify_email200_response.py +107 -0
- crypticorn/auth/client/models/verify_email200_response_auth.py +101 -0
- crypticorn/auth/client/models/verify_email200_response_auth_auth.py +110 -0
- crypticorn/auth/client/models/verify_email_request.py +83 -0
- crypticorn/auth/client/models/verify_wallet_request.py +91 -0
- crypticorn/auth/client/models/wallet_verified200_response.py +83 -0
- crypticorn/auth/client/models/whoami200_response.py +104 -0
- crypticorn/auth/client/rest.py +195 -0
- crypticorn/auth/main.py +45 -0
- crypticorn/client.py +46 -8
- crypticorn/common/__init__.py +5 -0
- crypticorn/common/auth.py +43 -0
- crypticorn/common/auth_client.py +163 -0
- crypticorn/common/errors.py +432 -0
- crypticorn/common/scopes.py +29 -0
- crypticorn/common/urls.py +25 -0
- crypticorn/hive/__init__.py +2 -1
- crypticorn/hive/client/__init__.py +57 -0
- crypticorn/hive/client/api/__init__.py +6 -0
- crypticorn/hive/client/api/data_api.py +594 -0
- crypticorn/hive/client/api/models_api.py +1680 -0
- crypticorn/hive/client/api/status_api.py +263 -0
- crypticorn/hive/client/api_client.py +758 -0
- crypticorn/hive/client/api_response.py +20 -0
- crypticorn/hive/client/configuration.py +612 -0
- crypticorn/hive/client/exceptions.py +220 -0
- crypticorn/hive/client/models/__init__.py +38 -0
- crypticorn/hive/client/models/coins.py +44 -0
- crypticorn/hive/client/models/data_download_response.py +113 -0
- crypticorn/hive/client/models/data_info.py +115 -0
- crypticorn/hive/client/models/data_value_value_value_inner.py +154 -0
- crypticorn/hive/client/models/data_version.py +35 -0
- crypticorn/hive/client/models/download_links.py +91 -0
- crypticorn/hive/client/models/evaluation.py +86 -0
- crypticorn/hive/client/models/evaluation_response.py +85 -0
- crypticorn/hive/client/models/feature_size.py +36 -0
- crypticorn/hive/client/models/http_validation_error.py +99 -0
- crypticorn/hive/client/models/model.py +133 -0
- crypticorn/hive/client/models/model_create.py +93 -0
- crypticorn/hive/client/models/model_status.py +35 -0
- crypticorn/hive/client/models/model_update.py +83 -0
- crypticorn/hive/client/models/target.py +36 -0
- crypticorn/hive/client/models/target_type.py +35 -0
- crypticorn/hive/client/models/validation_error.py +105 -0
- crypticorn/hive/client/models/validation_error_loc_inner.py +159 -0
- crypticorn/hive/client/py.typed +0 -0
- crypticorn/hive/client/rest.py +195 -0
- crypticorn/hive/main.py +27 -100
- crypticorn/klines/client/__init__.py +21 -7
- crypticorn/klines/client/api/__init__.py +0 -1
- crypticorn/klines/client/api/funding_rates_api.py +90 -79
- crypticorn/klines/client/api/health_check_api.py +29 -45
- crypticorn/klines/client/api/ohlcv_data_api.py +104 -87
- crypticorn/klines/client/api/symbols_api.py +36 -54
- crypticorn/klines/client/api/udf_api.py +228 -352
- crypticorn/klines/client/api_client.py +106 -148
- crypticorn/klines/client/api_response.py +2 -3
- crypticorn/klines/client/configuration.py +64 -50
- crypticorn/klines/client/exceptions.py +20 -16
- crypticorn/klines/client/models/__init__.py +21 -7
- crypticorn/klines/client/models/base_response_health_check_response.py +21 -15
- crypticorn/klines/client/models/base_response_list_funding_rate_response.py +21 -15
- crypticorn/klines/client/models/base_response_list_str.py +16 -14
- crypticorn/klines/client/models/base_response_ohlcv_response.py +21 -15
- crypticorn/klines/client/models/error_response.py +23 -15
- crypticorn/klines/client/models/exchange.py +11 -11
- crypticorn/klines/client/models/funding_rate_response.py +11 -11
- crypticorn/klines/client/models/health_check_response.py +14 -12
- crypticorn/klines/client/models/history_error_response.py +11 -11
- crypticorn/klines/client/models/history_no_data_response.py +16 -16
- crypticorn/klines/client/models/history_success_response.py +16 -16
- crypticorn/klines/client/models/http_validation_error.py +14 -10
- crypticorn/klines/client/models/market.py +2 -4
- crypticorn/klines/client/models/ohlcv_response.py +22 -15
- crypticorn/klines/client/models/resolution.py +5 -7
- crypticorn/klines/client/models/response_get_history_udf_history_get.py +71 -22
- crypticorn/klines/client/models/search_symbol_response.py +22 -15
- crypticorn/klines/client/models/sort_direction.py +2 -4
- crypticorn/klines/client/models/symbol_group_response.py +5 -9
- crypticorn/klines/client/models/symbol_info_response.py +40 -24
- crypticorn/klines/client/models/symbol_type.py +5 -10
- crypticorn/klines/client/models/timeframe.py +5 -7
- crypticorn/klines/client/models/udf_config_response.py +60 -21
- crypticorn/klines/client/models/validation_error.py +19 -13
- crypticorn/klines/client/models/validation_error_loc_inner.py +32 -11
- crypticorn/klines/client/rest.py +30 -41
- crypticorn/klines/main.py +52 -15
- crypticorn/pay/__init__.py +2 -0
- crypticorn/pay/client/__init__.py +52 -0
- crypticorn/pay/client/api/__init__.py +7 -0
- crypticorn/pay/client/api/now_payments_api.py +813 -0
- crypticorn/pay/client/api/payments_api.py +799 -0
- crypticorn/pay/client/api/products_api.py +891 -0
- crypticorn/pay/client/api/status_api.py +260 -0
- crypticorn/pay/client/api_client.py +758 -0
- crypticorn/pay/client/api_response.py +20 -0
- crypticorn/pay/client/configuration.py +612 -0
- crypticorn/pay/client/exceptions.py +220 -0
- crypticorn/pay/client/models/__init__.py +32 -0
- crypticorn/pay/client/models/api_status_res.py +83 -0
- crypticorn/pay/client/models/combined_payment_history.py +101 -0
- crypticorn/pay/client/models/create_invoice_req.py +188 -0
- crypticorn/pay/client/models/create_invoice_res.py +188 -0
- crypticorn/pay/client/models/currency.py +165 -0
- crypticorn/pay/client/models/estimate_price_req.py +91 -0
- crypticorn/pay/client/models/estimate_price_res.py +102 -0
- crypticorn/pay/client/models/get_currencies_res.py +99 -0
- crypticorn/pay/client/models/get_payment_status_res.py +222 -0
- crypticorn/pay/client/models/get_payments_list_res.py +109 -0
- crypticorn/pay/client/models/http_validation_error.py +99 -0
- crypticorn/pay/client/models/min_amount_req.py +124 -0
- crypticorn/pay/client/models/min_amount_res.py +105 -0
- crypticorn/pay/client/models/now_api_status_res.py +83 -0
- crypticorn/pay/client/models/now_create_invoice_req.py +188 -0
- crypticorn/pay/client/models/now_create_invoice_res.py +188 -0
- crypticorn/pay/client/models/now_fee_structure.py +104 -0
- crypticorn/pay/client/models/now_payment_model.py +124 -0
- crypticorn/pay/client/models/now_payment_status.py +42 -0
- crypticorn/pay/client/models/now_webhook_payload.py +181 -0
- crypticorn/pay/client/models/payment.py +231 -0
- crypticorn/pay/client/models/payment_status.py +40 -0
- crypticorn/pay/client/models/product.py +87 -0
- crypticorn/pay/client/models/product_model.py +119 -0
- crypticorn/pay/client/models/product_subs_model.py +108 -0
- crypticorn/pay/client/models/services.py +34 -0
- crypticorn/pay/client/models/unified_payment_model.py +112 -0
- crypticorn/pay/client/models/validation_error.py +105 -0
- crypticorn/pay/client/models/validation_error_loc_inner.py +159 -0
- crypticorn/pay/client/py.typed +0 -0
- crypticorn/pay/client/rest.py +195 -0
- crypticorn/pay/main.py +35 -0
- crypticorn/trade/client/__init__.py +9 -4
- crypticorn/trade/client/api/__init__.py +0 -1
- crypticorn/trade/client/api/api_keys_api.py +203 -304
- crypticorn/trade/client/api/bots_api.py +177 -250
- crypticorn/trade/client/api/exchanges_api.py +38 -57
- crypticorn/trade/client/api/futures_trading_panel_api.py +223 -321
- crypticorn/trade/client/api/notifications_api.py +247 -364
- crypticorn/trade/client/api/orders_api.py +44 -63
- crypticorn/trade/client/api/status_api.py +35 -53
- crypticorn/trade/client/api/strategies_api.py +852 -64
- crypticorn/trade/client/api/trading_actions_api.py +126 -203
- crypticorn/trade/client/api_client.py +115 -154
- crypticorn/trade/client/api_response.py +2 -3
- crypticorn/trade/client/configuration.py +128 -90
- crypticorn/trade/client/exceptions.py +21 -17
- crypticorn/trade/client/models/__init__.py +9 -4
- crypticorn/trade/client/models/action_model.py +114 -50
- crypticorn/trade/client/models/api_error_identifier.py +60 -51
- crypticorn/trade/client/models/api_error_level.py +37 -0
- crypticorn/trade/client/models/api_error_type.py +37 -0
- crypticorn/trade/client/models/api_key_model.py +49 -28
- crypticorn/trade/client/models/bot_model.py +76 -31
- crypticorn/trade/client/models/bot_status.py +37 -0
- crypticorn/trade/client/models/exchange.py +3 -5
- crypticorn/trade/client/models/execution_ids.py +14 -14
- crypticorn/trade/client/models/futures_balance.py +39 -23
- crypticorn/trade/client/models/futures_trading_action.py +98 -46
- crypticorn/trade/client/models/http_validation_error.py +15 -11
- crypticorn/trade/client/models/margin_mode.py +3 -5
- crypticorn/trade/client/models/market_type.py +3 -5
- crypticorn/trade/client/models/notification_model.py +60 -27
- crypticorn/trade/client/models/notification_type.py +4 -6
- crypticorn/trade/client/models/order_model.py +125 -65
- crypticorn/trade/client/models/order_status.py +6 -8
- crypticorn/trade/client/models/post_futures_action.py +16 -12
- crypticorn/trade/client/models/strategy_exchange_info.py +11 -12
- crypticorn/trade/client/models/strategy_model.py +66 -27
- crypticorn/trade/client/models/strategy_model_input.py +160 -0
- crypticorn/trade/client/models/strategy_model_output.py +160 -0
- crypticorn/trade/client/models/tpsl.py +35 -21
- crypticorn/trade/client/models/trading_action_type.py +5 -7
- crypticorn/trade/client/models/update_notification.py +17 -13
- crypticorn/trade/client/models/validation_error.py +20 -14
- crypticorn/trade/client/models/validation_error_loc_inner.py +33 -12
- crypticorn/trade/client/rest.py +108 -170
- crypticorn/trade/main.py +26 -19
- crypticorn-2.0.0.dist-info/METADATA +74 -0
- crypticorn-2.0.0.dist-info/RECORD +226 -0
- {crypticorn-1.0.2rc3.dist-info → crypticorn-2.0.0.dist-info}/WHEEL +1 -1
- crypticorn/hive/requirements.txt +0 -4
- crypticorn/hive/utils.py +0 -109
- crypticorn/klines/requirements.txt +0 -4
- crypticorn/klines/test/test_base_response_health_check_response.py +0 -56
- crypticorn/klines/test/test_base_response_list_funding_rate_response.py +0 -59
- crypticorn/klines/test/test_base_response_list_str.py +0 -56
- crypticorn/klines/test/test_base_response_ohlcv_response.py +0 -72
- crypticorn/klines/test/test_error_response.py +0 -57
- crypticorn/klines/test/test_exchange.py +0 -56
- crypticorn/klines/test/test_funding_rate_response.py +0 -56
- crypticorn/klines/test/test_funding_rates_api.py +0 -38
- crypticorn/klines/test/test_health_check_api.py +0 -38
- crypticorn/klines/test/test_health_check_response.py +0 -52
- crypticorn/klines/test/test_history_error_response.py +0 -53
- crypticorn/klines/test/test_history_no_data_response.py +0 -69
- crypticorn/klines/test/test_history_success_response.py +0 -87
- crypticorn/klines/test/test_http_validation_error.py +0 -58
- crypticorn/klines/test/test_market.py +0 -33
- crypticorn/klines/test/test_ohlcv_data_api.py +0 -38
- crypticorn/klines/test/test_ohlcv_response.py +0 -86
- crypticorn/klines/test/test_resolution.py +0 -33
- crypticorn/klines/test/test_response_get_history_udf_history_get.py +0 -89
- crypticorn/klines/test/test_search_symbol_response.py +0 -62
- crypticorn/klines/test/test_sort_direction.py +0 -33
- crypticorn/klines/test/test_symbol_group_response.py +0 -53
- crypticorn/klines/test/test_symbol_info_response.py +0 -84
- crypticorn/klines/test/test_symbol_type.py +0 -54
- crypticorn/klines/test/test_symbols_api.py +0 -38
- crypticorn/klines/test/test_timeframe.py +0 -33
- crypticorn/klines/test/test_udf_api.py +0 -80
- crypticorn/klines/test/test_udf_config_response.py +0 -95
- crypticorn/klines/test/test_validation_error.py +0 -60
- crypticorn/klines/test/test_validation_error_loc_inner.py +0 -50
- crypticorn/trade/requirements.txt +0 -4
- crypticorn-1.0.2rc3.dist-info/LICENSE.md +0 -19
- crypticorn-1.0.2rc3.dist-info/METADATA +0 -47
- crypticorn-1.0.2rc3.dist-info/RECORD +0 -128
- /crypticorn/{klines/test/__init__.py → auth/client/py.typed} +0 -0
- {crypticorn-1.0.2rc3.dist-info → crypticorn-2.0.0.dist-info}/top_level.txt +0 -0
@@ -16,7 +16,9 @@ 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 crypticorn.klines.client.models.base_response_health_check_response import
|
19
|
+
from crypticorn.klines.client.models.base_response_health_check_response import (
|
20
|
+
BaseResponseHealthCheckResponse,
|
21
|
+
)
|
20
22
|
|
21
23
|
from crypticorn.klines.client.api_client import ApiClient, RequestSerialized
|
22
24
|
from crypticorn.klines.client.api_response import ApiResponse
|
@@ -35,7 +37,6 @@ class HealthCheckApi:
|
|
35
37
|
api_client = ApiClient.get_default()
|
36
38
|
self.api_client = api_client
|
37
39
|
|
38
|
-
|
39
40
|
@validate_call
|
40
41
|
def index_get(
|
41
42
|
self,
|
@@ -43,9 +44,8 @@ class HealthCheckApi:
|
|
43
44
|
None,
|
44
45
|
Annotated[StrictFloat, Field(gt=0)],
|
45
46
|
Tuple[
|
46
|
-
Annotated[StrictFloat, Field(gt=0)],
|
47
|
-
|
48
|
-
]
|
47
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
48
|
+
],
|
49
49
|
] = None,
|
50
50
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
51
51
|
_content_type: Optional[StrictStr] = None,
|
@@ -76,21 +76,20 @@ class HealthCheckApi:
|
|
76
76
|
in the spec for a single request.
|
77
77
|
:type _host_index: int, optional
|
78
78
|
:return: Returns the result object.
|
79
|
-
"""
|
79
|
+
""" # noqa: E501
|
80
80
|
|
81
81
|
_param = self._index_get_serialize(
|
82
82
|
_request_auth=_request_auth,
|
83
83
|
_content_type=_content_type,
|
84
84
|
_headers=_headers,
|
85
|
-
_host_index=_host_index
|
85
|
+
_host_index=_host_index,
|
86
86
|
)
|
87
87
|
|
88
88
|
_response_types_map: Dict[str, Optional[str]] = {
|
89
|
-
|
89
|
+
"200": "BaseResponseHealthCheckResponse",
|
90
90
|
}
|
91
91
|
response_data = self.api_client.call_api(
|
92
|
-
*_param,
|
93
|
-
_request_timeout=_request_timeout
|
92
|
+
*_param, _request_timeout=_request_timeout
|
94
93
|
)
|
95
94
|
response_data.read()
|
96
95
|
return self.api_client.response_deserialize(
|
@@ -98,7 +97,6 @@ class HealthCheckApi:
|
|
98
97
|
response_types_map=_response_types_map,
|
99
98
|
).data
|
100
99
|
|
101
|
-
|
102
100
|
@validate_call
|
103
101
|
def index_get_with_http_info(
|
104
102
|
self,
|
@@ -106,9 +104,8 @@ class HealthCheckApi:
|
|
106
104
|
None,
|
107
105
|
Annotated[StrictFloat, Field(gt=0)],
|
108
106
|
Tuple[
|
109
|
-
Annotated[StrictFloat, Field(gt=0)],
|
110
|
-
|
111
|
-
]
|
107
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
108
|
+
],
|
112
109
|
] = None,
|
113
110
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
114
111
|
_content_type: Optional[StrictStr] = None,
|
@@ -139,21 +136,20 @@ class HealthCheckApi:
|
|
139
136
|
in the spec for a single request.
|
140
137
|
:type _host_index: int, optional
|
141
138
|
:return: Returns the result object.
|
142
|
-
"""
|
139
|
+
""" # noqa: E501
|
143
140
|
|
144
141
|
_param = self._index_get_serialize(
|
145
142
|
_request_auth=_request_auth,
|
146
143
|
_content_type=_content_type,
|
147
144
|
_headers=_headers,
|
148
|
-
_host_index=_host_index
|
145
|
+
_host_index=_host_index,
|
149
146
|
)
|
150
147
|
|
151
148
|
_response_types_map: Dict[str, Optional[str]] = {
|
152
|
-
|
149
|
+
"200": "BaseResponseHealthCheckResponse",
|
153
150
|
}
|
154
151
|
response_data = self.api_client.call_api(
|
155
|
-
*_param,
|
156
|
-
_request_timeout=_request_timeout
|
152
|
+
*_param, _request_timeout=_request_timeout
|
157
153
|
)
|
158
154
|
response_data.read()
|
159
155
|
return self.api_client.response_deserialize(
|
@@ -161,7 +157,6 @@ class HealthCheckApi:
|
|
161
157
|
response_types_map=_response_types_map,
|
162
158
|
)
|
163
159
|
|
164
|
-
|
165
160
|
@validate_call
|
166
161
|
def index_get_without_preload_content(
|
167
162
|
self,
|
@@ -169,9 +164,8 @@ class HealthCheckApi:
|
|
169
164
|
None,
|
170
165
|
Annotated[StrictFloat, Field(gt=0)],
|
171
166
|
Tuple[
|
172
|
-
Annotated[StrictFloat, Field(gt=0)],
|
173
|
-
|
174
|
-
]
|
167
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
168
|
+
],
|
175
169
|
] = None,
|
176
170
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
177
171
|
_content_type: Optional[StrictStr] = None,
|
@@ -202,25 +196,23 @@ class HealthCheckApi:
|
|
202
196
|
in the spec for a single request.
|
203
197
|
:type _host_index: int, optional
|
204
198
|
:return: Returns the result object.
|
205
|
-
"""
|
199
|
+
""" # noqa: E501
|
206
200
|
|
207
201
|
_param = self._index_get_serialize(
|
208
202
|
_request_auth=_request_auth,
|
209
203
|
_content_type=_content_type,
|
210
204
|
_headers=_headers,
|
211
|
-
_host_index=_host_index
|
205
|
+
_host_index=_host_index,
|
212
206
|
)
|
213
207
|
|
214
208
|
_response_types_map: Dict[str, Optional[str]] = {
|
215
|
-
|
209
|
+
"200": "BaseResponseHealthCheckResponse",
|
216
210
|
}
|
217
211
|
response_data = self.api_client.call_api(
|
218
|
-
*_param,
|
219
|
-
_request_timeout=_request_timeout
|
212
|
+
*_param, _request_timeout=_request_timeout
|
220
213
|
)
|
221
214
|
return response_data.response
|
222
215
|
|
223
|
-
|
224
216
|
def _index_get_serialize(
|
225
217
|
self,
|
226
218
|
_request_auth,
|
@@ -231,8 +223,7 @@ class HealthCheckApi:
|
|
231
223
|
|
232
224
|
_host = None
|
233
225
|
|
234
|
-
_collection_formats: Dict[str, str] = {
|
235
|
-
}
|
226
|
+
_collection_formats: Dict[str, str] = {}
|
236
227
|
|
237
228
|
_path_params: Dict[str, str] = {}
|
238
229
|
_query_params: List[Tuple[str, str]] = []
|
@@ -249,23 +240,18 @@ class HealthCheckApi:
|
|
249
240
|
# process the form parameters
|
250
241
|
# process the body parameter
|
251
242
|
|
252
|
-
|
253
243
|
# set the HTTP header `Accept`
|
254
|
-
if
|
255
|
-
_header_params[
|
256
|
-
[
|
257
|
-
'application/json'
|
258
|
-
]
|
244
|
+
if "Accept" not in _header_params:
|
245
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
246
|
+
["application/json"]
|
259
247
|
)
|
260
248
|
|
261
|
-
|
262
249
|
# authentication setting
|
263
|
-
_auth_settings: List[str] = [
|
264
|
-
]
|
250
|
+
_auth_settings: List[str] = []
|
265
251
|
|
266
252
|
return self.api_client.param_serialize(
|
267
|
-
method=
|
268
|
-
resource_path=
|
253
|
+
method="GET",
|
254
|
+
resource_path="/",
|
269
255
|
path_params=_path_params,
|
270
256
|
query_params=_query_params,
|
271
257
|
header_params=_header_params,
|
@@ -275,7 +261,5 @@ class HealthCheckApi:
|
|
275
261
|
auth_settings=_auth_settings,
|
276
262
|
collection_formats=_collection_formats,
|
277
263
|
_host=_host,
|
278
|
-
_request_auth=_request_auth
|
264
|
+
_request_auth=_request_auth,
|
279
265
|
)
|
280
|
-
|
281
|
-
|
@@ -19,7 +19,9 @@ from typing_extensions import Annotated
|
|
19
19
|
from pydantic import Field, StrictInt, StrictStr
|
20
20
|
from typing import Any, Optional
|
21
21
|
from typing_extensions import Annotated
|
22
|
-
from crypticorn.klines.client.models.base_response_ohlcv_response import
|
22
|
+
from crypticorn.klines.client.models.base_response_ohlcv_response import (
|
23
|
+
BaseResponseOHLCVResponse,
|
24
|
+
)
|
23
25
|
|
24
26
|
from crypticorn.klines.client.api_client import ApiClient, RequestSerialized
|
25
27
|
from crypticorn.klines.client.api_response import ApiResponse
|
@@ -38,24 +40,33 @@ class OHLCVDataApi:
|
|
38
40
|
api_client = ApiClient.get_default()
|
39
41
|
self.api_client = api_client
|
40
42
|
|
41
|
-
|
42
43
|
@validate_call
|
43
44
|
def get_ohlcv_market_timeframe_symbol_get(
|
44
45
|
self,
|
45
46
|
market: Annotated[Any, Field(description="Market type (spot or futures)")],
|
46
47
|
timeframe: Annotated[Any, Field(description="Timeframe for the candles")],
|
47
|
-
symbol: Annotated[
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
48
|
+
symbol: Annotated[
|
49
|
+
StrictStr, Field(description="Trading pair symbol (e.g., BTCUSDT)")
|
50
|
+
],
|
51
|
+
start: Annotated[
|
52
|
+
Optional[StrictInt], Field(description="Start timestamp in milliseconds")
|
53
|
+
] = None,
|
54
|
+
end: Annotated[
|
55
|
+
Optional[StrictInt], Field(description="End timestamp in milliseconds")
|
56
|
+
] = None,
|
57
|
+
limit: Annotated[
|
58
|
+
Optional[Annotated[int, Field(strict=True, ge=1)]],
|
59
|
+
Field(description="Number of candles to return"),
|
60
|
+
] = None,
|
61
|
+
sort_direction: Annotated[
|
62
|
+
Optional[Any], Field(description="Klines sort direction (asc or desc)")
|
63
|
+
] = None,
|
52
64
|
_request_timeout: Union[
|
53
65
|
None,
|
54
66
|
Annotated[StrictFloat, Field(gt=0)],
|
55
67
|
Tuple[
|
56
|
-
Annotated[StrictFloat, Field(gt=0)],
|
57
|
-
|
58
|
-
]
|
68
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
69
|
+
],
|
59
70
|
] = None,
|
60
71
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
61
72
|
_content_type: Optional[StrictStr] = None,
|
@@ -100,7 +111,7 @@ class OHLCVDataApi:
|
|
100
111
|
in the spec for a single request.
|
101
112
|
:type _host_index: int, optional
|
102
113
|
:return: Returns the result object.
|
103
|
-
"""
|
114
|
+
""" # noqa: E501
|
104
115
|
|
105
116
|
_param = self._get_ohlcv_market_timeframe_symbol_get_serialize(
|
106
117
|
market=market,
|
@@ -113,19 +124,18 @@ class OHLCVDataApi:
|
|
113
124
|
_request_auth=_request_auth,
|
114
125
|
_content_type=_content_type,
|
115
126
|
_headers=_headers,
|
116
|
-
_host_index=_host_index
|
127
|
+
_host_index=_host_index,
|
117
128
|
)
|
118
129
|
|
119
130
|
_response_types_map: Dict[str, Optional[str]] = {
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
131
|
+
"200": "BaseResponseOHLCVResponse",
|
132
|
+
"400": "ErrorResponse",
|
133
|
+
"404": "ErrorResponse",
|
134
|
+
"500": "ErrorResponse",
|
135
|
+
"422": "HTTPValidationError",
|
125
136
|
}
|
126
137
|
response_data = self.api_client.call_api(
|
127
|
-
*_param,
|
128
|
-
_request_timeout=_request_timeout
|
138
|
+
*_param, _request_timeout=_request_timeout
|
129
139
|
)
|
130
140
|
response_data.read()
|
131
141
|
return self.api_client.response_deserialize(
|
@@ -133,24 +143,33 @@ class OHLCVDataApi:
|
|
133
143
|
response_types_map=_response_types_map,
|
134
144
|
).data
|
135
145
|
|
136
|
-
|
137
146
|
@validate_call
|
138
147
|
def get_ohlcv_market_timeframe_symbol_get_with_http_info(
|
139
148
|
self,
|
140
149
|
market: Annotated[Any, Field(description="Market type (spot or futures)")],
|
141
150
|
timeframe: Annotated[Any, Field(description="Timeframe for the candles")],
|
142
|
-
symbol: Annotated[
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
151
|
+
symbol: Annotated[
|
152
|
+
StrictStr, Field(description="Trading pair symbol (e.g., BTCUSDT)")
|
153
|
+
],
|
154
|
+
start: Annotated[
|
155
|
+
Optional[StrictInt], Field(description="Start timestamp in milliseconds")
|
156
|
+
] = None,
|
157
|
+
end: Annotated[
|
158
|
+
Optional[StrictInt], Field(description="End timestamp in milliseconds")
|
159
|
+
] = None,
|
160
|
+
limit: Annotated[
|
161
|
+
Optional[Annotated[int, Field(strict=True, ge=1)]],
|
162
|
+
Field(description="Number of candles to return"),
|
163
|
+
] = None,
|
164
|
+
sort_direction: Annotated[
|
165
|
+
Optional[Any], Field(description="Klines sort direction (asc or desc)")
|
166
|
+
] = None,
|
147
167
|
_request_timeout: Union[
|
148
168
|
None,
|
149
169
|
Annotated[StrictFloat, Field(gt=0)],
|
150
170
|
Tuple[
|
151
|
-
Annotated[StrictFloat, Field(gt=0)],
|
152
|
-
|
153
|
-
]
|
171
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
172
|
+
],
|
154
173
|
] = None,
|
155
174
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
156
175
|
_content_type: Optional[StrictStr] = None,
|
@@ -195,7 +214,7 @@ class OHLCVDataApi:
|
|
195
214
|
in the spec for a single request.
|
196
215
|
:type _host_index: int, optional
|
197
216
|
:return: Returns the result object.
|
198
|
-
"""
|
217
|
+
""" # noqa: E501
|
199
218
|
|
200
219
|
_param = self._get_ohlcv_market_timeframe_symbol_get_serialize(
|
201
220
|
market=market,
|
@@ -208,19 +227,18 @@ class OHLCVDataApi:
|
|
208
227
|
_request_auth=_request_auth,
|
209
228
|
_content_type=_content_type,
|
210
229
|
_headers=_headers,
|
211
|
-
_host_index=_host_index
|
230
|
+
_host_index=_host_index,
|
212
231
|
)
|
213
232
|
|
214
233
|
_response_types_map: Dict[str, Optional[str]] = {
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
234
|
+
"200": "BaseResponseOHLCVResponse",
|
235
|
+
"400": "ErrorResponse",
|
236
|
+
"404": "ErrorResponse",
|
237
|
+
"500": "ErrorResponse",
|
238
|
+
"422": "HTTPValidationError",
|
220
239
|
}
|
221
240
|
response_data = self.api_client.call_api(
|
222
|
-
*_param,
|
223
|
-
_request_timeout=_request_timeout
|
241
|
+
*_param, _request_timeout=_request_timeout
|
224
242
|
)
|
225
243
|
response_data.read()
|
226
244
|
return self.api_client.response_deserialize(
|
@@ -228,24 +246,33 @@ class OHLCVDataApi:
|
|
228
246
|
response_types_map=_response_types_map,
|
229
247
|
)
|
230
248
|
|
231
|
-
|
232
249
|
@validate_call
|
233
250
|
def get_ohlcv_market_timeframe_symbol_get_without_preload_content(
|
234
251
|
self,
|
235
252
|
market: Annotated[Any, Field(description="Market type (spot or futures)")],
|
236
253
|
timeframe: Annotated[Any, Field(description="Timeframe for the candles")],
|
237
|
-
symbol: Annotated[
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
254
|
+
symbol: Annotated[
|
255
|
+
StrictStr, Field(description="Trading pair symbol (e.g., BTCUSDT)")
|
256
|
+
],
|
257
|
+
start: Annotated[
|
258
|
+
Optional[StrictInt], Field(description="Start timestamp in milliseconds")
|
259
|
+
] = None,
|
260
|
+
end: Annotated[
|
261
|
+
Optional[StrictInt], Field(description="End timestamp in milliseconds")
|
262
|
+
] = None,
|
263
|
+
limit: Annotated[
|
264
|
+
Optional[Annotated[int, Field(strict=True, ge=1)]],
|
265
|
+
Field(description="Number of candles to return"),
|
266
|
+
] = None,
|
267
|
+
sort_direction: Annotated[
|
268
|
+
Optional[Any], Field(description="Klines sort direction (asc or desc)")
|
269
|
+
] = None,
|
242
270
|
_request_timeout: Union[
|
243
271
|
None,
|
244
272
|
Annotated[StrictFloat, Field(gt=0)],
|
245
273
|
Tuple[
|
246
|
-
Annotated[StrictFloat, Field(gt=0)],
|
247
|
-
|
248
|
-
]
|
274
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
275
|
+
],
|
249
276
|
] = None,
|
250
277
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
251
278
|
_content_type: Optional[StrictStr] = None,
|
@@ -290,7 +317,7 @@ class OHLCVDataApi:
|
|
290
317
|
in the spec for a single request.
|
291
318
|
:type _host_index: int, optional
|
292
319
|
:return: Returns the result object.
|
293
|
-
"""
|
320
|
+
""" # noqa: E501
|
294
321
|
|
295
322
|
_param = self._get_ohlcv_market_timeframe_symbol_get_serialize(
|
296
323
|
market=market,
|
@@ -303,23 +330,21 @@ class OHLCVDataApi:
|
|
303
330
|
_request_auth=_request_auth,
|
304
331
|
_content_type=_content_type,
|
305
332
|
_headers=_headers,
|
306
|
-
_host_index=_host_index
|
333
|
+
_host_index=_host_index,
|
307
334
|
)
|
308
335
|
|
309
336
|
_response_types_map: Dict[str, Optional[str]] = {
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
337
|
+
"200": "BaseResponseOHLCVResponse",
|
338
|
+
"400": "ErrorResponse",
|
339
|
+
"404": "ErrorResponse",
|
340
|
+
"500": "ErrorResponse",
|
341
|
+
"422": "HTTPValidationError",
|
315
342
|
}
|
316
343
|
response_data = self.api_client.call_api(
|
317
|
-
*_param,
|
318
|
-
_request_timeout=_request_timeout
|
344
|
+
*_param, _request_timeout=_request_timeout
|
319
345
|
)
|
320
346
|
return response_data.response
|
321
347
|
|
322
|
-
|
323
348
|
def _get_ohlcv_market_timeframe_symbol_get_serialize(
|
324
349
|
self,
|
325
350
|
market,
|
@@ -337,8 +362,7 @@ class OHLCVDataApi:
|
|
337
362
|
|
338
363
|
_host = None
|
339
364
|
|
340
|
-
_collection_formats: Dict[str, str] = {
|
341
|
-
}
|
365
|
+
_collection_formats: Dict[str, str] = {}
|
342
366
|
|
343
367
|
_path_params: Dict[str, str] = {}
|
344
368
|
_query_params: List[Tuple[str, str]] = []
|
@@ -351,49 +375,44 @@ class OHLCVDataApi:
|
|
351
375
|
|
352
376
|
# process the path parameters
|
353
377
|
if market is not None:
|
354
|
-
_path_params[
|
378
|
+
_path_params["market"] = market.value
|
355
379
|
if timeframe is not None:
|
356
|
-
_path_params[
|
380
|
+
_path_params["timeframe"] = timeframe.value
|
357
381
|
if symbol is not None:
|
358
|
-
_path_params[
|
382
|
+
_path_params["symbol"] = symbol
|
359
383
|
# process the query parameters
|
360
384
|
if start is not None:
|
361
|
-
|
362
|
-
_query_params.append((
|
363
|
-
|
385
|
+
|
386
|
+
_query_params.append(("start", start))
|
387
|
+
|
364
388
|
if end is not None:
|
365
|
-
|
366
|
-
_query_params.append((
|
367
|
-
|
389
|
+
|
390
|
+
_query_params.append(("end", end))
|
391
|
+
|
368
392
|
if limit is not None:
|
369
|
-
|
370
|
-
_query_params.append((
|
371
|
-
|
393
|
+
|
394
|
+
_query_params.append(("limit", limit))
|
395
|
+
|
372
396
|
if sort_direction is not None:
|
373
|
-
|
374
|
-
_query_params.append((
|
375
|
-
|
397
|
+
|
398
|
+
_query_params.append(("sort_direction", sort_direction.value))
|
399
|
+
|
376
400
|
# process the header parameters
|
377
401
|
# process the form parameters
|
378
402
|
# process the body parameter
|
379
403
|
|
380
|
-
|
381
404
|
# set the HTTP header `Accept`
|
382
|
-
if
|
383
|
-
_header_params[
|
384
|
-
[
|
385
|
-
'application/json'
|
386
|
-
]
|
405
|
+
if "Accept" not in _header_params:
|
406
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
407
|
+
["application/json"]
|
387
408
|
)
|
388
409
|
|
389
|
-
|
390
410
|
# authentication setting
|
391
|
-
_auth_settings: List[str] = [
|
392
|
-
]
|
411
|
+
_auth_settings: List[str] = []
|
393
412
|
|
394
413
|
return self.api_client.param_serialize(
|
395
|
-
method=
|
396
|
-
resource_path=
|
414
|
+
method="GET",
|
415
|
+
resource_path="/{market}/{timeframe}/{symbol}",
|
397
416
|
path_params=_path_params,
|
398
417
|
query_params=_query_params,
|
399
418
|
header_params=_header_params,
|
@@ -403,7 +422,5 @@ class OHLCVDataApi:
|
|
403
422
|
auth_settings=_auth_settings,
|
404
423
|
collection_formats=_collection_formats,
|
405
424
|
_host=_host,
|
406
|
-
_request_auth=_request_auth
|
425
|
+
_request_auth=_request_auth,
|
407
426
|
)
|
408
|
-
|
409
|
-
|