crypticorn 2.1.5__py3-none-any.whl → 2.1.6__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/client.py +4 -0
- crypticorn/common/urls.py +1 -0
- crypticorn/klines/client/configuration.py +2 -2
- crypticorn/metrics/__init__.py +4 -0
- crypticorn/metrics/client/__init__.py +60 -0
- crypticorn/metrics/client/api/__init__.py +10 -0
- crypticorn/metrics/client/api/exchanges_api.py +1003 -0
- crypticorn/metrics/client/api/health_check_api.py +265 -0
- crypticorn/metrics/client/api/indicators_api.py +680 -0
- crypticorn/metrics/client/api/logs_api.py +356 -0
- crypticorn/metrics/client/api/marketcap_api.py +1315 -0
- crypticorn/metrics/client/api/markets_api.py +618 -0
- crypticorn/metrics/client/api/tokens_api.py +300 -0
- crypticorn/metrics/client/api_client.py +758 -0
- crypticorn/metrics/client/api_response.py +20 -0
- crypticorn/metrics/client/configuration.py +575 -0
- crypticorn/metrics/client/exceptions.py +220 -0
- crypticorn/metrics/client/models/__init__.py +37 -0
- crypticorn/metrics/client/models/base_response_dict.py +106 -0
- crypticorn/metrics/client/models/base_response_health_check_response.py +114 -0
- crypticorn/metrics/client/models/base_response_list_dict.py +106 -0
- crypticorn/metrics/client/models/base_response_list_exchange_mapping.py +118 -0
- crypticorn/metrics/client/models/base_response_list_str.py +106 -0
- crypticorn/metrics/client/models/error_response.py +109 -0
- crypticorn/metrics/client/models/exchange_mapping.py +132 -0
- crypticorn/metrics/client/models/health_check_response.py +91 -0
- crypticorn/metrics/client/models/http_validation_error.py +99 -0
- crypticorn/metrics/client/models/market.py +35 -0
- crypticorn/metrics/client/models/severity.py +36 -0
- crypticorn/metrics/client/models/validation_error.py +105 -0
- crypticorn/metrics/client/models/validation_error_loc_inner.py +159 -0
- crypticorn/metrics/client/py.typed +0 -0
- crypticorn/metrics/client/rest.py +195 -0
- crypticorn/metrics/main.py +112 -0
- {crypticorn-2.1.5.dist-info → crypticorn-2.1.6.dist-info}/METADATA +1 -1
- {crypticorn-2.1.5.dist-info → crypticorn-2.1.6.dist-info}/RECORD +38 -7
- {crypticorn-2.1.5.dist-info → crypticorn-2.1.6.dist-info}/WHEEL +0 -0
- {crypticorn-2.1.5.dist-info → crypticorn-2.1.6.dist-info}/top_level.txt +0 -0
crypticorn/client.py
CHANGED
@@ -2,6 +2,7 @@ from crypticorn.hive import HiveClient
|
|
2
2
|
from crypticorn.klines import KlinesClient
|
3
3
|
from crypticorn.pay import PayClient
|
4
4
|
from crypticorn.trade import TradeClient
|
5
|
+
from crypticorn.metrics import MetricsClient
|
5
6
|
from crypticorn.common import BaseURL, ApiVersion
|
6
7
|
|
7
8
|
|
@@ -22,6 +23,7 @@ class ApiClient:
|
|
22
23
|
pay_version: ApiVersion = ApiVersion.V1,
|
23
24
|
trade_version: ApiVersion = ApiVersion.V1,
|
24
25
|
auth_version: ApiVersion = ApiVersion.V1,
|
26
|
+
metrics_version: ApiVersion = ApiVersion.V1,
|
25
27
|
):
|
26
28
|
self.base_url = base_url
|
27
29
|
self.api_key = api_key
|
@@ -30,6 +32,7 @@ class ApiClient:
|
|
30
32
|
self.trade = TradeClient(base_url, trade_version, api_key, jwt)
|
31
33
|
self.klines = KlinesClient(base_url, klines_version, api_key, jwt)
|
32
34
|
self.pay = PayClient(base_url, pay_version, api_key, jwt)
|
35
|
+
self.metrics = MetricsClient(base_url, metrics_version, api_key, jwt)
|
33
36
|
# currently not working due to circular import since the AUTH_Handler
|
34
37
|
# is also using the ApiClient
|
35
38
|
# self.auth = AuthClient(base_url, auth_version, api_key, jwt)
|
@@ -47,6 +50,7 @@ class ApiClient:
|
|
47
50
|
self.trade.base_client,
|
48
51
|
self.klines.base_client,
|
49
52
|
self.pay.base_client,
|
53
|
+
self.metrics.base_client,
|
50
54
|
]
|
51
55
|
|
52
56
|
for client in clients:
|
crypticorn/common/urls.py
CHANGED
@@ -191,7 +191,7 @@ class Configuration:
|
|
191
191
|
) -> None:
|
192
192
|
"""Constructor"""
|
193
193
|
self._base_path = (
|
194
|
-
"
|
194
|
+
"http://localhost/v1/klines" if host is None else host
|
195
195
|
)
|
196
196
|
"""Default Base url
|
197
197
|
"""
|
@@ -516,7 +516,7 @@ class Configuration:
|
|
516
516
|
"""
|
517
517
|
return [
|
518
518
|
{
|
519
|
-
"url": "
|
519
|
+
"url": "http://localhost/v1/klines",
|
520
520
|
"description": "No description provided",
|
521
521
|
}
|
522
522
|
]
|
@@ -0,0 +1,60 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
# flake8: noqa
|
4
|
+
|
5
|
+
"""
|
6
|
+
Marketcap Service API
|
7
|
+
|
8
|
+
API for retrieving historical marketcap data, available exchanges, and indicators. ## Features - Historical marketcap data - OHLCV data with marketcap - Technical indicators (KER, SMA) - Exchange and symbol mappings - Error logs
|
9
|
+
|
10
|
+
The version of the OpenAPI document: 1.0.0
|
11
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
12
|
+
|
13
|
+
Do not edit the class manually.
|
14
|
+
""" # noqa: E501
|
15
|
+
|
16
|
+
|
17
|
+
__version__ = "1.0.0"
|
18
|
+
|
19
|
+
# import apis into sdk package
|
20
|
+
from crypticorn.metrics.client.api.exchanges_api import ExchangesApi
|
21
|
+
from crypticorn.metrics.client.api.health_check_api import HealthCheckApi
|
22
|
+
from crypticorn.metrics.client.api.indicators_api import IndicatorsApi
|
23
|
+
from crypticorn.metrics.client.api.logs_api import LogsApi
|
24
|
+
from crypticorn.metrics.client.api.marketcap_api import MarketcapApi
|
25
|
+
from crypticorn.metrics.client.api.markets_api import MarketsApi
|
26
|
+
from crypticorn.metrics.client.api.tokens_api import TokensApi
|
27
|
+
|
28
|
+
# import ApiClient
|
29
|
+
from crypticorn.metrics.client.api_response import ApiResponse
|
30
|
+
from crypticorn.metrics.client.api_client import ApiClient
|
31
|
+
from crypticorn.metrics.client.configuration import Configuration
|
32
|
+
from crypticorn.metrics.client.exceptions import OpenApiException
|
33
|
+
from crypticorn.metrics.client.exceptions import ApiTypeError
|
34
|
+
from crypticorn.metrics.client.exceptions import ApiValueError
|
35
|
+
from crypticorn.metrics.client.exceptions import ApiKeyError
|
36
|
+
from crypticorn.metrics.client.exceptions import ApiAttributeError
|
37
|
+
from crypticorn.metrics.client.exceptions import ApiException
|
38
|
+
|
39
|
+
# import models into sdk package
|
40
|
+
from crypticorn.metrics.client.models.base_response_dict import BaseResponseDict
|
41
|
+
from crypticorn.metrics.client.models.base_response_health_check_response import (
|
42
|
+
BaseResponseHealthCheckResponse,
|
43
|
+
)
|
44
|
+
from crypticorn.metrics.client.models.base_response_list_dict import (
|
45
|
+
BaseResponseListDict,
|
46
|
+
)
|
47
|
+
from crypticorn.metrics.client.models.base_response_list_exchange_mapping import (
|
48
|
+
BaseResponseListExchangeMapping,
|
49
|
+
)
|
50
|
+
from crypticorn.metrics.client.models.base_response_list_str import BaseResponseListStr
|
51
|
+
from crypticorn.metrics.client.models.error_response import ErrorResponse
|
52
|
+
from crypticorn.metrics.client.models.exchange_mapping import ExchangeMapping
|
53
|
+
from crypticorn.metrics.client.models.http_validation_error import HTTPValidationError
|
54
|
+
from crypticorn.metrics.client.models.health_check_response import HealthCheckResponse
|
55
|
+
from crypticorn.metrics.client.models.market import Market
|
56
|
+
from crypticorn.metrics.client.models.severity import Severity
|
57
|
+
from crypticorn.metrics.client.models.validation_error import ValidationError
|
58
|
+
from crypticorn.metrics.client.models.validation_error_loc_inner import (
|
59
|
+
ValidationErrorLocInner,
|
60
|
+
)
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# flake8: noqa
|
2
|
+
|
3
|
+
# import apis into api package
|
4
|
+
from crypticorn.metrics.client.api.exchanges_api import ExchangesApi
|
5
|
+
from crypticorn.metrics.client.api.health_check_api import HealthCheckApi
|
6
|
+
from crypticorn.metrics.client.api.indicators_api import IndicatorsApi
|
7
|
+
from crypticorn.metrics.client.api.logs_api import LogsApi
|
8
|
+
from crypticorn.metrics.client.api.marketcap_api import MarketcapApi
|
9
|
+
from crypticorn.metrics.client.api.markets_api import MarketsApi
|
10
|
+
from crypticorn.metrics.client.api.tokens_api import TokensApi
|