crypticorn 1.0.2rc3__py3-none-any.whl → 2.0.0__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 (259) hide show
  1. crypticorn/__init__.py +3 -3
  2. crypticorn/auth/__init__.py +2 -0
  3. crypticorn/auth/client/__init__.py +112 -0
  4. crypticorn/auth/client/api/__init__.py +8 -0
  5. crypticorn/auth/client/api/admin_api.py +522 -0
  6. crypticorn/auth/client/api/auth_api.py +2089 -0
  7. crypticorn/auth/client/api/service_api.py +309 -0
  8. crypticorn/auth/client/api/user_api.py +2540 -0
  9. crypticorn/auth/client/api/wallet_api.py +1698 -0
  10. crypticorn/auth/client/api_client.py +758 -0
  11. crypticorn/auth/client/api_response.py +20 -0
  12. crypticorn/auth/client/configuration.py +584 -0
  13. crypticorn/auth/client/exceptions.py +220 -0
  14. crypticorn/auth/client/models/__init__.py +91 -0
  15. crypticorn/auth/client/models/add_wallet200_response.py +86 -0
  16. crypticorn/auth/client/models/add_wallet_request.py +107 -0
  17. crypticorn/auth/client/models/authorize_user200_response.py +107 -0
  18. crypticorn/auth/client/models/authorize_user200_response_auth.py +101 -0
  19. crypticorn/auth/client/models/authorize_user_request.py +96 -0
  20. crypticorn/auth/client/models/create_user_request.py +114 -0
  21. crypticorn/auth/client/models/list_wallets200_response.py +137 -0
  22. crypticorn/auth/client/models/list_wallets200_response_balances_inner.py +115 -0
  23. crypticorn/auth/client/models/list_wallets200_response_balances_inner_sale_round.py +115 -0
  24. crypticorn/auth/client/models/list_wallets200_response_balances_inner_wallet.py +168 -0
  25. crypticorn/auth/client/models/list_wallets200_response_balances_inner_wallet_vesting_wallets_inner.py +191 -0
  26. crypticorn/auth/client/models/list_wallets200_response_data_inner.py +102 -0
  27. crypticorn/auth/client/models/list_wallets200_response_user_value.py +118 -0
  28. crypticorn/auth/client/models/logout_default_response.py +108 -0
  29. crypticorn/auth/client/models/logout_default_response_issues_inner.py +83 -0
  30. crypticorn/auth/client/models/refresh_token_info200_response.py +97 -0
  31. crypticorn/auth/client/models/refresh_token_info200_response_user_session.py +105 -0
  32. crypticorn/auth/client/models/resend_verification_email_request.py +84 -0
  33. crypticorn/auth/client/models/revoke_user_tokens_request.py +83 -0
  34. crypticorn/auth/client/models/rotate_tokens200_response.py +110 -0
  35. crypticorn/auth/client/models/token_info200_response.py +97 -0
  36. crypticorn/auth/client/models/unlink_wallet_request.py +83 -0
  37. crypticorn/auth/client/models/update_user_request.py +93 -0
  38. crypticorn/auth/client/models/user_reset_password_request.py +87 -0
  39. crypticorn/auth/client/models/user_set_password_request.py +89 -0
  40. crypticorn/auth/client/models/verify200_response.py +110 -0
  41. crypticorn/auth/client/models/verify_email200_response.py +107 -0
  42. crypticorn/auth/client/models/verify_email200_response_auth.py +101 -0
  43. crypticorn/auth/client/models/verify_email200_response_auth_auth.py +110 -0
  44. crypticorn/auth/client/models/verify_email_request.py +83 -0
  45. crypticorn/auth/client/models/verify_wallet_request.py +91 -0
  46. crypticorn/auth/client/models/wallet_verified200_response.py +83 -0
  47. crypticorn/auth/client/models/whoami200_response.py +104 -0
  48. crypticorn/auth/client/rest.py +195 -0
  49. crypticorn/auth/main.py +45 -0
  50. crypticorn/client.py +46 -8
  51. crypticorn/common/__init__.py +5 -0
  52. crypticorn/common/auth.py +43 -0
  53. crypticorn/common/auth_client.py +163 -0
  54. crypticorn/common/errors.py +432 -0
  55. crypticorn/common/scopes.py +29 -0
  56. crypticorn/common/urls.py +25 -0
  57. crypticorn/hive/__init__.py +2 -1
  58. crypticorn/hive/client/__init__.py +57 -0
  59. crypticorn/hive/client/api/__init__.py +6 -0
  60. crypticorn/hive/client/api/data_api.py +594 -0
  61. crypticorn/hive/client/api/models_api.py +1680 -0
  62. crypticorn/hive/client/api/status_api.py +263 -0
  63. crypticorn/hive/client/api_client.py +758 -0
  64. crypticorn/hive/client/api_response.py +20 -0
  65. crypticorn/hive/client/configuration.py +612 -0
  66. crypticorn/hive/client/exceptions.py +220 -0
  67. crypticorn/hive/client/models/__init__.py +38 -0
  68. crypticorn/hive/client/models/coins.py +44 -0
  69. crypticorn/hive/client/models/data_download_response.py +113 -0
  70. crypticorn/hive/client/models/data_info.py +115 -0
  71. crypticorn/hive/client/models/data_value_value_value_inner.py +154 -0
  72. crypticorn/hive/client/models/data_version.py +35 -0
  73. crypticorn/hive/client/models/download_links.py +91 -0
  74. crypticorn/hive/client/models/evaluation.py +86 -0
  75. crypticorn/hive/client/models/evaluation_response.py +85 -0
  76. crypticorn/hive/client/models/feature_size.py +36 -0
  77. crypticorn/hive/client/models/http_validation_error.py +99 -0
  78. crypticorn/hive/client/models/model.py +133 -0
  79. crypticorn/hive/client/models/model_create.py +93 -0
  80. crypticorn/hive/client/models/model_status.py +35 -0
  81. crypticorn/hive/client/models/model_update.py +83 -0
  82. crypticorn/hive/client/models/target.py +36 -0
  83. crypticorn/hive/client/models/target_type.py +35 -0
  84. crypticorn/hive/client/models/validation_error.py +105 -0
  85. crypticorn/hive/client/models/validation_error_loc_inner.py +159 -0
  86. crypticorn/hive/client/py.typed +0 -0
  87. crypticorn/hive/client/rest.py +195 -0
  88. crypticorn/hive/main.py +27 -100
  89. crypticorn/klines/client/__init__.py +21 -7
  90. crypticorn/klines/client/api/__init__.py +0 -1
  91. crypticorn/klines/client/api/funding_rates_api.py +90 -79
  92. crypticorn/klines/client/api/health_check_api.py +29 -45
  93. crypticorn/klines/client/api/ohlcv_data_api.py +104 -87
  94. crypticorn/klines/client/api/symbols_api.py +36 -54
  95. crypticorn/klines/client/api/udf_api.py +228 -352
  96. crypticorn/klines/client/api_client.py +106 -148
  97. crypticorn/klines/client/api_response.py +2 -3
  98. crypticorn/klines/client/configuration.py +64 -50
  99. crypticorn/klines/client/exceptions.py +20 -16
  100. crypticorn/klines/client/models/__init__.py +21 -7
  101. crypticorn/klines/client/models/base_response_health_check_response.py +21 -15
  102. crypticorn/klines/client/models/base_response_list_funding_rate_response.py +21 -15
  103. crypticorn/klines/client/models/base_response_list_str.py +16 -14
  104. crypticorn/klines/client/models/base_response_ohlcv_response.py +21 -15
  105. crypticorn/klines/client/models/error_response.py +23 -15
  106. crypticorn/klines/client/models/exchange.py +11 -11
  107. crypticorn/klines/client/models/funding_rate_response.py +11 -11
  108. crypticorn/klines/client/models/health_check_response.py +14 -12
  109. crypticorn/klines/client/models/history_error_response.py +11 -11
  110. crypticorn/klines/client/models/history_no_data_response.py +16 -16
  111. crypticorn/klines/client/models/history_success_response.py +16 -16
  112. crypticorn/klines/client/models/http_validation_error.py +14 -10
  113. crypticorn/klines/client/models/market.py +2 -4
  114. crypticorn/klines/client/models/ohlcv_response.py +22 -15
  115. crypticorn/klines/client/models/resolution.py +5 -7
  116. crypticorn/klines/client/models/response_get_history_udf_history_get.py +71 -22
  117. crypticorn/klines/client/models/search_symbol_response.py +22 -15
  118. crypticorn/klines/client/models/sort_direction.py +2 -4
  119. crypticorn/klines/client/models/symbol_group_response.py +5 -9
  120. crypticorn/klines/client/models/symbol_info_response.py +40 -24
  121. crypticorn/klines/client/models/symbol_type.py +5 -10
  122. crypticorn/klines/client/models/timeframe.py +5 -7
  123. crypticorn/klines/client/models/udf_config_response.py +60 -21
  124. crypticorn/klines/client/models/validation_error.py +19 -13
  125. crypticorn/klines/client/models/validation_error_loc_inner.py +32 -11
  126. crypticorn/klines/client/rest.py +30 -41
  127. crypticorn/klines/main.py +52 -15
  128. crypticorn/pay/__init__.py +2 -0
  129. crypticorn/pay/client/__init__.py +52 -0
  130. crypticorn/pay/client/api/__init__.py +7 -0
  131. crypticorn/pay/client/api/now_payments_api.py +813 -0
  132. crypticorn/pay/client/api/payments_api.py +799 -0
  133. crypticorn/pay/client/api/products_api.py +891 -0
  134. crypticorn/pay/client/api/status_api.py +260 -0
  135. crypticorn/pay/client/api_client.py +758 -0
  136. crypticorn/pay/client/api_response.py +20 -0
  137. crypticorn/pay/client/configuration.py +612 -0
  138. crypticorn/pay/client/exceptions.py +220 -0
  139. crypticorn/pay/client/models/__init__.py +32 -0
  140. crypticorn/pay/client/models/api_status_res.py +83 -0
  141. crypticorn/pay/client/models/combined_payment_history.py +101 -0
  142. crypticorn/pay/client/models/create_invoice_req.py +188 -0
  143. crypticorn/pay/client/models/create_invoice_res.py +188 -0
  144. crypticorn/pay/client/models/currency.py +165 -0
  145. crypticorn/pay/client/models/estimate_price_req.py +91 -0
  146. crypticorn/pay/client/models/estimate_price_res.py +102 -0
  147. crypticorn/pay/client/models/get_currencies_res.py +99 -0
  148. crypticorn/pay/client/models/get_payment_status_res.py +222 -0
  149. crypticorn/pay/client/models/get_payments_list_res.py +109 -0
  150. crypticorn/pay/client/models/http_validation_error.py +99 -0
  151. crypticorn/pay/client/models/min_amount_req.py +124 -0
  152. crypticorn/pay/client/models/min_amount_res.py +105 -0
  153. crypticorn/pay/client/models/now_api_status_res.py +83 -0
  154. crypticorn/pay/client/models/now_create_invoice_req.py +188 -0
  155. crypticorn/pay/client/models/now_create_invoice_res.py +188 -0
  156. crypticorn/pay/client/models/now_fee_structure.py +104 -0
  157. crypticorn/pay/client/models/now_payment_model.py +124 -0
  158. crypticorn/pay/client/models/now_payment_status.py +42 -0
  159. crypticorn/pay/client/models/now_webhook_payload.py +181 -0
  160. crypticorn/pay/client/models/payment.py +231 -0
  161. crypticorn/pay/client/models/payment_status.py +40 -0
  162. crypticorn/pay/client/models/product.py +87 -0
  163. crypticorn/pay/client/models/product_model.py +119 -0
  164. crypticorn/pay/client/models/product_subs_model.py +108 -0
  165. crypticorn/pay/client/models/services.py +34 -0
  166. crypticorn/pay/client/models/unified_payment_model.py +112 -0
  167. crypticorn/pay/client/models/validation_error.py +105 -0
  168. crypticorn/pay/client/models/validation_error_loc_inner.py +159 -0
  169. crypticorn/pay/client/py.typed +0 -0
  170. crypticorn/pay/client/rest.py +195 -0
  171. crypticorn/pay/main.py +35 -0
  172. crypticorn/trade/client/__init__.py +9 -4
  173. crypticorn/trade/client/api/__init__.py +0 -1
  174. crypticorn/trade/client/api/api_keys_api.py +203 -304
  175. crypticorn/trade/client/api/bots_api.py +177 -250
  176. crypticorn/trade/client/api/exchanges_api.py +38 -57
  177. crypticorn/trade/client/api/futures_trading_panel_api.py +223 -321
  178. crypticorn/trade/client/api/notifications_api.py +247 -364
  179. crypticorn/trade/client/api/orders_api.py +44 -63
  180. crypticorn/trade/client/api/status_api.py +35 -53
  181. crypticorn/trade/client/api/strategies_api.py +852 -64
  182. crypticorn/trade/client/api/trading_actions_api.py +126 -203
  183. crypticorn/trade/client/api_client.py +115 -154
  184. crypticorn/trade/client/api_response.py +2 -3
  185. crypticorn/trade/client/configuration.py +128 -90
  186. crypticorn/trade/client/exceptions.py +21 -17
  187. crypticorn/trade/client/models/__init__.py +9 -4
  188. crypticorn/trade/client/models/action_model.py +114 -50
  189. crypticorn/trade/client/models/api_error_identifier.py +60 -51
  190. crypticorn/trade/client/models/api_error_level.py +37 -0
  191. crypticorn/trade/client/models/api_error_type.py +37 -0
  192. crypticorn/trade/client/models/api_key_model.py +49 -28
  193. crypticorn/trade/client/models/bot_model.py +76 -31
  194. crypticorn/trade/client/models/bot_status.py +37 -0
  195. crypticorn/trade/client/models/exchange.py +3 -5
  196. crypticorn/trade/client/models/execution_ids.py +14 -14
  197. crypticorn/trade/client/models/futures_balance.py +39 -23
  198. crypticorn/trade/client/models/futures_trading_action.py +98 -46
  199. crypticorn/trade/client/models/http_validation_error.py +15 -11
  200. crypticorn/trade/client/models/margin_mode.py +3 -5
  201. crypticorn/trade/client/models/market_type.py +3 -5
  202. crypticorn/trade/client/models/notification_model.py +60 -27
  203. crypticorn/trade/client/models/notification_type.py +4 -6
  204. crypticorn/trade/client/models/order_model.py +125 -65
  205. crypticorn/trade/client/models/order_status.py +6 -8
  206. crypticorn/trade/client/models/post_futures_action.py +16 -12
  207. crypticorn/trade/client/models/strategy_exchange_info.py +11 -12
  208. crypticorn/trade/client/models/strategy_model.py +66 -27
  209. crypticorn/trade/client/models/strategy_model_input.py +160 -0
  210. crypticorn/trade/client/models/strategy_model_output.py +160 -0
  211. crypticorn/trade/client/models/tpsl.py +35 -21
  212. crypticorn/trade/client/models/trading_action_type.py +5 -7
  213. crypticorn/trade/client/models/update_notification.py +17 -13
  214. crypticorn/trade/client/models/validation_error.py +20 -14
  215. crypticorn/trade/client/models/validation_error_loc_inner.py +33 -12
  216. crypticorn/trade/client/rest.py +108 -170
  217. crypticorn/trade/main.py +26 -19
  218. crypticorn-2.0.0.dist-info/METADATA +74 -0
  219. crypticorn-2.0.0.dist-info/RECORD +226 -0
  220. {crypticorn-1.0.2rc3.dist-info → crypticorn-2.0.0.dist-info}/WHEEL +1 -1
  221. crypticorn/hive/requirements.txt +0 -4
  222. crypticorn/hive/utils.py +0 -109
  223. crypticorn/klines/requirements.txt +0 -4
  224. crypticorn/klines/test/test_base_response_health_check_response.py +0 -56
  225. crypticorn/klines/test/test_base_response_list_funding_rate_response.py +0 -59
  226. crypticorn/klines/test/test_base_response_list_str.py +0 -56
  227. crypticorn/klines/test/test_base_response_ohlcv_response.py +0 -72
  228. crypticorn/klines/test/test_error_response.py +0 -57
  229. crypticorn/klines/test/test_exchange.py +0 -56
  230. crypticorn/klines/test/test_funding_rate_response.py +0 -56
  231. crypticorn/klines/test/test_funding_rates_api.py +0 -38
  232. crypticorn/klines/test/test_health_check_api.py +0 -38
  233. crypticorn/klines/test/test_health_check_response.py +0 -52
  234. crypticorn/klines/test/test_history_error_response.py +0 -53
  235. crypticorn/klines/test/test_history_no_data_response.py +0 -69
  236. crypticorn/klines/test/test_history_success_response.py +0 -87
  237. crypticorn/klines/test/test_http_validation_error.py +0 -58
  238. crypticorn/klines/test/test_market.py +0 -33
  239. crypticorn/klines/test/test_ohlcv_data_api.py +0 -38
  240. crypticorn/klines/test/test_ohlcv_response.py +0 -86
  241. crypticorn/klines/test/test_resolution.py +0 -33
  242. crypticorn/klines/test/test_response_get_history_udf_history_get.py +0 -89
  243. crypticorn/klines/test/test_search_symbol_response.py +0 -62
  244. crypticorn/klines/test/test_sort_direction.py +0 -33
  245. crypticorn/klines/test/test_symbol_group_response.py +0 -53
  246. crypticorn/klines/test/test_symbol_info_response.py +0 -84
  247. crypticorn/klines/test/test_symbol_type.py +0 -54
  248. crypticorn/klines/test/test_symbols_api.py +0 -38
  249. crypticorn/klines/test/test_timeframe.py +0 -33
  250. crypticorn/klines/test/test_udf_api.py +0 -80
  251. crypticorn/klines/test/test_udf_config_response.py +0 -95
  252. crypticorn/klines/test/test_validation_error.py +0 -60
  253. crypticorn/klines/test/test_validation_error_loc_inner.py +0 -50
  254. crypticorn/trade/requirements.txt +0 -4
  255. crypticorn-1.0.2rc3.dist-info/LICENSE.md +0 -19
  256. crypticorn-1.0.2rc3.dist-info/METADATA +0 -47
  257. crypticorn-1.0.2rc3.dist-info/RECORD +0 -128
  258. /crypticorn/{klines/test/__init__.py → auth/client/py.typed} +0 -0
  259. {crypticorn-1.0.2rc3.dist-info → crypticorn-2.0.0.dist-info}/top_level.txt +0 -0
@@ -23,16 +23,24 @@ from typing import Any, ClassVar, Dict, List, Optional
23
23
  from typing import Optional, Set
24
24
  from typing_extensions import Self
25
25
 
26
+
26
27
  class ErrorResponse(BaseModel):
27
28
  """
28
29
  ErrorResponse
29
- """ # noqa: E501
30
+ """ # noqa: E501
31
+
30
32
  success: Optional[StrictBool] = False
31
33
  message: StrictStr
32
34
  error_code: StrictStr
33
35
  details: Optional[Dict[str, Any]] = None
34
36
  timestamp: Optional[datetime] = None
35
- __properties: ClassVar[List[str]] = ["success", "message", "error_code", "details", "timestamp"]
37
+ __properties: ClassVar[List[str]] = [
38
+ "success",
39
+ "message",
40
+ "error_code",
41
+ "details",
42
+ "timestamp",
43
+ ]
36
44
 
37
45
  model_config = ConfigDict(
38
46
  populate_by_name=True,
@@ -40,7 +48,6 @@ class ErrorResponse(BaseModel):
40
48
  protected_namespaces=(),
41
49
  )
42
50
 
43
-
44
51
  def to_str(self) -> str:
45
52
  """Returns the string representation of the model using alias"""
46
53
  return pprint.pformat(self.model_dump(by_alias=True))
@@ -65,8 +72,7 @@ class ErrorResponse(BaseModel):
65
72
  were set at model initialization. Other fields with value `None`
66
73
  are ignored.
67
74
  """
68
- excluded_fields: Set[str] = set([
69
- ])
75
+ excluded_fields: Set[str] = set([])
70
76
 
71
77
  _dict = self.model_dump(
72
78
  by_alias=True,
@@ -76,7 +82,7 @@ class ErrorResponse(BaseModel):
76
82
  # set to None if details (nullable) is None
77
83
  # and model_fields_set contains the field
78
84
  if self.details is None and "details" in self.model_fields_set:
79
- _dict['details'] = None
85
+ _dict["details"] = None
80
86
 
81
87
  return _dict
82
88
 
@@ -89,13 +95,15 @@ class ErrorResponse(BaseModel):
89
95
  if not isinstance(obj, dict):
90
96
  return cls.model_validate(obj)
91
97
 
92
- _obj = cls.model_validate({
93
- "success": obj.get("success") if obj.get("success") is not None else False,
94
- "message": obj.get("message"),
95
- "error_code": obj.get("error_code"),
96
- "details": obj.get("details"),
97
- "timestamp": obj.get("timestamp")
98
- })
98
+ _obj = cls.model_validate(
99
+ {
100
+ "success": (
101
+ obj.get("success") if obj.get("success") is not None else False
102
+ ),
103
+ "message": obj.get("message"),
104
+ "error_code": obj.get("error_code"),
105
+ "details": obj.get("details"),
106
+ "timestamp": obj.get("timestamp"),
107
+ }
108
+ )
99
109
  return _obj
100
-
101
-
@@ -22,10 +22,12 @@ from typing import Any, ClassVar, Dict, List
22
22
  from typing import Optional, Set
23
23
  from typing_extensions import Self
24
24
 
25
+
25
26
  class Exchange(BaseModel):
26
27
  """
27
28
  Exchange
28
- """ # noqa: E501
29
+ """ # noqa: E501
30
+
29
31
  value: StrictStr
30
32
  name: StrictStr
31
33
  desc: StrictStr
@@ -37,7 +39,6 @@ class Exchange(BaseModel):
37
39
  protected_namespaces=(),
38
40
  )
39
41
 
40
-
41
42
  def to_str(self) -> str:
42
43
  """Returns the string representation of the model using alias"""
43
44
  return pprint.pformat(self.model_dump(by_alias=True))
@@ -62,8 +63,7 @@ class Exchange(BaseModel):
62
63
  were set at model initialization. Other fields with value `None`
63
64
  are ignored.
64
65
  """
65
- excluded_fields: Set[str] = set([
66
- ])
66
+ excluded_fields: Set[str] = set([])
67
67
 
68
68
  _dict = self.model_dump(
69
69
  by_alias=True,
@@ -81,11 +81,11 @@ class Exchange(BaseModel):
81
81
  if not isinstance(obj, dict):
82
82
  return cls.model_validate(obj)
83
83
 
84
- _obj = cls.model_validate({
85
- "value": obj.get("value"),
86
- "name": obj.get("name"),
87
- "desc": obj.get("desc")
88
- })
84
+ _obj = cls.model_validate(
85
+ {
86
+ "value": obj.get("value"),
87
+ "name": obj.get("name"),
88
+ "desc": obj.get("desc"),
89
+ }
90
+ )
89
91
  return _obj
90
-
91
-
@@ -23,10 +23,12 @@ from typing import Any, ClassVar, Dict, List, Union
23
23
  from typing import Optional, Set
24
24
  from typing_extensions import Self
25
25
 
26
+
26
27
  class FundingRateResponse(BaseModel):
27
28
  """
28
29
  FundingRateResponse
29
- """ # noqa: E501
30
+ """ # noqa: E501
31
+
30
32
  symbol: StrictStr
31
33
  timestamp: datetime
32
34
  funding_rate: Union[StrictFloat, StrictInt]
@@ -38,7 +40,6 @@ class FundingRateResponse(BaseModel):
38
40
  protected_namespaces=(),
39
41
  )
40
42
 
41
-
42
43
  def to_str(self) -> str:
43
44
  """Returns the string representation of the model using alias"""
44
45
  return pprint.pformat(self.model_dump(by_alias=True))
@@ -63,8 +64,7 @@ class FundingRateResponse(BaseModel):
63
64
  were set at model initialization. Other fields with value `None`
64
65
  are ignored.
65
66
  """
66
- excluded_fields: Set[str] = set([
67
- ])
67
+ excluded_fields: Set[str] = set([])
68
68
 
69
69
  _dict = self.model_dump(
70
70
  by_alias=True,
@@ -82,11 +82,11 @@ class FundingRateResponse(BaseModel):
82
82
  if not isinstance(obj, dict):
83
83
  return cls.model_validate(obj)
84
84
 
85
- _obj = cls.model_validate({
86
- "symbol": obj.get("symbol"),
87
- "timestamp": obj.get("timestamp"),
88
- "funding_rate": obj.get("funding_rate")
89
- })
85
+ _obj = cls.model_validate(
86
+ {
87
+ "symbol": obj.get("symbol"),
88
+ "timestamp": obj.get("timestamp"),
89
+ "funding_rate": obj.get("funding_rate"),
90
+ }
91
+ )
90
92
  return _obj
91
-
92
-
@@ -22,12 +22,14 @@ from typing import Any, ClassVar, Dict, List, Optional
22
22
  from typing import Optional, Set
23
23
  from typing_extensions import Self
24
24
 
25
+
25
26
  class HealthCheckResponse(BaseModel):
26
27
  """
27
28
  HealthCheckResponse
28
- """ # noqa: E501
29
- status: Optional[StrictStr] = 'ok'
30
- version: Optional[StrictStr] = '1.0.0'
29
+ """ # noqa: E501
30
+
31
+ status: Optional[StrictStr] = "ok"
32
+ version: Optional[StrictStr] = "1.0.0"
31
33
  __properties: ClassVar[List[str]] = ["status", "version"]
32
34
 
33
35
  model_config = ConfigDict(
@@ -36,7 +38,6 @@ class HealthCheckResponse(BaseModel):
36
38
  protected_namespaces=(),
37
39
  )
38
40
 
39
-
40
41
  def to_str(self) -> str:
41
42
  """Returns the string representation of the model using alias"""
42
43
  return pprint.pformat(self.model_dump(by_alias=True))
@@ -61,8 +62,7 @@ class HealthCheckResponse(BaseModel):
61
62
  were set at model initialization. Other fields with value `None`
62
63
  are ignored.
63
64
  """
64
- excluded_fields: Set[str] = set([
65
- ])
65
+ excluded_fields: Set[str] = set([])
66
66
 
67
67
  _dict = self.model_dump(
68
68
  by_alias=True,
@@ -80,10 +80,12 @@ class HealthCheckResponse(BaseModel):
80
80
  if not isinstance(obj, dict):
81
81
  return cls.model_validate(obj)
82
82
 
83
- _obj = cls.model_validate({
84
- "status": obj.get("status") if obj.get("status") is not None else 'ok',
85
- "version": obj.get("version") if obj.get("version") is not None else '1.0.0'
86
- })
83
+ _obj = cls.model_validate(
84
+ {
85
+ "status": obj.get("status") if obj.get("status") is not None else "ok",
86
+ "version": (
87
+ obj.get("version") if obj.get("version") is not None else "1.0.0"
88
+ ),
89
+ }
90
+ )
87
91
  return _obj
88
-
89
-
@@ -22,11 +22,13 @@ from typing import Any, ClassVar, Dict, List, Optional
22
22
  from typing import Optional, Set
23
23
  from typing_extensions import Self
24
24
 
25
+
25
26
  class HistoryErrorResponse(BaseModel):
26
27
  """
27
28
  HistoryErrorResponse
28
- """ # noqa: E501
29
- s: Optional[StrictStr] = 'error'
29
+ """ # noqa: E501
30
+
31
+ s: Optional[StrictStr] = "error"
30
32
  errmsg: StrictStr
31
33
  __properties: ClassVar[List[str]] = ["s", "errmsg"]
32
34
 
@@ -36,7 +38,6 @@ class HistoryErrorResponse(BaseModel):
36
38
  protected_namespaces=(),
37
39
  )
38
40
 
39
-
40
41
  def to_str(self) -> str:
41
42
  """Returns the string representation of the model using alias"""
42
43
  return pprint.pformat(self.model_dump(by_alias=True))
@@ -61,8 +62,7 @@ class HistoryErrorResponse(BaseModel):
61
62
  were set at model initialization. Other fields with value `None`
62
63
  are ignored.
63
64
  """
64
- excluded_fields: Set[str] = set([
65
- ])
65
+ excluded_fields: Set[str] = set([])
66
66
 
67
67
  _dict = self.model_dump(
68
68
  by_alias=True,
@@ -80,10 +80,10 @@ class HistoryErrorResponse(BaseModel):
80
80
  if not isinstance(obj, dict):
81
81
  return cls.model_validate(obj)
82
82
 
83
- _obj = cls.model_validate({
84
- "s": obj.get("s") if obj.get("s") is not None else 'error',
85
- "errmsg": obj.get("errmsg")
86
- })
83
+ _obj = cls.model_validate(
84
+ {
85
+ "s": obj.get("s") if obj.get("s") is not None else "error",
86
+ "errmsg": obj.get("errmsg"),
87
+ }
88
+ )
87
89
  return _obj
88
-
89
-
@@ -22,11 +22,13 @@ from typing import Any, ClassVar, Dict, List, Optional, Union
22
22
  from typing import Optional, Set
23
23
  from typing_extensions import Self
24
24
 
25
+
25
26
  class HistoryNoDataResponse(BaseModel):
26
27
  """
27
28
  HistoryNoDataResponse
28
- """ # noqa: E501
29
- s: Optional[StrictStr] = 'no_data'
29
+ """ # noqa: E501
30
+
31
+ s: Optional[StrictStr] = "no_data"
30
32
  t: Optional[List[StrictInt]] = None
31
33
  o: Optional[List[Union[StrictFloat, StrictInt]]] = None
32
34
  h: Optional[List[Union[StrictFloat, StrictInt]]] = None
@@ -41,7 +43,6 @@ class HistoryNoDataResponse(BaseModel):
41
43
  protected_namespaces=(),
42
44
  )
43
45
 
44
-
45
46
  def to_str(self) -> str:
46
47
  """Returns the string representation of the model using alias"""
47
48
  return pprint.pformat(self.model_dump(by_alias=True))
@@ -66,8 +67,7 @@ class HistoryNoDataResponse(BaseModel):
66
67
  were set at model initialization. Other fields with value `None`
67
68
  are ignored.
68
69
  """
69
- excluded_fields: Set[str] = set([
70
- ])
70
+ excluded_fields: Set[str] = set([])
71
71
 
72
72
  _dict = self.model_dump(
73
73
  by_alias=True,
@@ -85,15 +85,15 @@ class HistoryNoDataResponse(BaseModel):
85
85
  if not isinstance(obj, dict):
86
86
  return cls.model_validate(obj)
87
87
 
88
- _obj = cls.model_validate({
89
- "s": obj.get("s") if obj.get("s") is not None else 'no_data',
90
- "t": obj.get("t"),
91
- "o": obj.get("o"),
92
- "h": obj.get("h"),
93
- "l": obj.get("l"),
94
- "c": obj.get("c"),
95
- "v": obj.get("v")
96
- })
88
+ _obj = cls.model_validate(
89
+ {
90
+ "s": obj.get("s") if obj.get("s") is not None else "no_data",
91
+ "t": obj.get("t"),
92
+ "o": obj.get("o"),
93
+ "h": obj.get("h"),
94
+ "l": obj.get("l"),
95
+ "c": obj.get("c"),
96
+ "v": obj.get("v"),
97
+ }
98
+ )
97
99
  return _obj
98
-
99
-
@@ -22,11 +22,13 @@ from typing import Any, ClassVar, Dict, List, Optional, Union
22
22
  from typing import Optional, Set
23
23
  from typing_extensions import Self
24
24
 
25
+
25
26
  class HistorySuccessResponse(BaseModel):
26
27
  """
27
28
  HistorySuccessResponse
28
- """ # noqa: E501
29
- s: Optional[StrictStr] = 'ok'
29
+ """ # noqa: E501
30
+
31
+ s: Optional[StrictStr] = "ok"
30
32
  t: List[StrictInt]
31
33
  o: List[Union[StrictFloat, StrictInt]]
32
34
  h: List[Union[StrictFloat, StrictInt]]
@@ -41,7 +43,6 @@ class HistorySuccessResponse(BaseModel):
41
43
  protected_namespaces=(),
42
44
  )
43
45
 
44
-
45
46
  def to_str(self) -> str:
46
47
  """Returns the string representation of the model using alias"""
47
48
  return pprint.pformat(self.model_dump(by_alias=True))
@@ -66,8 +67,7 @@ class HistorySuccessResponse(BaseModel):
66
67
  were set at model initialization. Other fields with value `None`
67
68
  are ignored.
68
69
  """
69
- excluded_fields: Set[str] = set([
70
- ])
70
+ excluded_fields: Set[str] = set([])
71
71
 
72
72
  _dict = self.model_dump(
73
73
  by_alias=True,
@@ -85,15 +85,15 @@ class HistorySuccessResponse(BaseModel):
85
85
  if not isinstance(obj, dict):
86
86
  return cls.model_validate(obj)
87
87
 
88
- _obj = cls.model_validate({
89
- "s": obj.get("s") if obj.get("s") is not None else 'ok',
90
- "t": obj.get("t"),
91
- "o": obj.get("o"),
92
- "h": obj.get("h"),
93
- "l": obj.get("l"),
94
- "c": obj.get("c"),
95
- "v": obj.get("v")
96
- })
88
+ _obj = cls.model_validate(
89
+ {
90
+ "s": obj.get("s") if obj.get("s") is not None else "ok",
91
+ "t": obj.get("t"),
92
+ "o": obj.get("o"),
93
+ "h": obj.get("h"),
94
+ "l": obj.get("l"),
95
+ "c": obj.get("c"),
96
+ "v": obj.get("v"),
97
+ }
98
+ )
97
99
  return _obj
98
-
99
-
@@ -23,10 +23,12 @@ from crypticorn.klines.client.models.validation_error import ValidationError
23
23
  from typing import Optional, Set
24
24
  from typing_extensions import Self
25
25
 
26
+
26
27
  class HTTPValidationError(BaseModel):
27
28
  """
28
29
  HTTPValidationError
29
- """ # noqa: E501
30
+ """ # noqa: E501
31
+
30
32
  detail: Optional[List[ValidationError]] = None
31
33
  __properties: ClassVar[List[str]] = ["detail"]
32
34
 
@@ -36,7 +38,6 @@ class HTTPValidationError(BaseModel):
36
38
  protected_namespaces=(),
37
39
  )
38
40
 
39
-
40
41
  def to_str(self) -> str:
41
42
  """Returns the string representation of the model using alias"""
42
43
  return pprint.pformat(self.model_dump(by_alias=True))
@@ -61,8 +62,7 @@ class HTTPValidationError(BaseModel):
61
62
  were set at model initialization. Other fields with value `None`
62
63
  are ignored.
63
64
  """
64
- excluded_fields: Set[str] = set([
65
- ])
65
+ excluded_fields: Set[str] = set([])
66
66
 
67
67
  _dict = self.model_dump(
68
68
  by_alias=True,
@@ -75,7 +75,7 @@ class HTTPValidationError(BaseModel):
75
75
  for _item_detail in self.detail:
76
76
  if _item_detail:
77
77
  _items.append(_item_detail.to_dict())
78
- _dict['detail'] = _items
78
+ _dict["detail"] = _items
79
79
  return _dict
80
80
 
81
81
  @classmethod
@@ -87,9 +87,13 @@ class HTTPValidationError(BaseModel):
87
87
  if not isinstance(obj, dict):
88
88
  return cls.model_validate(obj)
89
89
 
90
- _obj = cls.model_validate({
91
- "detail": [ValidationError.from_dict(_item) for _item in obj["detail"]] if obj.get("detail") is not None else None
92
- })
90
+ _obj = cls.model_validate(
91
+ {
92
+ "detail": (
93
+ [ValidationError.from_dict(_item) for _item in obj["detail"]]
94
+ if obj.get("detail") is not None
95
+ else None
96
+ )
97
+ }
98
+ )
93
99
  return _obj
94
-
95
-
@@ -26,12 +26,10 @@ class Market(str, Enum):
26
26
  """
27
27
  allowed enum values
28
28
  """
29
- SPOT = 'spot'
30
- FUTURES = 'futures'
29
+ SPOT = "spot"
30
+ FUTURES = "futures"
31
31
 
32
32
  @classmethod
33
33
  def from_json(cls, json_str: str) -> Self:
34
34
  """Create an instance of Market from a JSON string"""
35
35
  return cls(json.loads(json_str))
36
-
37
-
@@ -23,17 +23,26 @@ from typing import Any, ClassVar, Dict, List, Union
23
23
  from typing import Optional, Set
24
24
  from typing_extensions import Self
25
25
 
26
+
26
27
  class OHLCVResponse(BaseModel):
27
28
  """
28
29
  OHLCVResponse
29
- """ # noqa: E501
30
+ """ # noqa: E501
31
+
30
32
  timestamp: List[datetime]
31
33
  open: List[Union[StrictFloat, StrictInt]]
32
34
  high: List[Union[StrictFloat, StrictInt]]
33
35
  low: List[Union[StrictFloat, StrictInt]]
34
36
  close: List[Union[StrictFloat, StrictInt]]
35
37
  volume: List[Union[StrictFloat, StrictInt]]
36
- __properties: ClassVar[List[str]] = ["timestamp", "open", "high", "low", "close", "volume"]
38
+ __properties: ClassVar[List[str]] = [
39
+ "timestamp",
40
+ "open",
41
+ "high",
42
+ "low",
43
+ "close",
44
+ "volume",
45
+ ]
37
46
 
38
47
  model_config = ConfigDict(
39
48
  populate_by_name=True,
@@ -41,7 +50,6 @@ class OHLCVResponse(BaseModel):
41
50
  protected_namespaces=(),
42
51
  )
43
52
 
44
-
45
53
  def to_str(self) -> str:
46
54
  """Returns the string representation of the model using alias"""
47
55
  return pprint.pformat(self.model_dump(by_alias=True))
@@ -66,8 +74,7 @@ class OHLCVResponse(BaseModel):
66
74
  were set at model initialization. Other fields with value `None`
67
75
  are ignored.
68
76
  """
69
- excluded_fields: Set[str] = set([
70
- ])
77
+ excluded_fields: Set[str] = set([])
71
78
 
72
79
  _dict = self.model_dump(
73
80
  by_alias=True,
@@ -85,14 +92,14 @@ class OHLCVResponse(BaseModel):
85
92
  if not isinstance(obj, dict):
86
93
  return cls.model_validate(obj)
87
94
 
88
- _obj = cls.model_validate({
89
- "timestamp": obj.get("timestamp"),
90
- "open": obj.get("open"),
91
- "high": obj.get("high"),
92
- "low": obj.get("low"),
93
- "close": obj.get("close"),
94
- "volume": obj.get("volume")
95
- })
95
+ _obj = cls.model_validate(
96
+ {
97
+ "timestamp": obj.get("timestamp"),
98
+ "open": obj.get("open"),
99
+ "high": obj.get("high"),
100
+ "low": obj.get("low"),
101
+ "close": obj.get("close"),
102
+ "volume": obj.get("volume"),
103
+ }
104
+ )
96
105
  return _obj
97
-
98
-
@@ -26,15 +26,13 @@ class Resolution(str, Enum):
26
26
  """
27
27
  allowed enum values
28
28
  """
29
- ENUM_15 = '15'
30
- ENUM_30 = '30'
31
- ENUM_60 = '60'
32
- ENUM_240 = '240'
33
- ENUM_1D = '1D'
29
+ ENUM_15 = "15"
30
+ ENUM_30 = "30"
31
+ ENUM_60 = "60"
32
+ ENUM_240 = "240"
33
+ ENUM_1D = "1D"
34
34
 
35
35
  @classmethod
36
36
  def from_json(cls, json_str: str) -> Self:
37
37
  """Create an instance of Resolution from a JSON string"""
38
38
  return cls(json.loads(json_str))
39
-
40
-