crypticorn 2.8.0rc8__py3-none-any.whl → 2.8.1__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 (57) hide show
  1. crypticorn/cli/init.py +2 -2
  2. crypticorn/common/exceptions.py +2 -1
  3. crypticorn/common/logging.py +5 -5
  4. crypticorn/common/router/admin_router.py +10 -12
  5. crypticorn/common/router/status_router.py +2 -2
  6. crypticorn/hive/utils.py +1 -2
  7. crypticorn/klines/client/__init__.py +9 -1
  8. crypticorn/klines/client/api/__init__.py +1 -0
  9. crypticorn/klines/client/api/admin_api.py +1455 -0
  10. crypticorn/klines/client/api/change_in_timeframe_api.py +24 -20
  11. crypticorn/klines/client/api/funding_rates_api.py +12 -10
  12. crypticorn/klines/client/api/ohlcv_data_api.py +37 -24
  13. crypticorn/klines/client/api/status_api.py +8 -235
  14. crypticorn/klines/client/api/symbols_api.py +12 -9
  15. crypticorn/klines/client/api/udf_api.py +6 -6
  16. crypticorn/klines/client/models/__init__.py +8 -1
  17. crypticorn/klines/client/models/api_error_identifier.py +115 -0
  18. crypticorn/klines/client/models/api_error_level.py +37 -0
  19. crypticorn/klines/client/models/api_error_type.py +37 -0
  20. crypticorn/klines/client/models/exception_detail.py +6 -3
  21. crypticorn/klines/client/models/funding_rate.py +6 -12
  22. crypticorn/klines/client/models/funding_rate_response.py +103 -0
  23. crypticorn/klines/client/models/internal_exchange.py +39 -0
  24. crypticorn/klines/client/models/log_level.py +38 -0
  25. crypticorn/klines/client/models/market_type.py +35 -0
  26. crypticorn/klines/client/models/{ohlcv_history.py → ohlcv.py} +12 -13
  27. crypticorn/klines/client/models/search_symbol.py +3 -4
  28. crypticorn/klines/client/models/udf_config.py +2 -1
  29. crypticorn/klines/main.py +1 -13
  30. crypticorn/metrics/client/__init__.py +11 -0
  31. crypticorn/metrics/client/api/__init__.py +2 -0
  32. crypticorn/metrics/client/api/admin_api.py +1452 -0
  33. crypticorn/metrics/client/api/exchanges_api.py +51 -40
  34. crypticorn/metrics/client/api/indicators_api.py +49 -32
  35. crypticorn/metrics/client/api/logs_api.py +7 -7
  36. crypticorn/metrics/client/api/marketcap_api.py +28 -25
  37. crypticorn/metrics/client/api/markets_api.py +50 -278
  38. crypticorn/metrics/client/api/quote_currencies_api.py +289 -0
  39. crypticorn/metrics/client/api/status_api.py +4 -231
  40. crypticorn/metrics/client/api/tokens_api.py +241 -37
  41. crypticorn/metrics/client/models/__init__.py +9 -0
  42. crypticorn/metrics/client/models/api_error_identifier.py +115 -0
  43. crypticorn/metrics/client/models/api_error_level.py +37 -0
  44. crypticorn/metrics/client/models/api_error_type.py +37 -0
  45. crypticorn/metrics/client/models/exception_detail.py +6 -3
  46. crypticorn/metrics/client/models/exchange_mapping.py +121 -0
  47. crypticorn/metrics/client/models/internal_exchange.py +39 -0
  48. crypticorn/metrics/client/models/log_level.py +38 -0
  49. crypticorn/metrics/client/models/market_type.py +35 -0
  50. crypticorn/metrics/client/models/marketcap_ranking.py +87 -0
  51. crypticorn/metrics/client/models/ohlcv.py +113 -0
  52. crypticorn/metrics/main.py +14 -2
  53. {crypticorn-2.8.0rc8.dist-info → crypticorn-2.8.1.dist-info}/METADATA +3 -2
  54. {crypticorn-2.8.0rc8.dist-info → crypticorn-2.8.1.dist-info}/RECORD +57 -38
  55. {crypticorn-2.8.0rc8.dist-info → crypticorn-2.8.1.dist-info}/WHEEL +0 -0
  56. {crypticorn-2.8.0rc8.dist-info → crypticorn-2.8.1.dist-info}/entry_points.txt +0 -0
  57. {crypticorn-2.8.0rc8.dist-info → crypticorn-2.8.1.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,289 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Marketcap Service API
5
+
6
+ API for retrieving historical marketcap data, available exchanges, and indicators.
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 pydantic import Field, StrictStr
20
+ from typing import List
21
+ from typing_extensions import Annotated
22
+ from crypticorn.metrics.client.models.market_type import MarketType
23
+
24
+ from crypticorn.metrics.client.api_client import ApiClient, RequestSerialized
25
+ from crypticorn.metrics.client.api_response import ApiResponse
26
+ from crypticorn.metrics.client.rest import RESTResponseType
27
+
28
+
29
+ class QuoteCurrenciesApi:
30
+ """NOTE: This class is auto generated by OpenAPI Generator
31
+ Ref: https://openapi-generator.tech
32
+
33
+ Do not edit the class manually.
34
+ """
35
+
36
+ def __init__(self, api_client=None) -> None:
37
+ if api_client is None:
38
+ api_client = ApiClient.get_default()
39
+ self.api_client = api_client
40
+
41
+ @validate_call
42
+ async def get_quote_currencies(
43
+ self,
44
+ market: Annotated[
45
+ MarketType, Field(description="Market type (spot or futures)")
46
+ ],
47
+ _request_timeout: Union[
48
+ None,
49
+ Annotated[StrictFloat, Field(gt=0)],
50
+ Tuple[
51
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
52
+ ],
53
+ ] = None,
54
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
55
+ _content_type: Optional[StrictStr] = None,
56
+ _headers: Optional[Dict[StrictStr, Any]] = None,
57
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
58
+ ) -> List[str]:
59
+ """Get Quote Currencies
60
+
61
+ Get available quote currencies for a market.
62
+
63
+ :param market: Market type (spot or futures) (required)
64
+ :type market: MarketType
65
+ :param _request_timeout: timeout setting for this request. If one
66
+ number provided, it will be total request
67
+ timeout. It can also be a pair (tuple) of
68
+ (connection, read) timeouts.
69
+ :type _request_timeout: int, tuple(int, int), optional
70
+ :param _request_auth: set to override the auth_settings for an a single
71
+ request; this effectively ignores the
72
+ authentication in the spec for a single request.
73
+ :type _request_auth: dict, optional
74
+ :param _content_type: force content-type for the request.
75
+ :type _content_type: str, Optional
76
+ :param _headers: set to override the headers for a single
77
+ request; this effectively ignores the headers
78
+ in the spec for a single request.
79
+ :type _headers: dict, optional
80
+ :param _host_index: set to override the host_index for a single
81
+ request; this effectively ignores the host_index
82
+ in the spec for a single request.
83
+ :type _host_index: int, optional
84
+ :return: Returns the result object.
85
+ """ # noqa: E501
86
+
87
+ _param = self._get_quote_currencies_serialize(
88
+ market=market,
89
+ _request_auth=_request_auth,
90
+ _content_type=_content_type,
91
+ _headers=_headers,
92
+ _host_index=_host_index,
93
+ )
94
+
95
+ _response_types_map: Dict[str, Optional[str]] = {
96
+ "200": "List[str]",
97
+ }
98
+ response_data = await self.api_client.call_api(
99
+ *_param, _request_timeout=_request_timeout
100
+ )
101
+ await response_data.read()
102
+ return self.api_client.response_deserialize(
103
+ response_data=response_data,
104
+ response_types_map=_response_types_map,
105
+ ).data
106
+
107
+ @validate_call
108
+ async def get_quote_currencies_with_http_info(
109
+ self,
110
+ market: Annotated[
111
+ MarketType, Field(description="Market type (spot or futures)")
112
+ ],
113
+ _request_timeout: Union[
114
+ None,
115
+ Annotated[StrictFloat, Field(gt=0)],
116
+ Tuple[
117
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
118
+ ],
119
+ ] = None,
120
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
121
+ _content_type: Optional[StrictStr] = None,
122
+ _headers: Optional[Dict[StrictStr, Any]] = None,
123
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
124
+ ) -> ApiResponse[List[str]]:
125
+ """Get Quote Currencies
126
+
127
+ Get available quote currencies for a market.
128
+
129
+ :param market: Market type (spot or futures) (required)
130
+ :type market: MarketType
131
+ :param _request_timeout: timeout setting for this request. If one
132
+ number provided, it will be total request
133
+ timeout. It can also be a pair (tuple) of
134
+ (connection, read) timeouts.
135
+ :type _request_timeout: int, tuple(int, int), optional
136
+ :param _request_auth: set to override the auth_settings for an a single
137
+ request; this effectively ignores the
138
+ authentication in the spec for a single request.
139
+ :type _request_auth: dict, optional
140
+ :param _content_type: force content-type for the request.
141
+ :type _content_type: str, Optional
142
+ :param _headers: set to override the headers for a single
143
+ request; this effectively ignores the headers
144
+ in the spec for a single request.
145
+ :type _headers: dict, optional
146
+ :param _host_index: set to override the host_index for a single
147
+ request; this effectively ignores the host_index
148
+ in the spec for a single request.
149
+ :type _host_index: int, optional
150
+ :return: Returns the result object.
151
+ """ # noqa: E501
152
+
153
+ _param = self._get_quote_currencies_serialize(
154
+ market=market,
155
+ _request_auth=_request_auth,
156
+ _content_type=_content_type,
157
+ _headers=_headers,
158
+ _host_index=_host_index,
159
+ )
160
+
161
+ _response_types_map: Dict[str, Optional[str]] = {
162
+ "200": "List[str]",
163
+ }
164
+ response_data = await self.api_client.call_api(
165
+ *_param, _request_timeout=_request_timeout
166
+ )
167
+ await response_data.read()
168
+ return self.api_client.response_deserialize(
169
+ response_data=response_data,
170
+ response_types_map=_response_types_map,
171
+ )
172
+
173
+ @validate_call
174
+ async def get_quote_currencies_without_preload_content(
175
+ self,
176
+ market: Annotated[
177
+ MarketType, Field(description="Market type (spot or futures)")
178
+ ],
179
+ _request_timeout: Union[
180
+ None,
181
+ Annotated[StrictFloat, Field(gt=0)],
182
+ Tuple[
183
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
184
+ ],
185
+ ] = None,
186
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
187
+ _content_type: Optional[StrictStr] = None,
188
+ _headers: Optional[Dict[StrictStr, Any]] = None,
189
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
190
+ ) -> RESTResponseType:
191
+ """Get Quote Currencies
192
+
193
+ Get available quote currencies for a market.
194
+
195
+ :param market: Market type (spot or futures) (required)
196
+ :type market: MarketType
197
+ :param _request_timeout: timeout setting for this request. If one
198
+ number provided, it will be total request
199
+ timeout. It can also be a pair (tuple) of
200
+ (connection, read) timeouts.
201
+ :type _request_timeout: int, tuple(int, int), optional
202
+ :param _request_auth: set to override the auth_settings for an a single
203
+ request; this effectively ignores the
204
+ authentication in the spec for a single request.
205
+ :type _request_auth: dict, optional
206
+ :param _content_type: force content-type for the request.
207
+ :type _content_type: str, Optional
208
+ :param _headers: set to override the headers for a single
209
+ request; this effectively ignores the headers
210
+ in the spec for a single request.
211
+ :type _headers: dict, optional
212
+ :param _host_index: set to override the host_index for a single
213
+ request; this effectively ignores the host_index
214
+ in the spec for a single request.
215
+ :type _host_index: int, optional
216
+ :return: Returns the result object.
217
+ """ # noqa: E501
218
+
219
+ _param = self._get_quote_currencies_serialize(
220
+ market=market,
221
+ _request_auth=_request_auth,
222
+ _content_type=_content_type,
223
+ _headers=_headers,
224
+ _host_index=_host_index,
225
+ )
226
+
227
+ _response_types_map: Dict[str, Optional[str]] = {
228
+ "200": "List[str]",
229
+ }
230
+ response_data = await self.api_client.call_api(
231
+ *_param, _request_timeout=_request_timeout
232
+ )
233
+ return response_data.response
234
+
235
+ def _get_quote_currencies_serialize(
236
+ self,
237
+ market,
238
+ _request_auth,
239
+ _content_type,
240
+ _headers,
241
+ _host_index,
242
+ ) -> RequestSerialized:
243
+
244
+ _host = None
245
+
246
+ _collection_formats: Dict[str, str] = {}
247
+
248
+ _path_params: Dict[str, str] = {}
249
+ _query_params: List[Tuple[str, str]] = []
250
+ _header_params: Dict[str, Optional[str]] = _headers or {}
251
+ _form_params: List[Tuple[str, str]] = []
252
+ _files: Dict[
253
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
254
+ ] = {}
255
+ _body_params: Optional[bytes] = None
256
+
257
+ # process the path parameters
258
+ # process the query parameters
259
+ if market is not None:
260
+
261
+ _query_params.append(("market", market.value))
262
+
263
+ # process the header parameters
264
+ # process the form parameters
265
+ # process the body parameter
266
+
267
+ # set the HTTP header `Accept`
268
+ if "Accept" not in _header_params:
269
+ _header_params["Accept"] = self.api_client.select_header_accept(
270
+ ["application/json"]
271
+ )
272
+
273
+ # authentication setting
274
+ _auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
275
+
276
+ return self.api_client.param_serialize(
277
+ method="GET",
278
+ resource_path="/quote-currencies",
279
+ path_params=_path_params,
280
+ query_params=_query_params,
281
+ header_params=_header_params,
282
+ body=_body_params,
283
+ post_params=_form_params,
284
+ files=_files,
285
+ auth_settings=_auth_settings,
286
+ collection_formats=_collection_formats,
287
+ _host=_host,
288
+ _request_auth=_request_auth,
289
+ )
@@ -17,7 +17,7 @@ from typing import Any, Dict, List, Optional, Tuple, Union
17
17
  from typing_extensions import Annotated
18
18
 
19
19
  from pydantic import StrictStr, field_validator
20
- from typing import Any, Dict, Optional
20
+ from typing import Optional
21
21
 
22
22
  from crypticorn.metrics.client.api_client import ApiClient, RequestSerialized
23
23
  from crypticorn.metrics.client.api_response import ApiResponse
@@ -36,233 +36,6 @@ class StatusApi:
36
36
  api_client = ApiClient.get_default()
37
37
  self.api_client = api_client
38
38
 
39
- @validate_call
40
- async def get_config(
41
- self,
42
- _request_timeout: Union[
43
- None,
44
- Annotated[StrictFloat, Field(gt=0)],
45
- Tuple[
46
- Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
47
- ],
48
- ] = None,
49
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
50
- _content_type: Optional[StrictStr] = None,
51
- _headers: Optional[Dict[StrictStr, Any]] = None,
52
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
53
- ) -> Dict[str, object]:
54
- """Config
55
-
56
- Returns the version of the crypticorn library and the environment.
57
-
58
- :param _request_timeout: timeout setting for this request. If one
59
- number provided, it will be total request
60
- timeout. It can also be a pair (tuple) of
61
- (connection, read) timeouts.
62
- :type _request_timeout: int, tuple(int, int), optional
63
- :param _request_auth: set to override the auth_settings for an a single
64
- request; this effectively ignores the
65
- authentication in the spec for a single request.
66
- :type _request_auth: dict, optional
67
- :param _content_type: force content-type for the request.
68
- :type _content_type: str, Optional
69
- :param _headers: set to override the headers for a single
70
- request; this effectively ignores the headers
71
- in the spec for a single request.
72
- :type _headers: dict, optional
73
- :param _host_index: set to override the host_index for a single
74
- request; this effectively ignores the host_index
75
- in the spec for a single request.
76
- :type _host_index: int, optional
77
- :return: Returns the result object.
78
- """ # noqa: E501
79
-
80
- _param = self._get_config_serialize(
81
- _request_auth=_request_auth,
82
- _content_type=_content_type,
83
- _headers=_headers,
84
- _host_index=_host_index,
85
- )
86
-
87
- _response_types_map: Dict[str, Optional[str]] = {
88
- "200": "Dict[str, object]",
89
- }
90
- response_data = await self.api_client.call_api(
91
- *_param, _request_timeout=_request_timeout
92
- )
93
- await response_data.read()
94
- return self.api_client.response_deserialize(
95
- response_data=response_data,
96
- response_types_map=_response_types_map,
97
- ).data
98
-
99
- @validate_call
100
- async def get_config_with_http_info(
101
- self,
102
- _request_timeout: Union[
103
- None,
104
- Annotated[StrictFloat, Field(gt=0)],
105
- Tuple[
106
- Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
107
- ],
108
- ] = None,
109
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
110
- _content_type: Optional[StrictStr] = None,
111
- _headers: Optional[Dict[StrictStr, Any]] = None,
112
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
113
- ) -> ApiResponse[Dict[str, object]]:
114
- """Config
115
-
116
- Returns the version of the crypticorn library and the environment.
117
-
118
- :param _request_timeout: timeout setting for this request. If one
119
- number provided, it will be total request
120
- timeout. It can also be a pair (tuple) of
121
- (connection, read) timeouts.
122
- :type _request_timeout: int, tuple(int, int), optional
123
- :param _request_auth: set to override the auth_settings for an a single
124
- request; this effectively ignores the
125
- authentication in the spec for a single request.
126
- :type _request_auth: dict, optional
127
- :param _content_type: force content-type for the request.
128
- :type _content_type: str, Optional
129
- :param _headers: set to override the headers for a single
130
- request; this effectively ignores the headers
131
- in the spec for a single request.
132
- :type _headers: dict, optional
133
- :param _host_index: set to override the host_index for a single
134
- request; this effectively ignores the host_index
135
- in the spec for a single request.
136
- :type _host_index: int, optional
137
- :return: Returns the result object.
138
- """ # noqa: E501
139
-
140
- _param = self._get_config_serialize(
141
- _request_auth=_request_auth,
142
- _content_type=_content_type,
143
- _headers=_headers,
144
- _host_index=_host_index,
145
- )
146
-
147
- _response_types_map: Dict[str, Optional[str]] = {
148
- "200": "Dict[str, object]",
149
- }
150
- response_data = await self.api_client.call_api(
151
- *_param, _request_timeout=_request_timeout
152
- )
153
- await response_data.read()
154
- return self.api_client.response_deserialize(
155
- response_data=response_data,
156
- response_types_map=_response_types_map,
157
- )
158
-
159
- @validate_call
160
- async def get_config_without_preload_content(
161
- self,
162
- _request_timeout: Union[
163
- None,
164
- Annotated[StrictFloat, Field(gt=0)],
165
- Tuple[
166
- Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
167
- ],
168
- ] = None,
169
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
170
- _content_type: Optional[StrictStr] = None,
171
- _headers: Optional[Dict[StrictStr, Any]] = None,
172
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
173
- ) -> RESTResponseType:
174
- """Config
175
-
176
- Returns the version of the crypticorn library and the environment.
177
-
178
- :param _request_timeout: timeout setting for this request. If one
179
- number provided, it will be total request
180
- timeout. It can also be a pair (tuple) of
181
- (connection, read) timeouts.
182
- :type _request_timeout: int, tuple(int, int), optional
183
- :param _request_auth: set to override the auth_settings for an a single
184
- request; this effectively ignores the
185
- authentication in the spec for a single request.
186
- :type _request_auth: dict, optional
187
- :param _content_type: force content-type for the request.
188
- :type _content_type: str, Optional
189
- :param _headers: set to override the headers for a single
190
- request; this effectively ignores the headers
191
- in the spec for a single request.
192
- :type _headers: dict, optional
193
- :param _host_index: set to override the host_index for a single
194
- request; this effectively ignores the host_index
195
- in the spec for a single request.
196
- :type _host_index: int, optional
197
- :return: Returns the result object.
198
- """ # noqa: E501
199
-
200
- _param = self._get_config_serialize(
201
- _request_auth=_request_auth,
202
- _content_type=_content_type,
203
- _headers=_headers,
204
- _host_index=_host_index,
205
- )
206
-
207
- _response_types_map: Dict[str, Optional[str]] = {
208
- "200": "Dict[str, object]",
209
- }
210
- response_data = await self.api_client.call_api(
211
- *_param, _request_timeout=_request_timeout
212
- )
213
- return response_data.response
214
-
215
- def _get_config_serialize(
216
- self,
217
- _request_auth,
218
- _content_type,
219
- _headers,
220
- _host_index,
221
- ) -> RequestSerialized:
222
-
223
- _host = None
224
-
225
- _collection_formats: Dict[str, str] = {}
226
-
227
- _path_params: Dict[str, str] = {}
228
- _query_params: List[Tuple[str, str]] = []
229
- _header_params: Dict[str, Optional[str]] = _headers or {}
230
- _form_params: List[Tuple[str, str]] = []
231
- _files: Dict[
232
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
233
- ] = {}
234
- _body_params: Optional[bytes] = None
235
-
236
- # process the path parameters
237
- # process the query parameters
238
- # process the header parameters
239
- # process the form parameters
240
- # process the body parameter
241
-
242
- # set the HTTP header `Accept`
243
- if "Accept" not in _header_params:
244
- _header_params["Accept"] = self.api_client.select_header_accept(
245
- ["application/json"]
246
- )
247
-
248
- # authentication setting
249
- _auth_settings: List[str] = []
250
-
251
- return self.api_client.param_serialize(
252
- method="GET",
253
- resource_path="/config",
254
- path_params=_path_params,
255
- query_params=_query_params,
256
- header_params=_header_params,
257
- body=_body_params,
258
- post_params=_form_params,
259
- files=_files,
260
- auth_settings=_auth_settings,
261
- collection_formats=_collection_formats,
262
- _host=_host,
263
- _request_auth=_request_auth,
264
- )
265
-
266
39
  @validate_call
267
40
  async def get_time(
268
41
  self,
@@ -281,7 +54,7 @@ class StatusApi:
281
54
  ) -> str:
282
55
  """Time
283
56
 
284
- Returns the current time in the specified format.
57
+ Returns the current time in either ISO or Unix timestamp (seconds) format.
285
58
 
286
59
  :param type:
287
60
  :type type: str
@@ -345,7 +118,7 @@ class StatusApi:
345
118
  ) -> ApiResponse[str]:
346
119
  """Time
347
120
 
348
- Returns the current time in the specified format.
121
+ Returns the current time in either ISO or Unix timestamp (seconds) format.
349
122
 
350
123
  :param type:
351
124
  :type type: str
@@ -409,7 +182,7 @@ class StatusApi:
409
182
  ) -> RESTResponseType:
410
183
  """Time
411
184
 
412
- Returns the current time in the specified format.
185
+ Returns the current time in either ISO or Unix timestamp (seconds) format.
413
186
 
414
187
  :param type:
415
188
  :type type: str