crypticorn 2.5.0rc5__py3-none-any.whl → 2.5.1__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/main.py +2 -0
- crypticorn/client.py +60 -69
- crypticorn/common/__init__.py +2 -1
- crypticorn/common/auth.py +38 -20
- crypticorn/common/enums.py +5 -34
- crypticorn/common/errors.py +33 -14
- crypticorn/common/exceptions.py +29 -15
- crypticorn/common/mixins.py +36 -0
- crypticorn/common/urls.py +2 -1
- crypticorn/common/utils.py +4 -2
- crypticorn/hive/main.py +2 -0
- crypticorn/klines/client/__init__.py +14 -42
- crypticorn/klines/client/api/__init__.py +1 -1
- crypticorn/klines/client/api/change_in_timeframe_api.py +8 -22
- crypticorn/klines/client/api/funding_rates_api.py +8 -22
- crypticorn/klines/client/api/ohlcv_data_api.py +13 -33
- crypticorn/klines/client/api/status_api.py +260 -0
- crypticorn/klines/client/api/symbols_api.py +14 -29
- crypticorn/klines/client/api/udf_api.py +48 -59
- crypticorn/klines/client/api_client.py +1 -1
- crypticorn/klines/client/configuration.py +1 -1
- crypticorn/klines/client/exceptions.py +1 -1
- crypticorn/klines/client/models/__init__.py +13 -41
- crypticorn/klines/client/models/api_error_identifier.py +108 -0
- crypticorn/klines/client/models/api_error_level.py +37 -0
- crypticorn/klines/client/models/api_error_type.py +37 -0
- crypticorn/klines/client/models/change_in_timeframe.py +86 -0
- crypticorn/klines/client/models/exception_detail.py +117 -0
- crypticorn/klines/client/models/funding_rate.py +92 -0
- crypticorn/klines/client/models/internal_exchange.py +39 -0
- crypticorn/klines/client/models/market_type.py +1 -1
- crypticorn/klines/client/models/ohlcv_history.py +105 -0
- crypticorn/klines/client/models/resolution.py +1 -1
- crypticorn/klines/client/models/search_symbol.py +94 -0
- crypticorn/klines/client/models/sort_direction.py +1 -1
- crypticorn/klines/client/models/symbol_group.py +83 -0
- crypticorn/klines/client/models/symbol_info.py +131 -0
- crypticorn/klines/client/models/symbol_type.py +1 -1
- crypticorn/klines/client/models/timeframe.py +1 -1
- crypticorn/klines/client/models/udf_config.py +149 -0
- crypticorn/klines/client/rest.py +1 -1
- crypticorn/klines/main.py +40 -23
- crypticorn/metrics/client/__init__.py +7 -21
- crypticorn/metrics/client/api/__init__.py +1 -1
- crypticorn/metrics/client/api/exchanges_api.py +36 -78
- crypticorn/metrics/client/api/indicators_api.py +12 -37
- crypticorn/metrics/client/api/logs_api.py +8 -23
- crypticorn/metrics/client/api/marketcap_api.py +22 -73
- crypticorn/metrics/client/api/markets_api.py +12 -40
- crypticorn/metrics/client/api/status_api.py +260 -0
- crypticorn/metrics/client/api/tokens_api.py +7 -21
- crypticorn/metrics/client/api_client.py +1 -1
- crypticorn/metrics/client/configuration.py +5 -3
- crypticorn/metrics/client/exceptions.py +1 -1
- crypticorn/metrics/client/models/__init__.py +6 -20
- crypticorn/{trade → metrics}/client/models/api_error_identifier.py +6 -2
- crypticorn/{trade → metrics}/client/models/api_error_level.py +2 -2
- crypticorn/{trade → metrics}/client/models/api_error_type.py +2 -2
- crypticorn/metrics/client/models/exception_detail.py +117 -0
- crypticorn/metrics/client/models/internal_exchange.py +39 -0
- crypticorn/metrics/client/models/market_type.py +1 -1
- 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/metrics/main.py +51 -43
- crypticorn/pay/main.py +2 -0
- crypticorn/trade/client/__init__.py +0 -3
- crypticorn/trade/client/configuration.py +2 -2
- crypticorn/trade/client/models/__init__.py +0 -3
- crypticorn/trade/client/models/bot_model.py +3 -7
- crypticorn/trade/client/models/execution_ids.py +1 -1
- crypticorn/trade/client/models/notification_model.py +3 -12
- crypticorn/trade/client/models/order_model.py +3 -7
- crypticorn/trade/client/models/spot_trading_action.py +231 -0
- crypticorn/trade/main.py +2 -0
- {crypticorn-2.5.0rc5.dist-info → crypticorn-2.5.1.dist-info}/METADATA +7 -5
- {crypticorn-2.5.0rc5.dist-info → crypticorn-2.5.1.dist-info}/RECORD +82 -65
- {crypticorn-2.5.0rc5.dist-info → crypticorn-2.5.1.dist-info}/WHEEL +1 -1
- crypticorn/common/sorter.py +0 -40
- /crypticorn/common/{pydantic.py → decorators.py} +0 -0
- {crypticorn-2.5.0rc5.dist-info → crypticorn-2.5.1.dist-info}/entry_points.txt +0 -0
- {crypticorn-2.5.0rc5.dist-info → crypticorn-2.5.1.dist-info}/top_level.txt +0 -0
@@ -3,7 +3,7 @@
|
|
3
3
|
"""
|
4
4
|
Klines Service API
|
5
5
|
|
6
|
-
|
6
|
+
API for retrieving OHLCV data, funding rates, and symbol information from Binance.
|
7
7
|
|
8
8
|
The version of the OpenAPI document: 1.0.0
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
@@ -16,9 +16,9 @@ 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
|
+
from typing import List
|
20
21
|
from typing_extensions import Annotated
|
21
|
-
from crypticorn.klines.client.models.base_response_list_str import BaseResponseListStr
|
22
22
|
from crypticorn.klines.client.models.market_type import MarketType
|
23
23
|
|
24
24
|
from crypticorn.klines.client.api_client import ApiClient, RequestSerialized
|
@@ -41,9 +41,7 @@ class SymbolsApi:
|
|
41
41
|
@validate_call
|
42
42
|
async def get_klines_symbols(
|
43
43
|
self,
|
44
|
-
market: Annotated[
|
45
|
-
MarketType, Field(description="Market type (spot or futures)")
|
46
|
-
],
|
44
|
+
market: Annotated[MarketType, Field(description="Market type")],
|
47
45
|
_request_timeout: Union[
|
48
46
|
None,
|
49
47
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -55,12 +53,12 @@ class SymbolsApi:
|
|
55
53
|
_content_type: Optional[StrictStr] = None,
|
56
54
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
57
55
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
58
|
-
) ->
|
56
|
+
) -> List[str]:
|
59
57
|
"""Symbols
|
60
58
|
|
61
59
|
Retrieve a list of whitelisted symbols for a specific market.
|
62
60
|
|
63
|
-
:param market: Market type (
|
61
|
+
:param market: Market type (required)
|
64
62
|
:type market: MarketType
|
65
63
|
:param _request_timeout: timeout setting for this request. If one
|
66
64
|
number provided, it will be total request
|
@@ -93,10 +91,7 @@ class SymbolsApi:
|
|
93
91
|
)
|
94
92
|
|
95
93
|
_response_types_map: Dict[str, Optional[str]] = {
|
96
|
-
"200": "
|
97
|
-
"404": "ErrorResponse",
|
98
|
-
"500": "ErrorResponse",
|
99
|
-
"422": "HTTPValidationError",
|
94
|
+
"200": "List[str]",
|
100
95
|
}
|
101
96
|
response_data = await self.api_client.call_api(
|
102
97
|
*_param, _request_timeout=_request_timeout
|
@@ -110,9 +105,7 @@ class SymbolsApi:
|
|
110
105
|
@validate_call
|
111
106
|
async def get_klines_symbols_with_http_info(
|
112
107
|
self,
|
113
|
-
market: Annotated[
|
114
|
-
MarketType, Field(description="Market type (spot or futures)")
|
115
|
-
],
|
108
|
+
market: Annotated[MarketType, Field(description="Market type")],
|
116
109
|
_request_timeout: Union[
|
117
110
|
None,
|
118
111
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -124,12 +117,12 @@ class SymbolsApi:
|
|
124
117
|
_content_type: Optional[StrictStr] = None,
|
125
118
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
126
119
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
127
|
-
) -> ApiResponse[
|
120
|
+
) -> ApiResponse[List[str]]:
|
128
121
|
"""Symbols
|
129
122
|
|
130
123
|
Retrieve a list of whitelisted symbols for a specific market.
|
131
124
|
|
132
|
-
:param market: Market type (
|
125
|
+
:param market: Market type (required)
|
133
126
|
:type market: MarketType
|
134
127
|
:param _request_timeout: timeout setting for this request. If one
|
135
128
|
number provided, it will be total request
|
@@ -162,10 +155,7 @@ class SymbolsApi:
|
|
162
155
|
)
|
163
156
|
|
164
157
|
_response_types_map: Dict[str, Optional[str]] = {
|
165
|
-
"200": "
|
166
|
-
"404": "ErrorResponse",
|
167
|
-
"500": "ErrorResponse",
|
168
|
-
"422": "HTTPValidationError",
|
158
|
+
"200": "List[str]",
|
169
159
|
}
|
170
160
|
response_data = await self.api_client.call_api(
|
171
161
|
*_param, _request_timeout=_request_timeout
|
@@ -179,9 +169,7 @@ class SymbolsApi:
|
|
179
169
|
@validate_call
|
180
170
|
async def get_klines_symbols_without_preload_content(
|
181
171
|
self,
|
182
|
-
market: Annotated[
|
183
|
-
MarketType, Field(description="Market type (spot or futures)")
|
184
|
-
],
|
172
|
+
market: Annotated[MarketType, Field(description="Market type")],
|
185
173
|
_request_timeout: Union[
|
186
174
|
None,
|
187
175
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -198,7 +186,7 @@ class SymbolsApi:
|
|
198
186
|
|
199
187
|
Retrieve a list of whitelisted symbols for a specific market.
|
200
188
|
|
201
|
-
:param market: Market type (
|
189
|
+
:param market: Market type (required)
|
202
190
|
:type market: MarketType
|
203
191
|
:param _request_timeout: timeout setting for this request. If one
|
204
192
|
number provided, it will be total request
|
@@ -231,10 +219,7 @@ class SymbolsApi:
|
|
231
219
|
)
|
232
220
|
|
233
221
|
_response_types_map: Dict[str, Optional[str]] = {
|
234
|
-
"200": "
|
235
|
-
"404": "ErrorResponse",
|
236
|
-
"500": "ErrorResponse",
|
237
|
-
"422": "HTTPValidationError",
|
222
|
+
"200": "List[str]",
|
238
223
|
}
|
239
224
|
response_data = await self.api_client.call_api(
|
240
225
|
*_param, _request_timeout=_request_timeout
|
@@ -3,7 +3,7 @@
|
|
3
3
|
"""
|
4
4
|
Klines Service API
|
5
5
|
|
6
|
-
|
6
|
+
API for retrieving OHLCV data, funding rates, and symbol information from Binance.
|
7
7
|
|
8
8
|
The version of the OpenAPI document: 1.0.0
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
@@ -18,14 +18,12 @@ from typing_extensions import Annotated
|
|
18
18
|
|
19
19
|
from pydantic import StrictInt, StrictStr
|
20
20
|
from typing import Any, List, Optional
|
21
|
+
from crypticorn.klines.client.models.ohlcv_history import OHLCVHistory
|
21
22
|
from crypticorn.klines.client.models.resolution import Resolution
|
22
|
-
from crypticorn.klines.client.models.
|
23
|
-
|
24
|
-
|
25
|
-
from crypticorn.klines.client.models.
|
26
|
-
from crypticorn.klines.client.models.symbol_group_response import SymbolGroupResponse
|
27
|
-
from crypticorn.klines.client.models.symbol_info_response import SymbolInfoResponse
|
28
|
-
from crypticorn.klines.client.models.udf_config_response import UDFConfigResponse
|
23
|
+
from crypticorn.klines.client.models.search_symbol import SearchSymbol
|
24
|
+
from crypticorn.klines.client.models.symbol_group import SymbolGroup
|
25
|
+
from crypticorn.klines.client.models.symbol_info import SymbolInfo
|
26
|
+
from crypticorn.klines.client.models.udf_config import UDFConfig
|
29
27
|
|
30
28
|
from crypticorn.klines.client.api_client import ApiClient, RequestSerialized
|
31
29
|
from crypticorn.klines.client.api_response import ApiResponse
|
@@ -58,8 +56,8 @@ class UDFApi:
|
|
58
56
|
_content_type: Optional[StrictStr] = None,
|
59
57
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
60
58
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
61
|
-
) ->
|
62
|
-
"""Get Server Time
|
59
|
+
) -> int:
|
60
|
+
"""(Deprecated) Get Server Time
|
63
61
|
|
64
62
|
|
65
63
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -83,6 +81,7 @@ class UDFApi:
|
|
83
81
|
:type _host_index: int, optional
|
84
82
|
:return: Returns the result object.
|
85
83
|
""" # noqa: E501
|
84
|
+
warnings.warn("GET /udf/time is deprecated.", DeprecationWarning)
|
86
85
|
|
87
86
|
_param = self._get_server_time_serialize(
|
88
87
|
_request_auth=_request_auth,
|
@@ -92,7 +91,7 @@ class UDFApi:
|
|
92
91
|
)
|
93
92
|
|
94
93
|
_response_types_map: Dict[str, Optional[str]] = {
|
95
|
-
"200": "
|
94
|
+
"200": "int",
|
96
95
|
}
|
97
96
|
response_data = await self.api_client.call_api(
|
98
97
|
*_param, _request_timeout=_request_timeout
|
@@ -117,8 +116,8 @@ class UDFApi:
|
|
117
116
|
_content_type: Optional[StrictStr] = None,
|
118
117
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
119
118
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
120
|
-
) -> ApiResponse[
|
121
|
-
"""Get Server Time
|
119
|
+
) -> ApiResponse[int]:
|
120
|
+
"""(Deprecated) Get Server Time
|
122
121
|
|
123
122
|
|
124
123
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -142,6 +141,7 @@ class UDFApi:
|
|
142
141
|
:type _host_index: int, optional
|
143
142
|
:return: Returns the result object.
|
144
143
|
""" # noqa: E501
|
144
|
+
warnings.warn("GET /udf/time is deprecated.", DeprecationWarning)
|
145
145
|
|
146
146
|
_param = self._get_server_time_serialize(
|
147
147
|
_request_auth=_request_auth,
|
@@ -151,7 +151,7 @@ class UDFApi:
|
|
151
151
|
)
|
152
152
|
|
153
153
|
_response_types_map: Dict[str, Optional[str]] = {
|
154
|
-
"200": "
|
154
|
+
"200": "int",
|
155
155
|
}
|
156
156
|
response_data = await self.api_client.call_api(
|
157
157
|
*_param, _request_timeout=_request_timeout
|
@@ -177,7 +177,7 @@ class UDFApi:
|
|
177
177
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
178
178
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
179
179
|
) -> RESTResponseType:
|
180
|
-
"""Get Server Time
|
180
|
+
"""(Deprecated) Get Server Time
|
181
181
|
|
182
182
|
|
183
183
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -201,6 +201,7 @@ class UDFApi:
|
|
201
201
|
:type _host_index: int, optional
|
202
202
|
:return: Returns the result object.
|
203
203
|
""" # noqa: E501
|
204
|
+
warnings.warn("GET /udf/time is deprecated.", DeprecationWarning)
|
204
205
|
|
205
206
|
_param = self._get_server_time_serialize(
|
206
207
|
_request_auth=_request_auth,
|
@@ -210,7 +211,7 @@ class UDFApi:
|
|
210
211
|
)
|
211
212
|
|
212
213
|
_response_types_map: Dict[str, Optional[str]] = {
|
213
|
-
"200": "
|
214
|
+
"200": "int",
|
214
215
|
}
|
215
216
|
response_data = await self.api_client.call_api(
|
216
217
|
*_param, _request_timeout=_request_timeout
|
@@ -283,7 +284,7 @@ class UDFApi:
|
|
283
284
|
_content_type: Optional[StrictStr] = None,
|
284
285
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
285
286
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
286
|
-
) ->
|
287
|
+
) -> SymbolInfo:
|
287
288
|
"""Get Symbol
|
288
289
|
|
289
290
|
|
@@ -320,8 +321,7 @@ class UDFApi:
|
|
320
321
|
)
|
321
322
|
|
322
323
|
_response_types_map: Dict[str, Optional[str]] = {
|
323
|
-
"200": "
|
324
|
-
"422": "HTTPValidationError",
|
324
|
+
"200": "SymbolInfo",
|
325
325
|
}
|
326
326
|
response_data = await self.api_client.call_api(
|
327
327
|
*_param, _request_timeout=_request_timeout
|
@@ -347,7 +347,7 @@ class UDFApi:
|
|
347
347
|
_content_type: Optional[StrictStr] = None,
|
348
348
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
349
349
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
350
|
-
) -> ApiResponse[
|
350
|
+
) -> ApiResponse[SymbolInfo]:
|
351
351
|
"""Get Symbol
|
352
352
|
|
353
353
|
|
@@ -384,8 +384,7 @@ class UDFApi:
|
|
384
384
|
)
|
385
385
|
|
386
386
|
_response_types_map: Dict[str, Optional[str]] = {
|
387
|
-
"200": "
|
388
|
-
"422": "HTTPValidationError",
|
387
|
+
"200": "SymbolInfo",
|
389
388
|
}
|
390
389
|
response_data = await self.api_client.call_api(
|
391
390
|
*_param, _request_timeout=_request_timeout
|
@@ -448,8 +447,7 @@ class UDFApi:
|
|
448
447
|
)
|
449
448
|
|
450
449
|
_response_types_map: Dict[str, Optional[str]] = {
|
451
|
-
"200": "
|
452
|
-
"422": "HTTPValidationError",
|
450
|
+
"200": "SymbolInfo",
|
453
451
|
}
|
454
452
|
response_data = await self.api_client.call_api(
|
455
453
|
*_param, _request_timeout=_request_timeout
|
@@ -527,8 +525,8 @@ class UDFApi:
|
|
527
525
|
_content_type: Optional[StrictStr] = None,
|
528
526
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
529
527
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
530
|
-
) ->
|
531
|
-
"""Get Symbol Info
|
528
|
+
) -> SymbolGroup:
|
529
|
+
"""(Deprecated) Get Symbol Info
|
532
530
|
|
533
531
|
Handle symbol info requests for different groups
|
534
532
|
|
@@ -555,6 +553,7 @@ class UDFApi:
|
|
555
553
|
:type _host_index: int, optional
|
556
554
|
:return: Returns the result object.
|
557
555
|
""" # noqa: E501
|
556
|
+
warnings.warn("GET /udf/symbol_info is deprecated.", DeprecationWarning)
|
558
557
|
|
559
558
|
_param = self._get_symbol_info_serialize(
|
560
559
|
group=group,
|
@@ -565,8 +564,7 @@ class UDFApi:
|
|
565
564
|
)
|
566
565
|
|
567
566
|
_response_types_map: Dict[str, Optional[str]] = {
|
568
|
-
"200": "
|
569
|
-
"422": "HTTPValidationError",
|
567
|
+
"200": "SymbolGroup",
|
570
568
|
}
|
571
569
|
response_data = await self.api_client.call_api(
|
572
570
|
*_param, _request_timeout=_request_timeout
|
@@ -592,8 +590,8 @@ class UDFApi:
|
|
592
590
|
_content_type: Optional[StrictStr] = None,
|
593
591
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
594
592
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
595
|
-
) -> ApiResponse[
|
596
|
-
"""Get Symbol Info
|
593
|
+
) -> ApiResponse[SymbolGroup]:
|
594
|
+
"""(Deprecated) Get Symbol Info
|
597
595
|
|
598
596
|
Handle symbol info requests for different groups
|
599
597
|
|
@@ -620,6 +618,7 @@ class UDFApi:
|
|
620
618
|
:type _host_index: int, optional
|
621
619
|
:return: Returns the result object.
|
622
620
|
""" # noqa: E501
|
621
|
+
warnings.warn("GET /udf/symbol_info is deprecated.", DeprecationWarning)
|
623
622
|
|
624
623
|
_param = self._get_symbol_info_serialize(
|
625
624
|
group=group,
|
@@ -630,8 +629,7 @@ class UDFApi:
|
|
630
629
|
)
|
631
630
|
|
632
631
|
_response_types_map: Dict[str, Optional[str]] = {
|
633
|
-
"200": "
|
634
|
-
"422": "HTTPValidationError",
|
632
|
+
"200": "SymbolGroup",
|
635
633
|
}
|
636
634
|
response_data = await self.api_client.call_api(
|
637
635
|
*_param, _request_timeout=_request_timeout
|
@@ -658,7 +656,7 @@ class UDFApi:
|
|
658
656
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
659
657
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
660
658
|
) -> RESTResponseType:
|
661
|
-
"""Get Symbol Info
|
659
|
+
"""(Deprecated) Get Symbol Info
|
662
660
|
|
663
661
|
Handle symbol info requests for different groups
|
664
662
|
|
@@ -685,6 +683,7 @@ class UDFApi:
|
|
685
683
|
:type _host_index: int, optional
|
686
684
|
:return: Returns the result object.
|
687
685
|
""" # noqa: E501
|
686
|
+
warnings.warn("GET /udf/symbol_info is deprecated.", DeprecationWarning)
|
688
687
|
|
689
688
|
_param = self._get_symbol_info_serialize(
|
690
689
|
group=group,
|
@@ -695,8 +694,7 @@ class UDFApi:
|
|
695
694
|
)
|
696
695
|
|
697
696
|
_response_types_map: Dict[str, Optional[str]] = {
|
698
|
-
"200": "
|
699
|
-
"422": "HTTPValidationError",
|
697
|
+
"200": "SymbolGroup",
|
700
698
|
}
|
701
699
|
response_data = await self.api_client.call_api(
|
702
700
|
*_param, _request_timeout=_request_timeout
|
@@ -773,7 +771,7 @@ class UDFApi:
|
|
773
771
|
_content_type: Optional[StrictStr] = None,
|
774
772
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
775
773
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
776
|
-
) ->
|
774
|
+
) -> UDFConfig:
|
777
775
|
"""Get Config
|
778
776
|
|
779
777
|
|
@@ -807,7 +805,7 @@ class UDFApi:
|
|
807
805
|
)
|
808
806
|
|
809
807
|
_response_types_map: Dict[str, Optional[str]] = {
|
810
|
-
"200": "
|
808
|
+
"200": "UDFConfig",
|
811
809
|
}
|
812
810
|
response_data = await self.api_client.call_api(
|
813
811
|
*_param, _request_timeout=_request_timeout
|
@@ -832,7 +830,7 @@ class UDFApi:
|
|
832
830
|
_content_type: Optional[StrictStr] = None,
|
833
831
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
834
832
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
835
|
-
) -> ApiResponse[
|
833
|
+
) -> ApiResponse[UDFConfig]:
|
836
834
|
"""Get Config
|
837
835
|
|
838
836
|
|
@@ -866,7 +864,7 @@ class UDFApi:
|
|
866
864
|
)
|
867
865
|
|
868
866
|
_response_types_map: Dict[str, Optional[str]] = {
|
869
|
-
"200": "
|
867
|
+
"200": "UDFConfig",
|
870
868
|
}
|
871
869
|
response_data = await self.api_client.call_api(
|
872
870
|
*_param, _request_timeout=_request_timeout
|
@@ -925,7 +923,7 @@ class UDFApi:
|
|
925
923
|
)
|
926
924
|
|
927
925
|
_response_types_map: Dict[str, Optional[str]] = {
|
928
|
-
"200": "
|
926
|
+
"200": "UDFConfig",
|
929
927
|
}
|
930
928
|
response_data = await self.api_client.call_api(
|
931
929
|
*_param, _request_timeout=_request_timeout
|
@@ -1002,7 +1000,7 @@ class UDFApi:
|
|
1002
1000
|
_content_type: Optional[StrictStr] = None,
|
1003
1001
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1004
1002
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1005
|
-
) ->
|
1003
|
+
) -> OHLCVHistory:
|
1006
1004
|
"""Get History
|
1007
1005
|
|
1008
1006
|
|
@@ -1051,8 +1049,7 @@ class UDFApi:
|
|
1051
1049
|
)
|
1052
1050
|
|
1053
1051
|
_response_types_map: Dict[str, Optional[str]] = {
|
1054
|
-
"200": "
|
1055
|
-
"422": "HTTPValidationError",
|
1052
|
+
"200": "OHLCVHistory",
|
1056
1053
|
}
|
1057
1054
|
response_data = await self.api_client.call_api(
|
1058
1055
|
*_param, _request_timeout=_request_timeout
|
@@ -1082,7 +1079,7 @@ class UDFApi:
|
|
1082
1079
|
_content_type: Optional[StrictStr] = None,
|
1083
1080
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1084
1081
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1085
|
-
) -> ApiResponse[
|
1082
|
+
) -> ApiResponse[OHLCVHistory]:
|
1086
1083
|
"""Get History
|
1087
1084
|
|
1088
1085
|
|
@@ -1131,8 +1128,7 @@ class UDFApi:
|
|
1131
1128
|
)
|
1132
1129
|
|
1133
1130
|
_response_types_map: Dict[str, Optional[str]] = {
|
1134
|
-
"200": "
|
1135
|
-
"422": "HTTPValidationError",
|
1131
|
+
"200": "OHLCVHistory",
|
1136
1132
|
}
|
1137
1133
|
response_data = await self.api_client.call_api(
|
1138
1134
|
*_param, _request_timeout=_request_timeout
|
@@ -1211,8 +1207,7 @@ class UDFApi:
|
|
1211
1207
|
)
|
1212
1208
|
|
1213
1209
|
_response_types_map: Dict[str, Optional[str]] = {
|
1214
|
-
"200": "
|
1215
|
-
"422": "HTTPValidationError",
|
1210
|
+
"200": "OHLCVHistory",
|
1216
1211
|
}
|
1217
1212
|
response_data = await self.api_client.call_api(
|
1218
1213
|
*_param, _request_timeout=_request_timeout
|
@@ -1349,7 +1344,6 @@ class UDFApi:
|
|
1349
1344
|
|
1350
1345
|
_response_types_map: Dict[str, Optional[str]] = {
|
1351
1346
|
"200": "object",
|
1352
|
-
"422": "HTTPValidationError",
|
1353
1347
|
}
|
1354
1348
|
response_data = await self.api_client.call_api(
|
1355
1349
|
*_param, _request_timeout=_request_timeout
|
@@ -1414,7 +1408,6 @@ class UDFApi:
|
|
1414
1408
|
|
1415
1409
|
_response_types_map: Dict[str, Optional[str]] = {
|
1416
1410
|
"200": "object",
|
1417
|
-
"422": "HTTPValidationError",
|
1418
1411
|
}
|
1419
1412
|
response_data = await self.api_client.call_api(
|
1420
1413
|
*_param, _request_timeout=_request_timeout
|
@@ -1479,7 +1472,6 @@ class UDFApi:
|
|
1479
1472
|
|
1480
1473
|
_response_types_map: Dict[str, Optional[str]] = {
|
1481
1474
|
"200": "object",
|
1482
|
-
"422": "HTTPValidationError",
|
1483
1475
|
}
|
1484
1476
|
response_data = await self.api_client.call_api(
|
1485
1477
|
*_param, _request_timeout=_request_timeout
|
@@ -1556,7 +1548,7 @@ class UDFApi:
|
|
1556
1548
|
_content_type: Optional[StrictStr] = None,
|
1557
1549
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1558
1550
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1559
|
-
) -> List[
|
1551
|
+
) -> List[SearchSymbol]:
|
1560
1552
|
"""Search Symbols
|
1561
1553
|
|
1562
1554
|
Called when a user searches for symbols in TradingView
|
@@ -1597,8 +1589,7 @@ class UDFApi:
|
|
1597
1589
|
)
|
1598
1590
|
|
1599
1591
|
_response_types_map: Dict[str, Optional[str]] = {
|
1600
|
-
"200": "List[
|
1601
|
-
"422": "HTTPValidationError",
|
1592
|
+
"200": "List[SearchSymbol]",
|
1602
1593
|
}
|
1603
1594
|
response_data = await self.api_client.call_api(
|
1604
1595
|
*_param, _request_timeout=_request_timeout
|
@@ -1625,7 +1616,7 @@ class UDFApi:
|
|
1625
1616
|
_content_type: Optional[StrictStr] = None,
|
1626
1617
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1627
1618
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1628
|
-
) -> ApiResponse[List[
|
1619
|
+
) -> ApiResponse[List[SearchSymbol]]:
|
1629
1620
|
"""Search Symbols
|
1630
1621
|
|
1631
1622
|
Called when a user searches for symbols in TradingView
|
@@ -1666,8 +1657,7 @@ class UDFApi:
|
|
1666
1657
|
)
|
1667
1658
|
|
1668
1659
|
_response_types_map: Dict[str, Optional[str]] = {
|
1669
|
-
"200": "List[
|
1670
|
-
"422": "HTTPValidationError",
|
1660
|
+
"200": "List[SearchSymbol]",
|
1671
1661
|
}
|
1672
1662
|
response_data = await self.api_client.call_api(
|
1673
1663
|
*_param, _request_timeout=_request_timeout
|
@@ -1735,8 +1725,7 @@ class UDFApi:
|
|
1735
1725
|
)
|
1736
1726
|
|
1737
1727
|
_response_types_map: Dict[str, Optional[str]] = {
|
1738
|
-
"200": "List[
|
1739
|
-
"422": "HTTPValidationError",
|
1728
|
+
"200": "List[SearchSymbol]",
|
1740
1729
|
}
|
1741
1730
|
response_data = await self.api_client.call_api(
|
1742
1731
|
*_param, _request_timeout=_request_timeout
|
@@ -3,7 +3,7 @@
|
|
3
3
|
"""
|
4
4
|
Klines Service API
|
5
5
|
|
6
|
-
|
6
|
+
API for retrieving OHLCV data, funding rates, and symbol information from Binance.
|
7
7
|
|
8
8
|
The version of the OpenAPI document: 1.0.0
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
@@ -3,7 +3,7 @@
|
|
3
3
|
"""
|
4
4
|
Klines Service API
|
5
5
|
|
6
|
-
|
6
|
+
API for retrieving OHLCV data, funding rates, and symbol information from Binance.
|
7
7
|
|
8
8
|
The version of the OpenAPI document: 1.0.0
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
@@ -3,7 +3,7 @@
|
|
3
3
|
"""
|
4
4
|
Klines Service API
|
5
5
|
|
6
|
-
|
6
|
+
API for retrieving OHLCV data, funding rates, and symbol information from Binance.
|
7
7
|
|
8
8
|
The version of the OpenAPI document: 1.0.0
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
@@ -4,7 +4,7 @@
|
|
4
4
|
"""
|
5
5
|
Klines Service API
|
6
6
|
|
7
|
-
|
7
|
+
API for retrieving OHLCV data, funding rates, and symbol information from Binance.
|
8
8
|
|
9
9
|
The version of the OpenAPI document: 1.0.0
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
@@ -14,48 +14,20 @@ Do not edit the class manually.
|
|
14
14
|
|
15
15
|
|
16
16
|
# import models into model package
|
17
|
-
from crypticorn.klines.client.models.
|
18
|
-
|
19
|
-
|
20
|
-
from crypticorn.klines.client.models.
|
21
|
-
|
22
|
-
|
23
|
-
from crypticorn.klines.client.models.
|
24
|
-
BaseResponseListFundingRateResponse,
|
25
|
-
)
|
26
|
-
from crypticorn.klines.client.models.base_response_list_str import BaseResponseListStr
|
27
|
-
from crypticorn.klines.client.models.base_response_ohlcv_response import (
|
28
|
-
BaseResponseOHLCVResponse,
|
29
|
-
)
|
30
|
-
from crypticorn.klines.client.models.change_in_timeframe_response import (
|
31
|
-
ChangeInTimeframeResponse,
|
32
|
-
)
|
33
|
-
from crypticorn.klines.client.models.error_response import ErrorResponse
|
34
|
-
from crypticorn.klines.client.models.exchange import Exchange
|
35
|
-
from crypticorn.klines.client.models.funding_rate_response import FundingRateResponse
|
36
|
-
from crypticorn.klines.client.models.http_validation_error import HTTPValidationError
|
37
|
-
from crypticorn.klines.client.models.health_check_response import HealthCheckResponse
|
38
|
-
from crypticorn.klines.client.models.history_error_response import HistoryErrorResponse
|
39
|
-
from crypticorn.klines.client.models.history_no_data_response import (
|
40
|
-
HistoryNoDataResponse,
|
41
|
-
)
|
42
|
-
from crypticorn.klines.client.models.history_success_response import (
|
43
|
-
HistorySuccessResponse,
|
44
|
-
)
|
17
|
+
from crypticorn.klines.client.models.api_error_identifier import ApiErrorIdentifier
|
18
|
+
from crypticorn.klines.client.models.api_error_level import ApiErrorLevel
|
19
|
+
from crypticorn.klines.client.models.api_error_type import ApiErrorType
|
20
|
+
from crypticorn.klines.client.models.change_in_timeframe import ChangeInTimeframe
|
21
|
+
from crypticorn.klines.client.models.exception_detail import ExceptionDetail
|
22
|
+
from crypticorn.klines.client.models.funding_rate import FundingRate
|
23
|
+
from crypticorn.klines.client.models.internal_exchange import InternalExchange
|
45
24
|
from crypticorn.klines.client.models.market_type import MarketType
|
46
|
-
from crypticorn.klines.client.models.
|
25
|
+
from crypticorn.klines.client.models.ohlcv_history import OHLCVHistory
|
47
26
|
from crypticorn.klines.client.models.resolution import Resolution
|
48
|
-
from crypticorn.klines.client.models.
|
49
|
-
ResponseGetUdfHistory,
|
50
|
-
)
|
51
|
-
from crypticorn.klines.client.models.search_symbol_response import SearchSymbolResponse
|
27
|
+
from crypticorn.klines.client.models.search_symbol import SearchSymbol
|
52
28
|
from crypticorn.klines.client.models.sort_direction import SortDirection
|
53
|
-
from crypticorn.klines.client.models.
|
54
|
-
from crypticorn.klines.client.models.
|
29
|
+
from crypticorn.klines.client.models.symbol_group import SymbolGroup
|
30
|
+
from crypticorn.klines.client.models.symbol_info import SymbolInfo
|
55
31
|
from crypticorn.klines.client.models.symbol_type import SymbolType
|
56
32
|
from crypticorn.klines.client.models.timeframe import Timeframe
|
57
|
-
from crypticorn.klines.client.models.
|
58
|
-
from crypticorn.klines.client.models.validation_error import ValidationError
|
59
|
-
from crypticorn.klines.client.models.validation_error_loc_inner import (
|
60
|
-
ValidationErrorLocInner,
|
61
|
-
)
|
33
|
+
from crypticorn.klines.client.models.udf_config import UDFConfig
|