crypticorn 2.5.1__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/common/__init__.py +1 -0
- crypticorn/common/enums.py +3 -1
- crypticorn/common/errors.py +40 -4
- crypticorn/common/mixins.py +1 -0
- crypticorn/common/status_router.py +42 -0
- crypticorn/common/utils.py +5 -12
- 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/symbols_api.py +7 -8
- 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 +1 -1
- 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/trade/client/__init__.py +1 -2
- crypticorn/trade/client/api/exchanges_api.py +6 -6
- crypticorn/trade/client/api/trading_actions_api.py +16 -15
- crypticorn/trade/client/configuration.py +2 -2
- crypticorn/trade/client/models/__init__.py +1 -2
- crypticorn/trade/client/models/action_model.py +1 -2
- crypticorn/trade/client/models/exchange_key_model.py +2 -11
- crypticorn/trade/client/models/futures_trading_action.py +1 -2
- crypticorn/trade/client/models/order_model.py +4 -14
- crypticorn/trade/client/models/spot_trading_action.py +1 -2
- 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-2.5.1.dist-info → crypticorn-2.5.2.dist-info}/METADATA +1 -1
- {crypticorn-2.5.1.dist-info → crypticorn-2.5.2.dist-info}/RECORD +50 -127
- 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/error_response.py +0 -109
- 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_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/error_response.py +0 -109
- 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/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_key_model.py +0 -156
- crypticorn/trade/client/models/exchange.py +0 -35
- crypticorn/trade/client/models/market_type.py +0 -35
- {crypticorn-2.5.1.dist-info → crypticorn-2.5.2.dist-info}/WHEEL +0 -0
- {crypticorn-2.5.1.dist-info → crypticorn-2.5.2.dist-info}/entry_points.txt +0 -0
- {crypticorn-2.5.1.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)
|
@@ -19,8 +19,6 @@ from typing_extensions import Annotated
|
|
19
19
|
from pydantic import Field, StrictInt, StrictStr
|
20
20
|
from typing import Any, Dict, List, Optional
|
21
21
|
from typing_extensions import Annotated
|
22
|
-
from crypticorn.metrics.client.models.internal_exchange import InternalExchange
|
23
|
-
from crypticorn.metrics.client.models.market_type import MarketType
|
24
22
|
from crypticorn.metrics.client.models.time_interval import TimeInterval
|
25
23
|
from crypticorn.metrics.client.models.trading_status import TradingStatus
|
26
24
|
|
@@ -45,7 +43,7 @@ class ExchangesApi:
|
|
45
43
|
async def get_available_exchanges(
|
46
44
|
self,
|
47
45
|
market: Annotated[
|
48
|
-
|
46
|
+
StrictStr, Field(description="Market type (spot or futures)")
|
49
47
|
],
|
50
48
|
symbol: Annotated[
|
51
49
|
StrictStr, Field(description="Symbol to fetch available exchanges for")
|
@@ -93,7 +91,7 @@ class ExchangesApi:
|
|
93
91
|
Get available exchanges for a symbol with various filtering options.
|
94
92
|
|
95
93
|
:param market: Market type (spot or futures) (required)
|
96
|
-
:type market:
|
94
|
+
:type market: str
|
97
95
|
:param symbol: Symbol to fetch available exchanges for (required)
|
98
96
|
:type symbol: str
|
99
97
|
:param interval: Interval for which to fetch available exchanges
|
@@ -158,7 +156,7 @@ class ExchangesApi:
|
|
158
156
|
async def get_available_exchanges_with_http_info(
|
159
157
|
self,
|
160
158
|
market: Annotated[
|
161
|
-
|
159
|
+
StrictStr, Field(description="Market type (spot or futures)")
|
162
160
|
],
|
163
161
|
symbol: Annotated[
|
164
162
|
StrictStr, Field(description="Symbol to fetch available exchanges for")
|
@@ -206,7 +204,7 @@ class ExchangesApi:
|
|
206
204
|
Get available exchanges for a symbol with various filtering options.
|
207
205
|
|
208
206
|
:param market: Market type (spot or futures) (required)
|
209
|
-
:type market:
|
207
|
+
:type market: str
|
210
208
|
:param symbol: Symbol to fetch available exchanges for (required)
|
211
209
|
:type symbol: str
|
212
210
|
:param interval: Interval for which to fetch available exchanges
|
@@ -271,7 +269,7 @@ class ExchangesApi:
|
|
271
269
|
async def get_available_exchanges_without_preload_content(
|
272
270
|
self,
|
273
271
|
market: Annotated[
|
274
|
-
|
272
|
+
StrictStr, Field(description="Market type (spot or futures)")
|
275
273
|
],
|
276
274
|
symbol: Annotated[
|
277
275
|
StrictStr, Field(description="Symbol to fetch available exchanges for")
|
@@ -319,7 +317,7 @@ class ExchangesApi:
|
|
319
317
|
Get available exchanges for a symbol with various filtering options.
|
320
318
|
|
321
319
|
:param market: Market type (spot or futures) (required)
|
322
|
-
:type market:
|
320
|
+
:type market: str
|
323
321
|
:param symbol: Symbol to fetch available exchanges for (required)
|
324
322
|
:type symbol: str
|
325
323
|
:param interval: Interval for which to fetch available exchanges
|
@@ -406,7 +404,7 @@ class ExchangesApi:
|
|
406
404
|
|
407
405
|
# process the path parameters
|
408
406
|
if market is not None:
|
409
|
-
_path_params["market"] = market
|
407
|
+
_path_params["market"] = market
|
410
408
|
if symbol is not None:
|
411
409
|
_path_params["symbol"] = symbol
|
412
410
|
# process the query parameters
|
@@ -462,7 +460,7 @@ class ExchangesApi:
|
|
462
460
|
async def get_available_exchanges_for_market(
|
463
461
|
self,
|
464
462
|
market: Annotated[
|
465
|
-
|
463
|
+
StrictStr, Field(description="Market type (spot or futures)")
|
466
464
|
],
|
467
465
|
_request_timeout: Union[
|
468
466
|
None,
|
@@ -481,7 +479,7 @@ class ExchangesApi:
|
|
481
479
|
Get list of exchanges for a market.
|
482
480
|
|
483
481
|
:param market: Market type (spot or futures) (required)
|
484
|
-
:type market:
|
482
|
+
:type market: str
|
485
483
|
:param _request_timeout: timeout setting for this request. If one
|
486
484
|
number provided, it will be total request
|
487
485
|
timeout. It can also be a pair (tuple) of
|
@@ -528,7 +526,7 @@ class ExchangesApi:
|
|
528
526
|
async def get_available_exchanges_for_market_with_http_info(
|
529
527
|
self,
|
530
528
|
market: Annotated[
|
531
|
-
|
529
|
+
StrictStr, Field(description="Market type (spot or futures)")
|
532
530
|
],
|
533
531
|
_request_timeout: Union[
|
534
532
|
None,
|
@@ -547,7 +545,7 @@ class ExchangesApi:
|
|
547
545
|
Get list of exchanges for a market.
|
548
546
|
|
549
547
|
:param market: Market type (spot or futures) (required)
|
550
|
-
:type market:
|
548
|
+
:type market: str
|
551
549
|
:param _request_timeout: timeout setting for this request. If one
|
552
550
|
number provided, it will be total request
|
553
551
|
timeout. It can also be a pair (tuple) of
|
@@ -594,7 +592,7 @@ class ExchangesApi:
|
|
594
592
|
async def get_available_exchanges_for_market_without_preload_content(
|
595
593
|
self,
|
596
594
|
market: Annotated[
|
597
|
-
|
595
|
+
StrictStr, Field(description="Market type (spot or futures)")
|
598
596
|
],
|
599
597
|
_request_timeout: Union[
|
600
598
|
None,
|
@@ -613,7 +611,7 @@ class ExchangesApi:
|
|
613
611
|
Get list of exchanges for a market.
|
614
612
|
|
615
613
|
:param market: Market type (spot or futures) (required)
|
616
|
-
:type market:
|
614
|
+
:type market: str
|
617
615
|
:param _request_timeout: timeout setting for this request. If one
|
618
616
|
number provided, it will be total request
|
619
617
|
timeout. It can also be a pair (tuple) of
|
@@ -676,7 +674,7 @@ class ExchangesApi:
|
|
676
674
|
|
677
675
|
# process the path parameters
|
678
676
|
if market is not None:
|
679
|
-
_path_params["market"] = market
|
677
|
+
_path_params["market"] = market
|
680
678
|
# process the query parameters
|
681
679
|
# process the header parameters
|
682
680
|
# process the form parameters
|
@@ -710,10 +708,10 @@ class ExchangesApi:
|
|
710
708
|
async def get_exchange_mappings(
|
711
709
|
self,
|
712
710
|
market: Annotated[
|
713
|
-
|
711
|
+
StrictStr, Field(description="Market type (spot or futures)")
|
714
712
|
],
|
715
713
|
exchange: Annotated[
|
716
|
-
Optional[
|
714
|
+
Optional[StrictStr],
|
717
715
|
Field(description="Exchange name for which to fetch exchange mappings"),
|
718
716
|
] = None,
|
719
717
|
_request_timeout: Union[
|
@@ -733,9 +731,9 @@ class ExchangesApi:
|
|
733
731
|
Get exchange mappings for a market with optional exchange name filter.
|
734
732
|
|
735
733
|
:param market: Market type (spot or futures) (required)
|
736
|
-
:type market:
|
734
|
+
:type market: str
|
737
735
|
:param exchange: Exchange name for which to fetch exchange mappings
|
738
|
-
:type exchange:
|
736
|
+
:type exchange: str
|
739
737
|
:param _request_timeout: timeout setting for this request. If one
|
740
738
|
number provided, it will be total request
|
741
739
|
timeout. It can also be a pair (tuple) of
|
@@ -783,10 +781,10 @@ class ExchangesApi:
|
|
783
781
|
async def get_exchange_mappings_with_http_info(
|
784
782
|
self,
|
785
783
|
market: Annotated[
|
786
|
-
|
784
|
+
StrictStr, Field(description="Market type (spot or futures)")
|
787
785
|
],
|
788
786
|
exchange: Annotated[
|
789
|
-
Optional[
|
787
|
+
Optional[StrictStr],
|
790
788
|
Field(description="Exchange name for which to fetch exchange mappings"),
|
791
789
|
] = None,
|
792
790
|
_request_timeout: Union[
|
@@ -806,9 +804,9 @@ class ExchangesApi:
|
|
806
804
|
Get exchange mappings for a market with optional exchange name filter.
|
807
805
|
|
808
806
|
:param market: Market type (spot or futures) (required)
|
809
|
-
:type market:
|
807
|
+
:type market: str
|
810
808
|
:param exchange: Exchange name for which to fetch exchange mappings
|
811
|
-
:type exchange:
|
809
|
+
:type exchange: str
|
812
810
|
:param _request_timeout: timeout setting for this request. If one
|
813
811
|
number provided, it will be total request
|
814
812
|
timeout. It can also be a pair (tuple) of
|
@@ -856,10 +854,10 @@ class ExchangesApi:
|
|
856
854
|
async def get_exchange_mappings_without_preload_content(
|
857
855
|
self,
|
858
856
|
market: Annotated[
|
859
|
-
|
857
|
+
StrictStr, Field(description="Market type (spot or futures)")
|
860
858
|
],
|
861
859
|
exchange: Annotated[
|
862
|
-
Optional[
|
860
|
+
Optional[StrictStr],
|
863
861
|
Field(description="Exchange name for which to fetch exchange mappings"),
|
864
862
|
] = None,
|
865
863
|
_request_timeout: Union[
|
@@ -879,9 +877,9 @@ class ExchangesApi:
|
|
879
877
|
Get exchange mappings for a market with optional exchange name filter.
|
880
878
|
|
881
879
|
:param market: Market type (spot or futures) (required)
|
882
|
-
:type market:
|
880
|
+
:type market: str
|
883
881
|
:param exchange: Exchange name for which to fetch exchange mappings
|
884
|
-
:type exchange:
|
882
|
+
:type exchange: str
|
885
883
|
:param _request_timeout: timeout setting for this request. If one
|
886
884
|
number provided, it will be total request
|
887
885
|
timeout. It can also be a pair (tuple) of
|
@@ -946,11 +944,11 @@ class ExchangesApi:
|
|
946
944
|
|
947
945
|
# process the path parameters
|
948
946
|
if market is not None:
|
949
|
-
_path_params["market"] = market
|
947
|
+
_path_params["market"] = market
|
950
948
|
# process the query parameters
|
951
949
|
if exchange is not None:
|
952
950
|
|
953
|
-
_query_params.append(("exchange", exchange
|
951
|
+
_query_params.append(("exchange", exchange))
|
954
952
|
|
955
953
|
# process the header parameters
|
956
954
|
# process the form parameters
|
@@ -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)
|
@@ -19,7 +19,6 @@ from typing_extensions import Annotated
|
|
19
19
|
from pydantic import Field, StrictInt, StrictStr
|
20
20
|
from typing import Any, Dict, Optional
|
21
21
|
from typing_extensions import Annotated
|
22
|
-
from crypticorn.metrics.client.models.market_type import MarketType
|
23
22
|
|
24
23
|
from crypticorn.metrics.client.api_client import ApiClient, RequestSerialized
|
25
24
|
from crypticorn.metrics.client.api_response import ApiResponse
|
@@ -42,7 +41,7 @@ class IndicatorsApi:
|
|
42
41
|
async def get_ker_indicator(
|
43
42
|
self,
|
44
43
|
symbol: StrictStr,
|
45
|
-
market: Annotated[Optional[
|
44
|
+
market: Annotated[Optional[StrictStr], Field(description="Market")] = None,
|
46
45
|
period: Annotated[
|
47
46
|
Optional[StrictInt], Field(description="KER indicator period")
|
48
47
|
] = None,
|
@@ -69,7 +68,7 @@ class IndicatorsApi:
|
|
69
68
|
:param symbol: (required)
|
70
69
|
:type symbol: str
|
71
70
|
:param market: Market
|
72
|
-
:type market:
|
71
|
+
:type market: str
|
73
72
|
:param period: KER indicator period
|
74
73
|
:type period: int
|
75
74
|
:param timestamp: Timestamp for which to fetch KER indicator
|
@@ -123,7 +122,7 @@ class IndicatorsApi:
|
|
123
122
|
async def get_ker_indicator_with_http_info(
|
124
123
|
self,
|
125
124
|
symbol: StrictStr,
|
126
|
-
market: Annotated[Optional[
|
125
|
+
market: Annotated[Optional[StrictStr], Field(description="Market")] = None,
|
127
126
|
period: Annotated[
|
128
127
|
Optional[StrictInt], Field(description="KER indicator period")
|
129
128
|
] = None,
|
@@ -150,7 +149,7 @@ class IndicatorsApi:
|
|
150
149
|
:param symbol: (required)
|
151
150
|
:type symbol: str
|
152
151
|
:param market: Market
|
153
|
-
:type market:
|
152
|
+
:type market: str
|
154
153
|
:param period: KER indicator period
|
155
154
|
:type period: int
|
156
155
|
:param timestamp: Timestamp for which to fetch KER indicator
|
@@ -204,7 +203,7 @@ class IndicatorsApi:
|
|
204
203
|
async def get_ker_indicator_without_preload_content(
|
205
204
|
self,
|
206
205
|
symbol: StrictStr,
|
207
|
-
market: Annotated[Optional[
|
206
|
+
market: Annotated[Optional[StrictStr], Field(description="Market")] = None,
|
208
207
|
period: Annotated[
|
209
208
|
Optional[StrictInt], Field(description="KER indicator period")
|
210
209
|
] = None,
|
@@ -231,7 +230,7 @@ class IndicatorsApi:
|
|
231
230
|
:param symbol: (required)
|
232
231
|
:type symbol: str
|
233
232
|
:param market: Market
|
234
|
-
:type market:
|
233
|
+
:type market: str
|
235
234
|
:param period: KER indicator period
|
236
235
|
:type period: int
|
237
236
|
:param timestamp: Timestamp for which to fetch KER indicator
|
@@ -308,7 +307,7 @@ class IndicatorsApi:
|
|
308
307
|
# process the query parameters
|
309
308
|
if market is not None:
|
310
309
|
|
311
|
-
_query_params.append(("market", market
|
310
|
+
_query_params.append(("market", market))
|
312
311
|
|
313
312
|
if period is not None:
|
314
313
|
|
@@ -351,7 +350,7 @@ class IndicatorsApi:
|
|
351
350
|
self,
|
352
351
|
symbol: StrictStr,
|
353
352
|
market: Annotated[
|
354
|
-
Optional[
|
353
|
+
Optional[StrictStr],
|
355
354
|
Field(description="The market type to use for the SMA indicator"),
|
356
355
|
] = None,
|
357
356
|
period: Annotated[
|
@@ -381,7 +380,7 @@ class IndicatorsApi:
|
|
381
380
|
:param symbol: (required)
|
382
381
|
:type symbol: str
|
383
382
|
:param market: The market type to use for the SMA indicator
|
384
|
-
:type market:
|
383
|
+
:type market: str
|
385
384
|
:param period: The period to use for the SMA indicator
|
386
385
|
:type period: int
|
387
386
|
:param timestamp: The timestamp for which to fetch the SMA indicator
|
@@ -436,7 +435,7 @@ class IndicatorsApi:
|
|
436
435
|
self,
|
437
436
|
symbol: StrictStr,
|
438
437
|
market: Annotated[
|
439
|
-
Optional[
|
438
|
+
Optional[StrictStr],
|
440
439
|
Field(description="The market type to use for the SMA indicator"),
|
441
440
|
] = None,
|
442
441
|
period: Annotated[
|
@@ -466,7 +465,7 @@ class IndicatorsApi:
|
|
466
465
|
:param symbol: (required)
|
467
466
|
:type symbol: str
|
468
467
|
:param market: The market type to use for the SMA indicator
|
469
|
-
:type market:
|
468
|
+
:type market: str
|
470
469
|
:param period: The period to use for the SMA indicator
|
471
470
|
:type period: int
|
472
471
|
:param timestamp: The timestamp for which to fetch the SMA indicator
|
@@ -521,7 +520,7 @@ class IndicatorsApi:
|
|
521
520
|
self,
|
522
521
|
symbol: StrictStr,
|
523
522
|
market: Annotated[
|
524
|
-
Optional[
|
523
|
+
Optional[StrictStr],
|
525
524
|
Field(description="The market type to use for the SMA indicator"),
|
526
525
|
] = None,
|
527
526
|
period: Annotated[
|
@@ -551,7 +550,7 @@ class IndicatorsApi:
|
|
551
550
|
:param symbol: (required)
|
552
551
|
:type symbol: str
|
553
552
|
:param market: The market type to use for the SMA indicator
|
554
|
-
:type market:
|
553
|
+
:type market: str
|
555
554
|
:param period: The period to use for the SMA indicator
|
556
555
|
:type period: int
|
557
556
|
:param timestamp: The timestamp for which to fetch the SMA indicator
|
@@ -628,7 +627,7 @@ class IndicatorsApi:
|
|
628
627
|
# process the query parameters
|
629
628
|
if market is not None:
|
630
629
|
|
631
|
-
_query_params.append(("market", market
|
630
|
+
_query_params.append(("market", market))
|
632
631
|
|
633
632
|
if period is not None:
|
634
633
|
|
@@ -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)
|
@@ -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)
|
@@ -19,7 +19,6 @@ from typing_extensions import Annotated
|
|
19
19
|
from pydantic import Field, StrictInt, StrictStr, field_validator
|
20
20
|
from typing import Any, Dict, List, Optional
|
21
21
|
from typing_extensions import Annotated
|
22
|
-
from crypticorn.metrics.client.models.market_type import MarketType
|
23
22
|
|
24
23
|
from crypticorn.metrics.client.api_client import ApiClient, RequestSerialized
|
25
24
|
from crypticorn.metrics.client.api_response import ApiResponse
|
@@ -578,7 +577,7 @@ class MarketcapApi:
|
|
578
577
|
Field(description="Interval for which to fetch symbols and marketcap data"),
|
579
578
|
] = None,
|
580
579
|
market: Annotated[
|
581
|
-
Optional[
|
580
|
+
Optional[StrictStr],
|
582
581
|
Field(description="Market for which to fetch symbols and marketcap data"),
|
583
582
|
] = None,
|
584
583
|
exchange: Annotated[
|
@@ -608,7 +607,7 @@ class MarketcapApi:
|
|
608
607
|
:param interval: Interval for which to fetch symbols and marketcap data
|
609
608
|
:type interval: str
|
610
609
|
:param market: Market for which to fetch symbols and marketcap data
|
611
|
-
:type market:
|
610
|
+
:type market: str
|
612
611
|
:param exchange: Exchange for which to fetch symbols and marketcap data
|
613
612
|
:type exchange: str
|
614
613
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -671,7 +670,7 @@ class MarketcapApi:
|
|
671
670
|
Field(description="Interval for which to fetch symbols and marketcap data"),
|
672
671
|
] = None,
|
673
672
|
market: Annotated[
|
674
|
-
Optional[
|
673
|
+
Optional[StrictStr],
|
675
674
|
Field(description="Market for which to fetch symbols and marketcap data"),
|
676
675
|
] = None,
|
677
676
|
exchange: Annotated[
|
@@ -701,7 +700,7 @@ class MarketcapApi:
|
|
701
700
|
:param interval: Interval for which to fetch symbols and marketcap data
|
702
701
|
:type interval: str
|
703
702
|
:param market: Market for which to fetch symbols and marketcap data
|
704
|
-
:type market:
|
703
|
+
:type market: str
|
705
704
|
:param exchange: Exchange for which to fetch symbols and marketcap data
|
706
705
|
:type exchange: str
|
707
706
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -764,7 +763,7 @@ class MarketcapApi:
|
|
764
763
|
Field(description="Interval for which to fetch symbols and marketcap data"),
|
765
764
|
] = None,
|
766
765
|
market: Annotated[
|
767
|
-
Optional[
|
766
|
+
Optional[StrictStr],
|
768
767
|
Field(description="Market for which to fetch symbols and marketcap data"),
|
769
768
|
] = None,
|
770
769
|
exchange: Annotated[
|
@@ -794,7 +793,7 @@ class MarketcapApi:
|
|
794
793
|
:param interval: Interval for which to fetch symbols and marketcap data
|
795
794
|
:type interval: str
|
796
795
|
:param market: Market for which to fetch symbols and marketcap data
|
797
|
-
:type market:
|
796
|
+
:type market: str
|
798
797
|
:param exchange: Exchange for which to fetch symbols and marketcap data
|
799
798
|
:type exchange: str
|
800
799
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -881,7 +880,7 @@ class MarketcapApi:
|
|
881
880
|
|
882
881
|
if market is not None:
|
883
882
|
|
884
|
-
_query_params.append(("market", market
|
883
|
+
_query_params.append(("market", market))
|
885
884
|
|
886
885
|
if exchange is not None:
|
887
886
|
|
@@ -926,7 +925,7 @@ class MarketcapApi:
|
|
926
925
|
Optional[StrictStr], Field(description="Timeframe for OHLCV data")
|
927
926
|
] = None,
|
928
927
|
market: Annotated[
|
929
|
-
Optional[
|
928
|
+
Optional[StrictStr], Field(description="Market for OHLCV data")
|
930
929
|
] = None,
|
931
930
|
top_n: Annotated[
|
932
931
|
Optional[StrictInt], Field(description="Number of symbols to fetch")
|
@@ -956,7 +955,7 @@ class MarketcapApi:
|
|
956
955
|
:param timeframe: Timeframe for OHLCV data
|
957
956
|
:type timeframe: str
|
958
957
|
:param market: Market for OHLCV data
|
959
|
-
:type market:
|
958
|
+
:type market: str
|
960
959
|
:param top_n: Number of symbols to fetch
|
961
960
|
:type top_n: int
|
962
961
|
:param ohlcv_limit: Number of OHLCV data points to fetch
|
@@ -1018,7 +1017,7 @@ class MarketcapApi:
|
|
1018
1017
|
Optional[StrictStr], Field(description="Timeframe for OHLCV data")
|
1019
1018
|
] = None,
|
1020
1019
|
market: Annotated[
|
1021
|
-
Optional[
|
1020
|
+
Optional[StrictStr], Field(description="Market for OHLCV data")
|
1022
1021
|
] = None,
|
1023
1022
|
top_n: Annotated[
|
1024
1023
|
Optional[StrictInt], Field(description="Number of symbols to fetch")
|
@@ -1048,7 +1047,7 @@ class MarketcapApi:
|
|
1048
1047
|
:param timeframe: Timeframe for OHLCV data
|
1049
1048
|
:type timeframe: str
|
1050
1049
|
:param market: Market for OHLCV data
|
1051
|
-
:type market:
|
1050
|
+
:type market: str
|
1052
1051
|
:param top_n: Number of symbols to fetch
|
1053
1052
|
:type top_n: int
|
1054
1053
|
:param ohlcv_limit: Number of OHLCV data points to fetch
|
@@ -1110,7 +1109,7 @@ class MarketcapApi:
|
|
1110
1109
|
Optional[StrictStr], Field(description="Timeframe for OHLCV data")
|
1111
1110
|
] = None,
|
1112
1111
|
market: Annotated[
|
1113
|
-
Optional[
|
1112
|
+
Optional[StrictStr], Field(description="Market for OHLCV data")
|
1114
1113
|
] = None,
|
1115
1114
|
top_n: Annotated[
|
1116
1115
|
Optional[StrictInt], Field(description="Number of symbols to fetch")
|
@@ -1140,7 +1139,7 @@ class MarketcapApi:
|
|
1140
1139
|
:param timeframe: Timeframe for OHLCV data
|
1141
1140
|
:type timeframe: str
|
1142
1141
|
:param market: Market for OHLCV data
|
1143
|
-
:type market:
|
1142
|
+
:type market: str
|
1144
1143
|
:param top_n: Number of symbols to fetch
|
1145
1144
|
:type top_n: int
|
1146
1145
|
:param ohlcv_limit: Number of OHLCV data points to fetch
|
@@ -1225,7 +1224,7 @@ class MarketcapApi:
|
|
1225
1224
|
|
1226
1225
|
if market is not None:
|
1227
1226
|
|
1228
|
-
_query_params.append(("market", market
|
1227
|
+
_query_params.append(("market", market))
|
1229
1228
|
|
1230
1229
|
if top_n is not None:
|
1231
1230
|
|
@@ -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)
|
@@ -19,7 +19,6 @@ from typing_extensions import Annotated
|
|
19
19
|
from pydantic import Field, StrictStr
|
20
20
|
from typing import List, Optional
|
21
21
|
from typing_extensions import Annotated
|
22
|
-
from crypticorn.metrics.client.models.market_type import MarketType
|
23
22
|
from crypticorn.metrics.client.models.trading_status import TradingStatus
|
24
23
|
|
25
24
|
from crypticorn.metrics.client.api_client import ApiClient, RequestSerialized
|
@@ -43,7 +42,7 @@ class MarketsApi:
|
|
43
42
|
async def get_available_markets_for_symbol(
|
44
43
|
self,
|
45
44
|
market: Annotated[
|
46
|
-
|
45
|
+
StrictStr, Field(description="Market type (spot or futures)")
|
47
46
|
],
|
48
47
|
symbol: Annotated[StrictStr, Field(description="Symbol to fetch markets for")],
|
49
48
|
quote_currency: Annotated[
|
@@ -71,7 +70,7 @@ class MarketsApi:
|
|
71
70
|
Get markets for a symbol with filtering options.
|
72
71
|
|
73
72
|
:param market: Market type (spot or futures) (required)
|
74
|
-
:type market:
|
73
|
+
:type market: str
|
75
74
|
:param symbol: Symbol to fetch markets for (required)
|
76
75
|
:type symbol: str
|
77
76
|
:param quote_currency: Quote currency for which to fetch markets
|
@@ -127,7 +126,7 @@ class MarketsApi:
|
|
127
126
|
async def get_available_markets_for_symbol_with_http_info(
|
128
127
|
self,
|
129
128
|
market: Annotated[
|
130
|
-
|
129
|
+
StrictStr, Field(description="Market type (spot or futures)")
|
131
130
|
],
|
132
131
|
symbol: Annotated[StrictStr, Field(description="Symbol to fetch markets for")],
|
133
132
|
quote_currency: Annotated[
|
@@ -155,7 +154,7 @@ class MarketsApi:
|
|
155
154
|
Get markets for a symbol with filtering options.
|
156
155
|
|
157
156
|
:param market: Market type (spot or futures) (required)
|
158
|
-
:type market:
|
157
|
+
:type market: str
|
159
158
|
:param symbol: Symbol to fetch markets for (required)
|
160
159
|
:type symbol: str
|
161
160
|
:param quote_currency: Quote currency for which to fetch markets
|
@@ -211,7 +210,7 @@ class MarketsApi:
|
|
211
210
|
async def get_available_markets_for_symbol_without_preload_content(
|
212
211
|
self,
|
213
212
|
market: Annotated[
|
214
|
-
|
213
|
+
StrictStr, Field(description="Market type (spot or futures)")
|
215
214
|
],
|
216
215
|
symbol: Annotated[StrictStr, Field(description="Symbol to fetch markets for")],
|
217
216
|
quote_currency: Annotated[
|
@@ -239,7 +238,7 @@ class MarketsApi:
|
|
239
238
|
Get markets for a symbol with filtering options.
|
240
239
|
|
241
240
|
:param market: Market type (spot or futures) (required)
|
242
|
-
:type market:
|
241
|
+
:type market: str
|
243
242
|
:param symbol: Symbol to fetch markets for (required)
|
244
243
|
:type symbol: str
|
245
244
|
:param quote_currency: Quote currency for which to fetch markets
|
@@ -314,7 +313,7 @@ class MarketsApi:
|
|
314
313
|
|
315
314
|
# process the path parameters
|
316
315
|
if market is not None:
|
317
|
-
_path_params["market"] = market
|
316
|
+
_path_params["market"] = market
|
318
317
|
if symbol is not None:
|
319
318
|
_path_params["symbol"] = symbol
|
320
319
|
# process the query parameters
|
@@ -358,7 +357,7 @@ class MarketsApi:
|
|
358
357
|
async def get_quote_currencies(
|
359
358
|
self,
|
360
359
|
market: Annotated[
|
361
|
-
|
360
|
+
StrictStr, Field(description="Market type (spot or futures)")
|
362
361
|
],
|
363
362
|
_request_timeout: Union[
|
364
363
|
None,
|
@@ -377,7 +376,7 @@ class MarketsApi:
|
|
377
376
|
Get available quote currencies for a market.
|
378
377
|
|
379
378
|
:param market: Market type (spot or futures) (required)
|
380
|
-
:type market:
|
379
|
+
:type market: str
|
381
380
|
:param _request_timeout: timeout setting for this request. If one
|
382
381
|
number provided, it will be total request
|
383
382
|
timeout. It can also be a pair (tuple) of
|
@@ -424,7 +423,7 @@ class MarketsApi:
|
|
424
423
|
async def get_quote_currencies_with_http_info(
|
425
424
|
self,
|
426
425
|
market: Annotated[
|
427
|
-
|
426
|
+
StrictStr, Field(description="Market type (spot or futures)")
|
428
427
|
],
|
429
428
|
_request_timeout: Union[
|
430
429
|
None,
|
@@ -443,7 +442,7 @@ class MarketsApi:
|
|
443
442
|
Get available quote currencies for a market.
|
444
443
|
|
445
444
|
:param market: Market type (spot or futures) (required)
|
446
|
-
:type market:
|
445
|
+
:type market: str
|
447
446
|
:param _request_timeout: timeout setting for this request. If one
|
448
447
|
number provided, it will be total request
|
449
448
|
timeout. It can also be a pair (tuple) of
|
@@ -490,7 +489,7 @@ class MarketsApi:
|
|
490
489
|
async def get_quote_currencies_without_preload_content(
|
491
490
|
self,
|
492
491
|
market: Annotated[
|
493
|
-
|
492
|
+
StrictStr, Field(description="Market type (spot or futures)")
|
494
493
|
],
|
495
494
|
_request_timeout: Union[
|
496
495
|
None,
|
@@ -509,7 +508,7 @@ class MarketsApi:
|
|
509
508
|
Get available quote currencies for a market.
|
510
509
|
|
511
510
|
:param market: Market type (spot or futures) (required)
|
512
|
-
:type market:
|
511
|
+
:type market: str
|
513
512
|
:param _request_timeout: timeout setting for this request. If one
|
514
513
|
number provided, it will be total request
|
515
514
|
timeout. It can also be a pair (tuple) of
|
@@ -572,7 +571,7 @@ class MarketsApi:
|
|
572
571
|
|
573
572
|
# process the path parameters
|
574
573
|
if market is not None:
|
575
|
-
_path_params["market"] = market
|
574
|
+
_path_params["market"] = market
|
576
575
|
# process the query parameters
|
577
576
|
# process the header parameters
|
578
577
|
# process the form parameters
|
@@ -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)
|
@@ -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)
|