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.
- crypticorn/cli/init.py +3 -0
- crypticorn/common/__init__.py +1 -0
- crypticorn/common/enums.py +3 -1
- crypticorn/common/errors.py +42 -21
- crypticorn/common/mixins.py +20 -0
- crypticorn/common/scopes.py +4 -20
- crypticorn/common/status_router.py +44 -0
- crypticorn/common/utils.py +13 -14
- crypticorn/hive/client/__init__.py +1 -5
- crypticorn/hive/client/api/data_api.py +1 -33
- crypticorn/hive/client/api/models_api.py +8 -104
- crypticorn/hive/client/api/status_api.py +481 -9
- crypticorn/hive/client/configuration.py +12 -4
- crypticorn/hive/client/models/__init__.py +1 -5
- crypticorn/hive/client/models/coins.py +0 -1
- crypticorn/hive/client/models/data_version.py +0 -1
- crypticorn/{metrics/client/models/error_response.py → hive/client/models/exception_detail.py} +26 -21
- crypticorn/hive/client/rest.py +4 -1
- crypticorn/klines/client/__init__.py +0 -5
- crypticorn/klines/client/api/change_in_timeframe_api.py +8 -9
- crypticorn/klines/client/api/ohlcv_data_api.py +7 -8
- crypticorn/klines/client/api/status_api.py +481 -6
- crypticorn/klines/client/api/symbols_api.py +7 -8
- crypticorn/klines/client/api/udf_api.py +0 -227
- crypticorn/klines/client/models/__init__.py +0 -5
- crypticorn/klines/client/models/exception_detail.py +3 -6
- crypticorn/klines/client/models/search_symbol.py +4 -3
- crypticorn/klines/client/models/udf_config.py +1 -2
- crypticorn/metrics/client/__init__.py +1 -6
- crypticorn/metrics/client/api/exchanges_api.py +29 -31
- crypticorn/metrics/client/api/indicators_api.py +15 -16
- crypticorn/metrics/client/api/logs_api.py +1 -1
- crypticorn/metrics/client/api/marketcap_api.py +15 -16
- crypticorn/metrics/client/api/markets_api.py +15 -16
- crypticorn/metrics/client/api/status_api.py +477 -2
- crypticorn/metrics/client/api/tokens_api.py +1 -1
- crypticorn/metrics/client/api_client.py +1 -1
- crypticorn/metrics/client/configuration.py +3 -5
- crypticorn/metrics/client/exceptions.py +1 -1
- crypticorn/metrics/client/models/__init__.py +1 -6
- crypticorn/metrics/client/models/exception_detail.py +4 -7
- crypticorn/metrics/client/models/severity.py +1 -1
- crypticorn/metrics/client/models/time_interval.py +1 -1
- crypticorn/metrics/client/models/trading_status.py +1 -1
- crypticorn/metrics/client/rest.py +1 -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/{metrics/client/models/base_response_dict.py → pay/client/models/exception_detail.py} +28 -20
- 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 +4 -9
- 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 +8 -8
- 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 +18 -26
- crypticorn/trade/client/api_client.py +2 -2
- crypticorn/trade/client/configuration.py +5 -5
- crypticorn/trade/client/exceptions.py +2 -2
- crypticorn/trade/client/models/__init__.py +4 -9
- crypticorn/trade/client/models/action_model.py +3 -4
- crypticorn/trade/client/models/bot_model.py +2 -2
- crypticorn/trade/client/models/bot_status.py +2 -2
- crypticorn/{klines/client/models/error_response.py → trade/client/models/exception_detail.py} +26 -21
- crypticorn/trade/client/models/exchange_key_model.py +4 -13
- 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 +3 -4
- 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 +6 -16
- 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 +3 -4
- crypticorn/trade/client/models/strategy_exchange_info.py +4 -5
- crypticorn/trade/client/models/strategy_model_input.py +3 -4
- crypticorn/trade/client/models/strategy_model_output.py +3 -4
- crypticorn/trade/client/models/tpsl.py +5 -3
- crypticorn/trade/client/models/trading_action_type.py +2 -2
- crypticorn/trade/client/rest.py +2 -2
- {crypticorn-2.5.1.dist-info → crypticorn-2.5.3.dist-info}/METADATA +1 -1
- crypticorn-2.5.3.dist-info/RECORD +223 -0
- crypticorn/hive/client/models/http_validation_error.py +0 -99
- crypticorn/hive/client/models/validation_error.py +0 -105
- crypticorn/hive/client/models/validation_error_loc_inner.py +0 -159
- crypticorn/klines/client/api/health_check_api.py +0 -265
- crypticorn/klines/client/models/api_error_identifier.py +0 -108
- crypticorn/klines/client/models/api_error_level.py +0 -37
- crypticorn/klines/client/models/api_error_type.py +0 -37
- crypticorn/klines/client/models/base_response_health_check_response.py +0 -114
- crypticorn/klines/client/models/base_response_list_change_in_timeframe_response.py +0 -123
- crypticorn/klines/client/models/base_response_list_funding_rate_response.py +0 -118
- crypticorn/klines/client/models/base_response_list_str.py +0 -106
- crypticorn/klines/client/models/base_response_ohlcv_response.py +0 -114
- crypticorn/klines/client/models/change_in_timeframe_response.py +0 -86
- crypticorn/klines/client/models/exchange.py +0 -91
- crypticorn/klines/client/models/funding_rate_response.py +0 -92
- crypticorn/klines/client/models/health_check_response.py +0 -91
- crypticorn/klines/client/models/history_error_response.py +0 -89
- crypticorn/klines/client/models/history_no_data_response.py +0 -99
- crypticorn/klines/client/models/history_success_response.py +0 -99
- crypticorn/klines/client/models/http_validation_error.py +0 -99
- crypticorn/klines/client/models/internal_exchange.py +0 -39
- crypticorn/klines/client/models/market.py +0 -35
- crypticorn/klines/client/models/market_type.py +0 -35
- crypticorn/klines/client/models/ohlcv_response.py +0 -105
- crypticorn/klines/client/models/response_get_history_udf_history_get.py +0 -198
- crypticorn/klines/client/models/response_get_udf_history.py +0 -198
- crypticorn/klines/client/models/search_symbol_response.py +0 -104
- crypticorn/klines/client/models/symbol_group_response.py +0 -83
- crypticorn/klines/client/models/symbol_info_response.py +0 -131
- crypticorn/klines/client/models/udf_config_response.py +0 -160
- crypticorn/klines/client/models/validation_error.py +0 -105
- crypticorn/klines/client/models/validation_error_loc_inner.py +0 -159
- crypticorn/metrics/client/api/health_check_api.py +0 -265
- crypticorn/metrics/client/models/api_error_identifier.py +0 -108
- crypticorn/metrics/client/models/api_error_level.py +0 -37
- crypticorn/metrics/client/models/api_error_type.py +0 -37
- crypticorn/metrics/client/models/base_response_health_check_response.py +0 -114
- crypticorn/metrics/client/models/base_response_list_dict.py +0 -106
- crypticorn/metrics/client/models/base_response_list_exchange_mapping.py +0 -118
- crypticorn/metrics/client/models/base_response_list_str.py +0 -106
- crypticorn/metrics/client/models/exchange_mapping.py +0 -134
- crypticorn/metrics/client/models/health_check_response.py +0 -91
- crypticorn/metrics/client/models/http_validation_error.py +0 -99
- crypticorn/metrics/client/models/internal_exchange.py +0 -39
- crypticorn/metrics/client/models/market.py +0 -35
- crypticorn/metrics/client/models/market_type.py +0 -35
- crypticorn/metrics/client/models/validation_error.py +0 -105
- crypticorn/metrics/client/models/validation_error_loc_inner.py +0 -159
- crypticorn/pay/client/models/api_status_res.py +0 -83
- crypticorn/pay/client/models/body_create_now_invoice.py +0 -98
- crypticorn/pay/client/models/body_create_product.py +0 -98
- crypticorn/pay/client/models/body_get_products.py +0 -87
- crypticorn/pay/client/models/body_handle_now_webhook.py +0 -98
- crypticorn/pay/client/models/body_update_product.py +0 -98
- crypticorn/pay/client/models/combined_payment_history.py +0 -101
- crypticorn/pay/client/models/create_invoice_req.py +0 -188
- crypticorn/pay/client/models/create_invoice_res.py +0 -188
- crypticorn/pay/client/models/currency.py +0 -165
- crypticorn/pay/client/models/estimate_price_req.py +0 -91
- crypticorn/pay/client/models/estimate_price_res.py +0 -102
- crypticorn/pay/client/models/get_currencies_res.py +0 -99
- crypticorn/pay/client/models/get_payment_status_res.py +0 -222
- crypticorn/pay/client/models/get_payments_list_res.py +0 -109
- crypticorn/pay/client/models/http_validation_error.py +0 -99
- crypticorn/pay/client/models/min_amount_req.py +0 -124
- crypticorn/pay/client/models/min_amount_res.py +0 -105
- crypticorn/pay/client/models/now_api_status_res.py +0 -83
- crypticorn/pay/client/models/now_fee_structure.py +0 -104
- crypticorn/pay/client/models/now_payment_model.py +0 -124
- crypticorn/pay/client/models/now_payment_status.py +0 -42
- crypticorn/pay/client/models/now_webhook_payload.py +0 -181
- crypticorn/pay/client/models/partial_product_update_model.py +0 -150
- crypticorn/pay/client/models/product.py +0 -87
- crypticorn/pay/client/models/product_model.py +0 -128
- crypticorn/pay/client/models/product_subs_model.py +0 -108
- crypticorn/pay/client/models/product_update_model.py +0 -150
- crypticorn/pay/client/models/unified_payment_model.py +0 -112
- crypticorn/pay/client/models/validation_error.py +0 -105
- crypticorn/pay/client/models/validation_error_loc_inner.py +0 -159
- crypticorn/trade/client/models/api_key_model.py +0 -156
- crypticorn/trade/client/models/exchange.py +0 -35
- crypticorn/trade/client/models/http_validation_error.py +0 -99
- crypticorn/trade/client/models/market_type.py +0 -35
- crypticorn/trade/client/models/validation_error.py +0 -105
- crypticorn/trade/client/models/validation_error_loc_inner.py +0 -159
- crypticorn-2.5.1.dist-info/RECORD +0 -307
- {crypticorn-2.5.1.dist-info → crypticorn-2.5.3.dist-info}/WHEEL +0 -0
- {crypticorn-2.5.1.dist-info → crypticorn-2.5.3.dist-info}/entry_points.txt +0 -0
- {crypticorn-2.5.1.dist-info → crypticorn-2.5.3.dist-info}/top_level.txt +0 -0
crypticorn/{metrics/client/models/error_response.py → hive/client/models/exception_detail.py}
RENAMED
@@ -1,9 +1,9 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
|
3
3
|
"""
|
4
|
-
|
4
|
+
Hive AI API
|
5
5
|
|
6
|
-
|
6
|
+
API for Hive AI model training and evaluation
|
7
7
|
|
8
8
|
The version of the OpenAPI document: 1.0.0
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
@@ -17,29 +17,30 @@ import pprint
|
|
17
17
|
import re # noqa: F401
|
18
18
|
import json
|
19
19
|
|
20
|
-
from
|
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
|
26
|
+
class ExceptionDetail(BaseModel):
|
28
27
|
"""
|
29
|
-
|
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
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
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
37
|
__properties: ClassVar[List[str]] = [
|
38
|
-
"success",
|
39
38
|
"message",
|
40
|
-
"
|
39
|
+
"code",
|
40
|
+
"type",
|
41
|
+
"level",
|
42
|
+
"status_code",
|
41
43
|
"details",
|
42
|
-
"timestamp",
|
43
44
|
]
|
44
45
|
|
45
46
|
model_config = ConfigDict(
|
@@ -59,7 +60,7 @@ class ErrorResponse(BaseModel):
|
|
59
60
|
|
60
61
|
@classmethod
|
61
62
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
62
|
-
"""Create an instance of
|
63
|
+
"""Create an instance of ExceptionDetail from a JSON string"""
|
63
64
|
return cls.from_dict(json.loads(json_str))
|
64
65
|
|
65
66
|
def to_dict(self) -> Dict[str, Any]:
|
@@ -79,6 +80,11 @@ class ErrorResponse(BaseModel):
|
|
79
80
|
exclude=excluded_fields,
|
80
81
|
exclude_none=True,
|
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
|
+
|
82
88
|
# set to None if details (nullable) is None
|
83
89
|
# and model_fields_set contains the field
|
84
90
|
if self.details is None and "details" in self.model_fields_set:
|
@@ -88,7 +94,7 @@ class ErrorResponse(BaseModel):
|
|
88
94
|
|
89
95
|
@classmethod
|
90
96
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
91
|
-
"""Create an instance of
|
97
|
+
"""Create an instance of ExceptionDetail from a dict"""
|
92
98
|
if obj is None:
|
93
99
|
return None
|
94
100
|
|
@@ -97,13 +103,12 @@ class ErrorResponse(BaseModel):
|
|
97
103
|
|
98
104
|
_obj = cls.model_validate(
|
99
105
|
{
|
100
|
-
"success": (
|
101
|
-
obj.get("success") if obj.get("success") is not None else False
|
102
|
-
),
|
103
106
|
"message": obj.get("message"),
|
104
|
-
"
|
107
|
+
"code": obj.get("code"),
|
108
|
+
"type": obj.get("type"),
|
109
|
+
"level": obj.get("level"),
|
110
|
+
"status_code": obj.get("status_code"),
|
105
111
|
"details": obj.get("details"),
|
106
|
-
"timestamp": obj.get("timestamp"),
|
107
112
|
}
|
108
113
|
)
|
109
114
|
return _obj
|
crypticorn/hive/client/rest.py
CHANGED
@@ -57,7 +57,10 @@ class RESTClientObject:
|
|
57
57
|
# maxsize is number of requests to host that are allowed in parallel
|
58
58
|
self.maxsize = configuration.connection_pool_maxsize
|
59
59
|
|
60
|
-
self.ssl_context = ssl.create_default_context(
|
60
|
+
self.ssl_context = ssl.create_default_context(
|
61
|
+
cafile=configuration.ssl_ca_cert,
|
62
|
+
cadata=configuration.ca_cert_data,
|
63
|
+
)
|
61
64
|
if configuration.cert_file:
|
62
65
|
self.ssl_context.load_cert_chain(
|
63
66
|
configuration.cert_file, keyfile=configuration.key_file
|
@@ -36,14 +36,9 @@ from crypticorn.klines.client.exceptions import ApiAttributeError
|
|
36
36
|
from crypticorn.klines.client.exceptions import ApiException
|
37
37
|
|
38
38
|
# import models into sdk package
|
39
|
-
from crypticorn.klines.client.models.api_error_identifier import ApiErrorIdentifier
|
40
|
-
from crypticorn.klines.client.models.api_error_level import ApiErrorLevel
|
41
|
-
from crypticorn.klines.client.models.api_error_type import ApiErrorType
|
42
39
|
from crypticorn.klines.client.models.change_in_timeframe import ChangeInTimeframe
|
43
40
|
from crypticorn.klines.client.models.exception_detail import ExceptionDetail
|
44
41
|
from crypticorn.klines.client.models.funding_rate import FundingRate
|
45
|
-
from crypticorn.klines.client.models.internal_exchange import InternalExchange
|
46
|
-
from crypticorn.klines.client.models.market_type import MarketType
|
47
42
|
from crypticorn.klines.client.models.ohlcv_history import OHLCVHistory
|
48
43
|
from crypticorn.klines.client.models.resolution import Resolution
|
49
44
|
from crypticorn.klines.client.models.search_symbol import SearchSymbol
|
@@ -16,11 +16,10 @@ 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 Field
|
19
|
+
from pydantic import Field, StrictStr
|
20
20
|
from typing import List, Optional
|
21
21
|
from typing_extensions import Annotated
|
22
22
|
from crypticorn.klines.client.models.change_in_timeframe import ChangeInTimeframe
|
23
|
-
from crypticorn.klines.client.models.market_type import MarketType
|
24
23
|
from crypticorn.klines.client.models.timeframe import Timeframe
|
25
24
|
|
26
25
|
from crypticorn.klines.client.api_client import ApiClient, RequestSerialized
|
@@ -44,7 +43,7 @@ class ChangeInTimeframeApi:
|
|
44
43
|
async def get_change_in_timeframe(
|
45
44
|
self,
|
46
45
|
market: Annotated[
|
47
|
-
Optional[
|
46
|
+
Optional[StrictStr], Field(description="Market type: 'spot' or 'futures'")
|
48
47
|
] = None,
|
49
48
|
timeframe: Annotated[
|
50
49
|
Optional[Timeframe],
|
@@ -67,7 +66,7 @@ class ChangeInTimeframeApi:
|
|
67
66
|
Retrieve price change percentage between last two completed timestamps for all pairs. Valid markets: spot, futures Valid timeframes: 15m, 30m, 1h, 4h, 1d
|
68
67
|
|
69
68
|
:param market: Market type: 'spot' or 'futures'
|
70
|
-
:type market:
|
69
|
+
:type market: str
|
71
70
|
:param timeframe: Timeframe: '15m', '30m', '1h', '4h', '1d'
|
72
71
|
:type timeframe: Timeframe
|
73
72
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -117,7 +116,7 @@ class ChangeInTimeframeApi:
|
|
117
116
|
async def get_change_in_timeframe_with_http_info(
|
118
117
|
self,
|
119
118
|
market: Annotated[
|
120
|
-
Optional[
|
119
|
+
Optional[StrictStr], Field(description="Market type: 'spot' or 'futures'")
|
121
120
|
] = None,
|
122
121
|
timeframe: Annotated[
|
123
122
|
Optional[Timeframe],
|
@@ -140,7 +139,7 @@ class ChangeInTimeframeApi:
|
|
140
139
|
Retrieve price change percentage between last two completed timestamps for all pairs. Valid markets: spot, futures Valid timeframes: 15m, 30m, 1h, 4h, 1d
|
141
140
|
|
142
141
|
:param market: Market type: 'spot' or 'futures'
|
143
|
-
:type market:
|
142
|
+
:type market: str
|
144
143
|
:param timeframe: Timeframe: '15m', '30m', '1h', '4h', '1d'
|
145
144
|
:type timeframe: Timeframe
|
146
145
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -190,7 +189,7 @@ class ChangeInTimeframeApi:
|
|
190
189
|
async def get_change_in_timeframe_without_preload_content(
|
191
190
|
self,
|
192
191
|
market: Annotated[
|
193
|
-
Optional[
|
192
|
+
Optional[StrictStr], Field(description="Market type: 'spot' or 'futures'")
|
194
193
|
] = None,
|
195
194
|
timeframe: Annotated[
|
196
195
|
Optional[Timeframe],
|
@@ -213,7 +212,7 @@ class ChangeInTimeframeApi:
|
|
213
212
|
Retrieve price change percentage between last two completed timestamps for all pairs. Valid markets: spot, futures Valid timeframes: 15m, 30m, 1h, 4h, 1d
|
214
213
|
|
215
214
|
:param market: Market type: 'spot' or 'futures'
|
216
|
-
:type market:
|
215
|
+
:type market: str
|
217
216
|
:param timeframe: Timeframe: '15m', '30m', '1h', '4h', '1d'
|
218
217
|
:type timeframe: Timeframe
|
219
218
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -282,7 +281,7 @@ class ChangeInTimeframeApi:
|
|
282
281
|
# process the query parameters
|
283
282
|
if market is not None:
|
284
283
|
|
285
|
-
_query_params.append(("market", market
|
284
|
+
_query_params.append(("market", market))
|
286
285
|
|
287
286
|
if timeframe is not None:
|
288
287
|
|
@@ -19,7 +19,6 @@ from typing_extensions import Annotated
|
|
19
19
|
from pydantic import Field, StrictInt, StrictStr
|
20
20
|
from typing import Optional
|
21
21
|
from typing_extensions import Annotated
|
22
|
-
from crypticorn.klines.client.models.market_type import MarketType
|
23
22
|
from crypticorn.klines.client.models.ohlcv_history import OHLCVHistory
|
24
23
|
from crypticorn.klines.client.models.sort_direction import SortDirection
|
25
24
|
from crypticorn.klines.client.models.timeframe import Timeframe
|
@@ -44,7 +43,7 @@ class OHLCVDataApi:
|
|
44
43
|
@validate_call
|
45
44
|
async def get_ohlcv(
|
46
45
|
self,
|
47
|
-
market: Annotated[
|
46
|
+
market: Annotated[StrictStr, Field(description="Market type")],
|
48
47
|
timeframe: Annotated[Timeframe, Field(description="Timeframe for the candles")],
|
49
48
|
symbol: Annotated[
|
50
49
|
StrictStr, Field(description="Trading pair symbol (e.g., BTCUSDT)")
|
@@ -80,7 +79,7 @@ class OHLCVDataApi:
|
|
80
79
|
Retrieve OHLCV (Open, High, Low, Close, Volume) data for a specific market, timeframe, and symbol.
|
81
80
|
|
82
81
|
:param market: Market type (required)
|
83
|
-
:type market:
|
82
|
+
:type market: str
|
84
83
|
:param timeframe: Timeframe for the candles (required)
|
85
84
|
:type timeframe: Timeframe
|
86
85
|
:param symbol: Trading pair symbol (e.g., BTCUSDT) (required)
|
@@ -144,7 +143,7 @@ class OHLCVDataApi:
|
|
144
143
|
@validate_call
|
145
144
|
async def get_ohlcv_with_http_info(
|
146
145
|
self,
|
147
|
-
market: Annotated[
|
146
|
+
market: Annotated[StrictStr, Field(description="Market type")],
|
148
147
|
timeframe: Annotated[Timeframe, Field(description="Timeframe for the candles")],
|
149
148
|
symbol: Annotated[
|
150
149
|
StrictStr, Field(description="Trading pair symbol (e.g., BTCUSDT)")
|
@@ -180,7 +179,7 @@ class OHLCVDataApi:
|
|
180
179
|
Retrieve OHLCV (Open, High, Low, Close, Volume) data for a specific market, timeframe, and symbol.
|
181
180
|
|
182
181
|
:param market: Market type (required)
|
183
|
-
:type market:
|
182
|
+
:type market: str
|
184
183
|
:param timeframe: Timeframe for the candles (required)
|
185
184
|
:type timeframe: Timeframe
|
186
185
|
:param symbol: Trading pair symbol (e.g., BTCUSDT) (required)
|
@@ -244,7 +243,7 @@ class OHLCVDataApi:
|
|
244
243
|
@validate_call
|
245
244
|
async def get_ohlcv_without_preload_content(
|
246
245
|
self,
|
247
|
-
market: Annotated[
|
246
|
+
market: Annotated[StrictStr, Field(description="Market type")],
|
248
247
|
timeframe: Annotated[Timeframe, Field(description="Timeframe for the candles")],
|
249
248
|
symbol: Annotated[
|
250
249
|
StrictStr, Field(description="Trading pair symbol (e.g., BTCUSDT)")
|
@@ -280,7 +279,7 @@ class OHLCVDataApi:
|
|
280
279
|
Retrieve OHLCV (Open, High, Low, Close, Volume) data for a specific market, timeframe, and symbol.
|
281
280
|
|
282
281
|
:param market: Market type (required)
|
283
|
-
:type market:
|
282
|
+
:type market: str
|
284
283
|
:param timeframe: Timeframe for the candles (required)
|
285
284
|
:type timeframe: Timeframe
|
286
285
|
:param symbol: Trading pair symbol (e.g., BTCUSDT) (required)
|
@@ -367,7 +366,7 @@ class OHLCVDataApi:
|
|
367
366
|
|
368
367
|
# process the path parameters
|
369
368
|
if market is not None:
|
370
|
-
_path_params["market"] = market
|
369
|
+
_path_params["market"] = market
|
371
370
|
if timeframe is not None:
|
372
371
|
_path_params["timeframe"] = timeframe.value
|
373
372
|
if symbol is not None:
|