compass_api_sdk 0.9.48__py3-none-any.whl → 0.9.49__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.
Potentially problematic release.
This version of compass_api_sdk might be problematic. Click here for more details.
- compass_api_sdk/_version.py +2 -2
- compass_api_sdk/aave_v3.py +192 -0
- compass_api_sdk/models/__init__.py +27 -0
- compass_api_sdk/models/aave_aave_supported_tokensop.py +73 -0
- compass_api_sdk/models/aavesupportedtokenmetadata.py +30 -0
- compass_api_sdk/models/aavesupportedtokensresponse.py +20 -0
- {compass_api_sdk-0.9.48.dist-info → compass_api_sdk-0.9.49.dist-info}/METADATA +9 -8
- {compass_api_sdk-0.9.48.dist-info → compass_api_sdk-0.9.49.dist-info}/RECORD +9 -6
- {compass_api_sdk-0.9.48.dist-info → compass_api_sdk-0.9.49.dist-info}/WHEEL +0 -0
compass_api_sdk/_version.py
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import importlib.metadata
|
|
4
4
|
|
|
5
5
|
__title__: str = "compass_api_sdk"
|
|
6
|
-
__version__: str = "0.9.
|
|
6
|
+
__version__: str = "0.9.49"
|
|
7
7
|
__openapi_doc_version__: str = "0.0.1"
|
|
8
8
|
__gen_version__: str = "2.657.1"
|
|
9
|
-
__user_agent__: str = "speakeasy-sdk/python 0.9.
|
|
9
|
+
__user_agent__: str = "speakeasy-sdk/python 0.9.49 2.657.1 0.0.1 compass_api_sdk"
|
|
10
10
|
|
|
11
11
|
try:
|
|
12
12
|
if __package__ is not None:
|
compass_api_sdk/aave_v3.py
CHANGED
|
@@ -9,6 +9,198 @@ from typing import Any, Mapping, Optional, Union
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class AaveV3(BaseSDK):
|
|
12
|
+
def aave_supported_tokens(
|
|
13
|
+
self,
|
|
14
|
+
*,
|
|
15
|
+
chain: models.AaveAaveSupportedTokensChain = models.AaveAaveSupportedTokensChain.ARBITRUM_MAINNET,
|
|
16
|
+
block: OptionalNullable[int] = UNSET,
|
|
17
|
+
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
18
|
+
server_url: Optional[str] = None,
|
|
19
|
+
timeout_ms: Optional[int] = None,
|
|
20
|
+
http_headers: Optional[Mapping[str, str]] = None,
|
|
21
|
+
) -> models.AaveSupportedTokensResponse:
|
|
22
|
+
r"""Aave Supported Tokens
|
|
23
|
+
|
|
24
|
+
Returns the list of supported tokens on Aave for the specified network, along
|
|
25
|
+
with key metadata.
|
|
26
|
+
|
|
27
|
+
For each token, the response includes:
|
|
28
|
+
- The symbol and contract address.
|
|
29
|
+
- Whether the token is currently enabled for supplying (depositing).
|
|
30
|
+
- Whether it is enabled for borrowing.
|
|
31
|
+
|
|
32
|
+
:param chain: The chain to use.
|
|
33
|
+
:param block: Optional block number (defaults to latest).
|
|
34
|
+
:param retries: Override the default retry configuration for this method
|
|
35
|
+
:param server_url: Override the default server URL for this method
|
|
36
|
+
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
37
|
+
:param http_headers: Additional headers to set or replace on requests.
|
|
38
|
+
"""
|
|
39
|
+
base_url = None
|
|
40
|
+
url_variables = None
|
|
41
|
+
if timeout_ms is None:
|
|
42
|
+
timeout_ms = self.sdk_configuration.timeout_ms
|
|
43
|
+
|
|
44
|
+
if server_url is not None:
|
|
45
|
+
base_url = server_url
|
|
46
|
+
else:
|
|
47
|
+
base_url = self._get_url(base_url, url_variables)
|
|
48
|
+
|
|
49
|
+
request = models.AaveAaveSupportedTokensRequest(
|
|
50
|
+
chain=chain,
|
|
51
|
+
block=block,
|
|
52
|
+
)
|
|
53
|
+
|
|
54
|
+
req = self._build_request(
|
|
55
|
+
method="GET",
|
|
56
|
+
path="/v0/aave/aave_supported_tokens/get",
|
|
57
|
+
base_url=base_url,
|
|
58
|
+
url_variables=url_variables,
|
|
59
|
+
request=request,
|
|
60
|
+
request_body_required=False,
|
|
61
|
+
request_has_path_params=False,
|
|
62
|
+
request_has_query_params=True,
|
|
63
|
+
user_agent_header="user-agent",
|
|
64
|
+
accept_header_value="application/json",
|
|
65
|
+
http_headers=http_headers,
|
|
66
|
+
security=self.sdk_configuration.security,
|
|
67
|
+
timeout_ms=timeout_ms,
|
|
68
|
+
)
|
|
69
|
+
|
|
70
|
+
if retries == UNSET:
|
|
71
|
+
if self.sdk_configuration.retry_config is not UNSET:
|
|
72
|
+
retries = self.sdk_configuration.retry_config
|
|
73
|
+
|
|
74
|
+
retry_config = None
|
|
75
|
+
if isinstance(retries, utils.RetryConfig):
|
|
76
|
+
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
|
77
|
+
|
|
78
|
+
http_res = self.do_request(
|
|
79
|
+
hook_ctx=HookContext(
|
|
80
|
+
config=self.sdk_configuration,
|
|
81
|
+
base_url=base_url or "",
|
|
82
|
+
operation_id="aave_aave_supported_tokens",
|
|
83
|
+
oauth2_scopes=[],
|
|
84
|
+
security_source=self.sdk_configuration.security,
|
|
85
|
+
),
|
|
86
|
+
request=req,
|
|
87
|
+
error_status_codes=["422", "4XX", "5XX"],
|
|
88
|
+
retry_config=retry_config,
|
|
89
|
+
)
|
|
90
|
+
|
|
91
|
+
response_data: Any = None
|
|
92
|
+
if utils.match_response(http_res, "200", "application/json"):
|
|
93
|
+
return unmarshal_json_response(models.AaveSupportedTokensResponse, http_res)
|
|
94
|
+
if utils.match_response(http_res, "422", "application/json"):
|
|
95
|
+
response_data = unmarshal_json_response(
|
|
96
|
+
errors.HTTPValidationErrorData, http_res
|
|
97
|
+
)
|
|
98
|
+
raise errors.HTTPValidationError(response_data, http_res)
|
|
99
|
+
if utils.match_response(http_res, "4XX", "*"):
|
|
100
|
+
http_res_text = utils.stream_to_text(http_res)
|
|
101
|
+
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
102
|
+
if utils.match_response(http_res, "5XX", "*"):
|
|
103
|
+
http_res_text = utils.stream_to_text(http_res)
|
|
104
|
+
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
105
|
+
|
|
106
|
+
raise errors.APIError("Unexpected response received", http_res)
|
|
107
|
+
|
|
108
|
+
async def aave_supported_tokens_async(
|
|
109
|
+
self,
|
|
110
|
+
*,
|
|
111
|
+
chain: models.AaveAaveSupportedTokensChain = models.AaveAaveSupportedTokensChain.ARBITRUM_MAINNET,
|
|
112
|
+
block: OptionalNullable[int] = UNSET,
|
|
113
|
+
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
114
|
+
server_url: Optional[str] = None,
|
|
115
|
+
timeout_ms: Optional[int] = None,
|
|
116
|
+
http_headers: Optional[Mapping[str, str]] = None,
|
|
117
|
+
) -> models.AaveSupportedTokensResponse:
|
|
118
|
+
r"""Aave Supported Tokens
|
|
119
|
+
|
|
120
|
+
Returns the list of supported tokens on Aave for the specified network, along
|
|
121
|
+
with key metadata.
|
|
122
|
+
|
|
123
|
+
For each token, the response includes:
|
|
124
|
+
- The symbol and contract address.
|
|
125
|
+
- Whether the token is currently enabled for supplying (depositing).
|
|
126
|
+
- Whether it is enabled for borrowing.
|
|
127
|
+
|
|
128
|
+
:param chain: The chain to use.
|
|
129
|
+
:param block: Optional block number (defaults to latest).
|
|
130
|
+
:param retries: Override the default retry configuration for this method
|
|
131
|
+
:param server_url: Override the default server URL for this method
|
|
132
|
+
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
133
|
+
:param http_headers: Additional headers to set or replace on requests.
|
|
134
|
+
"""
|
|
135
|
+
base_url = None
|
|
136
|
+
url_variables = None
|
|
137
|
+
if timeout_ms is None:
|
|
138
|
+
timeout_ms = self.sdk_configuration.timeout_ms
|
|
139
|
+
|
|
140
|
+
if server_url is not None:
|
|
141
|
+
base_url = server_url
|
|
142
|
+
else:
|
|
143
|
+
base_url = self._get_url(base_url, url_variables)
|
|
144
|
+
|
|
145
|
+
request = models.AaveAaveSupportedTokensRequest(
|
|
146
|
+
chain=chain,
|
|
147
|
+
block=block,
|
|
148
|
+
)
|
|
149
|
+
|
|
150
|
+
req = self._build_request_async(
|
|
151
|
+
method="GET",
|
|
152
|
+
path="/v0/aave/aave_supported_tokens/get",
|
|
153
|
+
base_url=base_url,
|
|
154
|
+
url_variables=url_variables,
|
|
155
|
+
request=request,
|
|
156
|
+
request_body_required=False,
|
|
157
|
+
request_has_path_params=False,
|
|
158
|
+
request_has_query_params=True,
|
|
159
|
+
user_agent_header="user-agent",
|
|
160
|
+
accept_header_value="application/json",
|
|
161
|
+
http_headers=http_headers,
|
|
162
|
+
security=self.sdk_configuration.security,
|
|
163
|
+
timeout_ms=timeout_ms,
|
|
164
|
+
)
|
|
165
|
+
|
|
166
|
+
if retries == UNSET:
|
|
167
|
+
if self.sdk_configuration.retry_config is not UNSET:
|
|
168
|
+
retries = self.sdk_configuration.retry_config
|
|
169
|
+
|
|
170
|
+
retry_config = None
|
|
171
|
+
if isinstance(retries, utils.RetryConfig):
|
|
172
|
+
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
|
173
|
+
|
|
174
|
+
http_res = await self.do_request_async(
|
|
175
|
+
hook_ctx=HookContext(
|
|
176
|
+
config=self.sdk_configuration,
|
|
177
|
+
base_url=base_url or "",
|
|
178
|
+
operation_id="aave_aave_supported_tokens",
|
|
179
|
+
oauth2_scopes=[],
|
|
180
|
+
security_source=self.sdk_configuration.security,
|
|
181
|
+
),
|
|
182
|
+
request=req,
|
|
183
|
+
error_status_codes=["422", "4XX", "5XX"],
|
|
184
|
+
retry_config=retry_config,
|
|
185
|
+
)
|
|
186
|
+
|
|
187
|
+
response_data: Any = None
|
|
188
|
+
if utils.match_response(http_res, "200", "application/json"):
|
|
189
|
+
return unmarshal_json_response(models.AaveSupportedTokensResponse, http_res)
|
|
190
|
+
if utils.match_response(http_res, "422", "application/json"):
|
|
191
|
+
response_data = unmarshal_json_response(
|
|
192
|
+
errors.HTTPValidationErrorData, http_res
|
|
193
|
+
)
|
|
194
|
+
raise errors.HTTPValidationError(response_data, http_res)
|
|
195
|
+
if utils.match_response(http_res, "4XX", "*"):
|
|
196
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
|
197
|
+
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
198
|
+
if utils.match_response(http_res, "5XX", "*"):
|
|
199
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
|
200
|
+
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
201
|
+
|
|
202
|
+
raise errors.APIError("Unexpected response received", http_res)
|
|
203
|
+
|
|
12
204
|
def rate(
|
|
13
205
|
self,
|
|
14
206
|
*,
|
|
@@ -4,6 +4,11 @@ from typing import TYPE_CHECKING
|
|
|
4
4
|
from importlib import import_module
|
|
5
5
|
|
|
6
6
|
if TYPE_CHECKING:
|
|
7
|
+
from .aave_aave_supported_tokensop import (
|
|
8
|
+
AaveAaveSupportedTokensChain,
|
|
9
|
+
AaveAaveSupportedTokensRequest,
|
|
10
|
+
AaveAaveSupportedTokensRequestTypedDict,
|
|
11
|
+
)
|
|
7
12
|
from .aave_avg_rateop import (
|
|
8
13
|
AaveAvgRateChain,
|
|
9
14
|
AaveAvgRateRequest,
|
|
@@ -121,6 +126,14 @@ if TYPE_CHECKING:
|
|
|
121
126
|
AaveSupplyRequestAmountTypedDict,
|
|
122
127
|
AaveSupplyRequestTypedDict,
|
|
123
128
|
)
|
|
129
|
+
from .aavesupportedtokenmetadata import (
|
|
130
|
+
AaveSupportedTokenMetadata,
|
|
131
|
+
AaveSupportedTokenMetadataTypedDict,
|
|
132
|
+
)
|
|
133
|
+
from .aavesupportedtokensresponse import (
|
|
134
|
+
AaveSupportedTokensResponse,
|
|
135
|
+
AaveSupportedTokensResponseTypedDict,
|
|
136
|
+
)
|
|
124
137
|
from .aavetokenpriceresponse import (
|
|
125
138
|
AaveTokenPriceResponse,
|
|
126
139
|
AaveTokenPriceResponseTypedDict,
|
|
@@ -1013,6 +1026,9 @@ if TYPE_CHECKING:
|
|
|
1013
1026
|
from .yieldrange import YieldRange, YieldRangeTypedDict
|
|
1014
1027
|
|
|
1015
1028
|
__all__ = [
|
|
1029
|
+
"AaveAaveSupportedTokensChain",
|
|
1030
|
+
"AaveAaveSupportedTokensRequest",
|
|
1031
|
+
"AaveAaveSupportedTokensRequestTypedDict",
|
|
1016
1032
|
"AaveAvgRateChain",
|
|
1017
1033
|
"AaveAvgRateRequest",
|
|
1018
1034
|
"AaveAvgRateRequestTypedDict",
|
|
@@ -1074,6 +1090,10 @@ __all__ = [
|
|
|
1074
1090
|
"AaveSupplyRequestAmount",
|
|
1075
1091
|
"AaveSupplyRequestAmountTypedDict",
|
|
1076
1092
|
"AaveSupplyRequestTypedDict",
|
|
1093
|
+
"AaveSupportedTokenMetadata",
|
|
1094
|
+
"AaveSupportedTokenMetadataTypedDict",
|
|
1095
|
+
"AaveSupportedTokensResponse",
|
|
1096
|
+
"AaveSupportedTokensResponseTypedDict",
|
|
1077
1097
|
"AaveTokenPriceChain",
|
|
1078
1098
|
"AaveTokenPriceRequest",
|
|
1079
1099
|
"AaveTokenPriceRequestTypedDict",
|
|
@@ -1746,6 +1766,9 @@ __all__ = [
|
|
|
1746
1766
|
]
|
|
1747
1767
|
|
|
1748
1768
|
_dynamic_imports: dict[str, str] = {
|
|
1769
|
+
"AaveAaveSupportedTokensChain": ".aave_aave_supported_tokensop",
|
|
1770
|
+
"AaveAaveSupportedTokensRequest": ".aave_aave_supported_tokensop",
|
|
1771
|
+
"AaveAaveSupportedTokensRequestTypedDict": ".aave_aave_supported_tokensop",
|
|
1749
1772
|
"AaveAvgRateChain": ".aave_avg_rateop",
|
|
1750
1773
|
"AaveAvgRateRequest": ".aave_avg_rateop",
|
|
1751
1774
|
"AaveAvgRateRequestTypedDict": ".aave_avg_rateop",
|
|
@@ -1828,6 +1851,10 @@ _dynamic_imports: dict[str, str] = {
|
|
|
1828
1851
|
"AaveSupplyRequestAmount": ".aavesupplyrequest",
|
|
1829
1852
|
"AaveSupplyRequestAmountTypedDict": ".aavesupplyrequest",
|
|
1830
1853
|
"AaveSupplyRequestTypedDict": ".aavesupplyrequest",
|
|
1854
|
+
"AaveSupportedTokenMetadata": ".aavesupportedtokenmetadata",
|
|
1855
|
+
"AaveSupportedTokenMetadataTypedDict": ".aavesupportedtokenmetadata",
|
|
1856
|
+
"AaveSupportedTokensResponse": ".aavesupportedtokensresponse",
|
|
1857
|
+
"AaveSupportedTokensResponseTypedDict": ".aavesupportedtokensresponse",
|
|
1831
1858
|
"AaveTokenPriceResponse": ".aavetokenpriceresponse",
|
|
1832
1859
|
"AaveTokenPriceResponseTypedDict": ".aavetokenpriceresponse",
|
|
1833
1860
|
"AaveUserPositionPerTokenResponse": ".aaveuserpositionpertokenresponse",
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from compass_api_sdk.types import (
|
|
5
|
+
BaseModel,
|
|
6
|
+
Nullable,
|
|
7
|
+
OptionalNullable,
|
|
8
|
+
UNSET,
|
|
9
|
+
UNSET_SENTINEL,
|
|
10
|
+
)
|
|
11
|
+
from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
|
|
12
|
+
from enum import Enum
|
|
13
|
+
from pydantic import model_serializer
|
|
14
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class AaveAaveSupportedTokensChain(str, Enum):
|
|
18
|
+
r"""The chain to use."""
|
|
19
|
+
|
|
20
|
+
BASE_MAINNET = "base:mainnet"
|
|
21
|
+
ETHEREUM_MAINNET = "ethereum:mainnet"
|
|
22
|
+
ARBITRUM_MAINNET = "arbitrum:mainnet"
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class AaveAaveSupportedTokensRequestTypedDict(TypedDict):
|
|
26
|
+
chain: AaveAaveSupportedTokensChain
|
|
27
|
+
r"""The chain to use."""
|
|
28
|
+
block: NotRequired[Nullable[int]]
|
|
29
|
+
r"""Optional block number (defaults to latest)."""
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class AaveAaveSupportedTokensRequest(BaseModel):
|
|
33
|
+
chain: Annotated[
|
|
34
|
+
AaveAaveSupportedTokensChain,
|
|
35
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
36
|
+
] = AaveAaveSupportedTokensChain.ARBITRUM_MAINNET
|
|
37
|
+
r"""The chain to use."""
|
|
38
|
+
|
|
39
|
+
block: Annotated[
|
|
40
|
+
OptionalNullable[int],
|
|
41
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
42
|
+
] = UNSET
|
|
43
|
+
r"""Optional block number (defaults to latest)."""
|
|
44
|
+
|
|
45
|
+
@model_serializer(mode="wrap")
|
|
46
|
+
def serialize_model(self, handler):
|
|
47
|
+
optional_fields = ["block"]
|
|
48
|
+
nullable_fields = ["block"]
|
|
49
|
+
null_default_fields = []
|
|
50
|
+
|
|
51
|
+
serialized = handler(self)
|
|
52
|
+
|
|
53
|
+
m = {}
|
|
54
|
+
|
|
55
|
+
for n, f in type(self).model_fields.items():
|
|
56
|
+
k = f.alias or n
|
|
57
|
+
val = serialized.get(k)
|
|
58
|
+
serialized.pop(k, None)
|
|
59
|
+
|
|
60
|
+
optional_nullable = k in optional_fields and k in nullable_fields
|
|
61
|
+
is_set = (
|
|
62
|
+
self.__pydantic_fields_set__.intersection({n})
|
|
63
|
+
or k in null_default_fields
|
|
64
|
+
) # pylint: disable=no-member
|
|
65
|
+
|
|
66
|
+
if val is not None and val != UNSET_SENTINEL:
|
|
67
|
+
m[k] = val
|
|
68
|
+
elif val != UNSET_SENTINEL and (
|
|
69
|
+
not k in optional_fields or (optional_nullable and is_set)
|
|
70
|
+
):
|
|
71
|
+
m[k] = val
|
|
72
|
+
|
|
73
|
+
return m
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from compass_api_sdk.types import BaseModel
|
|
5
|
+
from typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class AaveSupportedTokenMetadataTypedDict(TypedDict):
|
|
9
|
+
symbol: str
|
|
10
|
+
r"""Token symbol (e.g., 'WETH', 'DAI')."""
|
|
11
|
+
address: str
|
|
12
|
+
r"""Token contract address."""
|
|
13
|
+
supplying_enabled: bool
|
|
14
|
+
r"""Whether the token can be used as collateral."""
|
|
15
|
+
borrowing_enabled: bool
|
|
16
|
+
r"""Whether the token can be borrowed."""
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class AaveSupportedTokenMetadata(BaseModel):
|
|
20
|
+
symbol: str
|
|
21
|
+
r"""Token symbol (e.g., 'WETH', 'DAI')."""
|
|
22
|
+
|
|
23
|
+
address: str
|
|
24
|
+
r"""Token contract address."""
|
|
25
|
+
|
|
26
|
+
supplying_enabled: bool
|
|
27
|
+
r"""Whether the token can be used as collateral."""
|
|
28
|
+
|
|
29
|
+
borrowing_enabled: bool
|
|
30
|
+
r"""Whether the token can be borrowed."""
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .aavesupportedtokenmetadata import (
|
|
5
|
+
AaveSupportedTokenMetadata,
|
|
6
|
+
AaveSupportedTokenMetadataTypedDict,
|
|
7
|
+
)
|
|
8
|
+
from compass_api_sdk.types import BaseModel
|
|
9
|
+
from typing import List
|
|
10
|
+
from typing_extensions import TypedDict
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class AaveSupportedTokensResponseTypedDict(TypedDict):
|
|
14
|
+
tokens: List[AaveSupportedTokenMetadataTypedDict]
|
|
15
|
+
r"""List of supported tokens with configuration metadata for a given chain."""
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class AaveSupportedTokensResponse(BaseModel):
|
|
19
|
+
tokens: List[AaveSupportedTokenMetadata]
|
|
20
|
+
r"""List of supported tokens with configuration metadata for a given chain."""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: compass_api_sdk
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.49
|
|
4
4
|
Summary: Compass API SDK.
|
|
5
5
|
Author: royalnine
|
|
6
6
|
Requires-Python: >=3.9.2
|
|
@@ -128,7 +128,7 @@ with CompassAPI(
|
|
|
128
128
|
api_key_auth="<YOUR_API_KEY_HERE>",
|
|
129
129
|
) as compass_api:
|
|
130
130
|
|
|
131
|
-
res = compass_api.aave_v3.
|
|
131
|
+
res = compass_api.aave_v3.aave_supported_tokens(chain=models.AaveAaveSupportedTokensChain.ARBITRUM_MAINNET)
|
|
132
132
|
|
|
133
133
|
# Handle response
|
|
134
134
|
print(res)
|
|
@@ -148,7 +148,7 @@ async def main():
|
|
|
148
148
|
api_key_auth="<YOUR_API_KEY_HERE>",
|
|
149
149
|
) as compass_api:
|
|
150
150
|
|
|
151
|
-
res = await compass_api.aave_v3.
|
|
151
|
+
res = await compass_api.aave_v3.aave_supported_tokens_async(chain=models.AaveAaveSupportedTokensChain.ARBITRUM_MAINNET)
|
|
152
152
|
|
|
153
153
|
# Handle response
|
|
154
154
|
print(res)
|
|
@@ -177,7 +177,7 @@ with CompassAPI(
|
|
|
177
177
|
api_key_auth="<YOUR_API_KEY_HERE>",
|
|
178
178
|
) as compass_api:
|
|
179
179
|
|
|
180
|
-
res = compass_api.aave_v3.
|
|
180
|
+
res = compass_api.aave_v3.aave_supported_tokens(chain=models.AaveAaveSupportedTokensChain.ARBITRUM_MAINNET)
|
|
181
181
|
|
|
182
182
|
# Handle response
|
|
183
183
|
print(res)
|
|
@@ -193,6 +193,7 @@ with CompassAPI(
|
|
|
193
193
|
|
|
194
194
|
### [aave_v3](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aavev3/README.md)
|
|
195
195
|
|
|
196
|
+
* [aave_supported_tokens](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aavev3/README.md#aave_supported_tokens) - Aave Supported Tokens
|
|
196
197
|
* [rate](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aavev3/README.md#rate) - Interest Rates
|
|
197
198
|
* [avg_rate](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aavev3/README.md#avg_rate) - Interest Rates: Time Average
|
|
198
199
|
* [std_rate](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aavev3/README.md#std_rate) - Interest Rates: Standard Deviation
|
|
@@ -324,7 +325,7 @@ with CompassAPI(
|
|
|
324
325
|
api_key_auth="<YOUR_API_KEY_HERE>",
|
|
325
326
|
) as compass_api:
|
|
326
327
|
|
|
327
|
-
res = compass_api.aave_v3.
|
|
328
|
+
res = compass_api.aave_v3.aave_supported_tokens(chain=models.AaveAaveSupportedTokensChain.ARBITRUM_MAINNET,
|
|
328
329
|
RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False))
|
|
329
330
|
|
|
330
331
|
# Handle response
|
|
@@ -343,7 +344,7 @@ with CompassAPI(
|
|
|
343
344
|
api_key_auth="<YOUR_API_KEY_HERE>",
|
|
344
345
|
) as compass_api:
|
|
345
346
|
|
|
346
|
-
res = compass_api.aave_v3.
|
|
347
|
+
res = compass_api.aave_v3.aave_supported_tokens(chain=models.AaveAaveSupportedTokensChain.ARBITRUM_MAINNET)
|
|
347
348
|
|
|
348
349
|
# Handle response
|
|
349
350
|
print(res)
|
|
@@ -376,7 +377,7 @@ with CompassAPI(
|
|
|
376
377
|
res = None
|
|
377
378
|
try:
|
|
378
379
|
|
|
379
|
-
res = compass_api.aave_v3.
|
|
380
|
+
res = compass_api.aave_v3.aave_supported_tokens(chain=models.AaveAaveSupportedTokensChain.ARBITRUM_MAINNET)
|
|
380
381
|
|
|
381
382
|
# Handle response
|
|
382
383
|
print(res)
|
|
@@ -431,7 +432,7 @@ with CompassAPI(
|
|
|
431
432
|
api_key_auth="<YOUR_API_KEY_HERE>",
|
|
432
433
|
) as compass_api:
|
|
433
434
|
|
|
434
|
-
res = compass_api.aave_v3.
|
|
435
|
+
res = compass_api.aave_v3.aave_supported_tokens(chain=models.AaveAaveSupportedTokensChain.ARBITRUM_MAINNET)
|
|
435
436
|
|
|
436
437
|
# Handle response
|
|
437
438
|
print(res)
|
|
@@ -2,8 +2,8 @@ compass_api_sdk/__init__.py,sha256=w2u919V3Tzv4zEPQ-OYJ79gQ_4_SyW7GOFFoHtqXDFA,4
|
|
|
2
2
|
compass_api_sdk/_hooks/__init__.py,sha256=p5J13DeYuISQyQWirjJAObHIf2VtIlOtFqnIpvjjVwk,118
|
|
3
3
|
compass_api_sdk/_hooks/sdkhooks.py,sha256=eVxHB2Q_JG6zZx5xn74i208ij-fpTHqq2jod6fbghRQ,2503
|
|
4
4
|
compass_api_sdk/_hooks/types.py,sha256=4qXm6dEntJOC2QeOdTklcc53oFzTU3HBb1xGdZ-kBXY,3059
|
|
5
|
-
compass_api_sdk/_version.py,sha256=
|
|
6
|
-
compass_api_sdk/aave_v3.py,sha256=
|
|
5
|
+
compass_api_sdk/_version.py,sha256=Q6bydgR8jzX2Hvrq3G7LBZrZ1kR5Z-aZDrp57pAGWqQ,474
|
|
6
|
+
compass_api_sdk/aave_v3.py,sha256=NANmObFnLrTvn_3E5WX-Cvhmjd5vcegQ1YHSekHkqRc,126132
|
|
7
7
|
compass_api_sdk/aerodrome_slipstream.py,sha256=Ym1DuavVYneGxdCUp2aGsSnsd6_z4aQ53vohR4RQLoU,80439
|
|
8
8
|
compass_api_sdk/basesdk.py,sha256=PQNcMD7BiLruZwOuU2TeWIE_zQ0iO--XYUFmIDr5zX0,11844
|
|
9
9
|
compass_api_sdk/erc_4626_vaults.py,sha256=X3CTaLLs5MR6miC_2qzbXpYoAU8m0PT54R_uryOGOps,27171
|
|
@@ -14,7 +14,8 @@ compass_api_sdk/errors/httpvalidationerror.py,sha256=ebdzfILwY0BltW3MqxCpHipluRS
|
|
|
14
14
|
compass_api_sdk/errors/no_response_error.py,sha256=FQG44Lq6uF7uUlzbUYfM3dJon6sbqXzJ0Ri6YrDdsEs,380
|
|
15
15
|
compass_api_sdk/errors/responsevalidationerror.py,sha256=baMAkfmUhcPt_cxzyOCBCGBOzlXAeTHwcn5AUCsAgOw,702
|
|
16
16
|
compass_api_sdk/httpclient.py,sha256=Eu73urOAiZQtdUIyOUnPccxCiBbWEKrXG-JrRG3SLM4,3946
|
|
17
|
-
compass_api_sdk/models/__init__.py,sha256=
|
|
17
|
+
compass_api_sdk/models/__init__.py,sha256=oxxAuHkSaRJOAvrEt5PRDMsbgghzRH83vfvimlZGCWM,123069
|
|
18
|
+
compass_api_sdk/models/aave_aave_supported_tokensop.py,sha256=GqBKHVPuLE7bza_qK8OgMVGMYLkKVRe_z393c2EjO50,2216
|
|
18
19
|
compass_api_sdk/models/aave_avg_rateop.py,sha256=rBneLLelvbRzLENqEWaRgZd1EAm3f3Uq9IEsXRoOroI,3739
|
|
19
20
|
compass_api_sdk/models/aave_historical_transactionsop.py,sha256=oWOjaRhNyjddZPqr5RfhNYf6V4Ye4gOQ0BDIXoqZGSs,1785
|
|
20
21
|
compass_api_sdk/models/aave_liquidity_changeop.py,sha256=14bkUs750CC6yS65bWSveDMbP5PwfMzpdV-nxPUcqAY,2806
|
|
@@ -37,6 +38,8 @@ compass_api_sdk/models/aavereserveoverviewresponse.py,sha256=PaGkkZK3alCnkd4ss2-
|
|
|
37
38
|
compass_api_sdk/models/aavestdrateresponse.py,sha256=Kwr3hZtXe5ZrK9vwqekGkm27KWobBJjUohJOOYGkz2s,1498
|
|
38
39
|
compass_api_sdk/models/aavesupplyparams.py,sha256=n_Pe_cBzuznzfxcTyptdsHnfii5u-sNq2ToOMG2lj0U,3003
|
|
39
40
|
compass_api_sdk/models/aavesupplyrequest.py,sha256=fsC923lXGu-DPVuzaSFy54LXTbneARnQPeq9xFi7730,3262
|
|
41
|
+
compass_api_sdk/models/aavesupportedtokenmetadata.py,sha256=BIBux_9yrwXeZRcAQ5-xG8wi1HG4AL57zvCtmQW6CUw,844
|
|
42
|
+
compass_api_sdk/models/aavesupportedtokensresponse.py,sha256=0jg6UoWUl6BEEs4g8rXk9Yl7b02Od2n6PylUjSoGaFI,703
|
|
40
43
|
compass_api_sdk/models/aavetokenpriceresponse.py,sha256=LZTNIuSn_PHY5Im9e6ZF9CWnFM6O01kHBwHjTiQypqI,401
|
|
41
44
|
compass_api_sdk/models/aaveuserpositionpertokenresponse.py,sha256=XfFYVzO3Ep9wHD96kddmtwF2_DivpYsMgVVg9Fub5ew,2839
|
|
42
45
|
compass_api_sdk/models/aaveuserpositionsummaryresponse.py,sha256=_m2f4XkNQnaftbJOwdCsacPByGNDlz83gg0oPjuUbKQ,1656
|
|
@@ -255,6 +258,6 @@ compass_api_sdk/utils/serializers.py,sha256=Hndks5M_rJXVub_N5lu0gKZQUoEmWrn6PN7R
|
|
|
255
258
|
compass_api_sdk/utils/unmarshal_json_response.py,sha256=GI4Cw4JB6H2qNkqbOuBiUcxtEOJhRm2bz3qfer9KmoE,591
|
|
256
259
|
compass_api_sdk/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
|
|
257
260
|
compass_api_sdk/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
|
|
258
|
-
compass_api_sdk-0.9.
|
|
259
|
-
compass_api_sdk-0.9.
|
|
260
|
-
compass_api_sdk-0.9.
|
|
261
|
+
compass_api_sdk-0.9.49.dist-info/METADATA,sha256=nRHZdA9dCWU0I5PxAm_mR93bp0Ugp1v04U9HoieIizg,28835
|
|
262
|
+
compass_api_sdk-0.9.49.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
263
|
+
compass_api_sdk-0.9.49.dist-info/RECORD,,
|
|
File without changes
|