crypticorn 2.1.5__py3-none-any.whl → 2.1.6__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.
Files changed (38) hide show
  1. crypticorn/client.py +4 -0
  2. crypticorn/common/urls.py +1 -0
  3. crypticorn/klines/client/configuration.py +2 -2
  4. crypticorn/metrics/__init__.py +4 -0
  5. crypticorn/metrics/client/__init__.py +60 -0
  6. crypticorn/metrics/client/api/__init__.py +10 -0
  7. crypticorn/metrics/client/api/exchanges_api.py +1003 -0
  8. crypticorn/metrics/client/api/health_check_api.py +265 -0
  9. crypticorn/metrics/client/api/indicators_api.py +680 -0
  10. crypticorn/metrics/client/api/logs_api.py +356 -0
  11. crypticorn/metrics/client/api/marketcap_api.py +1315 -0
  12. crypticorn/metrics/client/api/markets_api.py +618 -0
  13. crypticorn/metrics/client/api/tokens_api.py +300 -0
  14. crypticorn/metrics/client/api_client.py +758 -0
  15. crypticorn/metrics/client/api_response.py +20 -0
  16. crypticorn/metrics/client/configuration.py +575 -0
  17. crypticorn/metrics/client/exceptions.py +220 -0
  18. crypticorn/metrics/client/models/__init__.py +37 -0
  19. crypticorn/metrics/client/models/base_response_dict.py +106 -0
  20. crypticorn/metrics/client/models/base_response_health_check_response.py +114 -0
  21. crypticorn/metrics/client/models/base_response_list_dict.py +106 -0
  22. crypticorn/metrics/client/models/base_response_list_exchange_mapping.py +118 -0
  23. crypticorn/metrics/client/models/base_response_list_str.py +106 -0
  24. crypticorn/metrics/client/models/error_response.py +109 -0
  25. crypticorn/metrics/client/models/exchange_mapping.py +132 -0
  26. crypticorn/metrics/client/models/health_check_response.py +91 -0
  27. crypticorn/metrics/client/models/http_validation_error.py +99 -0
  28. crypticorn/metrics/client/models/market.py +35 -0
  29. crypticorn/metrics/client/models/severity.py +36 -0
  30. crypticorn/metrics/client/models/validation_error.py +105 -0
  31. crypticorn/metrics/client/models/validation_error_loc_inner.py +159 -0
  32. crypticorn/metrics/client/py.typed +0 -0
  33. crypticorn/metrics/client/rest.py +195 -0
  34. crypticorn/metrics/main.py +112 -0
  35. {crypticorn-2.1.5.dist-info → crypticorn-2.1.6.dist-info}/METADATA +1 -1
  36. {crypticorn-2.1.5.dist-info → crypticorn-2.1.6.dist-info}/RECORD +38 -7
  37. {crypticorn-2.1.5.dist-info → crypticorn-2.1.6.dist-info}/WHEEL +0 -0
  38. {crypticorn-2.1.5.dist-info → crypticorn-2.1.6.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,265 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Marketcap Service API
5
+
6
+ API for retrieving historical marketcap data, available exchanges, and indicators. ## Features - Historical marketcap data - OHLCV data with marketcap - Technical indicators (KER, SMA) - Exchange and symbol mappings - Error logs
7
+
8
+ The version of the OpenAPI document: 1.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+ import warnings
15
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
+ from typing import Any, Dict, List, Optional, Tuple, Union
17
+ from typing_extensions import Annotated
18
+
19
+ from crypticorn.metrics.client.models.base_response_health_check_response import (
20
+ BaseResponseHealthCheckResponse,
21
+ )
22
+
23
+ from crypticorn.metrics.client.api_client import ApiClient, RequestSerialized
24
+ from crypticorn.metrics.client.api_response import ApiResponse
25
+ from crypticorn.metrics.client.rest import RESTResponseType
26
+
27
+
28
+ class HealthCheckApi:
29
+ """NOTE: This class is auto generated by OpenAPI Generator
30
+ Ref: https://openapi-generator.tech
31
+
32
+ Do not edit the class manually.
33
+ """
34
+
35
+ def __init__(self, api_client=None) -> None:
36
+ if api_client is None:
37
+ api_client = ApiClient.get_default()
38
+ self.api_client = api_client
39
+
40
+ @validate_call
41
+ async def health_check(
42
+ self,
43
+ _request_timeout: Union[
44
+ None,
45
+ Annotated[StrictFloat, Field(gt=0)],
46
+ Tuple[
47
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
48
+ ],
49
+ ] = None,
50
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
51
+ _content_type: Optional[StrictStr] = None,
52
+ _headers: Optional[Dict[StrictStr, Any]] = None,
53
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
54
+ ) -> BaseResponseHealthCheckResponse:
55
+ """Read Root
56
+
57
+ Health check endpoint to verify if the API is running.
58
+
59
+ :param _request_timeout: timeout setting for this request. If one
60
+ number provided, it will be total request
61
+ timeout. It can also be a pair (tuple) of
62
+ (connection, read) timeouts.
63
+ :type _request_timeout: int, tuple(int, int), optional
64
+ :param _request_auth: set to override the auth_settings for an a single
65
+ request; this effectively ignores the
66
+ authentication in the spec for a single request.
67
+ :type _request_auth: dict, optional
68
+ :param _content_type: force content-type for the request.
69
+ :type _content_type: str, Optional
70
+ :param _headers: set to override the headers for a single
71
+ request; this effectively ignores the headers
72
+ in the spec for a single request.
73
+ :type _headers: dict, optional
74
+ :param _host_index: set to override the host_index for a single
75
+ request; this effectively ignores the host_index
76
+ in the spec for a single request.
77
+ :type _host_index: int, optional
78
+ :return: Returns the result object.
79
+ """ # noqa: E501
80
+
81
+ _param = self._health_check_serialize(
82
+ _request_auth=_request_auth,
83
+ _content_type=_content_type,
84
+ _headers=_headers,
85
+ _host_index=_host_index,
86
+ )
87
+
88
+ _response_types_map: Dict[str, Optional[str]] = {
89
+ "200": "BaseResponseHealthCheckResponse",
90
+ }
91
+ response_data = await self.api_client.call_api(
92
+ *_param, _request_timeout=_request_timeout
93
+ )
94
+ await response_data.read()
95
+ return self.api_client.response_deserialize(
96
+ response_data=response_data,
97
+ response_types_map=_response_types_map,
98
+ ).data
99
+
100
+ @validate_call
101
+ async def health_check_with_http_info(
102
+ self,
103
+ _request_timeout: Union[
104
+ None,
105
+ Annotated[StrictFloat, Field(gt=0)],
106
+ Tuple[
107
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
108
+ ],
109
+ ] = None,
110
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
111
+ _content_type: Optional[StrictStr] = None,
112
+ _headers: Optional[Dict[StrictStr, Any]] = None,
113
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
114
+ ) -> ApiResponse[BaseResponseHealthCheckResponse]:
115
+ """Read Root
116
+
117
+ Health check endpoint to verify if the API is running.
118
+
119
+ :param _request_timeout: timeout setting for this request. If one
120
+ number provided, it will be total request
121
+ timeout. It can also be a pair (tuple) of
122
+ (connection, read) timeouts.
123
+ :type _request_timeout: int, tuple(int, int), optional
124
+ :param _request_auth: set to override the auth_settings for an a single
125
+ request; this effectively ignores the
126
+ authentication in the spec for a single request.
127
+ :type _request_auth: dict, optional
128
+ :param _content_type: force content-type for the request.
129
+ :type _content_type: str, Optional
130
+ :param _headers: set to override the headers for a single
131
+ request; this effectively ignores the headers
132
+ in the spec for a single request.
133
+ :type _headers: dict, optional
134
+ :param _host_index: set to override the host_index for a single
135
+ request; this effectively ignores the host_index
136
+ in the spec for a single request.
137
+ :type _host_index: int, optional
138
+ :return: Returns the result object.
139
+ """ # noqa: E501
140
+
141
+ _param = self._health_check_serialize(
142
+ _request_auth=_request_auth,
143
+ _content_type=_content_type,
144
+ _headers=_headers,
145
+ _host_index=_host_index,
146
+ )
147
+
148
+ _response_types_map: Dict[str, Optional[str]] = {
149
+ "200": "BaseResponseHealthCheckResponse",
150
+ }
151
+ response_data = await self.api_client.call_api(
152
+ *_param, _request_timeout=_request_timeout
153
+ )
154
+ await response_data.read()
155
+ return self.api_client.response_deserialize(
156
+ response_data=response_data,
157
+ response_types_map=_response_types_map,
158
+ )
159
+
160
+ @validate_call
161
+ async def health_check_without_preload_content(
162
+ self,
163
+ _request_timeout: Union[
164
+ None,
165
+ Annotated[StrictFloat, Field(gt=0)],
166
+ Tuple[
167
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
168
+ ],
169
+ ] = None,
170
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
171
+ _content_type: Optional[StrictStr] = None,
172
+ _headers: Optional[Dict[StrictStr, Any]] = None,
173
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
174
+ ) -> RESTResponseType:
175
+ """Read Root
176
+
177
+ Health check endpoint to verify if the API is running.
178
+
179
+ :param _request_timeout: timeout setting for this request. If one
180
+ number provided, it will be total request
181
+ timeout. It can also be a pair (tuple) of
182
+ (connection, read) timeouts.
183
+ :type _request_timeout: int, tuple(int, int), optional
184
+ :param _request_auth: set to override the auth_settings for an a single
185
+ request; this effectively ignores the
186
+ authentication in the spec for a single request.
187
+ :type _request_auth: dict, optional
188
+ :param _content_type: force content-type for the request.
189
+ :type _content_type: str, Optional
190
+ :param _headers: set to override the headers for a single
191
+ request; this effectively ignores the headers
192
+ in the spec for a single request.
193
+ :type _headers: dict, optional
194
+ :param _host_index: set to override the host_index for a single
195
+ request; this effectively ignores the host_index
196
+ in the spec for a single request.
197
+ :type _host_index: int, optional
198
+ :return: Returns the result object.
199
+ """ # noqa: E501
200
+
201
+ _param = self._health_check_serialize(
202
+ _request_auth=_request_auth,
203
+ _content_type=_content_type,
204
+ _headers=_headers,
205
+ _host_index=_host_index,
206
+ )
207
+
208
+ _response_types_map: Dict[str, Optional[str]] = {
209
+ "200": "BaseResponseHealthCheckResponse",
210
+ }
211
+ response_data = await self.api_client.call_api(
212
+ *_param, _request_timeout=_request_timeout
213
+ )
214
+ return response_data.response
215
+
216
+ def _health_check_serialize(
217
+ self,
218
+ _request_auth,
219
+ _content_type,
220
+ _headers,
221
+ _host_index,
222
+ ) -> RequestSerialized:
223
+
224
+ _host = None
225
+
226
+ _collection_formats: Dict[str, str] = {}
227
+
228
+ _path_params: Dict[str, str] = {}
229
+ _query_params: List[Tuple[str, str]] = []
230
+ _header_params: Dict[str, Optional[str]] = _headers or {}
231
+ _form_params: List[Tuple[str, str]] = []
232
+ _files: Dict[
233
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
234
+ ] = {}
235
+ _body_params: Optional[bytes] = None
236
+
237
+ # process the path parameters
238
+ # process the query parameters
239
+ # process the header parameters
240
+ # process the form parameters
241
+ # process the body parameter
242
+
243
+ # set the HTTP header `Accept`
244
+ if "Accept" not in _header_params:
245
+ _header_params["Accept"] = self.api_client.select_header_accept(
246
+ ["application/json"]
247
+ )
248
+
249
+ # authentication setting
250
+ _auth_settings: List[str] = []
251
+
252
+ return self.api_client.param_serialize(
253
+ method="GET",
254
+ resource_path="/",
255
+ path_params=_path_params,
256
+ query_params=_query_params,
257
+ header_params=_header_params,
258
+ body=_body_params,
259
+ post_params=_form_params,
260
+ files=_files,
261
+ auth_settings=_auth_settings,
262
+ collection_formats=_collection_formats,
263
+ _host=_host,
264
+ _request_auth=_request_auth,
265
+ )