crypticorn 2.4.3__py3-none-any.whl → 2.4.5__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 (242) hide show
  1. crypticorn/auth/client/__init__.py +5 -5
  2. crypticorn/auth/client/api/admin_api.py +6 -6
  3. crypticorn/auth/client/api/auth_api.py +5 -5
  4. crypticorn/auth/client/api/service_api.py +5 -5
  5. crypticorn/auth/client/api/user_api.py +8 -8
  6. crypticorn/auth/client/api/wallet_api.py +5 -5
  7. crypticorn/auth/client/api_client.py +5 -5
  8. crypticorn/auth/client/configuration.py +13 -6
  9. crypticorn/auth/client/exceptions.py +5 -5
  10. crypticorn/auth/client/models/__init__.py +5 -5
  11. crypticorn/auth/client/models/add_wallet200_response.py +5 -5
  12. crypticorn/auth/client/models/add_wallet_request.py +5 -5
  13. crypticorn/auth/client/models/authorize_user200_response.py +5 -5
  14. crypticorn/auth/client/models/authorize_user200_response_auth.py +5 -5
  15. crypticorn/auth/client/models/authorize_user_request.py +5 -5
  16. crypticorn/auth/client/models/create_api_key200_response.py +5 -5
  17. crypticorn/auth/client/models/create_api_key_request.py +5 -5
  18. crypticorn/auth/client/models/create_user_request.py +5 -5
  19. crypticorn/auth/client/models/get_api_keys200_response_inner.py +5 -5
  20. crypticorn/auth/client/models/list_wallets200_response.py +5 -5
  21. crypticorn/auth/client/models/list_wallets200_response_balances_inner.py +5 -5
  22. crypticorn/auth/client/models/list_wallets200_response_balances_inner_sale_round.py +5 -5
  23. crypticorn/auth/client/models/list_wallets200_response_balances_inner_wallet.py +5 -5
  24. crypticorn/auth/client/models/list_wallets200_response_balances_inner_wallet_vesting_wallets_inner.py +5 -5
  25. crypticorn/auth/client/models/list_wallets200_response_data_inner.py +5 -5
  26. crypticorn/auth/client/models/list_wallets200_response_user_value.py +5 -5
  27. crypticorn/auth/client/models/logout_default_response.py +5 -5
  28. crypticorn/auth/client/models/logout_default_response_issues_inner.py +5 -5
  29. crypticorn/auth/client/models/oauth_callback200_response.py +5 -5
  30. crypticorn/auth/client/models/oauth_callback200_response_user.py +5 -5
  31. crypticorn/auth/client/models/refresh_token_info200_response.py +5 -5
  32. crypticorn/auth/client/models/refresh_token_info200_response_user_session.py +5 -5
  33. crypticorn/auth/client/models/resend_verification_email_request.py +5 -5
  34. crypticorn/auth/client/models/revoke_user_tokens_request.py +5 -5
  35. crypticorn/auth/client/models/rotate_tokens200_response.py +5 -5
  36. crypticorn/auth/client/models/token_info200_response.py +5 -5
  37. crypticorn/auth/client/models/unlink_wallet_request.py +5 -5
  38. crypticorn/auth/client/models/update_user_request.py +8 -6
  39. crypticorn/auth/client/models/user_reset_password_request.py +5 -5
  40. crypticorn/auth/client/models/user_set_password_request.py +5 -5
  41. crypticorn/auth/client/models/verify200_response.py +5 -5
  42. crypticorn/auth/client/models/verify_email200_response.py +5 -5
  43. crypticorn/auth/client/models/verify_email200_response_auth.py +5 -5
  44. crypticorn/auth/client/models/verify_email200_response_auth_auth.py +5 -5
  45. crypticorn/auth/client/models/verify_email_request.py +5 -5
  46. crypticorn/auth/client/models/verify_wallet_request.py +5 -5
  47. crypticorn/auth/client/models/wallet_verified200_response.py +5 -5
  48. crypticorn/auth/client/models/whoami200_response.py +5 -5
  49. crypticorn/auth/client/rest.py +9 -6
  50. crypticorn/client.py +28 -11
  51. crypticorn/common/auth.py +1 -1
  52. crypticorn/common/errors.py +11 -14
  53. crypticorn/common/scopes.py +5 -0
  54. crypticorn/common/sorter.py +2 -2
  55. crypticorn/common/utils.py +4 -2
  56. crypticorn/hive/client/__init__.py +5 -5
  57. crypticorn/hive/client/api/data_api.py +5 -5
  58. crypticorn/hive/client/api/models_api.py +5 -5
  59. crypticorn/hive/client/api/status_api.py +5 -5
  60. crypticorn/hive/client/api_client.py +5 -5
  61. crypticorn/hive/client/configuration.py +5 -5
  62. crypticorn/hive/client/exceptions.py +5 -5
  63. crypticorn/hive/client/models/__init__.py +5 -5
  64. crypticorn/hive/client/models/coins.py +5 -5
  65. crypticorn/hive/client/models/data_download_response.py +5 -5
  66. crypticorn/hive/client/models/data_info.py +5 -5
  67. crypticorn/hive/client/models/data_value_value_value_inner.py +5 -5
  68. crypticorn/hive/client/models/data_version.py +5 -5
  69. crypticorn/hive/client/models/download_links.py +5 -5
  70. crypticorn/hive/client/models/evaluation.py +5 -5
  71. crypticorn/hive/client/models/evaluation_response.py +5 -5
  72. crypticorn/hive/client/models/feature_size.py +5 -5
  73. crypticorn/hive/client/models/http_validation_error.py +5 -5
  74. crypticorn/hive/client/models/model.py +5 -5
  75. crypticorn/hive/client/models/model_create.py +5 -5
  76. crypticorn/hive/client/models/model_status.py +5 -5
  77. crypticorn/hive/client/models/model_update.py +5 -5
  78. crypticorn/hive/client/models/target.py +5 -5
  79. crypticorn/hive/client/models/target_type.py +5 -5
  80. crypticorn/hive/client/models/validation_error.py +5 -5
  81. crypticorn/hive/client/models/validation_error_loc_inner.py +5 -5
  82. crypticorn/hive/client/rest.py +5 -5
  83. crypticorn/klines/client/__init__.py +5 -5
  84. crypticorn/klines/client/api/funding_rates_api.py +5 -5
  85. crypticorn/klines/client/api/health_check_api.py +5 -5
  86. crypticorn/klines/client/api/ohlcv_data_api.py +5 -5
  87. crypticorn/klines/client/api/symbols_api.py +5 -5
  88. crypticorn/klines/client/api/udf_api.py +5 -5
  89. crypticorn/klines/client/api_client.py +5 -5
  90. crypticorn/klines/client/configuration.py +5 -5
  91. crypticorn/klines/client/exceptions.py +5 -5
  92. crypticorn/klines/client/models/__init__.py +5 -5
  93. crypticorn/klines/client/models/base_response_health_check_response.py +5 -5
  94. crypticorn/klines/client/models/base_response_list_funding_rate_response.py +5 -5
  95. crypticorn/klines/client/models/base_response_list_str.py +5 -5
  96. crypticorn/klines/client/models/base_response_ohlcv_response.py +5 -5
  97. crypticorn/klines/client/models/error_response.py +5 -5
  98. crypticorn/klines/client/models/exchange.py +5 -5
  99. crypticorn/klines/client/models/funding_rate_response.py +5 -5
  100. crypticorn/klines/client/models/health_check_response.py +5 -5
  101. crypticorn/klines/client/models/history_error_response.py +5 -5
  102. crypticorn/klines/client/models/history_no_data_response.py +5 -5
  103. crypticorn/klines/client/models/history_success_response.py +5 -5
  104. crypticorn/klines/client/models/http_validation_error.py +5 -5
  105. crypticorn/klines/client/models/market.py +5 -5
  106. crypticorn/klines/client/models/ohlcv_response.py +5 -5
  107. crypticorn/klines/client/models/resolution.py +5 -5
  108. crypticorn/klines/client/models/response_get_history_udf_history_get.py +5 -5
  109. crypticorn/klines/client/models/search_symbol_response.py +5 -5
  110. crypticorn/klines/client/models/sort_direction.py +5 -5
  111. crypticorn/klines/client/models/symbol_group_response.py +5 -5
  112. crypticorn/klines/client/models/symbol_info_response.py +5 -5
  113. crypticorn/klines/client/models/symbol_type.py +5 -5
  114. crypticorn/klines/client/models/timeframe.py +5 -5
  115. crypticorn/klines/client/models/udf_config_response.py +5 -5
  116. crypticorn/klines/client/models/validation_error.py +5 -5
  117. crypticorn/klines/client/models/validation_error_loc_inner.py +5 -5
  118. crypticorn/klines/client/rest.py +5 -5
  119. crypticorn/metrics/client/__init__.py +8 -6
  120. crypticorn/metrics/client/api/exchanges_api.py +62 -42
  121. crypticorn/metrics/client/api/health_check_api.py +5 -5
  122. crypticorn/metrics/client/api/indicators_api.py +47 -35
  123. crypticorn/metrics/client/api/logs_api.py +6 -6
  124. crypticorn/metrics/client/api/marketcap_api.py +22 -22
  125. crypticorn/metrics/client/api/markets_api.py +41 -28
  126. crypticorn/metrics/client/api/tokens_api.py +6 -6
  127. crypticorn/metrics/client/api_client.py +5 -5
  128. crypticorn/metrics/client/configuration.py +84 -39
  129. crypticorn/metrics/client/exceptions.py +5 -5
  130. crypticorn/metrics/client/models/__init__.py +8 -6
  131. crypticorn/metrics/client/models/base_response_dict.py +5 -5
  132. crypticorn/metrics/client/models/base_response_health_check_response.py +5 -5
  133. crypticorn/metrics/client/models/base_response_list_dict.py +5 -5
  134. crypticorn/metrics/client/models/base_response_list_exchange_mapping.py +5 -5
  135. crypticorn/metrics/client/models/base_response_list_str.py +5 -5
  136. crypticorn/metrics/client/models/error_response.py +5 -5
  137. crypticorn/metrics/client/models/exchange_mapping.py +5 -5
  138. crypticorn/metrics/client/models/health_check_response.py +5 -5
  139. crypticorn/metrics/client/models/http_validation_error.py +5 -5
  140. crypticorn/metrics/client/models/market.py +5 -5
  141. crypticorn/metrics/client/models/market_type.py +35 -0
  142. crypticorn/metrics/client/models/severity.py +5 -5
  143. crypticorn/metrics/client/models/time_interval.py +38 -0
  144. crypticorn/metrics/client/models/trading_status.py +35 -0
  145. crypticorn/metrics/client/models/validation_error.py +5 -5
  146. crypticorn/metrics/client/models/validation_error_loc_inner.py +5 -5
  147. crypticorn/metrics/client/rest.py +9 -6
  148. crypticorn/metrics/main.py +2 -2
  149. crypticorn/pay/client/__init__.py +6 -8
  150. crypticorn/pay/client/api/now_payments_api.py +5 -5
  151. crypticorn/pay/client/api/payments_api.py +73 -6
  152. crypticorn/pay/client/api/products_api.py +21 -23
  153. crypticorn/pay/client/api/status_api.py +5 -5
  154. crypticorn/pay/client/api_client.py +5 -5
  155. crypticorn/pay/client/configuration.py +13 -6
  156. crypticorn/pay/client/exceptions.py +5 -5
  157. crypticorn/pay/client/models/__init__.py +6 -8
  158. crypticorn/pay/client/models/api_status_res.py +5 -5
  159. crypticorn/pay/client/models/body_create_now_invoice.py +5 -5
  160. crypticorn/pay/client/models/body_create_product.py +5 -5
  161. crypticorn/pay/client/models/body_get_products.py +5 -5
  162. crypticorn/pay/client/models/body_handle_now_webhook.py +5 -5
  163. crypticorn/pay/client/models/body_update_product.py +5 -5
  164. crypticorn/pay/client/models/combined_payment_history.py +5 -5
  165. crypticorn/pay/client/models/create_invoice_req.py +5 -5
  166. crypticorn/pay/client/models/create_invoice_res.py +5 -5
  167. crypticorn/pay/client/models/currency.py +5 -5
  168. crypticorn/pay/client/models/estimate_price_req.py +5 -5
  169. crypticorn/pay/client/models/estimate_price_res.py +5 -5
  170. crypticorn/pay/client/models/get_currencies_res.py +5 -5
  171. crypticorn/pay/client/models/get_payment_status_res.py +5 -5
  172. crypticorn/pay/client/models/get_payments_list_res.py +5 -5
  173. crypticorn/pay/client/models/http_validation_error.py +5 -5
  174. crypticorn/pay/client/models/min_amount_req.py +5 -5
  175. crypticorn/pay/client/models/min_amount_res.py +5 -5
  176. crypticorn/pay/client/models/now_api_status_res.py +5 -5
  177. crypticorn/pay/client/models/now_create_invoice_req.py +5 -5
  178. crypticorn/pay/client/models/now_create_invoice_res.py +5 -5
  179. crypticorn/pay/client/models/now_fee_structure.py +5 -5
  180. crypticorn/pay/client/models/now_payment_model.py +5 -5
  181. crypticorn/pay/client/models/now_payment_status.py +5 -5
  182. crypticorn/pay/client/models/now_webhook_payload.py +5 -5
  183. crypticorn/pay/client/models/partial_product_update_model.py +5 -5
  184. crypticorn/pay/client/models/payment.py +5 -5
  185. crypticorn/pay/client/models/payment_status.py +5 -5
  186. crypticorn/pay/client/models/product.py +5 -5
  187. crypticorn/pay/client/models/product_model.py +5 -5
  188. crypticorn/pay/client/models/product_subs_model.py +5 -5
  189. crypticorn/pay/client/models/product_update_model.py +11 -11
  190. crypticorn/pay/client/models/scope.py +7 -7
  191. crypticorn/pay/client/models/services.py +5 -5
  192. crypticorn/pay/client/models/unified_payment_model.py +5 -5
  193. crypticorn/pay/client/models/validation_error.py +5 -5
  194. crypticorn/pay/client/models/validation_error_loc_inner.py +5 -5
  195. crypticorn/pay/client/rest.py +9 -6
  196. crypticorn/trade/client/__init__.py +5 -5
  197. crypticorn/trade/client/api/api_keys_api.py +5 -5
  198. crypticorn/trade/client/api/bots_api.py +5 -5
  199. crypticorn/trade/client/api/exchanges_api.py +5 -5
  200. crypticorn/trade/client/api/futures_trading_panel_api.py +5 -5
  201. crypticorn/trade/client/api/notifications_api.py +5 -5
  202. crypticorn/trade/client/api/orders_api.py +5 -5
  203. crypticorn/trade/client/api/status_api.py +5 -5
  204. crypticorn/trade/client/api/strategies_api.py +5 -5
  205. crypticorn/trade/client/api/trading_actions_api.py +5 -5
  206. crypticorn/trade/client/api_client.py +5 -5
  207. crypticorn/trade/client/configuration.py +13 -6
  208. crypticorn/trade/client/exceptions.py +5 -5
  209. crypticorn/trade/client/models/__init__.py +5 -5
  210. crypticorn/trade/client/models/action_model.py +5 -5
  211. crypticorn/trade/client/models/api_error_identifier.py +7 -6
  212. crypticorn/trade/client/models/api_error_level.py +5 -5
  213. crypticorn/trade/client/models/api_error_type.py +5 -5
  214. crypticorn/trade/client/models/api_key_model.py +5 -5
  215. crypticorn/trade/client/models/bot_model.py +5 -5
  216. crypticorn/trade/client/models/bot_status.py +5 -5
  217. crypticorn/trade/client/models/exchange.py +5 -5
  218. crypticorn/trade/client/models/exchange_key_model.py +5 -5
  219. crypticorn/trade/client/models/execution_ids.py +7 -7
  220. crypticorn/trade/client/models/futures_balance.py +5 -5
  221. crypticorn/trade/client/models/futures_trading_action.py +5 -5
  222. crypticorn/trade/client/models/http_validation_error.py +5 -5
  223. crypticorn/trade/client/models/margin_mode.py +5 -5
  224. crypticorn/trade/client/models/market_type.py +5 -5
  225. crypticorn/trade/client/models/notification_model.py +5 -5
  226. crypticorn/trade/client/models/order_model.py +5 -5
  227. crypticorn/trade/client/models/order_status.py +5 -5
  228. crypticorn/trade/client/models/post_futures_action.py +5 -5
  229. crypticorn/trade/client/models/strategy_exchange_info.py +5 -5
  230. crypticorn/trade/client/models/strategy_model_input.py +5 -5
  231. crypticorn/trade/client/models/strategy_model_output.py +5 -5
  232. crypticorn/trade/client/models/tpsl.py +5 -5
  233. crypticorn/trade/client/models/trading_action_type.py +5 -5
  234. crypticorn/trade/client/models/validation_error.py +5 -5
  235. crypticorn/trade/client/models/validation_error_loc_inner.py +5 -5
  236. crypticorn/trade/client/rest.py +9 -6
  237. {crypticorn-2.4.3.dist-info → crypticorn-2.4.5.dist-info}/METADATA +8 -9
  238. crypticorn-2.4.5.dist-info/RECORD +280 -0
  239. crypticorn-2.4.3.dist-info/RECORD +0 -277
  240. {crypticorn-2.4.3.dist-info → crypticorn-2.4.5.dist-info}/WHEEL +0 -0
  241. {crypticorn-2.4.3.dist-info → crypticorn-2.4.5.dist-info}/entry_points.txt +0 -0
  242. {crypticorn-2.4.3.dist-info → crypticorn-2.4.5.dist-info}/top_level.txt +0 -0
@@ -1,14 +1,14 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- Marketcap Service API
4
+ Marketcap Service API
5
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
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
7
 
8
- The version of the OpenAPI document: 1.0.0
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
- Do not edit the class manually.
11
+ Do not edit the class manually.
12
12
  """ # noqa: E501
13
13
 
14
14
  import warnings
@@ -20,7 +20,7 @@ from pydantic import Field, StrictInt, StrictStr
20
20
  from typing import Optional
21
21
  from typing_extensions import Annotated
22
22
  from crypticorn.metrics.client.models.base_response_dict import BaseResponseDict
23
- from crypticorn.metrics.client.models.market import Market
23
+ from crypticorn.metrics.client.models.market_type import MarketType
24
24
 
25
25
  from crypticorn.metrics.client.api_client import ApiClient, RequestSerialized
26
26
  from crypticorn.metrics.client.api_response import ApiResponse
@@ -43,7 +43,7 @@ class IndicatorsApi:
43
43
  async def get_ker_indicator(
44
44
  self,
45
45
  symbol: StrictStr,
46
- market: Annotated[Optional[Market], Field(description="Market")] = None,
46
+ market: Annotated[Optional[MarketType], Field(description="Market")] = None,
47
47
  period: Annotated[
48
48
  Optional[StrictInt], Field(description="KER indicator period")
49
49
  ] = None,
@@ -70,7 +70,7 @@ class IndicatorsApi:
70
70
  :param symbol: (required)
71
71
  :type symbol: str
72
72
  :param market: Market
73
- :type market: Market
73
+ :type market: MarketType
74
74
  :param period: KER indicator period
75
75
  :type period: int
76
76
  :param timestamp: Timestamp for which to fetch KER indicator
@@ -128,7 +128,7 @@ class IndicatorsApi:
128
128
  async def get_ker_indicator_with_http_info(
129
129
  self,
130
130
  symbol: StrictStr,
131
- market: Annotated[Optional[Market], Field(description="Market")] = None,
131
+ market: Annotated[Optional[MarketType], Field(description="Market")] = None,
132
132
  period: Annotated[
133
133
  Optional[StrictInt], Field(description="KER indicator period")
134
134
  ] = None,
@@ -155,7 +155,7 @@ class IndicatorsApi:
155
155
  :param symbol: (required)
156
156
  :type symbol: str
157
157
  :param market: Market
158
- :type market: Market
158
+ :type market: MarketType
159
159
  :param period: KER indicator period
160
160
  :type period: int
161
161
  :param timestamp: Timestamp for which to fetch KER indicator
@@ -213,7 +213,7 @@ class IndicatorsApi:
213
213
  async def get_ker_indicator_without_preload_content(
214
214
  self,
215
215
  symbol: StrictStr,
216
- market: Annotated[Optional[Market], Field(description="Market")] = None,
216
+ market: Annotated[Optional[MarketType], Field(description="Market")] = None,
217
217
  period: Annotated[
218
218
  Optional[StrictInt], Field(description="KER indicator period")
219
219
  ] = None,
@@ -240,7 +240,7 @@ class IndicatorsApi:
240
240
  :param symbol: (required)
241
241
  :type symbol: str
242
242
  :param market: Market
243
- :type market: Market
243
+ :type market: MarketType
244
244
  :param period: KER indicator period
245
245
  :type period: int
246
246
  :param timestamp: Timestamp for which to fetch KER indicator
@@ -342,7 +342,7 @@ class IndicatorsApi:
342
342
  )
343
343
 
344
344
  # authentication setting
345
- _auth_settings: List[str] = []
345
+ _auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
346
346
 
347
347
  return self.api_client.param_serialize(
348
348
  method="GET",
@@ -363,13 +363,17 @@ class IndicatorsApi:
363
363
  async def get_sma_indicator(
364
364
  self,
365
365
  symbol: StrictStr,
366
- market: Annotated[Optional[Market], Field(description="Market")] = None,
366
+ market: Annotated[
367
+ Optional[MarketType],
368
+ Field(description="The market type to use for the SMA indicator"),
369
+ ] = None,
367
370
  period: Annotated[
368
- Optional[StrictInt], Field(description="SMA indicator period")
371
+ Optional[StrictInt],
372
+ Field(description="The period to use for the SMA indicator"),
369
373
  ] = None,
370
374
  timestamp: Annotated[
371
375
  Optional[StrictInt],
372
- Field(description="Timestamp for which to fetch SMA indicator"),
376
+ Field(description="The timestamp for which to fetch the SMA indicator"),
373
377
  ] = None,
374
378
  _request_timeout: Union[
375
379
  None,
@@ -389,11 +393,11 @@ class IndicatorsApi:
389
393
 
390
394
  :param symbol: (required)
391
395
  :type symbol: str
392
- :param market: Market
393
- :type market: Market
394
- :param period: SMA indicator period
396
+ :param market: The market type to use for the SMA indicator
397
+ :type market: MarketType
398
+ :param period: The period to use for the SMA indicator
395
399
  :type period: int
396
- :param timestamp: Timestamp for which to fetch SMA indicator
400
+ :param timestamp: The timestamp for which to fetch the SMA indicator
397
401
  :type timestamp: int
398
402
  :param _request_timeout: timeout setting for this request. If one
399
403
  number provided, it will be total request
@@ -448,13 +452,17 @@ class IndicatorsApi:
448
452
  async def get_sma_indicator_with_http_info(
449
453
  self,
450
454
  symbol: StrictStr,
451
- market: Annotated[Optional[Market], Field(description="Market")] = None,
455
+ market: Annotated[
456
+ Optional[MarketType],
457
+ Field(description="The market type to use for the SMA indicator"),
458
+ ] = None,
452
459
  period: Annotated[
453
- Optional[StrictInt], Field(description="SMA indicator period")
460
+ Optional[StrictInt],
461
+ Field(description="The period to use for the SMA indicator"),
454
462
  ] = None,
455
463
  timestamp: Annotated[
456
464
  Optional[StrictInt],
457
- Field(description="Timestamp for which to fetch SMA indicator"),
465
+ Field(description="The timestamp for which to fetch the SMA indicator"),
458
466
  ] = None,
459
467
  _request_timeout: Union[
460
468
  None,
@@ -474,11 +482,11 @@ class IndicatorsApi:
474
482
 
475
483
  :param symbol: (required)
476
484
  :type symbol: str
477
- :param market: Market
478
- :type market: Market
479
- :param period: SMA indicator period
485
+ :param market: The market type to use for the SMA indicator
486
+ :type market: MarketType
487
+ :param period: The period to use for the SMA indicator
480
488
  :type period: int
481
- :param timestamp: Timestamp for which to fetch SMA indicator
489
+ :param timestamp: The timestamp for which to fetch the SMA indicator
482
490
  :type timestamp: int
483
491
  :param _request_timeout: timeout setting for this request. If one
484
492
  number provided, it will be total request
@@ -533,13 +541,17 @@ class IndicatorsApi:
533
541
  async def get_sma_indicator_without_preload_content(
534
542
  self,
535
543
  symbol: StrictStr,
536
- market: Annotated[Optional[Market], Field(description="Market")] = None,
544
+ market: Annotated[
545
+ Optional[MarketType],
546
+ Field(description="The market type to use for the SMA indicator"),
547
+ ] = None,
537
548
  period: Annotated[
538
- Optional[StrictInt], Field(description="SMA indicator period")
549
+ Optional[StrictInt],
550
+ Field(description="The period to use for the SMA indicator"),
539
551
  ] = None,
540
552
  timestamp: Annotated[
541
553
  Optional[StrictInt],
542
- Field(description="Timestamp for which to fetch SMA indicator"),
554
+ Field(description="The timestamp for which to fetch the SMA indicator"),
543
555
  ] = None,
544
556
  _request_timeout: Union[
545
557
  None,
@@ -559,11 +571,11 @@ class IndicatorsApi:
559
571
 
560
572
  :param symbol: (required)
561
573
  :type symbol: str
562
- :param market: Market
563
- :type market: Market
564
- :param period: SMA indicator period
574
+ :param market: The market type to use for the SMA indicator
575
+ :type market: MarketType
576
+ :param period: The period to use for the SMA indicator
565
577
  :type period: int
566
- :param timestamp: Timestamp for which to fetch SMA indicator
578
+ :param timestamp: The timestamp for which to fetch the SMA indicator
567
579
  :type timestamp: int
568
580
  :param _request_timeout: timeout setting for this request. If one
569
581
  number provided, it will be total request
@@ -662,7 +674,7 @@ class IndicatorsApi:
662
674
  )
663
675
 
664
676
  # authentication setting
665
- _auth_settings: List[str] = []
677
+ _auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
666
678
 
667
679
  return self.api_client.param_serialize(
668
680
  method="GET",
@@ -1,14 +1,14 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- Marketcap Service API
4
+ Marketcap Service API
5
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
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
7
 
8
- The version of the OpenAPI document: 1.0.0
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
- Do not edit the class manually.
11
+ Do not edit the class manually.
12
12
  """ # noqa: E501
13
13
 
14
14
  import warnings
@@ -338,7 +338,7 @@ class LogsApi:
338
338
  )
339
339
 
340
340
  # authentication setting
341
- _auth_settings: List[str] = []
341
+ _auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
342
342
 
343
343
  return self.api_client.param_serialize(
344
344
  method="GET",
@@ -1,14 +1,14 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- Marketcap Service API
4
+ Marketcap Service API
5
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
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
7
 
8
- The version of the OpenAPI document: 1.0.0
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
- Do not edit the class manually.
11
+ Do not edit the class manually.
12
12
  """ # noqa: E501
13
13
 
14
14
  import warnings
@@ -22,7 +22,7 @@ from typing_extensions import Annotated
22
22
  from crypticorn.metrics.client.models.base_response_list_dict import (
23
23
  BaseResponseListDict,
24
24
  )
25
- from crypticorn.metrics.client.models.market import Market
25
+ from crypticorn.metrics.client.models.market_type import MarketType
26
26
 
27
27
  from crypticorn.metrics.client.api_client import ApiClient, RequestSerialized
28
28
  from crypticorn.metrics.client.api_response import ApiResponse
@@ -289,7 +289,7 @@ class MarketcapApi:
289
289
  )
290
290
 
291
291
  # authentication setting
292
- _auth_settings: List[str] = []
292
+ _auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
293
293
 
294
294
  return self.api_client.param_serialize(
295
295
  method="GET",
@@ -574,7 +574,7 @@ class MarketcapApi:
574
574
  )
575
575
 
576
576
  # authentication setting
577
- _auth_settings: List[str] = []
577
+ _auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
578
578
 
579
579
  return self.api_client.param_serialize(
580
580
  method="GET",
@@ -605,7 +605,7 @@ class MarketcapApi:
605
605
  Field(description="Interval for which to fetch symbols and marketcap data"),
606
606
  ] = None,
607
607
  market: Annotated[
608
- Optional[Market],
608
+ Optional[MarketType],
609
609
  Field(description="Market for which to fetch symbols and marketcap data"),
610
610
  ] = None,
611
611
  exchange: Annotated[
@@ -635,7 +635,7 @@ class MarketcapApi:
635
635
  :param interval: Interval for which to fetch symbols and marketcap data
636
636
  :type interval: str
637
637
  :param market: Market for which to fetch symbols and marketcap data
638
- :type market: Market
638
+ :type market: MarketType
639
639
  :param exchange: Exchange for which to fetch symbols and marketcap data
640
640
  :type exchange: str
641
641
  :param _request_timeout: timeout setting for this request. If one
@@ -702,7 +702,7 @@ class MarketcapApi:
702
702
  Field(description="Interval for which to fetch symbols and marketcap data"),
703
703
  ] = None,
704
704
  market: Annotated[
705
- Optional[Market],
705
+ Optional[MarketType],
706
706
  Field(description="Market for which to fetch symbols and marketcap data"),
707
707
  ] = None,
708
708
  exchange: Annotated[
@@ -732,7 +732,7 @@ class MarketcapApi:
732
732
  :param interval: Interval for which to fetch symbols and marketcap data
733
733
  :type interval: str
734
734
  :param market: Market for which to fetch symbols and marketcap data
735
- :type market: Market
735
+ :type market: MarketType
736
736
  :param exchange: Exchange for which to fetch symbols and marketcap data
737
737
  :type exchange: str
738
738
  :param _request_timeout: timeout setting for this request. If one
@@ -799,7 +799,7 @@ class MarketcapApi:
799
799
  Field(description="Interval for which to fetch symbols and marketcap data"),
800
800
  ] = None,
801
801
  market: Annotated[
802
- Optional[Market],
802
+ Optional[MarketType],
803
803
  Field(description="Market for which to fetch symbols and marketcap data"),
804
804
  ] = None,
805
805
  exchange: Annotated[
@@ -829,7 +829,7 @@ class MarketcapApi:
829
829
  :param interval: Interval for which to fetch symbols and marketcap data
830
830
  :type interval: str
831
831
  :param market: Market for which to fetch symbols and marketcap data
832
- :type market: Market
832
+ :type market: MarketType
833
833
  :param exchange: Exchange for which to fetch symbols and marketcap data
834
834
  :type exchange: str
835
835
  :param _request_timeout: timeout setting for this request. If one
@@ -937,7 +937,7 @@ class MarketcapApi:
937
937
  )
938
938
 
939
939
  # authentication setting
940
- _auth_settings: List[str] = []
940
+ _auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
941
941
 
942
942
  return self.api_client.param_serialize(
943
943
  method="GET",
@@ -965,7 +965,7 @@ class MarketcapApi:
965
965
  Optional[StrictStr], Field(description="Timeframe for OHLCV data")
966
966
  ] = None,
967
967
  market: Annotated[
968
- Optional[Market], Field(description="Market for OHLCV data")
968
+ Optional[MarketType], Field(description="Market for OHLCV data")
969
969
  ] = None,
970
970
  top_n: Annotated[
971
971
  Optional[StrictInt], Field(description="Number of symbols to fetch")
@@ -995,7 +995,7 @@ class MarketcapApi:
995
995
  :param timeframe: Timeframe for OHLCV data
996
996
  :type timeframe: str
997
997
  :param market: Market for OHLCV data
998
- :type market: Market
998
+ :type market: MarketType
999
999
  :param top_n: Number of symbols to fetch
1000
1000
  :type top_n: int
1001
1001
  :param ohlcv_limit: Number of OHLCV data points to fetch
@@ -1061,7 +1061,7 @@ class MarketcapApi:
1061
1061
  Optional[StrictStr], Field(description="Timeframe for OHLCV data")
1062
1062
  ] = None,
1063
1063
  market: Annotated[
1064
- Optional[Market], Field(description="Market for OHLCV data")
1064
+ Optional[MarketType], Field(description="Market for OHLCV data")
1065
1065
  ] = None,
1066
1066
  top_n: Annotated[
1067
1067
  Optional[StrictInt], Field(description="Number of symbols to fetch")
@@ -1091,7 +1091,7 @@ class MarketcapApi:
1091
1091
  :param timeframe: Timeframe for OHLCV data
1092
1092
  :type timeframe: str
1093
1093
  :param market: Market for OHLCV data
1094
- :type market: Market
1094
+ :type market: MarketType
1095
1095
  :param top_n: Number of symbols to fetch
1096
1096
  :type top_n: int
1097
1097
  :param ohlcv_limit: Number of OHLCV data points to fetch
@@ -1157,7 +1157,7 @@ class MarketcapApi:
1157
1157
  Optional[StrictStr], Field(description="Timeframe for OHLCV data")
1158
1158
  ] = None,
1159
1159
  market: Annotated[
1160
- Optional[Market], Field(description="Market for OHLCV data")
1160
+ Optional[MarketType], Field(description="Market for OHLCV data")
1161
1161
  ] = None,
1162
1162
  top_n: Annotated[
1163
1163
  Optional[StrictInt], Field(description="Number of symbols to fetch")
@@ -1187,7 +1187,7 @@ class MarketcapApi:
1187
1187
  :param timeframe: Timeframe for OHLCV data
1188
1188
  :type timeframe: str
1189
1189
  :param market: Market for OHLCV data
1190
- :type market: Market
1190
+ :type market: MarketType
1191
1191
  :param top_n: Number of symbols to fetch
1192
1192
  :type top_n: int
1193
1193
  :param ohlcv_limit: Number of OHLCV data points to fetch
@@ -1297,7 +1297,7 @@ class MarketcapApi:
1297
1297
  )
1298
1298
 
1299
1299
  # authentication setting
1300
- _auth_settings: List[str] = []
1300
+ _auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
1301
1301
 
1302
1302
  return self.api_client.param_serialize(
1303
1303
  method="GET",
@@ -1,14 +1,14 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- Marketcap Service API
4
+ Marketcap Service API
5
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
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
7
 
8
- The version of the OpenAPI document: 1.0.0
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
- Do not edit the class manually.
11
+ Do not edit the class manually.
12
12
  """ # noqa: E501
13
13
 
14
14
  import warnings
@@ -16,14 +16,15 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
16
  from typing import Any, Dict, List, Optional, Tuple, Union
17
17
  from typing_extensions import Annotated
18
18
 
19
- from pydantic import Field, StrictStr, field_validator
19
+ from pydantic import Field, StrictStr
20
20
  from typing import Optional
21
21
  from typing_extensions import Annotated
22
22
  from crypticorn.metrics.client.models.base_response_list_dict import (
23
23
  BaseResponseListDict,
24
24
  )
25
25
  from crypticorn.metrics.client.models.base_response_list_str import BaseResponseListStr
26
- from crypticorn.metrics.client.models.market import Market
26
+ from crypticorn.metrics.client.models.market_type import MarketType
27
+ from crypticorn.metrics.client.models.trading_status import TradingStatus
27
28
 
28
29
  from crypticorn.metrics.client.api_client import ApiClient, RequestSerialized
29
30
  from crypticorn.metrics.client.api_response import ApiResponse
@@ -45,14 +46,16 @@ class MarketsApi:
45
46
  @validate_call
46
47
  async def get_available_markets_for_symbol(
47
48
  self,
48
- market: Annotated[Market, Field(description="Market type (spot or futures)")],
49
+ market: Annotated[
50
+ MarketType, Field(description="Market type (spot or futures)")
51
+ ],
49
52
  symbol: Annotated[StrictStr, Field(description="Symbol to fetch markets for")],
50
53
  quote_currency: Annotated[
51
54
  Optional[StrictStr],
52
55
  Field(description="Quote currency for which to fetch markets"),
53
56
  ] = None,
54
57
  status: Annotated[
55
- Optional[StrictStr],
58
+ Optional[TradingStatus],
56
59
  Field(description="Trading pair status for which to fetch markets"),
57
60
  ] = None,
58
61
  _request_timeout: Union[
@@ -72,13 +75,13 @@ class MarketsApi:
72
75
  Get markets for a symbol with filtering options.
73
76
 
74
77
  :param market: Market type (spot or futures) (required)
75
- :type market: Market
78
+ :type market: MarketType
76
79
  :param symbol: Symbol to fetch markets for (required)
77
80
  :type symbol: str
78
81
  :param quote_currency: Quote currency for which to fetch markets
79
82
  :type quote_currency: str
80
83
  :param status: Trading pair status for which to fetch markets
81
- :type status: str
84
+ :type status: TradingStatus
82
85
  :param _request_timeout: timeout setting for this request. If one
83
86
  number provided, it will be total request
84
87
  timeout. It can also be a pair (tuple) of
@@ -131,14 +134,16 @@ class MarketsApi:
131
134
  @validate_call
132
135
  async def get_available_markets_for_symbol_with_http_info(
133
136
  self,
134
- market: Annotated[Market, Field(description="Market type (spot or futures)")],
137
+ market: Annotated[
138
+ MarketType, Field(description="Market type (spot or futures)")
139
+ ],
135
140
  symbol: Annotated[StrictStr, Field(description="Symbol to fetch markets for")],
136
141
  quote_currency: Annotated[
137
142
  Optional[StrictStr],
138
143
  Field(description="Quote currency for which to fetch markets"),
139
144
  ] = None,
140
145
  status: Annotated[
141
- Optional[StrictStr],
146
+ Optional[TradingStatus],
142
147
  Field(description="Trading pair status for which to fetch markets"),
143
148
  ] = None,
144
149
  _request_timeout: Union[
@@ -158,13 +163,13 @@ class MarketsApi:
158
163
  Get markets for a symbol with filtering options.
159
164
 
160
165
  :param market: Market type (spot or futures) (required)
161
- :type market: Market
166
+ :type market: MarketType
162
167
  :param symbol: Symbol to fetch markets for (required)
163
168
  :type symbol: str
164
169
  :param quote_currency: Quote currency for which to fetch markets
165
170
  :type quote_currency: str
166
171
  :param status: Trading pair status for which to fetch markets
167
- :type status: str
172
+ :type status: TradingStatus
168
173
  :param _request_timeout: timeout setting for this request. If one
169
174
  number provided, it will be total request
170
175
  timeout. It can also be a pair (tuple) of
@@ -217,14 +222,16 @@ class MarketsApi:
217
222
  @validate_call
218
223
  async def get_available_markets_for_symbol_without_preload_content(
219
224
  self,
220
- market: Annotated[Market, Field(description="Market type (spot or futures)")],
225
+ market: Annotated[
226
+ MarketType, Field(description="Market type (spot or futures)")
227
+ ],
221
228
  symbol: Annotated[StrictStr, Field(description="Symbol to fetch markets for")],
222
229
  quote_currency: Annotated[
223
230
  Optional[StrictStr],
224
231
  Field(description="Quote currency for which to fetch markets"),
225
232
  ] = None,
226
233
  status: Annotated[
227
- Optional[StrictStr],
234
+ Optional[TradingStatus],
228
235
  Field(description="Trading pair status for which to fetch markets"),
229
236
  ] = None,
230
237
  _request_timeout: Union[
@@ -244,13 +251,13 @@ class MarketsApi:
244
251
  Get markets for a symbol with filtering options.
245
252
 
246
253
  :param market: Market type (spot or futures) (required)
247
- :type market: Market
254
+ :type market: MarketType
248
255
  :param symbol: Symbol to fetch markets for (required)
249
256
  :type symbol: str
250
257
  :param quote_currency: Quote currency for which to fetch markets
251
258
  :type quote_currency: str
252
259
  :param status: Trading pair status for which to fetch markets
253
- :type status: str
260
+ :type status: TradingStatus
254
261
  :param _request_timeout: timeout setting for this request. If one
255
262
  number provided, it will be total request
256
263
  timeout. It can also be a pair (tuple) of
@@ -333,7 +340,7 @@ class MarketsApi:
333
340
 
334
341
  if status is not None:
335
342
 
336
- _query_params.append(("status", status))
343
+ _query_params.append(("status", status.value))
337
344
 
338
345
  # process the header parameters
339
346
  # process the form parameters
@@ -346,7 +353,7 @@ class MarketsApi:
346
353
  )
347
354
 
348
355
  # authentication setting
349
- _auth_settings: List[str] = []
356
+ _auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
350
357
 
351
358
  return self.api_client.param_serialize(
352
359
  method="GET",
@@ -366,7 +373,9 @@ class MarketsApi:
366
373
  @validate_call
367
374
  async def get_quote_currencies(
368
375
  self,
369
- market: Annotated[Market, Field(description="Market type (spot or futures)")],
376
+ market: Annotated[
377
+ MarketType, Field(description="Market type (spot or futures)")
378
+ ],
370
379
  _request_timeout: Union[
371
380
  None,
372
381
  Annotated[StrictFloat, Field(gt=0)],
@@ -384,7 +393,7 @@ class MarketsApi:
384
393
  Get available quote currencies for a market.
385
394
 
386
395
  :param market: Market type (spot or futures) (required)
387
- :type market: Market
396
+ :type market: MarketType
388
397
  :param _request_timeout: timeout setting for this request. If one
389
398
  number provided, it will be total request
390
399
  timeout. It can also be a pair (tuple) of
@@ -434,7 +443,9 @@ class MarketsApi:
434
443
  @validate_call
435
444
  async def get_quote_currencies_with_http_info(
436
445
  self,
437
- market: Annotated[Market, Field(description="Market type (spot or futures)")],
446
+ market: Annotated[
447
+ MarketType, Field(description="Market type (spot or futures)")
448
+ ],
438
449
  _request_timeout: Union[
439
450
  None,
440
451
  Annotated[StrictFloat, Field(gt=0)],
@@ -452,7 +463,7 @@ class MarketsApi:
452
463
  Get available quote currencies for a market.
453
464
 
454
465
  :param market: Market type (spot or futures) (required)
455
- :type market: Market
466
+ :type market: MarketType
456
467
  :param _request_timeout: timeout setting for this request. If one
457
468
  number provided, it will be total request
458
469
  timeout. It can also be a pair (tuple) of
@@ -502,7 +513,9 @@ class MarketsApi:
502
513
  @validate_call
503
514
  async def get_quote_currencies_without_preload_content(
504
515
  self,
505
- market: Annotated[Market, Field(description="Market type (spot or futures)")],
516
+ market: Annotated[
517
+ MarketType, Field(description="Market type (spot or futures)")
518
+ ],
506
519
  _request_timeout: Union[
507
520
  None,
508
521
  Annotated[StrictFloat, Field(gt=0)],
@@ -520,7 +533,7 @@ class MarketsApi:
520
533
  Get available quote currencies for a market.
521
534
 
522
535
  :param market: Market type (spot or futures) (required)
523
- :type market: Market
536
+ :type market: MarketType
524
537
  :param _request_timeout: timeout setting for this request. If one
525
538
  number provided, it will be total request
526
539
  timeout. It can also be a pair (tuple) of
@@ -600,7 +613,7 @@ class MarketsApi:
600
613
  )
601
614
 
602
615
  # authentication setting
603
- _auth_settings: List[str] = []
616
+ _auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
604
617
 
605
618
  return self.api_client.param_serialize(
606
619
  method="GET",
@@ -1,14 +1,14 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- Marketcap Service API
4
+ Marketcap Service API
5
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
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
7
 
8
- The version of the OpenAPI document: 1.0.0
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
- Do not edit the class manually.
11
+ Do not edit the class manually.
12
12
  """ # noqa: E501
13
13
 
14
14
  import warnings
@@ -282,7 +282,7 @@ class TokensApi:
282
282
  )
283
283
 
284
284
  # authentication setting
285
- _auth_settings: List[str] = []
285
+ _auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
286
286
 
287
287
  return self.api_client.param_serialize(
288
288
  method="GET",