crypticorn 2.5.0rc5__py3-none-any.whl → 2.5.2__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 +3 -1
- crypticorn/common/auth.py +38 -20
- crypticorn/common/enums.py +4 -31
- crypticorn/common/errors.py +72 -17
- crypticorn/common/exceptions.py +29 -15
- crypticorn/common/mixins.py +37 -0
- crypticorn/common/status_router.py +42 -0
- crypticorn/common/urls.py +2 -1
- crypticorn/common/utils.py +9 -14
- crypticorn/hive/main.py +2 -0
- crypticorn/klines/client/__init__.py +10 -43
- crypticorn/klines/client/api/__init__.py +1 -1
- crypticorn/klines/client/api/change_in_timeframe_api.py +16 -31
- crypticorn/klines/client/api/funding_rates_api.py +8 -22
- crypticorn/klines/client/api/ohlcv_data_api.py +17 -38
- crypticorn/klines/client/api/{health_check_api.py → status_api.py} +18 -23
- crypticorn/klines/client/api/symbols_api.py +18 -34
- 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 +9 -42
- crypticorn/klines/client/models/{change_in_timeframe_response.py → change_in_timeframe.py} +5 -5
- crypticorn/klines/client/models/{error_response.py → exception_detail.py} +25 -20
- crypticorn/klines/client/models/{funding_rate_response.py → funding_rate.py} +5 -5
- crypticorn/klines/client/models/{ohlcv_response.py → ohlcv_history.py} +14 -14
- crypticorn/klines/client/models/resolution.py +1 -1
- crypticorn/klines/client/models/{exchange.py → search_symbol.py} +17 -13
- crypticorn/klines/client/models/sort_direction.py +1 -1
- crypticorn/klines/client/models/{symbol_group_response.py → symbol_group.py} +5 -5
- crypticorn/klines/client/models/{symbol_info_response.py → symbol_info.py} +5 -5
- crypticorn/klines/client/models/symbol_type.py +1 -1
- crypticorn/klines/client/models/timeframe.py +1 -1
- crypticorn/klines/client/models/{udf_config_response.py → udf_config.py} +7 -19
- crypticorn/klines/client/rest.py +1 -1
- crypticorn/klines/main.py +40 -23
- crypticorn/metrics/client/__init__.py +3 -22
- crypticorn/metrics/client/api/__init__.py +1 -1
- crypticorn/metrics/client/api/exchanges_api.py +53 -97
- crypticorn/metrics/client/api/indicators_api.py +26 -52
- crypticorn/metrics/client/api/logs_api.py +8 -23
- crypticorn/metrics/client/api/marketcap_api.py +36 -88
- crypticorn/metrics/client/api/markets_api.py +26 -55
- crypticorn/metrics/client/api/{health_check_api.py → status_api.py} +18 -23
- crypticorn/metrics/client/api/tokens_api.py +7 -21
- crypticorn/metrics/client/api_client.py +1 -1
- crypticorn/metrics/client/configuration.py +1 -1
- crypticorn/metrics/client/exceptions.py +1 -1
- crypticorn/metrics/client/models/__init__.py +2 -21
- crypticorn/metrics/client/models/{error_response.py → exception_detail.py} +25 -20
- 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 +1 -5
- crypticorn/trade/client/api/exchanges_api.py +6 -6
- crypticorn/trade/client/api/trading_actions_api.py +16 -15
- crypticorn/trade/client/models/__init__.py +1 -5
- crypticorn/trade/client/models/action_model.py +1 -2
- crypticorn/trade/client/models/bot_model.py +3 -7
- crypticorn/trade/client/models/exchange_key_model.py +2 -11
- crypticorn/trade/client/models/execution_ids.py +1 -1
- crypticorn/trade/client/models/futures_trading_action.py +1 -2
- crypticorn/trade/client/models/notification_model.py +3 -12
- crypticorn/trade/client/models/order_model.py +7 -21
- crypticorn/trade/client/models/spot_trading_action.py +230 -0
- crypticorn/trade/client/models/strategy_exchange_info.py +2 -3
- crypticorn/trade/client/models/strategy_model_input.py +1 -2
- crypticorn/trade/client/models/strategy_model_output.py +1 -2
- crypticorn/trade/client/models/tpsl.py +3 -1
- crypticorn/trade/main.py +2 -0
- {crypticorn-2.5.0rc5.dist-info → crypticorn-2.5.2.dist-info}/METADATA +7 -5
- {crypticorn-2.5.0rc5.dist-info → crypticorn-2.5.2.dist-info}/RECORD +81 -141
- {crypticorn-2.5.0rc5.dist-info → crypticorn-2.5.2.dist-info}/WHEEL +1 -1
- crypticorn/common/sorter.py +0 -40
- 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/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/market.py +0 -35
- crypticorn/klines/client/models/market_type.py +0 -35
- 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/validation_error.py +0 -105
- crypticorn/klines/client/models/validation_error_loc_inner.py +0 -159
- crypticorn/metrics/client/models/base_response_dict.py +0 -106
- 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/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/min_amount_req.py +0 -124
- crypticorn/pay/client/models/min_amount_res.py +0 -105
- 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/trade/client/models/api_error_identifier.py +0 -104
- crypticorn/trade/client/models/api_error_level.py +0 -37
- crypticorn/trade/client/models/api_error_type.py +0 -37
- crypticorn/trade/client/models/api_key_model.py +0 -156
- crypticorn/trade/client/models/exchange.py +0 -35
- crypticorn/trade/client/models/market_type.py +0 -35
- /crypticorn/common/{pydantic.py → decorators.py} +0 -0
- {crypticorn-2.5.0rc5.dist-info → crypticorn-2.5.2.dist-info}/entry_points.txt +0 -0
- {crypticorn-2.5.0rc5.dist-info → crypticorn-2.5.2.dist-info}/top_level.txt +0 -0
@@ -3,7 +3,7 @@
|
|
3
3
|
"""
|
4
4
|
Marketcap Service API
|
5
5
|
|
6
|
-
|
6
|
+
API for retrieving historical marketcap data, available exchanges, and indicators.
|
7
7
|
|
8
8
|
The version of the OpenAPI document: 1.0.0
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
@@ -16,12 +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, StrictInt
|
20
|
-
from typing import Optional
|
19
|
+
from pydantic import Field, StrictInt, StrictStr
|
20
|
+
from typing import List, Optional
|
21
21
|
from typing_extensions import Annotated
|
22
|
-
from crypticorn.metrics.client.models.base_response_list_dict import (
|
23
|
-
BaseResponseListDict,
|
24
|
-
)
|
25
22
|
from crypticorn.metrics.client.models.severity import Severity
|
26
23
|
|
27
24
|
from crypticorn.metrics.client.api_client import ApiClient, RequestSerialized
|
@@ -66,7 +63,7 @@ class LogsApi:
|
|
66
63
|
_content_type: Optional[StrictStr] = None,
|
67
64
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
68
65
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
69
|
-
) ->
|
66
|
+
) -> List[str]:
|
70
67
|
"""Get Error Logs
|
71
68
|
|
72
69
|
Get error logs with filtering options.
|
@@ -110,11 +107,7 @@ class LogsApi:
|
|
110
107
|
)
|
111
108
|
|
112
109
|
_response_types_map: Dict[str, Optional[str]] = {
|
113
|
-
"200": "
|
114
|
-
"400": "ErrorResponse",
|
115
|
-
"404": "ErrorResponse",
|
116
|
-
"500": "ErrorResponse",
|
117
|
-
"422": "HTTPValidationError",
|
110
|
+
"200": "List[str]",
|
118
111
|
}
|
119
112
|
response_data = await self.api_client.call_api(
|
120
113
|
*_param, _request_timeout=_request_timeout
|
@@ -150,7 +143,7 @@ class LogsApi:
|
|
150
143
|
_content_type: Optional[StrictStr] = None,
|
151
144
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
152
145
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
153
|
-
) -> ApiResponse[
|
146
|
+
) -> ApiResponse[List[str]]:
|
154
147
|
"""Get Error Logs
|
155
148
|
|
156
149
|
Get error logs with filtering options.
|
@@ -194,11 +187,7 @@ class LogsApi:
|
|
194
187
|
)
|
195
188
|
|
196
189
|
_response_types_map: Dict[str, Optional[str]] = {
|
197
|
-
"200": "
|
198
|
-
"400": "ErrorResponse",
|
199
|
-
"404": "ErrorResponse",
|
200
|
-
"500": "ErrorResponse",
|
201
|
-
"422": "HTTPValidationError",
|
190
|
+
"200": "List[str]",
|
202
191
|
}
|
203
192
|
response_data = await self.api_client.call_api(
|
204
193
|
*_param, _request_timeout=_request_timeout
|
@@ -278,11 +267,7 @@ class LogsApi:
|
|
278
267
|
)
|
279
268
|
|
280
269
|
_response_types_map: Dict[str, Optional[str]] = {
|
281
|
-
"200": "
|
282
|
-
"400": "ErrorResponse",
|
283
|
-
"404": "ErrorResponse",
|
284
|
-
"500": "ErrorResponse",
|
285
|
-
"422": "HTTPValidationError",
|
270
|
+
"200": "List[str]",
|
286
271
|
}
|
287
272
|
response_data = await self.api_client.call_api(
|
288
273
|
*_param, _request_timeout=_request_timeout
|
@@ -3,7 +3,7 @@
|
|
3
3
|
"""
|
4
4
|
Marketcap Service API
|
5
5
|
|
6
|
-
|
6
|
+
API for retrieving historical marketcap data, available exchanges, and indicators.
|
7
7
|
|
8
8
|
The version of the OpenAPI document: 1.0.0
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
@@ -17,12 +17,8 @@ from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
17
|
from typing_extensions import Annotated
|
18
18
|
|
19
19
|
from pydantic import Field, StrictInt, StrictStr, field_validator
|
20
|
-
from typing import Optional
|
20
|
+
from typing import Any, Dict, List, Optional
|
21
21
|
from typing_extensions import Annotated
|
22
|
-
from crypticorn.metrics.client.models.base_response_list_dict import (
|
23
|
-
BaseResponseListDict,
|
24
|
-
)
|
25
|
-
from crypticorn.metrics.client.models.market_type import MarketType
|
26
22
|
|
27
23
|
from crypticorn.metrics.client.api_client import ApiClient, RequestSerialized
|
28
24
|
from crypticorn.metrics.client.api_response import ApiResponse
|
@@ -59,7 +55,7 @@ class MarketcapApi:
|
|
59
55
|
_content_type: Optional[StrictStr] = None,
|
60
56
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
61
57
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
62
|
-
) ->
|
58
|
+
) -> List[Dict[str, object]]:
|
63
59
|
"""Get Current Marketcap
|
64
60
|
|
65
61
|
Retrieve current marketcap data for all symbols.
|
@@ -97,11 +93,7 @@ class MarketcapApi:
|
|
97
93
|
)
|
98
94
|
|
99
95
|
_response_types_map: Dict[str, Optional[str]] = {
|
100
|
-
"200": "
|
101
|
-
"400": "ErrorResponse",
|
102
|
-
"404": "ErrorResponse",
|
103
|
-
"500": "ErrorResponse",
|
104
|
-
"422": "HTTPValidationError",
|
96
|
+
"200": "List[Dict[str, object]]",
|
105
97
|
}
|
106
98
|
response_data = await self.api_client.call_api(
|
107
99
|
*_param, _request_timeout=_request_timeout
|
@@ -130,7 +122,7 @@ class MarketcapApi:
|
|
130
122
|
_content_type: Optional[StrictStr] = None,
|
131
123
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
132
124
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
133
|
-
) -> ApiResponse[
|
125
|
+
) -> ApiResponse[List[Dict[str, object]]]:
|
134
126
|
"""Get Current Marketcap
|
135
127
|
|
136
128
|
Retrieve current marketcap data for all symbols.
|
@@ -168,11 +160,7 @@ class MarketcapApi:
|
|
168
160
|
)
|
169
161
|
|
170
162
|
_response_types_map: Dict[str, Optional[str]] = {
|
171
|
-
"200": "
|
172
|
-
"400": "ErrorResponse",
|
173
|
-
"404": "ErrorResponse",
|
174
|
-
"500": "ErrorResponse",
|
175
|
-
"422": "HTTPValidationError",
|
163
|
+
"200": "List[Dict[str, object]]",
|
176
164
|
}
|
177
165
|
response_data = await self.api_client.call_api(
|
178
166
|
*_param, _request_timeout=_request_timeout
|
@@ -239,11 +227,7 @@ class MarketcapApi:
|
|
239
227
|
)
|
240
228
|
|
241
229
|
_response_types_map: Dict[str, Optional[str]] = {
|
242
|
-
"200": "
|
243
|
-
"400": "ErrorResponse",
|
244
|
-
"404": "ErrorResponse",
|
245
|
-
"500": "ErrorResponse",
|
246
|
-
"422": "HTTPValidationError",
|
230
|
+
"200": "List[Dict[str, object]]",
|
247
231
|
}
|
248
232
|
response_data = await self.api_client.call_api(
|
249
233
|
*_param, _request_timeout=_request_timeout
|
@@ -326,7 +310,7 @@ class MarketcapApi:
|
|
326
310
|
_content_type: Optional[StrictStr] = None,
|
327
311
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
328
312
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
329
|
-
) ->
|
313
|
+
) -> List[Dict[str, object]]:
|
330
314
|
"""Get Marketcap Between Timestamps
|
331
315
|
|
332
316
|
Retrieve marketcap data between timestamps.
|
@@ -367,11 +351,7 @@ class MarketcapApi:
|
|
367
351
|
)
|
368
352
|
|
369
353
|
_response_types_map: Dict[str, Optional[str]] = {
|
370
|
-
"200": "
|
371
|
-
"400": "ErrorResponse",
|
372
|
-
"404": "ErrorResponse",
|
373
|
-
"500": "ErrorResponse",
|
374
|
-
"422": "HTTPValidationError",
|
354
|
+
"200": "List[Dict[str, object]]",
|
375
355
|
}
|
376
356
|
response_data = await self.api_client.call_api(
|
377
357
|
*_param, _request_timeout=_request_timeout
|
@@ -402,7 +382,7 @@ class MarketcapApi:
|
|
402
382
|
_content_type: Optional[StrictStr] = None,
|
403
383
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
404
384
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
405
|
-
) -> ApiResponse[
|
385
|
+
) -> ApiResponse[List[Dict[str, object]]]:
|
406
386
|
"""Get Marketcap Between Timestamps
|
407
387
|
|
408
388
|
Retrieve marketcap data between timestamps.
|
@@ -443,11 +423,7 @@ class MarketcapApi:
|
|
443
423
|
)
|
444
424
|
|
445
425
|
_response_types_map: Dict[str, Optional[str]] = {
|
446
|
-
"200": "
|
447
|
-
"400": "ErrorResponse",
|
448
|
-
"404": "ErrorResponse",
|
449
|
-
"500": "ErrorResponse",
|
450
|
-
"422": "HTTPValidationError",
|
426
|
+
"200": "List[Dict[str, object]]",
|
451
427
|
}
|
452
428
|
response_data = await self.api_client.call_api(
|
453
429
|
*_param, _request_timeout=_request_timeout
|
@@ -519,11 +495,7 @@ class MarketcapApi:
|
|
519
495
|
)
|
520
496
|
|
521
497
|
_response_types_map: Dict[str, Optional[str]] = {
|
522
|
-
"200": "
|
523
|
-
"400": "ErrorResponse",
|
524
|
-
"404": "ErrorResponse",
|
525
|
-
"500": "ErrorResponse",
|
526
|
-
"422": "HTTPValidationError",
|
498
|
+
"200": "List[Dict[str, object]]",
|
527
499
|
}
|
528
500
|
response_data = await self.api_client.call_api(
|
529
501
|
*_param, _request_timeout=_request_timeout
|
@@ -605,7 +577,7 @@ class MarketcapApi:
|
|
605
577
|
Field(description="Interval for which to fetch symbols and marketcap data"),
|
606
578
|
] = None,
|
607
579
|
market: Annotated[
|
608
|
-
Optional[
|
580
|
+
Optional[StrictStr],
|
609
581
|
Field(description="Market for which to fetch symbols and marketcap data"),
|
610
582
|
] = None,
|
611
583
|
exchange: Annotated[
|
@@ -623,7 +595,7 @@ class MarketcapApi:
|
|
623
595
|
_content_type: Optional[StrictStr] = None,
|
624
596
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
625
597
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
626
|
-
) ->
|
598
|
+
) -> List[Dict[str, object]]:
|
627
599
|
"""Get Symbols Marketcap Between Timestamps
|
628
600
|
|
629
601
|
Retrieve marketcap data for symbols between timestamps with optional filtering.
|
@@ -635,7 +607,7 @@ class MarketcapApi:
|
|
635
607
|
:param interval: Interval for which to fetch symbols and marketcap data
|
636
608
|
:type interval: str
|
637
609
|
:param market: Market for which to fetch symbols and marketcap data
|
638
|
-
:type market:
|
610
|
+
:type market: str
|
639
611
|
:param exchange: Exchange for which to fetch symbols and marketcap data
|
640
612
|
:type exchange: str
|
641
613
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -673,11 +645,7 @@ class MarketcapApi:
|
|
673
645
|
)
|
674
646
|
|
675
647
|
_response_types_map: Dict[str, Optional[str]] = {
|
676
|
-
"200": "
|
677
|
-
"400": "ErrorResponse",
|
678
|
-
"404": "ErrorResponse",
|
679
|
-
"500": "ErrorResponse",
|
680
|
-
"422": "HTTPValidationError",
|
648
|
+
"200": "List[Dict[str, object]]",
|
681
649
|
}
|
682
650
|
response_data = await self.api_client.call_api(
|
683
651
|
*_param, _request_timeout=_request_timeout
|
@@ -702,7 +670,7 @@ class MarketcapApi:
|
|
702
670
|
Field(description="Interval for which to fetch symbols and marketcap data"),
|
703
671
|
] = None,
|
704
672
|
market: Annotated[
|
705
|
-
Optional[
|
673
|
+
Optional[StrictStr],
|
706
674
|
Field(description="Market for which to fetch symbols and marketcap data"),
|
707
675
|
] = None,
|
708
676
|
exchange: Annotated[
|
@@ -720,7 +688,7 @@ class MarketcapApi:
|
|
720
688
|
_content_type: Optional[StrictStr] = None,
|
721
689
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
722
690
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
723
|
-
) -> ApiResponse[
|
691
|
+
) -> ApiResponse[List[Dict[str, object]]]:
|
724
692
|
"""Get Symbols Marketcap Between Timestamps
|
725
693
|
|
726
694
|
Retrieve marketcap data for symbols between timestamps with optional filtering.
|
@@ -732,7 +700,7 @@ class MarketcapApi:
|
|
732
700
|
:param interval: Interval for which to fetch symbols and marketcap data
|
733
701
|
:type interval: str
|
734
702
|
:param market: Market for which to fetch symbols and marketcap data
|
735
|
-
:type market:
|
703
|
+
:type market: str
|
736
704
|
:param exchange: Exchange for which to fetch symbols and marketcap data
|
737
705
|
:type exchange: str
|
738
706
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -770,11 +738,7 @@ class MarketcapApi:
|
|
770
738
|
)
|
771
739
|
|
772
740
|
_response_types_map: Dict[str, Optional[str]] = {
|
773
|
-
"200": "
|
774
|
-
"400": "ErrorResponse",
|
775
|
-
"404": "ErrorResponse",
|
776
|
-
"500": "ErrorResponse",
|
777
|
-
"422": "HTTPValidationError",
|
741
|
+
"200": "List[Dict[str, object]]",
|
778
742
|
}
|
779
743
|
response_data = await self.api_client.call_api(
|
780
744
|
*_param, _request_timeout=_request_timeout
|
@@ -799,7 +763,7 @@ class MarketcapApi:
|
|
799
763
|
Field(description="Interval for which to fetch symbols and marketcap data"),
|
800
764
|
] = None,
|
801
765
|
market: Annotated[
|
802
|
-
Optional[
|
766
|
+
Optional[StrictStr],
|
803
767
|
Field(description="Market for which to fetch symbols and marketcap data"),
|
804
768
|
] = None,
|
805
769
|
exchange: Annotated[
|
@@ -829,7 +793,7 @@ class MarketcapApi:
|
|
829
793
|
:param interval: Interval for which to fetch symbols and marketcap data
|
830
794
|
:type interval: str
|
831
795
|
:param market: Market for which to fetch symbols and marketcap data
|
832
|
-
:type market:
|
796
|
+
:type market: str
|
833
797
|
:param exchange: Exchange for which to fetch symbols and marketcap data
|
834
798
|
:type exchange: str
|
835
799
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -867,11 +831,7 @@ class MarketcapApi:
|
|
867
831
|
)
|
868
832
|
|
869
833
|
_response_types_map: Dict[str, Optional[str]] = {
|
870
|
-
"200": "
|
871
|
-
"400": "ErrorResponse",
|
872
|
-
"404": "ErrorResponse",
|
873
|
-
"500": "ErrorResponse",
|
874
|
-
"422": "HTTPValidationError",
|
834
|
+
"200": "List[Dict[str, object]]",
|
875
835
|
}
|
876
836
|
response_data = await self.api_client.call_api(
|
877
837
|
*_param, _request_timeout=_request_timeout
|
@@ -920,7 +880,7 @@ class MarketcapApi:
|
|
920
880
|
|
921
881
|
if market is not None:
|
922
882
|
|
923
|
-
_query_params.append(("market", market
|
883
|
+
_query_params.append(("market", market))
|
924
884
|
|
925
885
|
if exchange is not None:
|
926
886
|
|
@@ -965,7 +925,7 @@ class MarketcapApi:
|
|
965
925
|
Optional[StrictStr], Field(description="Timeframe for OHLCV data")
|
966
926
|
] = None,
|
967
927
|
market: Annotated[
|
968
|
-
Optional[
|
928
|
+
Optional[StrictStr], Field(description="Market for OHLCV data")
|
969
929
|
] = None,
|
970
930
|
top_n: Annotated[
|
971
931
|
Optional[StrictInt], Field(description="Number of symbols to fetch")
|
@@ -985,7 +945,7 @@ class MarketcapApi:
|
|
985
945
|
_content_type: Optional[StrictStr] = None,
|
986
946
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
987
947
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
988
|
-
) ->
|
948
|
+
) -> List[Dict[str, object]]:
|
989
949
|
"""Get Symbols Marketcap With Ohlcv
|
990
950
|
|
991
951
|
Retrieve OHLCV data with marketcap for symbols at a specific timestamp.
|
@@ -995,7 +955,7 @@ class MarketcapApi:
|
|
995
955
|
:param timeframe: Timeframe for OHLCV data
|
996
956
|
:type timeframe: str
|
997
957
|
:param market: Market for OHLCV data
|
998
|
-
:type market:
|
958
|
+
:type market: str
|
999
959
|
:param top_n: Number of symbols to fetch
|
1000
960
|
:type top_n: int
|
1001
961
|
:param ohlcv_limit: Number of OHLCV data points to fetch
|
@@ -1035,11 +995,7 @@ class MarketcapApi:
|
|
1035
995
|
)
|
1036
996
|
|
1037
997
|
_response_types_map: Dict[str, Optional[str]] = {
|
1038
|
-
"200": "
|
1039
|
-
"400": "ErrorResponse",
|
1040
|
-
"404": "ErrorResponse",
|
1041
|
-
"500": "ErrorResponse",
|
1042
|
-
"422": "HTTPValidationError",
|
998
|
+
"200": "List[Dict[str, object]]",
|
1043
999
|
}
|
1044
1000
|
response_data = await self.api_client.call_api(
|
1045
1001
|
*_param, _request_timeout=_request_timeout
|
@@ -1061,7 +1017,7 @@ class MarketcapApi:
|
|
1061
1017
|
Optional[StrictStr], Field(description="Timeframe for OHLCV data")
|
1062
1018
|
] = None,
|
1063
1019
|
market: Annotated[
|
1064
|
-
Optional[
|
1020
|
+
Optional[StrictStr], Field(description="Market for OHLCV data")
|
1065
1021
|
] = None,
|
1066
1022
|
top_n: Annotated[
|
1067
1023
|
Optional[StrictInt], Field(description="Number of symbols to fetch")
|
@@ -1081,7 +1037,7 @@ class MarketcapApi:
|
|
1081
1037
|
_content_type: Optional[StrictStr] = None,
|
1082
1038
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1083
1039
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1084
|
-
) -> ApiResponse[
|
1040
|
+
) -> ApiResponse[List[Dict[str, object]]]:
|
1085
1041
|
"""Get Symbols Marketcap With Ohlcv
|
1086
1042
|
|
1087
1043
|
Retrieve OHLCV data with marketcap for symbols at a specific timestamp.
|
@@ -1091,7 +1047,7 @@ class MarketcapApi:
|
|
1091
1047
|
:param timeframe: Timeframe for OHLCV data
|
1092
1048
|
:type timeframe: str
|
1093
1049
|
:param market: Market for OHLCV data
|
1094
|
-
:type market:
|
1050
|
+
:type market: str
|
1095
1051
|
:param top_n: Number of symbols to fetch
|
1096
1052
|
:type top_n: int
|
1097
1053
|
:param ohlcv_limit: Number of OHLCV data points to fetch
|
@@ -1131,11 +1087,7 @@ class MarketcapApi:
|
|
1131
1087
|
)
|
1132
1088
|
|
1133
1089
|
_response_types_map: Dict[str, Optional[str]] = {
|
1134
|
-
"200": "
|
1135
|
-
"400": "ErrorResponse",
|
1136
|
-
"404": "ErrorResponse",
|
1137
|
-
"500": "ErrorResponse",
|
1138
|
-
"422": "HTTPValidationError",
|
1090
|
+
"200": "List[Dict[str, object]]",
|
1139
1091
|
}
|
1140
1092
|
response_data = await self.api_client.call_api(
|
1141
1093
|
*_param, _request_timeout=_request_timeout
|
@@ -1157,7 +1109,7 @@ class MarketcapApi:
|
|
1157
1109
|
Optional[StrictStr], Field(description="Timeframe for OHLCV data")
|
1158
1110
|
] = None,
|
1159
1111
|
market: Annotated[
|
1160
|
-
Optional[
|
1112
|
+
Optional[StrictStr], Field(description="Market for OHLCV data")
|
1161
1113
|
] = None,
|
1162
1114
|
top_n: Annotated[
|
1163
1115
|
Optional[StrictInt], Field(description="Number of symbols to fetch")
|
@@ -1187,7 +1139,7 @@ class MarketcapApi:
|
|
1187
1139
|
:param timeframe: Timeframe for OHLCV data
|
1188
1140
|
:type timeframe: str
|
1189
1141
|
:param market: Market for OHLCV data
|
1190
|
-
:type market:
|
1142
|
+
:type market: str
|
1191
1143
|
:param top_n: Number of symbols to fetch
|
1192
1144
|
:type top_n: int
|
1193
1145
|
:param ohlcv_limit: Number of OHLCV data points to fetch
|
@@ -1227,11 +1179,7 @@ class MarketcapApi:
|
|
1227
1179
|
)
|
1228
1180
|
|
1229
1181
|
_response_types_map: Dict[str, Optional[str]] = {
|
1230
|
-
"200": "
|
1231
|
-
"400": "ErrorResponse",
|
1232
|
-
"404": "ErrorResponse",
|
1233
|
-
"500": "ErrorResponse",
|
1234
|
-
"422": "HTTPValidationError",
|
1182
|
+
"200": "List[Dict[str, object]]",
|
1235
1183
|
}
|
1236
1184
|
response_data = await self.api_client.call_api(
|
1237
1185
|
*_param, _request_timeout=_request_timeout
|
@@ -1276,7 +1224,7 @@ class MarketcapApi:
|
|
1276
1224
|
|
1277
1225
|
if market is not None:
|
1278
1226
|
|
1279
|
-
_query_params.append(("market", market
|
1227
|
+
_query_params.append(("market", market))
|
1280
1228
|
|
1281
1229
|
if top_n is not None:
|
1282
1230
|
|