crypticorn 2.5.1__py3-none-any.whl → 2.5.3__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 (191) hide show
  1. crypticorn/cli/init.py +3 -0
  2. crypticorn/common/__init__.py +1 -0
  3. crypticorn/common/enums.py +3 -1
  4. crypticorn/common/errors.py +42 -21
  5. crypticorn/common/mixins.py +20 -0
  6. crypticorn/common/scopes.py +4 -20
  7. crypticorn/common/status_router.py +44 -0
  8. crypticorn/common/utils.py +13 -14
  9. crypticorn/hive/client/__init__.py +1 -5
  10. crypticorn/hive/client/api/data_api.py +1 -33
  11. crypticorn/hive/client/api/models_api.py +8 -104
  12. crypticorn/hive/client/api/status_api.py +481 -9
  13. crypticorn/hive/client/configuration.py +12 -4
  14. crypticorn/hive/client/models/__init__.py +1 -5
  15. crypticorn/hive/client/models/coins.py +0 -1
  16. crypticorn/hive/client/models/data_version.py +0 -1
  17. crypticorn/{metrics/client/models/error_response.py → hive/client/models/exception_detail.py} +26 -21
  18. crypticorn/hive/client/rest.py +4 -1
  19. crypticorn/klines/client/__init__.py +0 -5
  20. crypticorn/klines/client/api/change_in_timeframe_api.py +8 -9
  21. crypticorn/klines/client/api/ohlcv_data_api.py +7 -8
  22. crypticorn/klines/client/api/status_api.py +481 -6
  23. crypticorn/klines/client/api/symbols_api.py +7 -8
  24. crypticorn/klines/client/api/udf_api.py +0 -227
  25. crypticorn/klines/client/models/__init__.py +0 -5
  26. crypticorn/klines/client/models/exception_detail.py +3 -6
  27. crypticorn/klines/client/models/search_symbol.py +4 -3
  28. crypticorn/klines/client/models/udf_config.py +1 -2
  29. crypticorn/metrics/client/__init__.py +1 -6
  30. crypticorn/metrics/client/api/exchanges_api.py +29 -31
  31. crypticorn/metrics/client/api/indicators_api.py +15 -16
  32. crypticorn/metrics/client/api/logs_api.py +1 -1
  33. crypticorn/metrics/client/api/marketcap_api.py +15 -16
  34. crypticorn/metrics/client/api/markets_api.py +15 -16
  35. crypticorn/metrics/client/api/status_api.py +477 -2
  36. crypticorn/metrics/client/api/tokens_api.py +1 -1
  37. crypticorn/metrics/client/api_client.py +1 -1
  38. crypticorn/metrics/client/configuration.py +3 -5
  39. crypticorn/metrics/client/exceptions.py +1 -1
  40. crypticorn/metrics/client/models/__init__.py +1 -6
  41. crypticorn/metrics/client/models/exception_detail.py +4 -7
  42. crypticorn/metrics/client/models/severity.py +1 -1
  43. crypticorn/metrics/client/models/time_interval.py +1 -1
  44. crypticorn/metrics/client/models/trading_status.py +1 -1
  45. crypticorn/metrics/client/rest.py +1 -1
  46. crypticorn/pay/client/__init__.py +3 -8
  47. crypticorn/pay/client/api/now_payments_api.py +14 -17
  48. crypticorn/pay/client/api/payments_api.py +2 -11
  49. crypticorn/pay/client/api/products_api.py +2 -11
  50. crypticorn/pay/client/api/status_api.py +483 -8
  51. crypticorn/pay/client/api_client.py +2 -2
  52. crypticorn/pay/client/configuration.py +3 -3
  53. crypticorn/pay/client/exceptions.py +2 -2
  54. crypticorn/pay/client/models/__init__.py +3 -8
  55. crypticorn/{metrics/client/models/base_response_dict.py → pay/client/models/exception_detail.py} +28 -20
  56. crypticorn/pay/client/models/now_create_invoice_req.py +2 -2
  57. crypticorn/pay/client/models/now_create_invoice_res.py +2 -2
  58. crypticorn/pay/client/models/payment.py +2 -2
  59. crypticorn/pay/client/models/payment_status.py +2 -2
  60. crypticorn/pay/client/models/product_create.py +2 -2
  61. crypticorn/pay/client/models/product_read.py +2 -2
  62. crypticorn/pay/client/models/product_sub_read.py +2 -2
  63. crypticorn/pay/client/models/product_update.py +2 -2
  64. crypticorn/pay/client/models/scope.py +2 -2
  65. crypticorn/pay/client/models/services.py +2 -2
  66. crypticorn/pay/client/rest.py +2 -2
  67. crypticorn/trade/client/__init__.py +4 -9
  68. crypticorn/trade/client/api/api_keys_api.py +5 -20
  69. crypticorn/trade/client/api/bots_api.py +7 -19
  70. crypticorn/trade/client/api/exchanges_api.py +8 -8
  71. crypticorn/trade/client/api/futures_trading_panel_api.py +10 -22
  72. crypticorn/trade/client/api/notifications_api.py +10 -25
  73. crypticorn/trade/client/api/orders_api.py +2 -5
  74. crypticorn/trade/client/api/status_api.py +483 -8
  75. crypticorn/trade/client/api/strategies_api.py +5 -17
  76. crypticorn/trade/client/api/trading_actions_api.py +18 -26
  77. crypticorn/trade/client/api_client.py +2 -2
  78. crypticorn/trade/client/configuration.py +5 -5
  79. crypticorn/trade/client/exceptions.py +2 -2
  80. crypticorn/trade/client/models/__init__.py +4 -9
  81. crypticorn/trade/client/models/action_model.py +3 -4
  82. crypticorn/trade/client/models/bot_model.py +2 -2
  83. crypticorn/trade/client/models/bot_status.py +2 -2
  84. crypticorn/{klines/client/models/error_response.py → trade/client/models/exception_detail.py} +26 -21
  85. crypticorn/trade/client/models/exchange_key_model.py +4 -13
  86. crypticorn/trade/client/models/execution_ids.py +2 -2
  87. crypticorn/trade/client/models/futures_balance.py +2 -2
  88. crypticorn/trade/client/models/futures_trading_action.py +3 -4
  89. crypticorn/trade/client/models/margin_mode.py +2 -2
  90. crypticorn/trade/client/models/notification_model.py +2 -2
  91. crypticorn/trade/client/models/order_model.py +6 -16
  92. crypticorn/trade/client/models/order_status.py +2 -2
  93. crypticorn/trade/client/models/post_futures_action.py +2 -2
  94. crypticorn/trade/client/models/spot_trading_action.py +3 -4
  95. crypticorn/trade/client/models/strategy_exchange_info.py +4 -5
  96. crypticorn/trade/client/models/strategy_model_input.py +3 -4
  97. crypticorn/trade/client/models/strategy_model_output.py +3 -4
  98. crypticorn/trade/client/models/tpsl.py +5 -3
  99. crypticorn/trade/client/models/trading_action_type.py +2 -2
  100. crypticorn/trade/client/rest.py +2 -2
  101. {crypticorn-2.5.1.dist-info → crypticorn-2.5.3.dist-info}/METADATA +1 -1
  102. crypticorn-2.5.3.dist-info/RECORD +223 -0
  103. crypticorn/hive/client/models/http_validation_error.py +0 -99
  104. crypticorn/hive/client/models/validation_error.py +0 -105
  105. crypticorn/hive/client/models/validation_error_loc_inner.py +0 -159
  106. crypticorn/klines/client/api/health_check_api.py +0 -265
  107. crypticorn/klines/client/models/api_error_identifier.py +0 -108
  108. crypticorn/klines/client/models/api_error_level.py +0 -37
  109. crypticorn/klines/client/models/api_error_type.py +0 -37
  110. crypticorn/klines/client/models/base_response_health_check_response.py +0 -114
  111. crypticorn/klines/client/models/base_response_list_change_in_timeframe_response.py +0 -123
  112. crypticorn/klines/client/models/base_response_list_funding_rate_response.py +0 -118
  113. crypticorn/klines/client/models/base_response_list_str.py +0 -106
  114. crypticorn/klines/client/models/base_response_ohlcv_response.py +0 -114
  115. crypticorn/klines/client/models/change_in_timeframe_response.py +0 -86
  116. crypticorn/klines/client/models/exchange.py +0 -91
  117. crypticorn/klines/client/models/funding_rate_response.py +0 -92
  118. crypticorn/klines/client/models/health_check_response.py +0 -91
  119. crypticorn/klines/client/models/history_error_response.py +0 -89
  120. crypticorn/klines/client/models/history_no_data_response.py +0 -99
  121. crypticorn/klines/client/models/history_success_response.py +0 -99
  122. crypticorn/klines/client/models/http_validation_error.py +0 -99
  123. crypticorn/klines/client/models/internal_exchange.py +0 -39
  124. crypticorn/klines/client/models/market.py +0 -35
  125. crypticorn/klines/client/models/market_type.py +0 -35
  126. crypticorn/klines/client/models/ohlcv_response.py +0 -105
  127. crypticorn/klines/client/models/response_get_history_udf_history_get.py +0 -198
  128. crypticorn/klines/client/models/response_get_udf_history.py +0 -198
  129. crypticorn/klines/client/models/search_symbol_response.py +0 -104
  130. crypticorn/klines/client/models/symbol_group_response.py +0 -83
  131. crypticorn/klines/client/models/symbol_info_response.py +0 -131
  132. crypticorn/klines/client/models/udf_config_response.py +0 -160
  133. crypticorn/klines/client/models/validation_error.py +0 -105
  134. crypticorn/klines/client/models/validation_error_loc_inner.py +0 -159
  135. crypticorn/metrics/client/api/health_check_api.py +0 -265
  136. crypticorn/metrics/client/models/api_error_identifier.py +0 -108
  137. crypticorn/metrics/client/models/api_error_level.py +0 -37
  138. crypticorn/metrics/client/models/api_error_type.py +0 -37
  139. crypticorn/metrics/client/models/base_response_health_check_response.py +0 -114
  140. crypticorn/metrics/client/models/base_response_list_dict.py +0 -106
  141. crypticorn/metrics/client/models/base_response_list_exchange_mapping.py +0 -118
  142. crypticorn/metrics/client/models/base_response_list_str.py +0 -106
  143. crypticorn/metrics/client/models/exchange_mapping.py +0 -134
  144. crypticorn/metrics/client/models/health_check_response.py +0 -91
  145. crypticorn/metrics/client/models/http_validation_error.py +0 -99
  146. crypticorn/metrics/client/models/internal_exchange.py +0 -39
  147. crypticorn/metrics/client/models/market.py +0 -35
  148. crypticorn/metrics/client/models/market_type.py +0 -35
  149. crypticorn/metrics/client/models/validation_error.py +0 -105
  150. crypticorn/metrics/client/models/validation_error_loc_inner.py +0 -159
  151. crypticorn/pay/client/models/api_status_res.py +0 -83
  152. crypticorn/pay/client/models/body_create_now_invoice.py +0 -98
  153. crypticorn/pay/client/models/body_create_product.py +0 -98
  154. crypticorn/pay/client/models/body_get_products.py +0 -87
  155. crypticorn/pay/client/models/body_handle_now_webhook.py +0 -98
  156. crypticorn/pay/client/models/body_update_product.py +0 -98
  157. crypticorn/pay/client/models/combined_payment_history.py +0 -101
  158. crypticorn/pay/client/models/create_invoice_req.py +0 -188
  159. crypticorn/pay/client/models/create_invoice_res.py +0 -188
  160. crypticorn/pay/client/models/currency.py +0 -165
  161. crypticorn/pay/client/models/estimate_price_req.py +0 -91
  162. crypticorn/pay/client/models/estimate_price_res.py +0 -102
  163. crypticorn/pay/client/models/get_currencies_res.py +0 -99
  164. crypticorn/pay/client/models/get_payment_status_res.py +0 -222
  165. crypticorn/pay/client/models/get_payments_list_res.py +0 -109
  166. crypticorn/pay/client/models/http_validation_error.py +0 -99
  167. crypticorn/pay/client/models/min_amount_req.py +0 -124
  168. crypticorn/pay/client/models/min_amount_res.py +0 -105
  169. crypticorn/pay/client/models/now_api_status_res.py +0 -83
  170. crypticorn/pay/client/models/now_fee_structure.py +0 -104
  171. crypticorn/pay/client/models/now_payment_model.py +0 -124
  172. crypticorn/pay/client/models/now_payment_status.py +0 -42
  173. crypticorn/pay/client/models/now_webhook_payload.py +0 -181
  174. crypticorn/pay/client/models/partial_product_update_model.py +0 -150
  175. crypticorn/pay/client/models/product.py +0 -87
  176. crypticorn/pay/client/models/product_model.py +0 -128
  177. crypticorn/pay/client/models/product_subs_model.py +0 -108
  178. crypticorn/pay/client/models/product_update_model.py +0 -150
  179. crypticorn/pay/client/models/unified_payment_model.py +0 -112
  180. crypticorn/pay/client/models/validation_error.py +0 -105
  181. crypticorn/pay/client/models/validation_error_loc_inner.py +0 -159
  182. crypticorn/trade/client/models/api_key_model.py +0 -156
  183. crypticorn/trade/client/models/exchange.py +0 -35
  184. crypticorn/trade/client/models/http_validation_error.py +0 -99
  185. crypticorn/trade/client/models/market_type.py +0 -35
  186. crypticorn/trade/client/models/validation_error.py +0 -105
  187. crypticorn/trade/client/models/validation_error_loc_inner.py +0 -159
  188. crypticorn-2.5.1.dist-info/RECORD +0 -307
  189. {crypticorn-2.5.1.dist-info → crypticorn-2.5.3.dist-info}/WHEEL +0 -0
  190. {crypticorn-2.5.1.dist-info → crypticorn-2.5.3.dist-info}/entry_points.txt +0 -0
  191. {crypticorn-2.5.1.dist-info → crypticorn-2.5.3.dist-info}/top_level.txt +0 -0
@@ -42,233 +42,6 @@ class UDFApi:
42
42
  api_client = ApiClient.get_default()
43
43
  self.api_client = api_client
44
44
 
45
- @validate_call
46
- async def get_server_time(
47
- self,
48
- _request_timeout: Union[
49
- None,
50
- Annotated[StrictFloat, Field(gt=0)],
51
- Tuple[
52
- Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
53
- ],
54
- ] = None,
55
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
56
- _content_type: Optional[StrictStr] = None,
57
- _headers: Optional[Dict[StrictStr, Any]] = None,
58
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
59
- ) -> int:
60
- """(Deprecated) Get Server Time
61
-
62
-
63
- :param _request_timeout: timeout setting for this request. If one
64
- number provided, it will be total request
65
- timeout. It can also be a pair (tuple) of
66
- (connection, read) timeouts.
67
- :type _request_timeout: int, tuple(int, int), optional
68
- :param _request_auth: set to override the auth_settings for an a single
69
- request; this effectively ignores the
70
- authentication in the spec for a single request.
71
- :type _request_auth: dict, optional
72
- :param _content_type: force content-type for the request.
73
- :type _content_type: str, Optional
74
- :param _headers: set to override the headers for a single
75
- request; this effectively ignores the headers
76
- in the spec for a single request.
77
- :type _headers: dict, optional
78
- :param _host_index: set to override the host_index for a single
79
- request; this effectively ignores the host_index
80
- in the spec for a single request.
81
- :type _host_index: int, optional
82
- :return: Returns the result object.
83
- """ # noqa: E501
84
- warnings.warn("GET /udf/time is deprecated.", DeprecationWarning)
85
-
86
- _param = self._get_server_time_serialize(
87
- _request_auth=_request_auth,
88
- _content_type=_content_type,
89
- _headers=_headers,
90
- _host_index=_host_index,
91
- )
92
-
93
- _response_types_map: Dict[str, Optional[str]] = {
94
- "200": "int",
95
- }
96
- response_data = await self.api_client.call_api(
97
- *_param, _request_timeout=_request_timeout
98
- )
99
- await response_data.read()
100
- return self.api_client.response_deserialize(
101
- response_data=response_data,
102
- response_types_map=_response_types_map,
103
- ).data
104
-
105
- @validate_call
106
- async def get_server_time_with_http_info(
107
- self,
108
- _request_timeout: Union[
109
- None,
110
- Annotated[StrictFloat, Field(gt=0)],
111
- Tuple[
112
- Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
113
- ],
114
- ] = None,
115
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
116
- _content_type: Optional[StrictStr] = None,
117
- _headers: Optional[Dict[StrictStr, Any]] = None,
118
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
119
- ) -> ApiResponse[int]:
120
- """(Deprecated) Get Server Time
121
-
122
-
123
- :param _request_timeout: timeout setting for this request. If one
124
- number provided, it will be total request
125
- timeout. It can also be a pair (tuple) of
126
- (connection, read) timeouts.
127
- :type _request_timeout: int, tuple(int, int), optional
128
- :param _request_auth: set to override the auth_settings for an a single
129
- request; this effectively ignores the
130
- authentication in the spec for a single request.
131
- :type _request_auth: dict, optional
132
- :param _content_type: force content-type for the request.
133
- :type _content_type: str, Optional
134
- :param _headers: set to override the headers for a single
135
- request; this effectively ignores the headers
136
- in the spec for a single request.
137
- :type _headers: dict, optional
138
- :param _host_index: set to override the host_index for a single
139
- request; this effectively ignores the host_index
140
- in the spec for a single request.
141
- :type _host_index: int, optional
142
- :return: Returns the result object.
143
- """ # noqa: E501
144
- warnings.warn("GET /udf/time is deprecated.", DeprecationWarning)
145
-
146
- _param = self._get_server_time_serialize(
147
- _request_auth=_request_auth,
148
- _content_type=_content_type,
149
- _headers=_headers,
150
- _host_index=_host_index,
151
- )
152
-
153
- _response_types_map: Dict[str, Optional[str]] = {
154
- "200": "int",
155
- }
156
- response_data = await self.api_client.call_api(
157
- *_param, _request_timeout=_request_timeout
158
- )
159
- await response_data.read()
160
- return self.api_client.response_deserialize(
161
- response_data=response_data,
162
- response_types_map=_response_types_map,
163
- )
164
-
165
- @validate_call
166
- async def get_server_time_without_preload_content(
167
- self,
168
- _request_timeout: Union[
169
- None,
170
- Annotated[StrictFloat, Field(gt=0)],
171
- Tuple[
172
- Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
173
- ],
174
- ] = None,
175
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
176
- _content_type: Optional[StrictStr] = None,
177
- _headers: Optional[Dict[StrictStr, Any]] = None,
178
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
179
- ) -> RESTResponseType:
180
- """(Deprecated) Get Server Time
181
-
182
-
183
- :param _request_timeout: timeout setting for this request. If one
184
- number provided, it will be total request
185
- timeout. It can also be a pair (tuple) of
186
- (connection, read) timeouts.
187
- :type _request_timeout: int, tuple(int, int), optional
188
- :param _request_auth: set to override the auth_settings for an a single
189
- request; this effectively ignores the
190
- authentication in the spec for a single request.
191
- :type _request_auth: dict, optional
192
- :param _content_type: force content-type for the request.
193
- :type _content_type: str, Optional
194
- :param _headers: set to override the headers for a single
195
- request; this effectively ignores the headers
196
- in the spec for a single request.
197
- :type _headers: dict, optional
198
- :param _host_index: set to override the host_index for a single
199
- request; this effectively ignores the host_index
200
- in the spec for a single request.
201
- :type _host_index: int, optional
202
- :return: Returns the result object.
203
- """ # noqa: E501
204
- warnings.warn("GET /udf/time is deprecated.", DeprecationWarning)
205
-
206
- _param = self._get_server_time_serialize(
207
- _request_auth=_request_auth,
208
- _content_type=_content_type,
209
- _headers=_headers,
210
- _host_index=_host_index,
211
- )
212
-
213
- _response_types_map: Dict[str, Optional[str]] = {
214
- "200": "int",
215
- }
216
- response_data = await self.api_client.call_api(
217
- *_param, _request_timeout=_request_timeout
218
- )
219
- return response_data.response
220
-
221
- def _get_server_time_serialize(
222
- self,
223
- _request_auth,
224
- _content_type,
225
- _headers,
226
- _host_index,
227
- ) -> RequestSerialized:
228
-
229
- _host = None
230
-
231
- _collection_formats: Dict[str, str] = {}
232
-
233
- _path_params: Dict[str, str] = {}
234
- _query_params: List[Tuple[str, str]] = []
235
- _header_params: Dict[str, Optional[str]] = _headers or {}
236
- _form_params: List[Tuple[str, str]] = []
237
- _files: Dict[
238
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
239
- ] = {}
240
- _body_params: Optional[bytes] = None
241
-
242
- # process the path parameters
243
- # process the query parameters
244
- # process the header parameters
245
- # process the form parameters
246
- # process the body parameter
247
-
248
- # set the HTTP header `Accept`
249
- if "Accept" not in _header_params:
250
- _header_params["Accept"] = self.api_client.select_header_accept(
251
- ["application/json"]
252
- )
253
-
254
- # authentication setting
255
- _auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
256
-
257
- return self.api_client.param_serialize(
258
- method="GET",
259
- resource_path="/udf/time",
260
- path_params=_path_params,
261
- query_params=_query_params,
262
- header_params=_header_params,
263
- body=_body_params,
264
- post_params=_form_params,
265
- files=_files,
266
- auth_settings=_auth_settings,
267
- collection_formats=_collection_formats,
268
- _host=_host,
269
- _request_auth=_request_auth,
270
- )
271
-
272
45
  @validate_call
273
46
  async def get_symbol(
274
47
  self,
@@ -14,14 +14,9 @@ Do not edit the class manually.
14
14
 
15
15
 
16
16
  # import models into model package
17
- from crypticorn.klines.client.models.api_error_identifier import ApiErrorIdentifier
18
- from crypticorn.klines.client.models.api_error_level import ApiErrorLevel
19
- from crypticorn.klines.client.models.api_error_type import ApiErrorType
20
17
  from crypticorn.klines.client.models.change_in_timeframe import ChangeInTimeframe
21
18
  from crypticorn.klines.client.models.exception_detail import ExceptionDetail
22
19
  from crypticorn.klines.client.models.funding_rate import FundingRate
23
- from crypticorn.klines.client.models.internal_exchange import InternalExchange
24
- from crypticorn.klines.client.models.market_type import MarketType
25
20
  from crypticorn.klines.client.models.ohlcv_history import OHLCVHistory
26
21
  from crypticorn.klines.client.models.resolution import Resolution
27
22
  from crypticorn.klines.client.models.search_symbol import SearchSymbol
@@ -19,9 +19,6 @@ import json
19
19
 
20
20
  from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
21
21
  from typing import Any, ClassVar, Dict, List, Optional
22
- from crypticorn.klines.client.models.api_error_identifier import ApiErrorIdentifier
23
- from crypticorn.klines.client.models.api_error_level import ApiErrorLevel
24
- from crypticorn.klines.client.models.api_error_type import ApiErrorType
25
22
  from typing import Optional, Set
26
23
  from typing_extensions import Self
27
24
 
@@ -32,9 +29,9 @@ class ExceptionDetail(BaseModel):
32
29
  """ # noqa: E501
33
30
 
34
31
  message: Optional[StrictStr] = None
35
- code: ApiErrorIdentifier = Field(description="The unique error code")
36
- type: ApiErrorType = Field(description="The type of error")
37
- level: ApiErrorLevel = Field(description="The level of the error")
32
+ code: StrictStr = Field(description="API error identifiers")
33
+ type: StrictStr = Field(description="Type of API error")
34
+ level: StrictStr = Field(description="API error levels")
38
35
  status_code: StrictInt = Field(description="The HTTP status code")
39
36
  details: Optional[Any] = None
40
37
  __properties: ClassVar[List[str]] = [
@@ -17,9 +17,8 @@ import pprint
17
17
  import re # noqa: F401
18
18
  import json
19
19
 
20
- from pydantic import BaseModel, ConfigDict, StrictStr
20
+ from pydantic import BaseModel, ConfigDict, Field, StrictStr
21
21
  from typing import Any, ClassVar, Dict, List
22
- from crypticorn.klines.client.models.internal_exchange import InternalExchange
23
22
  from typing import Optional, Set
24
23
  from typing_extensions import Self
25
24
 
@@ -31,7 +30,9 @@ class SearchSymbol(BaseModel):
31
30
 
32
31
  symbol: StrictStr
33
32
  description: StrictStr
34
- exchange: InternalExchange
33
+ exchange: StrictStr = Field(
34
+ description="All exchanges we are using, including public (Exchange)"
35
+ )
35
36
  type: StrictStr
36
37
  __properties: ClassVar[List[str]] = ["symbol", "description", "exchange", "type"]
37
38
 
@@ -19,7 +19,6 @@ import json
19
19
 
20
20
  from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
21
21
  from typing import Any, ClassVar, Dict, List, Optional
22
- from crypticorn.klines.client.models.internal_exchange import InternalExchange
23
22
  from crypticorn.klines.client.models.symbol_type import SymbolType
24
23
  from typing import Optional, Set
25
24
  from typing_extensions import Self
@@ -36,7 +35,7 @@ class UDFConfig(BaseModel):
36
35
  supports_search: Optional[StrictBool] = True
37
36
  supports_timescale_marks: Optional[StrictBool] = False
38
37
  supports_time: Optional[StrictBool] = True
39
- exchanges: List[InternalExchange]
38
+ exchanges: List[StrictStr]
40
39
  symbols_types: List[SymbolType]
41
40
  currency_codes: List[StrictStr]
42
41
  supported_markets: List[StrictStr]
@@ -5,7 +5,7 @@
5
5
  """
6
6
  Marketcap Service API
7
7
 
8
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
8
+ API for retrieving historical marketcap data, available exchanges, and indicators.
9
9
 
10
10
  The version of the OpenAPI document: 1.0.0
11
11
  Generated by OpenAPI Generator (https://openapi-generator.tech)
@@ -37,12 +37,7 @@ from crypticorn.metrics.client.exceptions import ApiAttributeError
37
37
  from crypticorn.metrics.client.exceptions import ApiException
38
38
 
39
39
  # import models into sdk package
40
- from crypticorn.metrics.client.models.api_error_identifier import ApiErrorIdentifier
41
- from crypticorn.metrics.client.models.api_error_level import ApiErrorLevel
42
- from crypticorn.metrics.client.models.api_error_type import ApiErrorType
43
40
  from crypticorn.metrics.client.models.exception_detail import ExceptionDetail
44
- from crypticorn.metrics.client.models.internal_exchange import InternalExchange
45
- from crypticorn.metrics.client.models.market_type import MarketType
46
41
  from crypticorn.metrics.client.models.severity import Severity
47
42
  from crypticorn.metrics.client.models.time_interval import TimeInterval
48
43
  from crypticorn.metrics.client.models.trading_status import TradingStatus
@@ -3,7 +3,7 @@
3
3
  """
4
4
  Marketcap Service API
5
5
 
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ API for retrieving historical marketcap data, available exchanges, and indicators.
7
7
 
8
8
  The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
@@ -19,8 +19,6 @@ from typing_extensions import Annotated
19
19
  from pydantic import Field, StrictInt, StrictStr
20
20
  from typing import Any, Dict, List, Optional
21
21
  from typing_extensions import Annotated
22
- from crypticorn.metrics.client.models.internal_exchange import InternalExchange
23
- from crypticorn.metrics.client.models.market_type import MarketType
24
22
  from crypticorn.metrics.client.models.time_interval import TimeInterval
25
23
  from crypticorn.metrics.client.models.trading_status import TradingStatus
26
24
 
@@ -45,7 +43,7 @@ class ExchangesApi:
45
43
  async def get_available_exchanges(
46
44
  self,
47
45
  market: Annotated[
48
- MarketType, Field(description="Market type (spot or futures)")
46
+ StrictStr, Field(description="Market type (spot or futures)")
49
47
  ],
50
48
  symbol: Annotated[
51
49
  StrictStr, Field(description="Symbol to fetch available exchanges for")
@@ -93,7 +91,7 @@ class ExchangesApi:
93
91
  Get available exchanges for a symbol with various filtering options.
94
92
 
95
93
  :param market: Market type (spot or futures) (required)
96
- :type market: MarketType
94
+ :type market: str
97
95
  :param symbol: Symbol to fetch available exchanges for (required)
98
96
  :type symbol: str
99
97
  :param interval: Interval for which to fetch available exchanges
@@ -158,7 +156,7 @@ class ExchangesApi:
158
156
  async def get_available_exchanges_with_http_info(
159
157
  self,
160
158
  market: Annotated[
161
- MarketType, Field(description="Market type (spot or futures)")
159
+ StrictStr, Field(description="Market type (spot or futures)")
162
160
  ],
163
161
  symbol: Annotated[
164
162
  StrictStr, Field(description="Symbol to fetch available exchanges for")
@@ -206,7 +204,7 @@ class ExchangesApi:
206
204
  Get available exchanges for a symbol with various filtering options.
207
205
 
208
206
  :param market: Market type (spot or futures) (required)
209
- :type market: MarketType
207
+ :type market: str
210
208
  :param symbol: Symbol to fetch available exchanges for (required)
211
209
  :type symbol: str
212
210
  :param interval: Interval for which to fetch available exchanges
@@ -271,7 +269,7 @@ class ExchangesApi:
271
269
  async def get_available_exchanges_without_preload_content(
272
270
  self,
273
271
  market: Annotated[
274
- MarketType, Field(description="Market type (spot or futures)")
272
+ StrictStr, Field(description="Market type (spot or futures)")
275
273
  ],
276
274
  symbol: Annotated[
277
275
  StrictStr, Field(description="Symbol to fetch available exchanges for")
@@ -319,7 +317,7 @@ class ExchangesApi:
319
317
  Get available exchanges for a symbol with various filtering options.
320
318
 
321
319
  :param market: Market type (spot or futures) (required)
322
- :type market: MarketType
320
+ :type market: str
323
321
  :param symbol: Symbol to fetch available exchanges for (required)
324
322
  :type symbol: str
325
323
  :param interval: Interval for which to fetch available exchanges
@@ -406,7 +404,7 @@ class ExchangesApi:
406
404
 
407
405
  # process the path parameters
408
406
  if market is not None:
409
- _path_params["market"] = market.value
407
+ _path_params["market"] = market
410
408
  if symbol is not None:
411
409
  _path_params["symbol"] = symbol
412
410
  # process the query parameters
@@ -462,7 +460,7 @@ class ExchangesApi:
462
460
  async def get_available_exchanges_for_market(
463
461
  self,
464
462
  market: Annotated[
465
- MarketType, Field(description="Market type (spot or futures)")
463
+ StrictStr, Field(description="Market type (spot or futures)")
466
464
  ],
467
465
  _request_timeout: Union[
468
466
  None,
@@ -481,7 +479,7 @@ class ExchangesApi:
481
479
  Get list of exchanges for a market.
482
480
 
483
481
  :param market: Market type (spot or futures) (required)
484
- :type market: MarketType
482
+ :type market: str
485
483
  :param _request_timeout: timeout setting for this request. If one
486
484
  number provided, it will be total request
487
485
  timeout. It can also be a pair (tuple) of
@@ -528,7 +526,7 @@ class ExchangesApi:
528
526
  async def get_available_exchanges_for_market_with_http_info(
529
527
  self,
530
528
  market: Annotated[
531
- MarketType, Field(description="Market type (spot or futures)")
529
+ StrictStr, Field(description="Market type (spot or futures)")
532
530
  ],
533
531
  _request_timeout: Union[
534
532
  None,
@@ -547,7 +545,7 @@ class ExchangesApi:
547
545
  Get list of exchanges for a market.
548
546
 
549
547
  :param market: Market type (spot or futures) (required)
550
- :type market: MarketType
548
+ :type market: str
551
549
  :param _request_timeout: timeout setting for this request. If one
552
550
  number provided, it will be total request
553
551
  timeout. It can also be a pair (tuple) of
@@ -594,7 +592,7 @@ class ExchangesApi:
594
592
  async def get_available_exchanges_for_market_without_preload_content(
595
593
  self,
596
594
  market: Annotated[
597
- MarketType, Field(description="Market type (spot or futures)")
595
+ StrictStr, Field(description="Market type (spot or futures)")
598
596
  ],
599
597
  _request_timeout: Union[
600
598
  None,
@@ -613,7 +611,7 @@ class ExchangesApi:
613
611
  Get list of exchanges for a market.
614
612
 
615
613
  :param market: Market type (spot or futures) (required)
616
- :type market: MarketType
614
+ :type market: str
617
615
  :param _request_timeout: timeout setting for this request. If one
618
616
  number provided, it will be total request
619
617
  timeout. It can also be a pair (tuple) of
@@ -676,7 +674,7 @@ class ExchangesApi:
676
674
 
677
675
  # process the path parameters
678
676
  if market is not None:
679
- _path_params["market"] = market.value
677
+ _path_params["market"] = market
680
678
  # process the query parameters
681
679
  # process the header parameters
682
680
  # process the form parameters
@@ -710,10 +708,10 @@ class ExchangesApi:
710
708
  async def get_exchange_mappings(
711
709
  self,
712
710
  market: Annotated[
713
- MarketType, Field(description="Market type (spot or futures)")
711
+ StrictStr, Field(description="Market type (spot or futures)")
714
712
  ],
715
713
  exchange: Annotated[
716
- Optional[InternalExchange],
714
+ Optional[StrictStr],
717
715
  Field(description="Exchange name for which to fetch exchange mappings"),
718
716
  ] = None,
719
717
  _request_timeout: Union[
@@ -733,9 +731,9 @@ class ExchangesApi:
733
731
  Get exchange mappings for a market with optional exchange name filter.
734
732
 
735
733
  :param market: Market type (spot or futures) (required)
736
- :type market: MarketType
734
+ :type market: str
737
735
  :param exchange: Exchange name for which to fetch exchange mappings
738
- :type exchange: InternalExchange
736
+ :type exchange: str
739
737
  :param _request_timeout: timeout setting for this request. If one
740
738
  number provided, it will be total request
741
739
  timeout. It can also be a pair (tuple) of
@@ -783,10 +781,10 @@ class ExchangesApi:
783
781
  async def get_exchange_mappings_with_http_info(
784
782
  self,
785
783
  market: Annotated[
786
- MarketType, Field(description="Market type (spot or futures)")
784
+ StrictStr, Field(description="Market type (spot or futures)")
787
785
  ],
788
786
  exchange: Annotated[
789
- Optional[InternalExchange],
787
+ Optional[StrictStr],
790
788
  Field(description="Exchange name for which to fetch exchange mappings"),
791
789
  ] = None,
792
790
  _request_timeout: Union[
@@ -806,9 +804,9 @@ class ExchangesApi:
806
804
  Get exchange mappings for a market with optional exchange name filter.
807
805
 
808
806
  :param market: Market type (spot or futures) (required)
809
- :type market: MarketType
807
+ :type market: str
810
808
  :param exchange: Exchange name for which to fetch exchange mappings
811
- :type exchange: InternalExchange
809
+ :type exchange: str
812
810
  :param _request_timeout: timeout setting for this request. If one
813
811
  number provided, it will be total request
814
812
  timeout. It can also be a pair (tuple) of
@@ -856,10 +854,10 @@ class ExchangesApi:
856
854
  async def get_exchange_mappings_without_preload_content(
857
855
  self,
858
856
  market: Annotated[
859
- MarketType, Field(description="Market type (spot or futures)")
857
+ StrictStr, Field(description="Market type (spot or futures)")
860
858
  ],
861
859
  exchange: Annotated[
862
- Optional[InternalExchange],
860
+ Optional[StrictStr],
863
861
  Field(description="Exchange name for which to fetch exchange mappings"),
864
862
  ] = None,
865
863
  _request_timeout: Union[
@@ -879,9 +877,9 @@ class ExchangesApi:
879
877
  Get exchange mappings for a market with optional exchange name filter.
880
878
 
881
879
  :param market: Market type (spot or futures) (required)
882
- :type market: MarketType
880
+ :type market: str
883
881
  :param exchange: Exchange name for which to fetch exchange mappings
884
- :type exchange: InternalExchange
882
+ :type exchange: str
885
883
  :param _request_timeout: timeout setting for this request. If one
886
884
  number provided, it will be total request
887
885
  timeout. It can also be a pair (tuple) of
@@ -946,11 +944,11 @@ class ExchangesApi:
946
944
 
947
945
  # process the path parameters
948
946
  if market is not None:
949
- _path_params["market"] = market.value
947
+ _path_params["market"] = market
950
948
  # process the query parameters
951
949
  if exchange is not None:
952
950
 
953
- _query_params.append(("exchange", exchange.value))
951
+ _query_params.append(("exchange", exchange))
954
952
 
955
953
  # process the header parameters
956
954
  # process the form parameters