crypticorn 2.8.0rc9__py3-none-any.whl → 2.9.0rc1__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.
Files changed (33) hide show
  1. crypticorn/cli/init.py +2 -2
  2. crypticorn/common/router/admin_router.py +7 -9
  3. crypticorn/klines/client/__init__.py +9 -1
  4. crypticorn/klines/client/api/__init__.py +1 -0
  5. crypticorn/klines/client/api/admin_api.py +1455 -0
  6. crypticorn/klines/client/api/change_in_timeframe_api.py +24 -20
  7. crypticorn/klines/client/api/funding_rates_api.py +12 -10
  8. crypticorn/klines/client/api/ohlcv_data_api.py +37 -24
  9. crypticorn/klines/client/api/status_api.py +8 -235
  10. crypticorn/klines/client/api/symbols_api.py +12 -9
  11. crypticorn/klines/client/api/udf_api.py +6 -6
  12. crypticorn/klines/client/models/__init__.py +8 -1
  13. crypticorn/klines/client/models/api_error_identifier.py +115 -0
  14. crypticorn/klines/client/models/api_error_level.py +37 -0
  15. crypticorn/klines/client/models/api_error_type.py +37 -0
  16. crypticorn/klines/client/models/exception_detail.py +6 -3
  17. crypticorn/klines/client/models/funding_rate.py +6 -12
  18. crypticorn/klines/client/models/funding_rate_response.py +103 -0
  19. crypticorn/klines/client/models/internal_exchange.py +39 -0
  20. crypticorn/klines/client/models/log_level.py +38 -0
  21. crypticorn/klines/client/models/market_type.py +35 -0
  22. crypticorn/klines/client/models/{ohlcv_history.py → ohlcv.py} +12 -13
  23. crypticorn/klines/client/models/search_symbol.py +3 -4
  24. crypticorn/klines/client/models/udf_config.py +2 -1
  25. crypticorn/klines/main.py +1 -13
  26. crypticorn/metrics/client/api/admin_api.py +22 -19
  27. crypticorn/metrics/client/api/status_api.py +6 -6
  28. crypticorn/metrics/client/configuration.py +4 -2
  29. {crypticorn-2.8.0rc9.dist-info → crypticorn-2.9.0rc1.dist-info}/METADATA +1 -1
  30. {crypticorn-2.8.0rc9.dist-info → crypticorn-2.9.0rc1.dist-info}/RECORD +33 -25
  31. {crypticorn-2.8.0rc9.dist-info → crypticorn-2.9.0rc1.dist-info}/WHEEL +0 -0
  32. {crypticorn-2.8.0rc9.dist-info → crypticorn-2.9.0rc1.dist-info}/entry_points.txt +0 -0
  33. {crypticorn-2.8.0rc9.dist-info → crypticorn-2.9.0rc1.dist-info}/top_level.txt +0 -0
@@ -17,8 +17,7 @@ import pprint
17
17
  import re # noqa: F401
18
18
  import json
19
19
 
20
- from datetime import datetime
21
- from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt, StrictStr
20
+ from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt
22
21
  from typing import Any, ClassVar, Dict, List, Union
23
22
  from typing import Optional, Set
24
23
  from typing_extensions import Self
@@ -26,13 +25,12 @@ from typing_extensions import Self
26
25
 
27
26
  class FundingRate(BaseModel):
28
27
  """
29
- FundingRate
28
+ Model for a single funding rate
30
29
  """ # noqa: E501
31
30
 
32
- symbol: StrictStr
33
- timestamp: datetime
34
- funding_rate: Union[StrictFloat, StrictInt]
35
- __properties: ClassVar[List[str]] = ["symbol", "timestamp", "funding_rate"]
31
+ timestamp: StrictInt = Field(description="The timestamp of the funding rate")
32
+ funding_rate: Union[StrictFloat, StrictInt] = Field(description="The funding rate")
33
+ __properties: ClassVar[List[str]] = ["timestamp", "funding_rate"]
36
34
 
37
35
  model_config = ConfigDict(
38
36
  populate_by_name=True,
@@ -83,10 +81,6 @@ class FundingRate(BaseModel):
83
81
  return cls.model_validate(obj)
84
82
 
85
83
  _obj = cls.model_validate(
86
- {
87
- "symbol": obj.get("symbol"),
88
- "timestamp": obj.get("timestamp"),
89
- "funding_rate": obj.get("funding_rate"),
90
- }
84
+ {"timestamp": obj.get("timestamp"), "funding_rate": obj.get("funding_rate")}
91
85
  )
92
86
  return _obj
@@ -0,0 +1,103 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Klines Service API
5
+
6
+ API for retrieving OHLCV data, funding rates, and symbol information from Binance.
7
+
8
+ The version of the OpenAPI document: 1.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from pydantic import BaseModel, ConfigDict, Field, StrictStr
21
+ from typing import Any, ClassVar, Dict, List
22
+ from crypticorn.klines.client.models.funding_rate import FundingRate
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+
27
+ class FundingRateResponse(BaseModel):
28
+ """
29
+ Response model for fetching funding rates
30
+ """ # noqa: E501
31
+
32
+ symbol: StrictStr = Field(description="The symbol of the funding rate")
33
+ funding_interval: StrictStr = Field(description="The funding interval")
34
+ funding_rates: List[FundingRate] = Field(description="The funding rates")
35
+ __properties: ClassVar[List[str]] = ["symbol", "funding_interval", "funding_rates"]
36
+
37
+ model_config = ConfigDict(
38
+ populate_by_name=True,
39
+ validate_assignment=True,
40
+ protected_namespaces=(),
41
+ )
42
+
43
+ def to_str(self) -> str:
44
+ """Returns the string representation of the model using alias"""
45
+ return pprint.pformat(self.model_dump(by_alias=True))
46
+
47
+ def to_json(self) -> str:
48
+ """Returns the JSON representation of the model using alias"""
49
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
50
+ return json.dumps(self.to_dict())
51
+
52
+ @classmethod
53
+ def from_json(cls, json_str: str) -> Optional[Self]:
54
+ """Create an instance of FundingRateResponse from a JSON string"""
55
+ return cls.from_dict(json.loads(json_str))
56
+
57
+ def to_dict(self) -> Dict[str, Any]:
58
+ """Return the dictionary representation of the model using alias.
59
+
60
+ This has the following differences from calling pydantic's
61
+ `self.model_dump(by_alias=True)`:
62
+
63
+ * `None` is only added to the output dict for nullable fields that
64
+ were set at model initialization. Other fields with value `None`
65
+ are ignored.
66
+ """
67
+ excluded_fields: Set[str] = set([])
68
+
69
+ _dict = self.model_dump(
70
+ by_alias=True,
71
+ exclude=excluded_fields,
72
+ exclude_none=True,
73
+ )
74
+ # override the default output from pydantic by calling `to_dict()` of each item in funding_rates (list)
75
+ _items = []
76
+ if self.funding_rates:
77
+ for _item_funding_rates in self.funding_rates:
78
+ if _item_funding_rates:
79
+ _items.append(_item_funding_rates.to_dict())
80
+ _dict["funding_rates"] = _items
81
+ return _dict
82
+
83
+ @classmethod
84
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
85
+ """Create an instance of FundingRateResponse from a dict"""
86
+ if obj is None:
87
+ return None
88
+
89
+ if not isinstance(obj, dict):
90
+ return cls.model_validate(obj)
91
+
92
+ _obj = cls.model_validate(
93
+ {
94
+ "symbol": obj.get("symbol"),
95
+ "funding_interval": obj.get("funding_interval"),
96
+ "funding_rates": (
97
+ [FundingRate.from_dict(_item) for _item in obj["funding_rates"]]
98
+ if obj.get("funding_rates") is not None
99
+ else None
100
+ ),
101
+ }
102
+ )
103
+ return _obj
@@ -0,0 +1,39 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Klines Service API
5
+
6
+ API for retrieving OHLCV data, funding rates, and symbol information from Binance.
7
+
8
+ The version of the OpenAPI document: 1.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import json
17
+ from enum import Enum
18
+ from typing_extensions import Self
19
+
20
+
21
+ class InternalExchange(str, Enum):
22
+ """
23
+ All exchanges we are using, including public (Exchange)
24
+ """
25
+
26
+ """
27
+ allowed enum values
28
+ """
29
+ KUCOIN = "kucoin"
30
+ BINGX = "bingx"
31
+ BINANCE = "binance"
32
+ BYBIT = "bybit"
33
+ HYPERLIQUID = "hyperliquid"
34
+ BITGET = "bitget"
35
+
36
+ @classmethod
37
+ def from_json(cls, json_str: str) -> Self:
38
+ """Create an instance of InternalExchange from a JSON string"""
39
+ return cls(json.loads(json_str))
@@ -0,0 +1,38 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Klines Service API
5
+
6
+ API for retrieving OHLCV data, funding rates, and symbol information from Binance.
7
+
8
+ The version of the OpenAPI document: 1.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import json
17
+ from enum import Enum
18
+ from typing_extensions import Self
19
+
20
+
21
+ class LogLevel(str, Enum):
22
+ """
23
+ LogLevel
24
+ """
25
+
26
+ """
27
+ allowed enum values
28
+ """
29
+ DEBUG = "DEBUG"
30
+ INFO = "INFO"
31
+ WARNING = "WARNING"
32
+ ERROR = "ERROR"
33
+ CRITICAL = "CRITICAL"
34
+
35
+ @classmethod
36
+ def from_json(cls, json_str: str) -> Self:
37
+ """Create an instance of LogLevel from a JSON string"""
38
+ return cls(json.loads(json_str))
@@ -0,0 +1,35 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Klines Service API
5
+
6
+ API for retrieving OHLCV data, funding rates, and symbol information from Binance.
7
+
8
+ The version of the OpenAPI document: 1.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import json
17
+ from enum import Enum
18
+ from typing_extensions import Self
19
+
20
+
21
+ class MarketType(str, Enum):
22
+ """
23
+ Market types
24
+ """
25
+
26
+ """
27
+ allowed enum values
28
+ """
29
+ SPOT = "spot"
30
+ FUTURES = "futures"
31
+
32
+ @classmethod
33
+ def from_json(cls, json_str: str) -> Self:
34
+ """Create an instance of MarketType from a JSON string"""
35
+ return cls(json.loads(json_str))
@@ -17,26 +17,25 @@ import pprint
17
17
  import re # noqa: F401
18
18
  import json
19
19
 
20
- from datetime import datetime
21
20
  from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt
22
21
  from typing import Any, ClassVar, Dict, List, Union
23
22
  from typing import Optional, Set
24
23
  from typing_extensions import Self
25
24
 
26
25
 
27
- class OHLCVHistory(BaseModel):
26
+ class OHLCV(BaseModel):
28
27
  """
29
- OHLCVHistory
28
+ OHLCV
30
29
  """ # noqa: E501
31
30
 
32
- timestamps: List[datetime] = Field(description="Timestamps in seconds")
33
- open: List[Union[StrictFloat, StrictInt]] = Field(description="Open prices")
34
- high: List[Union[StrictFloat, StrictInt]] = Field(description="High prices")
35
- low: List[Union[StrictFloat, StrictInt]] = Field(description="Low prices")
36
- close: List[Union[StrictFloat, StrictInt]] = Field(description="Close prices")
37
- volume: List[Union[StrictFloat, StrictInt]] = Field(description="Volume")
31
+ timestamp: StrictInt = Field(description="Timestamp in seconds")
32
+ open: Union[StrictFloat, StrictInt] = Field(description="Open prices")
33
+ high: Union[StrictFloat, StrictInt] = Field(description="High prices")
34
+ low: Union[StrictFloat, StrictInt] = Field(description="Low prices")
35
+ close: Union[StrictFloat, StrictInt] = Field(description="Close prices")
36
+ volume: Union[StrictFloat, StrictInt] = Field(description="Volume")
38
37
  __properties: ClassVar[List[str]] = [
39
- "timestamps",
38
+ "timestamp",
40
39
  "open",
41
40
  "high",
42
41
  "low",
@@ -61,7 +60,7 @@ class OHLCVHistory(BaseModel):
61
60
 
62
61
  @classmethod
63
62
  def from_json(cls, json_str: str) -> Optional[Self]:
64
- """Create an instance of OHLCVHistory from a JSON string"""
63
+ """Create an instance of OHLCV from a JSON string"""
65
64
  return cls.from_dict(json.loads(json_str))
66
65
 
67
66
  def to_dict(self) -> Dict[str, Any]:
@@ -85,7 +84,7 @@ class OHLCVHistory(BaseModel):
85
84
 
86
85
  @classmethod
87
86
  def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
88
- """Create an instance of OHLCVHistory from a dict"""
87
+ """Create an instance of OHLCV from a dict"""
89
88
  if obj is None:
90
89
  return None
91
90
 
@@ -94,7 +93,7 @@ class OHLCVHistory(BaseModel):
94
93
 
95
94
  _obj = cls.model_validate(
96
95
  {
97
- "timestamps": obj.get("timestamps"),
96
+ "timestamp": obj.get("timestamp"),
98
97
  "open": obj.get("open"),
99
98
  "high": obj.get("high"),
100
99
  "low": obj.get("low"),
@@ -17,8 +17,9 @@ import pprint
17
17
  import re # noqa: F401
18
18
  import json
19
19
 
20
- from pydantic import BaseModel, ConfigDict, Field, StrictStr
20
+ from pydantic import BaseModel, ConfigDict, StrictStr
21
21
  from typing import Any, ClassVar, Dict, List
22
+ from crypticorn.klines.client.models.internal_exchange import InternalExchange
22
23
  from typing import Optional, Set
23
24
  from typing_extensions import Self
24
25
 
@@ -30,9 +31,7 @@ class SearchSymbol(BaseModel):
30
31
 
31
32
  symbol: StrictStr
32
33
  description: StrictStr
33
- exchange: StrictStr = Field(
34
- description="All exchanges we are using, including public (Exchange)"
35
- )
34
+ exchange: InternalExchange
36
35
  type: StrictStr
37
36
  __properties: ClassVar[List[str]] = ["symbol", "description", "exchange", "type"]
38
37
 
@@ -19,6 +19,7 @@ import json
19
19
 
20
20
  from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
21
21
  from typing import Any, ClassVar, Dict, List, Optional
22
+ from crypticorn.klines.client.models.internal_exchange import InternalExchange
22
23
  from crypticorn.klines.client.models.symbol_type import SymbolType
23
24
  from typing import Optional, Set
24
25
  from typing_extensions import Self
@@ -35,7 +36,7 @@ class UDFConfig(BaseModel):
35
36
  supports_search: Optional[StrictBool] = True
36
37
  supports_timescale_marks: Optional[StrictBool] = False
37
38
  supports_time: Optional[StrictBool] = True
38
- exchanges: List[StrictStr]
39
+ exchanges: List[InternalExchange]
39
40
  symbols_types: List[SymbolType]
40
41
  currency_codes: List[StrictStr]
41
42
  supported_markets: List[StrictStr]
crypticorn/klines/main.py CHANGED
@@ -65,19 +65,7 @@ class OHLCVDataApiWrapper(OHLCVDataApi):
65
65
  """
66
66
  pd = optional_import("pandas", "extra")
67
67
  response = await self.get_ohlcv(*args, **kwargs)
68
- df = pd.DataFrame(
69
- {
70
- "timestamp": [int(d.timestamp()) for d in response.timestamps],
71
- "open": response.open,
72
- "high": response.high,
73
- "low": response.low,
74
- "close": response.close,
75
- "volume": response.volume,
76
- }
77
- )
78
- df.sort_values(by="timestamp", ascending=False, inplace=True)
79
- df.reset_index(drop=True, inplace=True)
80
- return df
68
+ return pd.DataFrame(response)
81
69
 
82
70
 
83
71
  class SymbolsApiWrapper(SymbolsApi):
@@ -16,8 +16,8 @@ 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, StrictStr, field_validator
20
- from typing import Any, Dict, List, Optional
19
+ from pydantic import Field, StrictFloat, StrictInt, StrictStr, field_validator
20
+ from typing import Any, Dict, List, Optional, Union
21
21
  from typing_extensions import Annotated
22
22
  from crypticorn.metrics.client.models.log_level import LogLevel
23
23
 
@@ -248,7 +248,7 @@ class AdminApi:
248
248
  )
249
249
 
250
250
  # authentication setting
251
- _auth_settings: List[str] = []
251
+ _auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
252
252
 
253
253
  return self.api_client.param_serialize(
254
254
  method="GET",
@@ -509,7 +509,7 @@ class AdminApi:
509
509
  )
510
510
 
511
511
  # authentication setting
512
- _auth_settings: List[str] = []
512
+ _auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
513
513
 
514
514
  return self.api_client.param_serialize(
515
515
  method="GET",
@@ -541,9 +541,9 @@ class AdminApi:
541
541
  _headers: Optional[Dict[StrictStr, Any]] = None,
542
542
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
543
543
  ) -> LogLevel:
544
- """Get Logging Level
544
+ """(Deprecated) Get Logging Level
545
545
 
546
- Get the log level of the server logger.
546
+ Get the log level of the server logger. Will be removed in a future release.
547
547
 
548
548
  :param _request_timeout: timeout setting for this request. If one
549
549
  number provided, it will be total request
@@ -566,6 +566,7 @@ class AdminApi:
566
566
  :type _host_index: int, optional
567
567
  :return: Returns the result object.
568
568
  """ # noqa: E501
569
+ warnings.warn("GET /admin/log-level is deprecated.", DeprecationWarning)
569
570
 
570
571
  _param = self._get_log_level_serialize(
571
572
  _request_auth=_request_auth,
@@ -601,9 +602,9 @@ class AdminApi:
601
602
  _headers: Optional[Dict[StrictStr, Any]] = None,
602
603
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
603
604
  ) -> ApiResponse[LogLevel]:
604
- """Get Logging Level
605
+ """(Deprecated) Get Logging Level
605
606
 
606
- Get the log level of the server logger.
607
+ Get the log level of the server logger. Will be removed in a future release.
607
608
 
608
609
  :param _request_timeout: timeout setting for this request. If one
609
610
  number provided, it will be total request
@@ -626,6 +627,7 @@ class AdminApi:
626
627
  :type _host_index: int, optional
627
628
  :return: Returns the result object.
628
629
  """ # noqa: E501
630
+ warnings.warn("GET /admin/log-level is deprecated.", DeprecationWarning)
629
631
 
630
632
  _param = self._get_log_level_serialize(
631
633
  _request_auth=_request_auth,
@@ -661,9 +663,9 @@ class AdminApi:
661
663
  _headers: Optional[Dict[StrictStr, Any]] = None,
662
664
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
663
665
  ) -> RESTResponseType:
664
- """Get Logging Level
666
+ """(Deprecated) Get Logging Level
665
667
 
666
- Get the log level of the server logger.
668
+ Get the log level of the server logger. Will be removed in a future release.
667
669
 
668
670
  :param _request_timeout: timeout setting for this request. If one
669
671
  number provided, it will be total request
@@ -686,6 +688,7 @@ class AdminApi:
686
688
  :type _host_index: int, optional
687
689
  :return: Returns the result object.
688
690
  """ # noqa: E501
691
+ warnings.warn("GET /admin/log-level is deprecated.", DeprecationWarning)
689
692
 
690
693
  _param = self._get_log_level_serialize(
691
694
  _request_auth=_request_auth,
@@ -736,7 +739,7 @@ class AdminApi:
736
739
  )
737
740
 
738
741
  # authentication setting
739
- _auth_settings: List[str] = []
742
+ _auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
740
743
 
741
744
  return self.api_client.param_serialize(
742
745
  method="GET",
@@ -767,7 +770,7 @@ class AdminApi:
767
770
  _content_type: Optional[StrictStr] = None,
768
771
  _headers: Optional[Dict[StrictStr, Any]] = None,
769
772
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
770
- ) -> int:
773
+ ) -> float:
771
774
  """Get Memory Usage
772
775
 
773
776
  Resident Set Size (RSS) in MB — the actual memory used by the process in RAM. Represents the physical memory footprint. Important for monitoring real usage.
@@ -802,7 +805,7 @@ class AdminApi:
802
805
  )
803
806
 
804
807
  _response_types_map: Dict[str, Optional[str]] = {
805
- "200": "int",
808
+ "200": "float",
806
809
  }
807
810
  response_data = await self.api_client.call_api(
808
811
  *_param, _request_timeout=_request_timeout
@@ -827,7 +830,7 @@ class AdminApi:
827
830
  _content_type: Optional[StrictStr] = None,
828
831
  _headers: Optional[Dict[StrictStr, Any]] = None,
829
832
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
830
- ) -> ApiResponse[int]:
833
+ ) -> ApiResponse[float]:
831
834
  """Get Memory Usage
832
835
 
833
836
  Resident Set Size (RSS) in MB — the actual memory used by the process in RAM. Represents the physical memory footprint. Important for monitoring real usage.
@@ -862,7 +865,7 @@ class AdminApi:
862
865
  )
863
866
 
864
867
  _response_types_map: Dict[str, Optional[str]] = {
865
- "200": "int",
868
+ "200": "float",
866
869
  }
867
870
  response_data = await self.api_client.call_api(
868
871
  *_param, _request_timeout=_request_timeout
@@ -922,7 +925,7 @@ class AdminApi:
922
925
  )
923
926
 
924
927
  _response_types_map: Dict[str, Optional[str]] = {
925
- "200": "int",
928
+ "200": "float",
926
929
  }
927
930
  response_data = await self.api_client.call_api(
928
931
  *_param, _request_timeout=_request_timeout
@@ -963,7 +966,7 @@ class AdminApi:
963
966
  )
964
967
 
965
968
  # authentication setting
966
- _auth_settings: List[str] = []
969
+ _auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
967
970
 
968
971
  return self.api_client.param_serialize(
969
972
  method="GET",
@@ -1190,7 +1193,7 @@ class AdminApi:
1190
1193
  )
1191
1194
 
1192
1195
  # authentication setting
1193
- _auth_settings: List[str] = []
1196
+ _auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
1194
1197
 
1195
1198
  return self.api_client.param_serialize(
1196
1199
  method="GET",
@@ -1434,7 +1437,7 @@ class AdminApi:
1434
1437
  )
1435
1438
 
1436
1439
  # authentication setting
1437
- _auth_settings: List[str] = []
1440
+ _auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
1438
1441
 
1439
1442
  return self.api_client.param_serialize(
1440
1443
  method="GET",
@@ -17,7 +17,7 @@ from typing import Any, Dict, List, Optional, Tuple, Union
17
17
  from typing_extensions import Annotated
18
18
 
19
19
  from pydantic import StrictStr, field_validator
20
- from typing import Optional
20
+ from typing import Any, Dict, Optional
21
21
 
22
22
  from crypticorn.metrics.client.api_client import ApiClient, RequestSerialized
23
23
  from crypticorn.metrics.client.api_response import ApiResponse
@@ -294,7 +294,7 @@ class StatusApi:
294
294
  _content_type: Optional[StrictStr] = None,
295
295
  _headers: Optional[Dict[StrictStr, Any]] = None,
296
296
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
297
- ) -> str:
297
+ ) -> Dict[str, object]:
298
298
  """Ping
299
299
 
300
300
  Returns 'OK' if the API is running.
@@ -329,7 +329,7 @@ class StatusApi:
329
329
  )
330
330
 
331
331
  _response_types_map: Dict[str, Optional[str]] = {
332
- "200": "str",
332
+ "200": "Dict[str, object]",
333
333
  }
334
334
  response_data = await self.api_client.call_api(
335
335
  *_param, _request_timeout=_request_timeout
@@ -354,7 +354,7 @@ class StatusApi:
354
354
  _content_type: Optional[StrictStr] = None,
355
355
  _headers: Optional[Dict[StrictStr, Any]] = None,
356
356
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
357
- ) -> ApiResponse[str]:
357
+ ) -> ApiResponse[Dict[str, object]]:
358
358
  """Ping
359
359
 
360
360
  Returns 'OK' if the API is running.
@@ -389,7 +389,7 @@ class StatusApi:
389
389
  )
390
390
 
391
391
  _response_types_map: Dict[str, Optional[str]] = {
392
- "200": "str",
392
+ "200": "Dict[str, object]",
393
393
  }
394
394
  response_data = await self.api_client.call_api(
395
395
  *_param, _request_timeout=_request_timeout
@@ -449,7 +449,7 @@ class StatusApi:
449
449
  )
450
450
 
451
451
  _response_types_map: Dict[str, Optional[str]] = {
452
- "200": "str",
452
+ "200": "Dict[str, object]",
453
453
  }
454
454
  response_data = await self.api_client.call_api(
455
455
  *_param, _request_timeout=_request_timeout
@@ -215,7 +215,9 @@ class Configuration:
215
215
  debug: Optional[bool] = None,
216
216
  ) -> None:
217
217
  """Constructor"""
218
- self._base_path = "http://localhost/v1/metrics" if host is None else host
218
+ self._base_path = (
219
+ "https://api.crypticorn.dev/v1/metrics" if host is None else host
220
+ )
219
221
  """Default Base url
220
222
  """
221
223
  self.server_index = 0 if server_index is None and host is None else server_index
@@ -557,7 +559,7 @@ class Configuration:
557
559
  """
558
560
  return [
559
561
  {
560
- "url": "http://localhost/v1/metrics",
562
+ "url": "https://api.crypticorn.dev/v1/metrics",
561
563
  "description": "No description provided",
562
564
  }
563
565
  ]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: crypticorn
3
- Version: 2.8.0rc9
3
+ Version: 2.9.0rc1
4
4
  Summary: Maximise Your Crypto Trading Profits with Machine Learning
5
5
  Author-email: Crypticorn <timon@crypticorn.com>
6
6
  License: MIT