crypticorn 2.5.1__py3-none-any.whl → 2.5.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (191) hide show
  1. crypticorn/cli/init.py +3 -0
  2. crypticorn/common/__init__.py +1 -0
  3. crypticorn/common/enums.py +3 -1
  4. crypticorn/common/errors.py +42 -21
  5. crypticorn/common/mixins.py +20 -0
  6. crypticorn/common/scopes.py +4 -20
  7. crypticorn/common/status_router.py +44 -0
  8. crypticorn/common/utils.py +13 -14
  9. crypticorn/hive/client/__init__.py +1 -5
  10. crypticorn/hive/client/api/data_api.py +1 -33
  11. crypticorn/hive/client/api/models_api.py +8 -104
  12. crypticorn/hive/client/api/status_api.py +481 -9
  13. crypticorn/hive/client/configuration.py +12 -4
  14. crypticorn/hive/client/models/__init__.py +1 -5
  15. crypticorn/hive/client/models/coins.py +0 -1
  16. crypticorn/hive/client/models/data_version.py +0 -1
  17. crypticorn/{metrics/client/models/error_response.py → hive/client/models/exception_detail.py} +26 -21
  18. crypticorn/hive/client/rest.py +4 -1
  19. crypticorn/klines/client/__init__.py +0 -5
  20. crypticorn/klines/client/api/change_in_timeframe_api.py +8 -9
  21. crypticorn/klines/client/api/ohlcv_data_api.py +7 -8
  22. crypticorn/klines/client/api/status_api.py +481 -6
  23. crypticorn/klines/client/api/symbols_api.py +7 -8
  24. crypticorn/klines/client/api/udf_api.py +0 -227
  25. crypticorn/klines/client/models/__init__.py +0 -5
  26. crypticorn/klines/client/models/exception_detail.py +3 -6
  27. crypticorn/klines/client/models/search_symbol.py +4 -3
  28. crypticorn/klines/client/models/udf_config.py +1 -2
  29. crypticorn/metrics/client/__init__.py +1 -6
  30. crypticorn/metrics/client/api/exchanges_api.py +29 -31
  31. crypticorn/metrics/client/api/indicators_api.py +15 -16
  32. crypticorn/metrics/client/api/logs_api.py +1 -1
  33. crypticorn/metrics/client/api/marketcap_api.py +15 -16
  34. crypticorn/metrics/client/api/markets_api.py +15 -16
  35. crypticorn/metrics/client/api/status_api.py +477 -2
  36. crypticorn/metrics/client/api/tokens_api.py +1 -1
  37. crypticorn/metrics/client/api_client.py +1 -1
  38. crypticorn/metrics/client/configuration.py +3 -5
  39. crypticorn/metrics/client/exceptions.py +1 -1
  40. crypticorn/metrics/client/models/__init__.py +1 -6
  41. crypticorn/metrics/client/models/exception_detail.py +4 -7
  42. crypticorn/metrics/client/models/severity.py +1 -1
  43. crypticorn/metrics/client/models/time_interval.py +1 -1
  44. crypticorn/metrics/client/models/trading_status.py +1 -1
  45. crypticorn/metrics/client/rest.py +1 -1
  46. crypticorn/pay/client/__init__.py +3 -8
  47. crypticorn/pay/client/api/now_payments_api.py +14 -17
  48. crypticorn/pay/client/api/payments_api.py +2 -11
  49. crypticorn/pay/client/api/products_api.py +2 -11
  50. crypticorn/pay/client/api/status_api.py +483 -8
  51. crypticorn/pay/client/api_client.py +2 -2
  52. crypticorn/pay/client/configuration.py +3 -3
  53. crypticorn/pay/client/exceptions.py +2 -2
  54. crypticorn/pay/client/models/__init__.py +3 -8
  55. crypticorn/{metrics/client/models/base_response_dict.py → pay/client/models/exception_detail.py} +28 -20
  56. crypticorn/pay/client/models/now_create_invoice_req.py +2 -2
  57. crypticorn/pay/client/models/now_create_invoice_res.py +2 -2
  58. crypticorn/pay/client/models/payment.py +2 -2
  59. crypticorn/pay/client/models/payment_status.py +2 -2
  60. crypticorn/pay/client/models/product_create.py +2 -2
  61. crypticorn/pay/client/models/product_read.py +2 -2
  62. crypticorn/pay/client/models/product_sub_read.py +2 -2
  63. crypticorn/pay/client/models/product_update.py +2 -2
  64. crypticorn/pay/client/models/scope.py +2 -2
  65. crypticorn/pay/client/models/services.py +2 -2
  66. crypticorn/pay/client/rest.py +2 -2
  67. crypticorn/trade/client/__init__.py +4 -9
  68. crypticorn/trade/client/api/api_keys_api.py +5 -20
  69. crypticorn/trade/client/api/bots_api.py +7 -19
  70. crypticorn/trade/client/api/exchanges_api.py +8 -8
  71. crypticorn/trade/client/api/futures_trading_panel_api.py +10 -22
  72. crypticorn/trade/client/api/notifications_api.py +10 -25
  73. crypticorn/trade/client/api/orders_api.py +2 -5
  74. crypticorn/trade/client/api/status_api.py +483 -8
  75. crypticorn/trade/client/api/strategies_api.py +5 -17
  76. crypticorn/trade/client/api/trading_actions_api.py +18 -26
  77. crypticorn/trade/client/api_client.py +2 -2
  78. crypticorn/trade/client/configuration.py +5 -5
  79. crypticorn/trade/client/exceptions.py +2 -2
  80. crypticorn/trade/client/models/__init__.py +4 -9
  81. crypticorn/trade/client/models/action_model.py +3 -4
  82. crypticorn/trade/client/models/bot_model.py +2 -2
  83. crypticorn/trade/client/models/bot_status.py +2 -2
  84. crypticorn/{klines/client/models/error_response.py → trade/client/models/exception_detail.py} +26 -21
  85. crypticorn/trade/client/models/exchange_key_model.py +4 -13
  86. crypticorn/trade/client/models/execution_ids.py +2 -2
  87. crypticorn/trade/client/models/futures_balance.py +2 -2
  88. crypticorn/trade/client/models/futures_trading_action.py +3 -4
  89. crypticorn/trade/client/models/margin_mode.py +2 -2
  90. crypticorn/trade/client/models/notification_model.py +2 -2
  91. crypticorn/trade/client/models/order_model.py +6 -16
  92. crypticorn/trade/client/models/order_status.py +2 -2
  93. crypticorn/trade/client/models/post_futures_action.py +2 -2
  94. crypticorn/trade/client/models/spot_trading_action.py +3 -4
  95. crypticorn/trade/client/models/strategy_exchange_info.py +4 -5
  96. crypticorn/trade/client/models/strategy_model_input.py +3 -4
  97. crypticorn/trade/client/models/strategy_model_output.py +3 -4
  98. crypticorn/trade/client/models/tpsl.py +5 -3
  99. crypticorn/trade/client/models/trading_action_type.py +2 -2
  100. crypticorn/trade/client/rest.py +2 -2
  101. {crypticorn-2.5.1.dist-info → crypticorn-2.5.3.dist-info}/METADATA +1 -1
  102. crypticorn-2.5.3.dist-info/RECORD +223 -0
  103. crypticorn/hive/client/models/http_validation_error.py +0 -99
  104. crypticorn/hive/client/models/validation_error.py +0 -105
  105. crypticorn/hive/client/models/validation_error_loc_inner.py +0 -159
  106. crypticorn/klines/client/api/health_check_api.py +0 -265
  107. crypticorn/klines/client/models/api_error_identifier.py +0 -108
  108. crypticorn/klines/client/models/api_error_level.py +0 -37
  109. crypticorn/klines/client/models/api_error_type.py +0 -37
  110. crypticorn/klines/client/models/base_response_health_check_response.py +0 -114
  111. crypticorn/klines/client/models/base_response_list_change_in_timeframe_response.py +0 -123
  112. crypticorn/klines/client/models/base_response_list_funding_rate_response.py +0 -118
  113. crypticorn/klines/client/models/base_response_list_str.py +0 -106
  114. crypticorn/klines/client/models/base_response_ohlcv_response.py +0 -114
  115. crypticorn/klines/client/models/change_in_timeframe_response.py +0 -86
  116. crypticorn/klines/client/models/exchange.py +0 -91
  117. crypticorn/klines/client/models/funding_rate_response.py +0 -92
  118. crypticorn/klines/client/models/health_check_response.py +0 -91
  119. crypticorn/klines/client/models/history_error_response.py +0 -89
  120. crypticorn/klines/client/models/history_no_data_response.py +0 -99
  121. crypticorn/klines/client/models/history_success_response.py +0 -99
  122. crypticorn/klines/client/models/http_validation_error.py +0 -99
  123. crypticorn/klines/client/models/internal_exchange.py +0 -39
  124. crypticorn/klines/client/models/market.py +0 -35
  125. crypticorn/klines/client/models/market_type.py +0 -35
  126. crypticorn/klines/client/models/ohlcv_response.py +0 -105
  127. crypticorn/klines/client/models/response_get_history_udf_history_get.py +0 -198
  128. crypticorn/klines/client/models/response_get_udf_history.py +0 -198
  129. crypticorn/klines/client/models/search_symbol_response.py +0 -104
  130. crypticorn/klines/client/models/symbol_group_response.py +0 -83
  131. crypticorn/klines/client/models/symbol_info_response.py +0 -131
  132. crypticorn/klines/client/models/udf_config_response.py +0 -160
  133. crypticorn/klines/client/models/validation_error.py +0 -105
  134. crypticorn/klines/client/models/validation_error_loc_inner.py +0 -159
  135. crypticorn/metrics/client/api/health_check_api.py +0 -265
  136. crypticorn/metrics/client/models/api_error_identifier.py +0 -108
  137. crypticorn/metrics/client/models/api_error_level.py +0 -37
  138. crypticorn/metrics/client/models/api_error_type.py +0 -37
  139. crypticorn/metrics/client/models/base_response_health_check_response.py +0 -114
  140. crypticorn/metrics/client/models/base_response_list_dict.py +0 -106
  141. crypticorn/metrics/client/models/base_response_list_exchange_mapping.py +0 -118
  142. crypticorn/metrics/client/models/base_response_list_str.py +0 -106
  143. crypticorn/metrics/client/models/exchange_mapping.py +0 -134
  144. crypticorn/metrics/client/models/health_check_response.py +0 -91
  145. crypticorn/metrics/client/models/http_validation_error.py +0 -99
  146. crypticorn/metrics/client/models/internal_exchange.py +0 -39
  147. crypticorn/metrics/client/models/market.py +0 -35
  148. crypticorn/metrics/client/models/market_type.py +0 -35
  149. crypticorn/metrics/client/models/validation_error.py +0 -105
  150. crypticorn/metrics/client/models/validation_error_loc_inner.py +0 -159
  151. crypticorn/pay/client/models/api_status_res.py +0 -83
  152. crypticorn/pay/client/models/body_create_now_invoice.py +0 -98
  153. crypticorn/pay/client/models/body_create_product.py +0 -98
  154. crypticorn/pay/client/models/body_get_products.py +0 -87
  155. crypticorn/pay/client/models/body_handle_now_webhook.py +0 -98
  156. crypticorn/pay/client/models/body_update_product.py +0 -98
  157. crypticorn/pay/client/models/combined_payment_history.py +0 -101
  158. crypticorn/pay/client/models/create_invoice_req.py +0 -188
  159. crypticorn/pay/client/models/create_invoice_res.py +0 -188
  160. crypticorn/pay/client/models/currency.py +0 -165
  161. crypticorn/pay/client/models/estimate_price_req.py +0 -91
  162. crypticorn/pay/client/models/estimate_price_res.py +0 -102
  163. crypticorn/pay/client/models/get_currencies_res.py +0 -99
  164. crypticorn/pay/client/models/get_payment_status_res.py +0 -222
  165. crypticorn/pay/client/models/get_payments_list_res.py +0 -109
  166. crypticorn/pay/client/models/http_validation_error.py +0 -99
  167. crypticorn/pay/client/models/min_amount_req.py +0 -124
  168. crypticorn/pay/client/models/min_amount_res.py +0 -105
  169. crypticorn/pay/client/models/now_api_status_res.py +0 -83
  170. crypticorn/pay/client/models/now_fee_structure.py +0 -104
  171. crypticorn/pay/client/models/now_payment_model.py +0 -124
  172. crypticorn/pay/client/models/now_payment_status.py +0 -42
  173. crypticorn/pay/client/models/now_webhook_payload.py +0 -181
  174. crypticorn/pay/client/models/partial_product_update_model.py +0 -150
  175. crypticorn/pay/client/models/product.py +0 -87
  176. crypticorn/pay/client/models/product_model.py +0 -128
  177. crypticorn/pay/client/models/product_subs_model.py +0 -108
  178. crypticorn/pay/client/models/product_update_model.py +0 -150
  179. crypticorn/pay/client/models/unified_payment_model.py +0 -112
  180. crypticorn/pay/client/models/validation_error.py +0 -105
  181. crypticorn/pay/client/models/validation_error_loc_inner.py +0 -159
  182. crypticorn/trade/client/models/api_key_model.py +0 -156
  183. crypticorn/trade/client/models/exchange.py +0 -35
  184. crypticorn/trade/client/models/http_validation_error.py +0 -99
  185. crypticorn/trade/client/models/market_type.py +0 -35
  186. crypticorn/trade/client/models/validation_error.py +0 -105
  187. crypticorn/trade/client/models/validation_error_loc_inner.py +0 -159
  188. crypticorn-2.5.1.dist-info/RECORD +0 -307
  189. {crypticorn-2.5.1.dist-info → crypticorn-2.5.3.dist-info}/WHEEL +0 -0
  190. {crypticorn-2.5.1.dist-info → crypticorn-2.5.3.dist-info}/entry_points.txt +0 -0
  191. {crypticorn-2.5.1.dist-info → crypticorn-2.5.3.dist-info}/top_level.txt +0 -0
@@ -1,9 +1,9 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- Marketcap Service API
4
+ Payment 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 accepting payments and storing subscriptions
7
7
 
8
8
  The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
@@ -17,23 +17,31 @@ import pprint
17
17
  import re # noqa: F401
18
18
  import json
19
19
 
20
- from datetime import datetime
21
- from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
20
+ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
22
21
  from typing import Any, ClassVar, Dict, List, Optional
23
22
  from typing import Optional, Set
24
23
  from typing_extensions import Self
25
24
 
26
25
 
27
- class BaseResponseDict(BaseModel):
26
+ class ExceptionDetail(BaseModel):
28
27
  """
29
- BaseResponseDict
28
+ This is the detail of the exception. It is used to enrich the exception with additional information by unwrapping the ApiError into its components.
30
29
  """ # noqa: E501
31
30
 
32
- success: Optional[StrictBool] = True
33
31
  message: Optional[StrictStr] = None
34
- data: Optional[Dict[str, Any]] = None
35
- timestamp: Optional[datetime] = None
36
- __properties: ClassVar[List[str]] = ["success", "message", "data", "timestamp"]
32
+ code: StrictStr = Field(description="API error identifiers")
33
+ type: StrictStr = Field(description="Type of API error")
34
+ level: StrictStr = Field(description="API error levels")
35
+ status_code: StrictInt = Field(description="The HTTP status code")
36
+ details: Optional[Any] = None
37
+ __properties: ClassVar[List[str]] = [
38
+ "message",
39
+ "code",
40
+ "type",
41
+ "level",
42
+ "status_code",
43
+ "details",
44
+ ]
37
45
 
38
46
  model_config = ConfigDict(
39
47
  populate_by_name=True,
@@ -52,7 +60,7 @@ class BaseResponseDict(BaseModel):
52
60
 
53
61
  @classmethod
54
62
  def from_json(cls, json_str: str) -> Optional[Self]:
55
- """Create an instance of BaseResponseDict from a JSON string"""
63
+ """Create an instance of ExceptionDetail from a JSON string"""
56
64
  return cls.from_dict(json.loads(json_str))
57
65
 
58
66
  def to_dict(self) -> Dict[str, Any]:
@@ -77,16 +85,16 @@ class BaseResponseDict(BaseModel):
77
85
  if self.message is None and "message" in self.model_fields_set:
78
86
  _dict["message"] = None
79
87
 
80
- # set to None if data (nullable) is None
88
+ # set to None if details (nullable) is None
81
89
  # and model_fields_set contains the field
82
- if self.data is None and "data" in self.model_fields_set:
83
- _dict["data"] = None
90
+ if self.details is None and "details" in self.model_fields_set:
91
+ _dict["details"] = None
84
92
 
85
93
  return _dict
86
94
 
87
95
  @classmethod
88
96
  def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
89
- """Create an instance of BaseResponseDict from a dict"""
97
+ """Create an instance of ExceptionDetail from a dict"""
90
98
  if obj is None:
91
99
  return None
92
100
 
@@ -95,12 +103,12 @@ class BaseResponseDict(BaseModel):
95
103
 
96
104
  _obj = cls.model_validate(
97
105
  {
98
- "success": (
99
- obj.get("success") if obj.get("success") is not None else True
100
- ),
101
106
  "message": obj.get("message"),
102
- "data": obj.get("data"),
103
- "timestamp": obj.get("timestamp"),
107
+ "code": obj.get("code"),
108
+ "type": obj.get("type"),
109
+ "level": obj.get("level"),
110
+ "status_code": obj.get("status_code"),
111
+ "details": obj.get("details"),
104
112
  }
105
113
  )
106
114
  return _obj
@@ -3,9 +3,9 @@
3
3
  """
4
4
  Payment API
5
5
 
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ API for accepting payments and storing subscriptions
7
7
 
8
- The version of the OpenAPI document: 0.1.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -3,9 +3,9 @@
3
3
  """
4
4
  Payment API
5
5
 
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ API for accepting payments and storing subscriptions
7
7
 
8
- The version of the OpenAPI document: 0.1.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -3,9 +3,9 @@
3
3
  """
4
4
  Payment API
5
5
 
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ API for accepting payments and storing subscriptions
7
7
 
8
- The version of the OpenAPI document: 0.1.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -3,9 +3,9 @@
3
3
  """
4
4
  Payment API
5
5
 
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ API for accepting payments and storing subscriptions
7
7
 
8
- The version of the OpenAPI document: 0.1.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -3,9 +3,9 @@
3
3
  """
4
4
  Payment API
5
5
 
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ API for accepting payments and storing subscriptions
7
7
 
8
- The version of the OpenAPI document: 0.1.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -3,9 +3,9 @@
3
3
  """
4
4
  Payment API
5
5
 
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ API for accepting payments and storing subscriptions
7
7
 
8
- The version of the OpenAPI document: 0.1.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -3,9 +3,9 @@
3
3
  """
4
4
  Payment API
5
5
 
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ API for accepting payments and storing subscriptions
7
7
 
8
- The version of the OpenAPI document: 0.1.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -3,9 +3,9 @@
3
3
  """
4
4
  Payment API
5
5
 
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ API for accepting payments and storing subscriptions
7
7
 
8
- The version of the OpenAPI document: 0.1.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -3,9 +3,9 @@
3
3
  """
4
4
  Payment API
5
5
 
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ API for accepting payments and storing subscriptions
7
7
 
8
- The version of the OpenAPI document: 0.1.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -3,9 +3,9 @@
3
3
  """
4
4
  Payment API
5
5
 
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ API for accepting payments and storing subscriptions
7
7
 
8
- The version of the OpenAPI document: 0.1.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -3,9 +3,9 @@
3
3
  """
4
4
  Payment API
5
5
 
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ API for accepting payments and storing subscriptions
7
7
 
8
- The version of the OpenAPI document: 0.1.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -5,9 +5,9 @@
5
5
  """
6
6
  Trading API
7
7
 
8
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
8
+ API for automated trading and exchange interface
9
9
 
10
- The version of the OpenAPI document: 0.1.0
10
+ The version of the OpenAPI document: 1.0.0
11
11
  Generated by OpenAPI Generator (https://openapi-generator.tech)
12
12
 
13
13
  Do not edit the class manually.
@@ -42,24 +42,19 @@ from crypticorn.trade.client.exceptions import ApiException
42
42
  from crypticorn.trade.client.models.action_model import ActionModel
43
43
  from crypticorn.trade.client.models.bot_model import BotModel
44
44
  from crypticorn.trade.client.models.bot_status import BotStatus
45
- from crypticorn.trade.client.models.exchange import Exchange
45
+ from crypticorn.trade.client.models.exception_detail import ExceptionDetail
46
46
  from crypticorn.trade.client.models.exchange_key_model import ExchangeKeyModel
47
47
  from crypticorn.trade.client.models.execution_ids import ExecutionIds
48
48
  from crypticorn.trade.client.models.futures_balance import FuturesBalance
49
49
  from crypticorn.trade.client.models.futures_trading_action import FuturesTradingAction
50
- from crypticorn.trade.client.models.http_validation_error import HTTPValidationError
51
50
  from crypticorn.trade.client.models.margin_mode import MarginMode
52
- from crypticorn.trade.client.models.market_type import MarketType
53
51
  from crypticorn.trade.client.models.notification_model import NotificationModel
54
52
  from crypticorn.trade.client.models.order_model import OrderModel
55
53
  from crypticorn.trade.client.models.order_status import OrderStatus
56
54
  from crypticorn.trade.client.models.post_futures_action import PostFuturesAction
55
+ from crypticorn.trade.client.models.spot_trading_action import SpotTradingAction
57
56
  from crypticorn.trade.client.models.strategy_exchange_info import StrategyExchangeInfo
58
57
  from crypticorn.trade.client.models.strategy_model_input import StrategyModelInput
59
58
  from crypticorn.trade.client.models.strategy_model_output import StrategyModelOutput
60
59
  from crypticorn.trade.client.models.tpsl import TPSL
61
60
  from crypticorn.trade.client.models.trading_action_type import TradingActionType
62
- from crypticorn.trade.client.models.validation_error import ValidationError
63
- from crypticorn.trade.client.models.validation_error_loc_inner import (
64
- ValidationErrorLocInner,
65
- )
@@ -3,9 +3,9 @@
3
3
  """
4
4
  Trading API
5
5
 
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ API for automated trading and exchange interface
7
7
 
8
- The version of the OpenAPI document: 0.1.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -89,8 +89,7 @@ class APIKeysApi:
89
89
  )
90
90
 
91
91
  _response_types_map: Dict[str, Optional[str]] = {
92
- "200": "object",
93
- "422": "HTTPValidationError",
92
+ "201": "object",
94
93
  }
95
94
  response_data = await self.api_client.call_api(
96
95
  *_param, _request_timeout=_request_timeout
@@ -153,8 +152,7 @@ class APIKeysApi:
153
152
  )
154
153
 
155
154
  _response_types_map: Dict[str, Optional[str]] = {
156
- "200": "object",
157
- "422": "HTTPValidationError",
155
+ "201": "object",
158
156
  }
159
157
  response_data = await self.api_client.call_api(
160
158
  *_param, _request_timeout=_request_timeout
@@ -217,8 +215,7 @@ class APIKeysApi:
217
215
  )
218
216
 
219
217
  _response_types_map: Dict[str, Optional[str]] = {
220
- "200": "object",
221
- "422": "HTTPValidationError",
218
+ "201": "object",
222
219
  }
223
220
  response_data = await self.api_client.call_api(
224
221
  *_param, _request_timeout=_request_timeout
@@ -342,7 +339,6 @@ class APIKeysApi:
342
339
 
343
340
  _response_types_map: Dict[str, Optional[str]] = {
344
341
  "200": "object",
345
- "422": "HTTPValidationError",
346
342
  }
347
343
  response_data = await self.api_client.call_api(
348
344
  *_param, _request_timeout=_request_timeout
@@ -406,7 +402,6 @@ class APIKeysApi:
406
402
 
407
403
  _response_types_map: Dict[str, Optional[str]] = {
408
404
  "200": "object",
409
- "422": "HTTPValidationError",
410
405
  }
411
406
  response_data = await self.api_client.call_api(
412
407
  *_param, _request_timeout=_request_timeout
@@ -470,7 +465,6 @@ class APIKeysApi:
470
465
 
471
466
  _response_types_map: Dict[str, Optional[str]] = {
472
467
  "200": "object",
473
- "422": "HTTPValidationError",
474
468
  }
475
469
  response_data = await self.api_client.call_api(
476
470
  *_param, _request_timeout=_request_timeout
@@ -584,7 +578,6 @@ class APIKeysApi:
584
578
 
585
579
  _response_types_map: Dict[str, Optional[str]] = {
586
580
  "200": "ExchangeKeyModel",
587
- "422": "HTTPValidationError",
588
581
  }
589
582
  response_data = await self.api_client.call_api(
590
583
  *_param, _request_timeout=_request_timeout
@@ -648,7 +641,6 @@ class APIKeysApi:
648
641
 
649
642
  _response_types_map: Dict[str, Optional[str]] = {
650
643
  "200": "ExchangeKeyModel",
651
- "422": "HTTPValidationError",
652
644
  }
653
645
  response_data = await self.api_client.call_api(
654
646
  *_param, _request_timeout=_request_timeout
@@ -712,7 +704,6 @@ class APIKeysApi:
712
704
 
713
705
  _response_types_map: Dict[str, Optional[str]] = {
714
706
  "200": "ExchangeKeyModel",
715
- "422": "HTTPValidationError",
716
707
  }
717
708
  response_data = await self.api_client.call_api(
718
709
  *_param, _request_timeout=_request_timeout
@@ -830,7 +821,6 @@ class APIKeysApi:
830
821
 
831
822
  _response_types_map: Dict[str, Optional[str]] = {
832
823
  "200": "List[ExchangeKeyModel]",
833
- "422": "HTTPValidationError",
834
824
  }
835
825
  response_data = await self.api_client.call_api(
836
826
  *_param, _request_timeout=_request_timeout
@@ -898,7 +888,6 @@ class APIKeysApi:
898
888
 
899
889
  _response_types_map: Dict[str, Optional[str]] = {
900
890
  "200": "List[ExchangeKeyModel]",
901
- "422": "HTTPValidationError",
902
891
  }
903
892
  response_data = await self.api_client.call_api(
904
893
  *_param, _request_timeout=_request_timeout
@@ -966,7 +955,6 @@ class APIKeysApi:
966
955
 
967
956
  _response_types_map: Dict[str, Optional[str]] = {
968
957
  "200": "List[ExchangeKeyModel]",
969
- "422": "HTTPValidationError",
970
958
  }
971
959
  response_data = await self.api_client.call_api(
972
960
  *_param, _request_timeout=_request_timeout
@@ -1091,7 +1079,6 @@ class APIKeysApi:
1091
1079
 
1092
1080
  _response_types_map: Dict[str, Optional[str]] = {
1093
1081
  "200": "object",
1094
- "422": "HTTPValidationError",
1095
1082
  }
1096
1083
  response_data = await self.api_client.call_api(
1097
1084
  *_param, _request_timeout=_request_timeout
@@ -1159,7 +1146,6 @@ class APIKeysApi:
1159
1146
 
1160
1147
  _response_types_map: Dict[str, Optional[str]] = {
1161
1148
  "200": "object",
1162
- "422": "HTTPValidationError",
1163
1149
  }
1164
1150
  response_data = await self.api_client.call_api(
1165
1151
  *_param, _request_timeout=_request_timeout
@@ -1227,7 +1213,6 @@ class APIKeysApi:
1227
1213
 
1228
1214
  _response_types_map: Dict[str, Optional[str]] = {
1229
1215
  "200": "object",
1230
- "422": "HTTPValidationError",
1231
1216
  }
1232
1217
  response_data = await self.api_client.call_api(
1233
1218
  *_param, _request_timeout=_request_timeout
@@ -3,9 +3,9 @@
3
3
  """
4
4
  Trading API
5
5
 
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ API for automated trading and exchange interface
7
7
 
8
- The version of the OpenAPI document: 0.1.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -91,7 +91,6 @@ class BotsApi:
91
91
 
92
92
  _response_types_map: Dict[str, Optional[str]] = {
93
93
  "201": "object",
94
- "422": "HTTPValidationError",
95
94
  }
96
95
  response_data = await self.api_client.call_api(
97
96
  *_param, _request_timeout=_request_timeout
@@ -156,7 +155,6 @@ class BotsApi:
156
155
 
157
156
  _response_types_map: Dict[str, Optional[str]] = {
158
157
  "201": "object",
159
- "422": "HTTPValidationError",
160
158
  }
161
159
  response_data = await self.api_client.call_api(
162
160
  *_param, _request_timeout=_request_timeout
@@ -221,7 +219,6 @@ class BotsApi:
221
219
 
222
220
  _response_types_map: Dict[str, Optional[str]] = {
223
221
  "201": "object",
224
- "422": "HTTPValidationError",
225
222
  }
226
223
  response_data = await self.api_client.call_api(
227
224
  *_param, _request_timeout=_request_timeout
@@ -307,7 +304,7 @@ class BotsApi:
307
304
  _content_type: Optional[StrictStr] = None,
308
305
  _headers: Optional[Dict[StrictStr, Any]] = None,
309
306
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
310
- ) -> object:
307
+ ) -> None:
311
308
  """Delete Bot
312
309
 
313
310
  Soft deletes a bot by cancelling all orders and closing all positions.
@@ -345,8 +342,7 @@ class BotsApi:
345
342
  )
346
343
 
347
344
  _response_types_map: Dict[str, Optional[str]] = {
348
- "200": "object",
349
- "422": "HTTPValidationError",
345
+ "204": None,
350
346
  }
351
347
  response_data = await self.api_client.call_api(
352
348
  *_param, _request_timeout=_request_timeout
@@ -372,7 +368,7 @@ class BotsApi:
372
368
  _content_type: Optional[StrictStr] = None,
373
369
  _headers: Optional[Dict[StrictStr, Any]] = None,
374
370
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
375
- ) -> ApiResponse[object]:
371
+ ) -> ApiResponse[None]:
376
372
  """Delete Bot
377
373
 
378
374
  Soft deletes a bot by cancelling all orders and closing all positions.
@@ -410,8 +406,7 @@ class BotsApi:
410
406
  )
411
407
 
412
408
  _response_types_map: Dict[str, Optional[str]] = {
413
- "200": "object",
414
- "422": "HTTPValidationError",
409
+ "204": None,
415
410
  }
416
411
  response_data = await self.api_client.call_api(
417
412
  *_param, _request_timeout=_request_timeout
@@ -475,8 +470,7 @@ class BotsApi:
475
470
  )
476
471
 
477
472
  _response_types_map: Dict[str, Optional[str]] = {
478
- "200": "object",
479
- "422": "HTTPValidationError",
473
+ "204": None,
480
474
  }
481
475
  response_data = await self.api_client.call_api(
482
476
  *_param, _request_timeout=_request_timeout
@@ -598,7 +592,6 @@ class BotsApi:
598
592
 
599
593
  _response_types_map: Dict[str, Optional[str]] = {
600
594
  "200": "List[BotModel]",
601
- "422": "HTTPValidationError",
602
595
  }
603
596
  response_data = await self.api_client.call_api(
604
597
  *_param, _request_timeout=_request_timeout
@@ -670,7 +663,6 @@ class BotsApi:
670
663
 
671
664
  _response_types_map: Dict[str, Optional[str]] = {
672
665
  "200": "List[BotModel]",
673
- "422": "HTTPValidationError",
674
666
  }
675
667
  response_data = await self.api_client.call_api(
676
668
  *_param, _request_timeout=_request_timeout
@@ -742,7 +734,6 @@ class BotsApi:
742
734
 
743
735
  _response_types_map: Dict[str, Optional[str]] = {
744
736
  "200": "List[BotModel]",
745
- "422": "HTTPValidationError",
746
737
  }
747
738
  response_data = await self.api_client.call_api(
748
739
  *_param, _request_timeout=_request_timeout
@@ -873,7 +864,6 @@ class BotsApi:
873
864
 
874
865
  _response_types_map: Dict[str, Optional[str]] = {
875
866
  "200": "object",
876
- "422": "HTTPValidationError",
877
867
  }
878
868
  response_data = await self.api_client.call_api(
879
869
  *_param, _request_timeout=_request_timeout
@@ -942,7 +932,6 @@ class BotsApi:
942
932
 
943
933
  _response_types_map: Dict[str, Optional[str]] = {
944
934
  "200": "object",
945
- "422": "HTTPValidationError",
946
935
  }
947
936
  response_data = await self.api_client.call_api(
948
937
  *_param, _request_timeout=_request_timeout
@@ -1011,7 +1000,6 @@ class BotsApi:
1011
1000
 
1012
1001
  _response_types_map: Dict[str, Optional[str]] = {
1013
1002
  "200": "object",
1014
- "422": "HTTPValidationError",
1015
1003
  }
1016
1004
  response_data = await self.api_client.call_api(
1017
1005
  *_param, _request_timeout=_request_timeout
@@ -3,9 +3,9 @@
3
3
  """
4
4
  Trading API
5
5
 
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ API for automated trading and exchange interface
7
7
 
8
- The version of the OpenAPI document: 0.1.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -16,8 +16,8 @@ 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 StrictStr
19
20
  from typing import List
20
- from crypticorn.trade.client.models.exchange import Exchange
21
21
 
22
22
  from crypticorn.trade.client.api_client import ApiClient, RequestSerialized
23
23
  from crypticorn.trade.client.api_response import ApiResponse
@@ -50,7 +50,7 @@ class ExchangesApi:
50
50
  _content_type: Optional[StrictStr] = None,
51
51
  _headers: Optional[Dict[StrictStr, Any]] = None,
52
52
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
53
- ) -> List[Exchange]:
53
+ ) -> List[str]:
54
54
  """Get Exchanges
55
55
 
56
56
 
@@ -84,7 +84,7 @@ class ExchangesApi:
84
84
  )
85
85
 
86
86
  _response_types_map: Dict[str, Optional[str]] = {
87
- "200": "List[Exchange]",
87
+ "200": "List[str]",
88
88
  }
89
89
  response_data = await self.api_client.call_api(
90
90
  *_param, _request_timeout=_request_timeout
@@ -109,7 +109,7 @@ class ExchangesApi:
109
109
  _content_type: Optional[StrictStr] = None,
110
110
  _headers: Optional[Dict[StrictStr, Any]] = None,
111
111
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
112
- ) -> ApiResponse[List[Exchange]]:
112
+ ) -> ApiResponse[List[str]]:
113
113
  """Get Exchanges
114
114
 
115
115
 
@@ -143,7 +143,7 @@ class ExchangesApi:
143
143
  )
144
144
 
145
145
  _response_types_map: Dict[str, Optional[str]] = {
146
- "200": "List[Exchange]",
146
+ "200": "List[str]",
147
147
  }
148
148
  response_data = await self.api_client.call_api(
149
149
  *_param, _request_timeout=_request_timeout
@@ -202,7 +202,7 @@ class ExchangesApi:
202
202
  )
203
203
 
204
204
  _response_types_map: Dict[str, Optional[str]] = {
205
- "200": "List[Exchange]",
205
+ "200": "List[str]",
206
206
  }
207
207
  response_data = await self.api_client.call_api(
208
208
  *_param, _request_timeout=_request_timeout