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
 
@@ -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
 
@@ -17,7 +17,7 @@ import http.client as httplib
17
17
  import logging
18
18
  from logging import FileHandler
19
19
  import sys
20
- from typing import Any, ClassVar, Dict, List, Literal, Optional, TypedDict
20
+ from typing import Any, ClassVar, Dict, List, Literal, Optional, TypedDict, Union
21
21
  from typing_extensions import NotRequired, Self
22
22
 
23
23
  import urllib3
@@ -118,7 +118,10 @@ HTTPSignatureAuthSetting = TypedDict(
118
118
 
119
119
  AuthSettings = TypedDict(
120
120
  "AuthSettings",
121
- {},
121
+ {
122
+ "HTTPBearer": BearerFormatAuthSetting,
123
+ "APIKeyHeader": APIKeyAuthSetting,
124
+ },
122
125
  total=False,
123
126
  )
124
127
 
@@ -138,34 +141,56 @@ class HostSetting(TypedDict):
138
141
  class Configuration:
139
142
  """This class contains various settings of the API client.
140
143
 
141
- :param host: Base url.
142
- :param ignore_operation_servers
143
- Boolean to ignore operation servers for the API client.
144
- Config will use `host` as the base url regardless of the operation servers.
145
- :param api_key: Dict to store API key(s).
146
- Each entry in the dict specifies an API key.
147
- The dict key is the name of the security scheme in the OAS specification.
148
- The dict value is the API key secret.
149
- :param api_key_prefix: Dict to store API prefix (e.g. Bearer).
150
- The dict key is the name of the security scheme in the OAS specification.
151
- The dict value is an API key prefix when generating the auth data.
152
- :param username: Username for HTTP basic authentication.
153
- :param password: Password for HTTP basic authentication.
154
- :param access_token: Access token.
155
- :param server_index: Index to servers configuration.
156
- :param server_variables: Mapping with string values to replace variables in
157
- templated server configuration. The validation of enums is performed for
158
- variables with defined enum values before.
159
- :param server_operation_index: Mapping from operation ID to an index to server
160
- configuration.
161
- :param server_operation_variables: Mapping from operation ID to a mapping with
162
- string values to replace variables in templated server configuration.
163
- The validation of enums is performed for variables with defined enum
164
- values before.
165
- :param ssl_ca_cert: str - the path to a file of concatenated CA certificates
166
- in PEM format.
167
- :param retries: Number of retries for API requests.
168
-
144
+ :param host: Base url.
145
+ :param ignore_operation_servers
146
+ Boolean to ignore operation servers for the API client.
147
+ Config will use `host` as the base url regardless of the operation servers.
148
+ :param api_key: Dict to store API key(s).
149
+ Each entry in the dict specifies an API key.
150
+ The dict key is the name of the security scheme in the OAS specification.
151
+ The dict value is the API key secret.
152
+ :param api_key_prefix: Dict to store API prefix (e.g. Bearer).
153
+ The dict key is the name of the security scheme in the OAS specification.
154
+ The dict value is an API key prefix when generating the auth data.
155
+ :param username: Username for HTTP basic authentication.
156
+ :param password: Password for HTTP basic authentication.
157
+ :param access_token: Access token.
158
+ :param server_index: Index to servers configuration.
159
+ :param server_variables: Mapping with string values to replace variables in
160
+ templated server configuration. The validation of enums is performed for
161
+ variables with defined enum values before.
162
+ :param server_operation_index: Mapping from operation ID to an index to server
163
+ configuration.
164
+ :param server_operation_variables: Mapping from operation ID to a mapping with
165
+ string values to replace variables in templated server configuration.
166
+ The validation of enums is performed for variables with defined enum
167
+ values before.
168
+ :param ssl_ca_cert: str - the path to a file of concatenated CA certificates
169
+ in PEM format.
170
+ :param retries: Number of retries for API requests.
171
+ :param ca_cert_data: verify the peer using concatenated CA certificate data
172
+ in PEM (str) or DER (bytes) format.
173
+
174
+ :Example:
175
+
176
+ API Key Authentication Example.
177
+ Given the following security scheme in the OpenAPI specification:
178
+ components:
179
+ securitySchemes:
180
+ cookieAuth: # name for the security scheme
181
+ type: apiKey
182
+ in: cookie
183
+ name: JSESSIONID # cookie name
184
+
185
+ You can programmatically set the cookie:
186
+
187
+ conf = client.Configuration(
188
+ api_key={'cookieAuth': 'abc123'}
189
+ api_key_prefix={'cookieAuth': 'JSESSIONID'}
190
+ )
191
+
192
+ The following cookie will be added to the HTTP request:
193
+ Cookie: JSESSIONID abc123
169
194
  """
170
195
 
171
196
  _default: ClassVar[Optional[Self]] = None
@@ -185,13 +210,12 @@ class Configuration:
185
210
  ignore_operation_servers: bool = False,
186
211
  ssl_ca_cert: Optional[str] = None,
187
212
  retries: Optional[int] = None,
213
+ ca_cert_data: Optional[Union[str, bytes]] = None,
188
214
  *,
189
215
  debug: Optional[bool] = None,
190
216
  ) -> None:
191
217
  """Constructor"""
192
- self._base_path = (
193
- "https://api.crypticorn.dev/v1/metrics" if host is None else host
194
- )
218
+ self._base_path = "http://localhost/v1/metrics" if host is None else host
195
219
  """Default Base url
196
220
  """
197
221
  self.server_index = 0 if server_index is None and host is None else server_index
@@ -263,6 +287,10 @@ class Configuration:
263
287
  self.ssl_ca_cert = ssl_ca_cert
264
288
  """Set this to customize the certificate file to verify the peer.
265
289
  """
290
+ self.ca_cert_data = ca_cert_data
291
+ """Set this to verify the peer using PEM (str) or DER (bytes)
292
+ certificate data.
293
+ """
266
294
  self.cert_file = None
267
295
  """client certificate file
268
296
  """
@@ -490,6 +518,23 @@ class Configuration:
490
518
  :return: The Auth Settings information dict.
491
519
  """
492
520
  auth: AuthSettings = {}
521
+ if self.access_token is not None:
522
+ auth["HTTPBearer"] = {
523
+ "type": "bearer",
524
+ "in": "header",
525
+ "format": "JWT",
526
+ "key": "Authorization",
527
+ "value": "Bearer " + self.access_token,
528
+ }
529
+ if "APIKeyHeader" in self.api_key:
530
+ auth["APIKeyHeader"] = {
531
+ "type": "api_key",
532
+ "in": "header",
533
+ "key": "X-API-Key",
534
+ "value": self.get_api_key_with_prefix(
535
+ "APIKeyHeader",
536
+ ),
537
+ }
493
538
  return auth
494
539
 
495
540
  def to_debug_report(self) -> str:
@@ -512,7 +557,7 @@ class Configuration:
512
557
  """
513
558
  return [
514
559
  {
515
- "url": "https://api.crypticorn.dev/v1/metrics",
560
+ "url": "http://localhost/v1/metrics",
516
561
  "description": "No description provided",
517
562
  }
518
563
  ]
@@ -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
  from typing import Any, Optional
@@ -2,14 +2,14 @@
2
2
 
3
3
  # flake8: noqa
4
4
  """
5
- Marketcap Service API
5
+ Marketcap Service API
6
6
 
7
- 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
+ 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
8
8
 
9
- The version of the OpenAPI document: 1.0.0
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
9
+ The version of the OpenAPI document: 1.0.0
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
 
@@ -29,8 +29,10 @@ from crypticorn.metrics.client.models.error_response import ErrorResponse
29
29
  from crypticorn.metrics.client.models.exchange_mapping import ExchangeMapping
30
30
  from crypticorn.metrics.client.models.http_validation_error import HTTPValidationError
31
31
  from crypticorn.metrics.client.models.health_check_response import HealthCheckResponse
32
- from crypticorn.metrics.client.models.market import Market
32
+ from crypticorn.metrics.client.models.market_type import MarketType
33
33
  from crypticorn.metrics.client.models.severity import Severity
34
+ from crypticorn.metrics.client.models.time_interval import TimeInterval
35
+ from crypticorn.metrics.client.models.trading_status import TradingStatus
34
36
  from crypticorn.metrics.client.models.validation_error import ValidationError
35
37
  from crypticorn.metrics.client.models.validation_error_loc_inner import (
36
38
  ValidationErrorLocInner,
@@ -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
 
@@ -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
 
@@ -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
 
@@ -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
 
@@ -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
 
@@ -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
 
@@ -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
 
@@ -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
 
@@ -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
 
@@ -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
 
@@ -0,0 +1,35 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Marketcap Service API
5
+
6
+ API for retrieving historical marketcap data, available exchanges, and indicators. ## Features - Historical marketcap data - OHLCV data with marketcap - Technical indicators (KER, SMA) - Exchange and symbol mappings - Error logs
7
+
8
+ The version of the OpenAPI document: 1.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import json
17
+ from enum import Enum
18
+ from typing_extensions import Self
19
+
20
+
21
+ class MarketType(str, Enum):
22
+ """
23
+ Market types
24
+ """
25
+
26
+ """
27
+ allowed enum values
28
+ """
29
+ SPOT = "spot"
30
+ FUTURES = "futures"
31
+
32
+ @classmethod
33
+ def from_json(cls, json_str: str) -> Self:
34
+ """Create an instance of MarketType from a JSON string"""
35
+ return cls(json.loads(json_str))
@@ -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
 
@@ -0,0 +1,38 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Marketcap Service API
5
+
6
+ API for retrieving historical marketcap data, available exchanges, and indicators. ## Features - Historical marketcap data - OHLCV data with marketcap - Technical indicators (KER, SMA) - Exchange and symbol mappings - Error logs
7
+
8
+ The version of the OpenAPI document: 1.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import json
17
+ from enum import Enum
18
+ from typing_extensions import Self
19
+
20
+
21
+ class TimeInterval(str, Enum):
22
+ """
23
+ TimeInterval
24
+ """
25
+
26
+ """
27
+ allowed enum values
28
+ """
29
+ ENUM_15M = "15m"
30
+ ENUM_30M = "30m"
31
+ ENUM_1H = "1h"
32
+ ENUM_4H = "4h"
33
+ ENUM_1D = "1d"
34
+
35
+ @classmethod
36
+ def from_json(cls, json_str: str) -> Self:
37
+ """Create an instance of TimeInterval from a JSON string"""
38
+ return cls(json.loads(json_str))
@@ -0,0 +1,35 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Marketcap Service API
5
+
6
+ API for retrieving historical marketcap data, available exchanges, and indicators. ## Features - Historical marketcap data - OHLCV data with marketcap - Technical indicators (KER, SMA) - Exchange and symbol mappings - Error logs
7
+
8
+ The version of the OpenAPI document: 1.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import json
17
+ from enum import Enum
18
+ from typing_extensions import Self
19
+
20
+
21
+ class TradingStatus(str, Enum):
22
+ """
23
+ TradingStatus
24
+ """
25
+
26
+ """
27
+ allowed enum values
28
+ """
29
+ ACTIVE = "ACTIVE"
30
+ RETIRED = "RETIRED"
31
+
32
+ @classmethod
33
+ def from_json(cls, json_str: str) -> Self:
34
+ """Create an instance of TradingStatus from a JSON string"""
35
+ return cls(json.loads(json_str))
@@ -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
 
@@ -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