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
@@ -42,233 +42,6 @@ class UDFApi:
|
|
42
42
|
api_client = ApiClient.get_default()
|
43
43
|
self.api_client = api_client
|
44
44
|
|
45
|
-
@validate_call
|
46
|
-
async def get_server_time(
|
47
|
-
self,
|
48
|
-
_request_timeout: Union[
|
49
|
-
None,
|
50
|
-
Annotated[StrictFloat, Field(gt=0)],
|
51
|
-
Tuple[
|
52
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
53
|
-
],
|
54
|
-
] = None,
|
55
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
56
|
-
_content_type: Optional[StrictStr] = None,
|
57
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
58
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
59
|
-
) -> int:
|
60
|
-
"""(Deprecated) Get Server Time
|
61
|
-
|
62
|
-
|
63
|
-
:param _request_timeout: timeout setting for this request. If one
|
64
|
-
number provided, it will be total request
|
65
|
-
timeout. It can also be a pair (tuple) of
|
66
|
-
(connection, read) timeouts.
|
67
|
-
:type _request_timeout: int, tuple(int, int), optional
|
68
|
-
:param _request_auth: set to override the auth_settings for an a single
|
69
|
-
request; this effectively ignores the
|
70
|
-
authentication in the spec for a single request.
|
71
|
-
:type _request_auth: dict, optional
|
72
|
-
:param _content_type: force content-type for the request.
|
73
|
-
:type _content_type: str, Optional
|
74
|
-
:param _headers: set to override the headers for a single
|
75
|
-
request; this effectively ignores the headers
|
76
|
-
in the spec for a single request.
|
77
|
-
:type _headers: dict, optional
|
78
|
-
:param _host_index: set to override the host_index for a single
|
79
|
-
request; this effectively ignores the host_index
|
80
|
-
in the spec for a single request.
|
81
|
-
:type _host_index: int, optional
|
82
|
-
:return: Returns the result object.
|
83
|
-
""" # noqa: E501
|
84
|
-
warnings.warn("GET /udf/time is deprecated.", DeprecationWarning)
|
85
|
-
|
86
|
-
_param = self._get_server_time_serialize(
|
87
|
-
_request_auth=_request_auth,
|
88
|
-
_content_type=_content_type,
|
89
|
-
_headers=_headers,
|
90
|
-
_host_index=_host_index,
|
91
|
-
)
|
92
|
-
|
93
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
94
|
-
"200": "int",
|
95
|
-
}
|
96
|
-
response_data = await self.api_client.call_api(
|
97
|
-
*_param, _request_timeout=_request_timeout
|
98
|
-
)
|
99
|
-
await response_data.read()
|
100
|
-
return self.api_client.response_deserialize(
|
101
|
-
response_data=response_data,
|
102
|
-
response_types_map=_response_types_map,
|
103
|
-
).data
|
104
|
-
|
105
|
-
@validate_call
|
106
|
-
async def get_server_time_with_http_info(
|
107
|
-
self,
|
108
|
-
_request_timeout: Union[
|
109
|
-
None,
|
110
|
-
Annotated[StrictFloat, Field(gt=0)],
|
111
|
-
Tuple[
|
112
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
113
|
-
],
|
114
|
-
] = None,
|
115
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
116
|
-
_content_type: Optional[StrictStr] = None,
|
117
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
118
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
119
|
-
) -> ApiResponse[int]:
|
120
|
-
"""(Deprecated) Get Server Time
|
121
|
-
|
122
|
-
|
123
|
-
:param _request_timeout: timeout setting for this request. If one
|
124
|
-
number provided, it will be total request
|
125
|
-
timeout. It can also be a pair (tuple) of
|
126
|
-
(connection, read) timeouts.
|
127
|
-
:type _request_timeout: int, tuple(int, int), optional
|
128
|
-
:param _request_auth: set to override the auth_settings for an a single
|
129
|
-
request; this effectively ignores the
|
130
|
-
authentication in the spec for a single request.
|
131
|
-
:type _request_auth: dict, optional
|
132
|
-
:param _content_type: force content-type for the request.
|
133
|
-
:type _content_type: str, Optional
|
134
|
-
:param _headers: set to override the headers for a single
|
135
|
-
request; this effectively ignores the headers
|
136
|
-
in the spec for a single request.
|
137
|
-
:type _headers: dict, optional
|
138
|
-
:param _host_index: set to override the host_index for a single
|
139
|
-
request; this effectively ignores the host_index
|
140
|
-
in the spec for a single request.
|
141
|
-
:type _host_index: int, optional
|
142
|
-
:return: Returns the result object.
|
143
|
-
""" # noqa: E501
|
144
|
-
warnings.warn("GET /udf/time is deprecated.", DeprecationWarning)
|
145
|
-
|
146
|
-
_param = self._get_server_time_serialize(
|
147
|
-
_request_auth=_request_auth,
|
148
|
-
_content_type=_content_type,
|
149
|
-
_headers=_headers,
|
150
|
-
_host_index=_host_index,
|
151
|
-
)
|
152
|
-
|
153
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
154
|
-
"200": "int",
|
155
|
-
}
|
156
|
-
response_data = await self.api_client.call_api(
|
157
|
-
*_param, _request_timeout=_request_timeout
|
158
|
-
)
|
159
|
-
await response_data.read()
|
160
|
-
return self.api_client.response_deserialize(
|
161
|
-
response_data=response_data,
|
162
|
-
response_types_map=_response_types_map,
|
163
|
-
)
|
164
|
-
|
165
|
-
@validate_call
|
166
|
-
async def get_server_time_without_preload_content(
|
167
|
-
self,
|
168
|
-
_request_timeout: Union[
|
169
|
-
None,
|
170
|
-
Annotated[StrictFloat, Field(gt=0)],
|
171
|
-
Tuple[
|
172
|
-
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
173
|
-
],
|
174
|
-
] = None,
|
175
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
176
|
-
_content_type: Optional[StrictStr] = None,
|
177
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
178
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
179
|
-
) -> RESTResponseType:
|
180
|
-
"""(Deprecated) Get Server Time
|
181
|
-
|
182
|
-
|
183
|
-
:param _request_timeout: timeout setting for this request. If one
|
184
|
-
number provided, it will be total request
|
185
|
-
timeout. It can also be a pair (tuple) of
|
186
|
-
(connection, read) timeouts.
|
187
|
-
:type _request_timeout: int, tuple(int, int), optional
|
188
|
-
:param _request_auth: set to override the auth_settings for an a single
|
189
|
-
request; this effectively ignores the
|
190
|
-
authentication in the spec for a single request.
|
191
|
-
:type _request_auth: dict, optional
|
192
|
-
:param _content_type: force content-type for the request.
|
193
|
-
:type _content_type: str, Optional
|
194
|
-
:param _headers: set to override the headers for a single
|
195
|
-
request; this effectively ignores the headers
|
196
|
-
in the spec for a single request.
|
197
|
-
:type _headers: dict, optional
|
198
|
-
:param _host_index: set to override the host_index for a single
|
199
|
-
request; this effectively ignores the host_index
|
200
|
-
in the spec for a single request.
|
201
|
-
:type _host_index: int, optional
|
202
|
-
:return: Returns the result object.
|
203
|
-
""" # noqa: E501
|
204
|
-
warnings.warn("GET /udf/time is deprecated.", DeprecationWarning)
|
205
|
-
|
206
|
-
_param = self._get_server_time_serialize(
|
207
|
-
_request_auth=_request_auth,
|
208
|
-
_content_type=_content_type,
|
209
|
-
_headers=_headers,
|
210
|
-
_host_index=_host_index,
|
211
|
-
)
|
212
|
-
|
213
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
214
|
-
"200": "int",
|
215
|
-
}
|
216
|
-
response_data = await self.api_client.call_api(
|
217
|
-
*_param, _request_timeout=_request_timeout
|
218
|
-
)
|
219
|
-
return response_data.response
|
220
|
-
|
221
|
-
def _get_server_time_serialize(
|
222
|
-
self,
|
223
|
-
_request_auth,
|
224
|
-
_content_type,
|
225
|
-
_headers,
|
226
|
-
_host_index,
|
227
|
-
) -> RequestSerialized:
|
228
|
-
|
229
|
-
_host = None
|
230
|
-
|
231
|
-
_collection_formats: Dict[str, str] = {}
|
232
|
-
|
233
|
-
_path_params: Dict[str, str] = {}
|
234
|
-
_query_params: List[Tuple[str, str]] = []
|
235
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
236
|
-
_form_params: List[Tuple[str, str]] = []
|
237
|
-
_files: Dict[
|
238
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
239
|
-
] = {}
|
240
|
-
_body_params: Optional[bytes] = None
|
241
|
-
|
242
|
-
# process the path parameters
|
243
|
-
# process the query parameters
|
244
|
-
# process the header parameters
|
245
|
-
# process the form parameters
|
246
|
-
# process the body parameter
|
247
|
-
|
248
|
-
# set the HTTP header `Accept`
|
249
|
-
if "Accept" not in _header_params:
|
250
|
-
_header_params["Accept"] = self.api_client.select_header_accept(
|
251
|
-
["application/json"]
|
252
|
-
)
|
253
|
-
|
254
|
-
# authentication setting
|
255
|
-
_auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
|
256
|
-
|
257
|
-
return self.api_client.param_serialize(
|
258
|
-
method="GET",
|
259
|
-
resource_path="/udf/time",
|
260
|
-
path_params=_path_params,
|
261
|
-
query_params=_query_params,
|
262
|
-
header_params=_header_params,
|
263
|
-
body=_body_params,
|
264
|
-
post_params=_form_params,
|
265
|
-
files=_files,
|
266
|
-
auth_settings=_auth_settings,
|
267
|
-
collection_formats=_collection_formats,
|
268
|
-
_host=_host,
|
269
|
-
_request_auth=_request_auth,
|
270
|
-
)
|
271
|
-
|
272
45
|
@validate_call
|
273
46
|
async def get_symbol(
|
274
47
|
self,
|