crypticorn 2.5.2__py3-none-any.whl → 2.6.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.
- crypticorn/auth/client/__init__.py +9 -0
- crypticorn/auth/client/api/auth_api.py +8 -5
- crypticorn/auth/client/api/user_api.py +247 -0
- crypticorn/auth/client/models/__init__.py +9 -0
- crypticorn/auth/client/models/create_api_key_request.py +2 -1
- crypticorn/auth/client/models/get_api_keys200_response_inner.py +2 -1
- crypticorn/{hive/client/models/http_validation_error.py → auth/client/models/user_by_username200_response.py} +14 -22
- crypticorn/auth/client/models/verify200_response.py +14 -1
- crypticorn/auth/client/models/verify_email200_response_auth_auth.py +14 -1
- crypticorn/auth/client/models/whoami200_response.py +6 -1
- crypticorn/cli/init.py +3 -0
- crypticorn/common/__init__.py +2 -1
- crypticorn/common/auth.py +13 -9
- crypticorn/common/errors.py +312 -105
- crypticorn/common/exceptions.py +38 -4
- crypticorn/common/mixins.py +19 -0
- crypticorn/common/pagination.py +49 -0
- crypticorn/common/scopes.py +27 -24
- crypticorn/common/status_router.py +9 -7
- crypticorn/common/utils.py +12 -6
- crypticorn/hive/client/__init__.py +3 -5
- crypticorn/hive/client/api/data_api.py +1 -33
- crypticorn/hive/client/api/models_api.py +351 -160
- crypticorn/hive/client/api/status_api.py +481 -9
- crypticorn/hive/client/configuration.py +12 -4
- crypticorn/hive/client/models/__init__.py +3 -5
- crypticorn/hive/client/models/coins.py +0 -1
- crypticorn/hive/client/models/data_info.py +44 -12
- crypticorn/hive/client/models/data_version.py +0 -1
- crypticorn/{pay/client/models/now_api_status_res.py → hive/client/models/data_version_info.py} +17 -11
- crypticorn/hive/client/models/exception_detail.py +114 -0
- crypticorn/hive/client/models/model.py +2 -3
- crypticorn/hive/client/models/{validation_error.py → target_info.py} +14 -25
- crypticorn/hive/client/rest.py +4 -1
- crypticorn/klines/client/api/status_api.py +481 -6
- crypticorn/klines/client/api/udf_api.py +0 -227
- crypticorn/metrics/client/api/status_api.py +476 -1
- crypticorn/pay/client/__init__.py +3 -8
- crypticorn/pay/client/api/now_payments_api.py +14 -17
- crypticorn/pay/client/api/payments_api.py +2 -11
- crypticorn/pay/client/api/products_api.py +2 -11
- crypticorn/pay/client/api/status_api.py +483 -8
- crypticorn/pay/client/api_client.py +2 -2
- crypticorn/pay/client/configuration.py +3 -3
- crypticorn/pay/client/exceptions.py +2 -2
- crypticorn/pay/client/models/__init__.py +3 -8
- crypticorn/pay/client/models/{validation_error.py → exception_detail.py} +37 -28
- crypticorn/pay/client/models/now_create_invoice_req.py +2 -2
- crypticorn/pay/client/models/now_create_invoice_res.py +2 -2
- crypticorn/pay/client/models/payment.py +2 -2
- crypticorn/pay/client/models/payment_status.py +2 -2
- crypticorn/pay/client/models/product_create.py +2 -2
- crypticorn/pay/client/models/product_read.py +2 -2
- crypticorn/pay/client/models/product_sub_read.py +2 -2
- crypticorn/pay/client/models/product_update.py +2 -2
- crypticorn/pay/client/models/scope.py +2 -2
- crypticorn/pay/client/models/services.py +2 -2
- crypticorn/pay/client/rest.py +2 -2
- crypticorn/trade/client/__init__.py +3 -7
- crypticorn/trade/client/api/api_keys_api.py +5 -20
- crypticorn/trade/client/api/bots_api.py +7 -19
- crypticorn/trade/client/api/exchanges_api.py +2 -2
- crypticorn/trade/client/api/futures_trading_panel_api.py +10 -22
- crypticorn/trade/client/api/notifications_api.py +10 -25
- crypticorn/trade/client/api/orders_api.py +2 -5
- crypticorn/trade/client/api/status_api.py +483 -8
- crypticorn/trade/client/api/strategies_api.py +5 -17
- crypticorn/trade/client/api/trading_actions_api.py +2 -11
- crypticorn/trade/client/api_client.py +2 -2
- crypticorn/trade/client/configuration.py +3 -3
- crypticorn/trade/client/exceptions.py +2 -2
- crypticorn/trade/client/models/__init__.py +3 -7
- crypticorn/trade/client/models/action_model.py +2 -2
- crypticorn/trade/client/models/bot_model.py +2 -2
- crypticorn/trade/client/models/bot_status.py +2 -2
- crypticorn/trade/client/models/{validation_error.py → exception_detail.py} +37 -28
- crypticorn/trade/client/models/exchange_key_model.py +2 -2
- crypticorn/trade/client/models/execution_ids.py +2 -2
- crypticorn/trade/client/models/futures_balance.py +2 -2
- crypticorn/trade/client/models/futures_trading_action.py +2 -2
- crypticorn/trade/client/models/margin_mode.py +2 -2
- crypticorn/trade/client/models/notification_model.py +2 -2
- crypticorn/trade/client/models/order_model.py +2 -2
- crypticorn/trade/client/models/order_status.py +2 -2
- crypticorn/trade/client/models/post_futures_action.py +2 -2
- crypticorn/trade/client/models/spot_trading_action.py +2 -2
- crypticorn/trade/client/models/strategy_exchange_info.py +2 -2
- crypticorn/trade/client/models/strategy_model_input.py +2 -2
- crypticorn/trade/client/models/strategy_model_output.py +2 -2
- crypticorn/trade/client/models/tpsl.py +2 -2
- crypticorn/trade/client/models/trading_action_type.py +2 -2
- crypticorn/trade/client/rest.py +2 -2
- {crypticorn-2.5.2.dist-info → crypticorn-2.6.0.dist-info}/METADATA +1 -1
- {crypticorn-2.5.2.dist-info → crypticorn-2.6.0.dist-info}/RECORD +97 -100
- {crypticorn-2.5.2.dist-info → crypticorn-2.6.0.dist-info}/WHEEL +1 -1
- crypticorn/hive/client/models/validation_error_loc_inner.py +0 -159
- crypticorn/pay/client/models/http_validation_error.py +0 -99
- crypticorn/pay/client/models/validation_error_loc_inner.py +0 -159
- crypticorn/trade/client/models/http_validation_error.py +0 -99
- crypticorn/trade/client/models/validation_error_loc_inner.py +0 -159
- {crypticorn-2.5.2.dist-info → crypticorn-2.6.0.dist-info}/entry_points.txt +0 -0
- {crypticorn-2.5.2.dist-info → crypticorn-2.6.0.dist-info}/top_level.txt +0 -0
@@ -3,9 +3,9 @@
|
|
3
3
|
"""
|
4
4
|
Payment API
|
5
5
|
|
6
|
-
|
6
|
+
API for accepting payments and storing subscriptions
|
7
7
|
|
8
|
-
The version of the OpenAPI document:
|
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.
|
@@ -17,24 +17,31 @@ import pprint
|
|
17
17
|
import re # noqa: F401
|
18
18
|
import json
|
19
19
|
|
20
|
-
from pydantic import BaseModel, ConfigDict, StrictStr
|
21
|
-
from typing import Any, ClassVar, Dict, List
|
22
|
-
from crypticorn.pay.client.models.validation_error_loc_inner import (
|
23
|
-
ValidationErrorLocInner,
|
24
|
-
)
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
25
22
|
from typing import Optional, Set
|
26
23
|
from typing_extensions import Self
|
27
24
|
|
28
25
|
|
29
|
-
class
|
26
|
+
class ExceptionDetail(BaseModel):
|
30
27
|
"""
|
31
|
-
|
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.
|
32
29
|
""" # noqa: E501
|
33
30
|
|
34
|
-
|
35
|
-
|
36
|
-
type: StrictStr
|
37
|
-
|
31
|
+
message: Optional[StrictStr] = None
|
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
|
+
]
|
38
45
|
|
39
46
|
model_config = ConfigDict(
|
40
47
|
populate_by_name=True,
|
@@ -53,7 +60,7 @@ class ValidationError(BaseModel):
|
|
53
60
|
|
54
61
|
@classmethod
|
55
62
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
56
|
-
"""Create an instance of
|
63
|
+
"""Create an instance of ExceptionDetail from a JSON string"""
|
57
64
|
return cls.from_dict(json.loads(json_str))
|
58
65
|
|
59
66
|
def to_dict(self) -> Dict[str, Any]:
|
@@ -73,18 +80,21 @@ class ValidationError(BaseModel):
|
|
73
80
|
exclude=excluded_fields,
|
74
81
|
exclude_none=True,
|
75
82
|
)
|
76
|
-
#
|
77
|
-
|
78
|
-
if self.
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
+
# set to None if message (nullable) is None
|
84
|
+
# and model_fields_set contains the field
|
85
|
+
if self.message is None and "message" in self.model_fields_set:
|
86
|
+
_dict["message"] = None
|
87
|
+
|
88
|
+
# set to None if details (nullable) is None
|
89
|
+
# and model_fields_set contains the field
|
90
|
+
if self.details is None and "details" in self.model_fields_set:
|
91
|
+
_dict["details"] = None
|
92
|
+
|
83
93
|
return _dict
|
84
94
|
|
85
95
|
@classmethod
|
86
96
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
87
|
-
"""Create an instance of
|
97
|
+
"""Create an instance of ExceptionDetail from a dict"""
|
88
98
|
if obj is None:
|
89
99
|
return None
|
90
100
|
|
@@ -93,13 +103,12 @@ class ValidationError(BaseModel):
|
|
93
103
|
|
94
104
|
_obj = cls.model_validate(
|
95
105
|
{
|
96
|
-
"
|
97
|
-
|
98
|
-
if obj.get("loc") is not None
|
99
|
-
else None
|
100
|
-
),
|
101
|
-
"msg": obj.get("msg"),
|
106
|
+
"message": obj.get("message"),
|
107
|
+
"code": obj.get("code"),
|
102
108
|
"type": obj.get("type"),
|
109
|
+
"level": obj.get("level"),
|
110
|
+
"status_code": obj.get("status_code"),
|
111
|
+
"details": obj.get("details"),
|
103
112
|
}
|
104
113
|
)
|
105
114
|
return _obj
|
@@ -3,9 +3,9 @@
|
|
3
3
|
"""
|
4
4
|
Payment API
|
5
5
|
|
6
|
-
|
6
|
+
API for accepting payments and storing subscriptions
|
7
7
|
|
8
|
-
The version of the OpenAPI document:
|
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
|
-
|
6
|
+
API for accepting payments and storing subscriptions
|
7
7
|
|
8
|
-
The version of the OpenAPI document:
|
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
|
-
|
6
|
+
API for accepting payments and storing subscriptions
|
7
7
|
|
8
|
-
The version of the OpenAPI document:
|
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
|
-
|
6
|
+
API for accepting payments and storing subscriptions
|
7
7
|
|
8
|
-
The version of the OpenAPI document:
|
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
|
-
|
6
|
+
API for accepting payments and storing subscriptions
|
7
7
|
|
8
|
-
The version of the OpenAPI document:
|
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
|
-
|
6
|
+
API for accepting payments and storing subscriptions
|
7
7
|
|
8
|
-
The version of the OpenAPI document:
|
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
|
-
|
6
|
+
API for accepting payments and storing subscriptions
|
7
7
|
|
8
|
-
The version of the OpenAPI document:
|
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
|
-
|
6
|
+
API for accepting payments and storing subscriptions
|
7
7
|
|
8
|
-
The version of the OpenAPI document:
|
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
|
-
|
6
|
+
API for accepting payments and storing subscriptions
|
7
7
|
|
8
|
-
The version of the OpenAPI document:
|
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
|
-
|
6
|
+
API for accepting payments and storing subscriptions
|
7
7
|
|
8
|
-
The version of the OpenAPI document:
|
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.
|
crypticorn/pay/client/rest.py
CHANGED
@@ -3,9 +3,9 @@
|
|
3
3
|
"""
|
4
4
|
Payment API
|
5
5
|
|
6
|
-
|
6
|
+
API for accepting payments and storing subscriptions
|
7
7
|
|
8
|
-
The version of the OpenAPI document:
|
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
|
-
|
8
|
+
API for automated trading and exchange interface
|
9
9
|
|
10
|
-
The version of the OpenAPI document:
|
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,11 +42,11 @@ 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.exception_detail import ExceptionDetail
|
45
46
|
from crypticorn.trade.client.models.exchange_key_model import ExchangeKeyModel
|
46
47
|
from crypticorn.trade.client.models.execution_ids import ExecutionIds
|
47
48
|
from crypticorn.trade.client.models.futures_balance import FuturesBalance
|
48
49
|
from crypticorn.trade.client.models.futures_trading_action import FuturesTradingAction
|
49
|
-
from crypticorn.trade.client.models.http_validation_error import HTTPValidationError
|
50
50
|
from crypticorn.trade.client.models.margin_mode import MarginMode
|
51
51
|
from crypticorn.trade.client.models.notification_model import NotificationModel
|
52
52
|
from crypticorn.trade.client.models.order_model import OrderModel
|
@@ -58,7 +58,3 @@ from crypticorn.trade.client.models.strategy_model_input import StrategyModelInp
|
|
58
58
|
from crypticorn.trade.client.models.strategy_model_output import StrategyModelOutput
|
59
59
|
from crypticorn.trade.client.models.tpsl import TPSL
|
60
60
|
from crypticorn.trade.client.models.trading_action_type import TradingActionType
|
61
|
-
from crypticorn.trade.client.models.validation_error import ValidationError
|
62
|
-
from crypticorn.trade.client.models.validation_error_loc_inner import (
|
63
|
-
ValidationErrorLocInner,
|
64
|
-
)
|
@@ -3,9 +3,9 @@
|
|
3
3
|
"""
|
4
4
|
Trading API
|
5
5
|
|
6
|
-
|
6
|
+
API for automated trading and exchange interface
|
7
7
|
|
8
|
-
The version of the OpenAPI document:
|
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
|
-
"
|
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
|
-
"
|
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
|
-
"
|
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
|
-
|
6
|
+
API for automated trading and exchange interface
|
7
7
|
|
8
|
-
The version of the OpenAPI document:
|
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
|
-
) ->
|
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
|
-
"
|
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[
|
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
|
-
"
|
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
|
-
"
|
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
|
-
|
6
|
+
API for automated trading and exchange interface
|
7
7
|
|
8
|
-
The version of the OpenAPI document:
|
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.
|