compass_api_sdk 0.1.14__py3-none-any.whl → 0.2.0__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 +3 -3
- compass_api_sdk/aave_v3.py +214 -0
- compass_api_sdk/models/__init__.py +16 -0
- compass_api_sdk/models/aave_reserve_overviewop.py +97 -0
- compass_api_sdk/models/aavereserveoverviewresponse.py +25 -0
- {compass_api_sdk-0.1.14.dist-info → compass_api_sdk-0.2.0.dist-info}/METADATA +11 -11
- {compass_api_sdk-0.1.14.dist-info → compass_api_sdk-0.2.0.dist-info}/RECORD +8 -6
- {compass_api_sdk-0.1.14.dist-info → compass_api_sdk-0.2.0.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.
|
|
6
|
+
__version__: str = "0.2.0"
|
|
7
7
|
__openapi_doc_version__: str = "0.0.1"
|
|
8
|
-
__gen_version__: str = "2.
|
|
9
|
-
__user_agent__: str = "speakeasy-sdk/python 0.
|
|
8
|
+
__gen_version__: str = "2.599.0"
|
|
9
|
+
__user_agent__: str = "speakeasy-sdk/python 0.2.0 2.599.0 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
|
@@ -8,6 +8,220 @@ from typing import Any, Mapping, Optional, Union
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class AaveV3(BaseSDK):
|
|
11
|
+
def reserve_overview(
|
|
12
|
+
self,
|
|
13
|
+
*,
|
|
14
|
+
chain: models.AaveReserveOverviewChain = models.AaveReserveOverviewChain.ARBITRUM_MAINNET,
|
|
15
|
+
token: models.AaveReserveOverviewToken = models.AaveReserveOverviewToken.USDC,
|
|
16
|
+
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
17
|
+
server_url: Optional[str] = None,
|
|
18
|
+
timeout_ms: Optional[int] = None,
|
|
19
|
+
http_headers: Optional[Mapping[str, str]] = None,
|
|
20
|
+
) -> models.AaveReserveOverviewResponse:
|
|
21
|
+
r"""Reserve overview
|
|
22
|
+
|
|
23
|
+
Returns key metrics for Aave Reserves:
|
|
24
|
+
- Total Supplied (TVL) in USD
|
|
25
|
+
- Total Borrowed in USD
|
|
26
|
+
- Utilization Ratio
|
|
27
|
+
|
|
28
|
+
See below for more info:
|
|
29
|
+
|
|
30
|
+
:param chain: The chain to use.
|
|
31
|
+
:param token: A class representing the token. This class is used to represent the token in the system. Notice individual endpoints' documentation where per chain tokens are presented.
|
|
32
|
+
:param retries: Override the default retry configuration for this method
|
|
33
|
+
:param server_url: Override the default server URL for this method
|
|
34
|
+
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
35
|
+
:param http_headers: Additional headers to set or replace on requests.
|
|
36
|
+
"""
|
|
37
|
+
base_url = None
|
|
38
|
+
url_variables = None
|
|
39
|
+
if timeout_ms is None:
|
|
40
|
+
timeout_ms = self.sdk_configuration.timeout_ms
|
|
41
|
+
|
|
42
|
+
if server_url is not None:
|
|
43
|
+
base_url = server_url
|
|
44
|
+
else:
|
|
45
|
+
base_url = self._get_url(base_url, url_variables)
|
|
46
|
+
|
|
47
|
+
request = models.AaveReserveOverviewRequest(
|
|
48
|
+
chain=chain,
|
|
49
|
+
token=token,
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
req = self._build_request(
|
|
53
|
+
method="GET",
|
|
54
|
+
path="/v0/aave/reserve_overview/get",
|
|
55
|
+
base_url=base_url,
|
|
56
|
+
url_variables=url_variables,
|
|
57
|
+
request=request,
|
|
58
|
+
request_body_required=False,
|
|
59
|
+
request_has_path_params=False,
|
|
60
|
+
request_has_query_params=True,
|
|
61
|
+
user_agent_header="user-agent",
|
|
62
|
+
accept_header_value="application/json",
|
|
63
|
+
http_headers=http_headers,
|
|
64
|
+
security=self.sdk_configuration.security,
|
|
65
|
+
timeout_ms=timeout_ms,
|
|
66
|
+
)
|
|
67
|
+
|
|
68
|
+
if retries == UNSET:
|
|
69
|
+
if self.sdk_configuration.retry_config is not UNSET:
|
|
70
|
+
retries = self.sdk_configuration.retry_config
|
|
71
|
+
|
|
72
|
+
retry_config = None
|
|
73
|
+
if isinstance(retries, utils.RetryConfig):
|
|
74
|
+
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
|
75
|
+
|
|
76
|
+
http_res = self.do_request(
|
|
77
|
+
hook_ctx=HookContext(
|
|
78
|
+
base_url=base_url or "",
|
|
79
|
+
operation_id="aave_reserve_overview",
|
|
80
|
+
oauth2_scopes=[],
|
|
81
|
+
security_source=self.sdk_configuration.security,
|
|
82
|
+
),
|
|
83
|
+
request=req,
|
|
84
|
+
error_status_codes=["422", "4XX", "5XX"],
|
|
85
|
+
retry_config=retry_config,
|
|
86
|
+
)
|
|
87
|
+
|
|
88
|
+
response_data: Any = None
|
|
89
|
+
if utils.match_response(http_res, "200", "application/json"):
|
|
90
|
+
return utils.unmarshal_json(
|
|
91
|
+
http_res.text, models.AaveReserveOverviewResponse
|
|
92
|
+
)
|
|
93
|
+
if utils.match_response(http_res, "422", "application/json"):
|
|
94
|
+
response_data = utils.unmarshal_json(
|
|
95
|
+
http_res.text, errors.HTTPValidationErrorData
|
|
96
|
+
)
|
|
97
|
+
raise errors.HTTPValidationError(data=response_data)
|
|
98
|
+
if utils.match_response(http_res, "4XX", "*"):
|
|
99
|
+
http_res_text = utils.stream_to_text(http_res)
|
|
100
|
+
raise errors.APIError(
|
|
101
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
|
102
|
+
)
|
|
103
|
+
if utils.match_response(http_res, "5XX", "*"):
|
|
104
|
+
http_res_text = utils.stream_to_text(http_res)
|
|
105
|
+
raise errors.APIError(
|
|
106
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
|
107
|
+
)
|
|
108
|
+
|
|
109
|
+
content_type = http_res.headers.get("Content-Type")
|
|
110
|
+
http_res_text = utils.stream_to_text(http_res)
|
|
111
|
+
raise errors.APIError(
|
|
112
|
+
f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
|
|
113
|
+
http_res.status_code,
|
|
114
|
+
http_res_text,
|
|
115
|
+
http_res,
|
|
116
|
+
)
|
|
117
|
+
|
|
118
|
+
async def reserve_overview_async(
|
|
119
|
+
self,
|
|
120
|
+
*,
|
|
121
|
+
chain: models.AaveReserveOverviewChain = models.AaveReserveOverviewChain.ARBITRUM_MAINNET,
|
|
122
|
+
token: models.AaveReserveOverviewToken = models.AaveReserveOverviewToken.USDC,
|
|
123
|
+
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
124
|
+
server_url: Optional[str] = None,
|
|
125
|
+
timeout_ms: Optional[int] = None,
|
|
126
|
+
http_headers: Optional[Mapping[str, str]] = None,
|
|
127
|
+
) -> models.AaveReserveOverviewResponse:
|
|
128
|
+
r"""Reserve overview
|
|
129
|
+
|
|
130
|
+
Returns key metrics for Aave Reserves:
|
|
131
|
+
- Total Supplied (TVL) in USD
|
|
132
|
+
- Total Borrowed in USD
|
|
133
|
+
- Utilization Ratio
|
|
134
|
+
|
|
135
|
+
See below for more info:
|
|
136
|
+
|
|
137
|
+
:param chain: The chain to use.
|
|
138
|
+
:param token: A class representing the token. This class is used to represent the token in the system. Notice individual endpoints' documentation where per chain tokens are presented.
|
|
139
|
+
:param retries: Override the default retry configuration for this method
|
|
140
|
+
:param server_url: Override the default server URL for this method
|
|
141
|
+
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
142
|
+
:param http_headers: Additional headers to set or replace on requests.
|
|
143
|
+
"""
|
|
144
|
+
base_url = None
|
|
145
|
+
url_variables = None
|
|
146
|
+
if timeout_ms is None:
|
|
147
|
+
timeout_ms = self.sdk_configuration.timeout_ms
|
|
148
|
+
|
|
149
|
+
if server_url is not None:
|
|
150
|
+
base_url = server_url
|
|
151
|
+
else:
|
|
152
|
+
base_url = self._get_url(base_url, url_variables)
|
|
153
|
+
|
|
154
|
+
request = models.AaveReserveOverviewRequest(
|
|
155
|
+
chain=chain,
|
|
156
|
+
token=token,
|
|
157
|
+
)
|
|
158
|
+
|
|
159
|
+
req = self._build_request_async(
|
|
160
|
+
method="GET",
|
|
161
|
+
path="/v0/aave/reserve_overview/get",
|
|
162
|
+
base_url=base_url,
|
|
163
|
+
url_variables=url_variables,
|
|
164
|
+
request=request,
|
|
165
|
+
request_body_required=False,
|
|
166
|
+
request_has_path_params=False,
|
|
167
|
+
request_has_query_params=True,
|
|
168
|
+
user_agent_header="user-agent",
|
|
169
|
+
accept_header_value="application/json",
|
|
170
|
+
http_headers=http_headers,
|
|
171
|
+
security=self.sdk_configuration.security,
|
|
172
|
+
timeout_ms=timeout_ms,
|
|
173
|
+
)
|
|
174
|
+
|
|
175
|
+
if retries == UNSET:
|
|
176
|
+
if self.sdk_configuration.retry_config is not UNSET:
|
|
177
|
+
retries = self.sdk_configuration.retry_config
|
|
178
|
+
|
|
179
|
+
retry_config = None
|
|
180
|
+
if isinstance(retries, utils.RetryConfig):
|
|
181
|
+
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
|
182
|
+
|
|
183
|
+
http_res = await self.do_request_async(
|
|
184
|
+
hook_ctx=HookContext(
|
|
185
|
+
base_url=base_url or "",
|
|
186
|
+
operation_id="aave_reserve_overview",
|
|
187
|
+
oauth2_scopes=[],
|
|
188
|
+
security_source=self.sdk_configuration.security,
|
|
189
|
+
),
|
|
190
|
+
request=req,
|
|
191
|
+
error_status_codes=["422", "4XX", "5XX"],
|
|
192
|
+
retry_config=retry_config,
|
|
193
|
+
)
|
|
194
|
+
|
|
195
|
+
response_data: Any = None
|
|
196
|
+
if utils.match_response(http_res, "200", "application/json"):
|
|
197
|
+
return utils.unmarshal_json(
|
|
198
|
+
http_res.text, models.AaveReserveOverviewResponse
|
|
199
|
+
)
|
|
200
|
+
if utils.match_response(http_res, "422", "application/json"):
|
|
201
|
+
response_data = utils.unmarshal_json(
|
|
202
|
+
http_res.text, errors.HTTPValidationErrorData
|
|
203
|
+
)
|
|
204
|
+
raise errors.HTTPValidationError(data=response_data)
|
|
205
|
+
if utils.match_response(http_res, "4XX", "*"):
|
|
206
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
|
207
|
+
raise errors.APIError(
|
|
208
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
|
209
|
+
)
|
|
210
|
+
if utils.match_response(http_res, "5XX", "*"):
|
|
211
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
|
212
|
+
raise errors.APIError(
|
|
213
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
|
214
|
+
)
|
|
215
|
+
|
|
216
|
+
content_type = http_res.headers.get("Content-Type")
|
|
217
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
|
218
|
+
raise errors.APIError(
|
|
219
|
+
f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
|
|
220
|
+
http_res.status_code,
|
|
221
|
+
http_res_text,
|
|
222
|
+
http_res,
|
|
223
|
+
)
|
|
224
|
+
|
|
11
225
|
def rate(
|
|
12
226
|
self,
|
|
13
227
|
*,
|
|
@@ -17,6 +17,12 @@ from .aave_rateop import (
|
|
|
17
17
|
AaveRateRequestTypedDict,
|
|
18
18
|
AaveRateToken,
|
|
19
19
|
)
|
|
20
|
+
from .aave_reserve_overviewop import (
|
|
21
|
+
AaveReserveOverviewChain,
|
|
22
|
+
AaveReserveOverviewRequest,
|
|
23
|
+
AaveReserveOverviewRequestTypedDict,
|
|
24
|
+
AaveReserveOverviewToken,
|
|
25
|
+
)
|
|
20
26
|
from .aave_token_priceop import (
|
|
21
27
|
AaveTokenPriceChain,
|
|
22
28
|
AaveTokenPriceRequest,
|
|
@@ -71,6 +77,10 @@ from .aaverepayrequest import (
|
|
|
71
77
|
AaveRepayRequestAmountTypedDict,
|
|
72
78
|
AaveRepayRequestTypedDict,
|
|
73
79
|
)
|
|
80
|
+
from .aavereserveoverviewresponse import (
|
|
81
|
+
AaveReserveOverviewResponse,
|
|
82
|
+
AaveReserveOverviewResponseTypedDict,
|
|
83
|
+
)
|
|
74
84
|
from .aavesupplyparams import (
|
|
75
85
|
AaveSupplyParams,
|
|
76
86
|
AaveSupplyParamsAmount,
|
|
@@ -685,6 +695,12 @@ __all__ = [
|
|
|
685
695
|
"AaveRepayRequestAmount",
|
|
686
696
|
"AaveRepayRequestAmountTypedDict",
|
|
687
697
|
"AaveRepayRequestTypedDict",
|
|
698
|
+
"AaveReserveOverviewChain",
|
|
699
|
+
"AaveReserveOverviewRequest",
|
|
700
|
+
"AaveReserveOverviewRequestTypedDict",
|
|
701
|
+
"AaveReserveOverviewResponse",
|
|
702
|
+
"AaveReserveOverviewResponseTypedDict",
|
|
703
|
+
"AaveReserveOverviewToken",
|
|
688
704
|
"AaveSupplyParams",
|
|
689
705
|
"AaveSupplyParamsAmount",
|
|
690
706
|
"AaveSupplyParamsAmountTypedDict",
|
|
@@ -0,0 +1,97 @@
|
|
|
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 compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
|
|
6
|
+
from enum import Enum
|
|
7
|
+
from typing_extensions import Annotated, TypedDict
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class AaveReserveOverviewChain(str, Enum):
|
|
11
|
+
r"""The chain to use."""
|
|
12
|
+
|
|
13
|
+
BASE_MAINNET = "base:mainnet"
|
|
14
|
+
ETHEREUM_MAINNET = "ethereum:mainnet"
|
|
15
|
+
ARBITRUM_MAINNET = "arbitrum:mainnet"
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class AaveReserveOverviewToken(str, Enum):
|
|
19
|
+
r"""A class representing the token.
|
|
20
|
+
|
|
21
|
+
This class is used to represent the token in the system. Notice individual
|
|
22
|
+
endpoints' documentation where per chain tokens are presented.
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
ONE_INCH = "1INCH"
|
|
26
|
+
AAVE = "AAVE"
|
|
27
|
+
BAL = "BAL"
|
|
28
|
+
CB_BTC = "cbBTC"
|
|
29
|
+
CB_ETH = "cbETH"
|
|
30
|
+
CRV = "CRV"
|
|
31
|
+
CRV_USD = "crvUSD"
|
|
32
|
+
DAI = "DAI"
|
|
33
|
+
ENS = "ENS"
|
|
34
|
+
ET_HX = "ETHx"
|
|
35
|
+
FRAX = "FRAX"
|
|
36
|
+
FXS = "FXS"
|
|
37
|
+
GHO = "GHO"
|
|
38
|
+
KNC = "KNC"
|
|
39
|
+
LDO = "LDO"
|
|
40
|
+
LINK = "LINK"
|
|
41
|
+
LUSD = "LUSD"
|
|
42
|
+
MKR = "MKR"
|
|
43
|
+
OS_ETH = "osETH"
|
|
44
|
+
PYUSD = "PYUSD"
|
|
45
|
+
R_ETH = "rETH"
|
|
46
|
+
RPL = "RPL"
|
|
47
|
+
RS_ETH = "rsETH"
|
|
48
|
+
S_DAI = "sDAI"
|
|
49
|
+
SNX = "SNX"
|
|
50
|
+
STG = "STG"
|
|
51
|
+
S_US_DE = "sUSDe"
|
|
52
|
+
T_BTC = "tBTC"
|
|
53
|
+
UNI = "UNI"
|
|
54
|
+
USDC = "USDC"
|
|
55
|
+
US_DE = "USDe"
|
|
56
|
+
USDS = "USDS"
|
|
57
|
+
USDT = "USDT"
|
|
58
|
+
WBTC = "WBTC"
|
|
59
|
+
WE_ETH = "weETH"
|
|
60
|
+
WETH = "WETH"
|
|
61
|
+
WST_ETH = "wstETH"
|
|
62
|
+
ARB = "ARB"
|
|
63
|
+
EURS = "EURS"
|
|
64
|
+
MAI = "MAI"
|
|
65
|
+
USD_CE = "USDCe"
|
|
66
|
+
AERO = "AERO"
|
|
67
|
+
EUR = "EUR"
|
|
68
|
+
VIRTUAL = "VIRTUAL"
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
class AaveReserveOverviewRequestTypedDict(TypedDict):
|
|
72
|
+
chain: AaveReserveOverviewChain
|
|
73
|
+
r"""The chain to use."""
|
|
74
|
+
token: AaveReserveOverviewToken
|
|
75
|
+
r"""A class representing the token.
|
|
76
|
+
|
|
77
|
+
This class is used to represent the token in the system. Notice individual
|
|
78
|
+
endpoints' documentation where per chain tokens are presented.
|
|
79
|
+
"""
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
class AaveReserveOverviewRequest(BaseModel):
|
|
83
|
+
chain: Annotated[
|
|
84
|
+
AaveReserveOverviewChain,
|
|
85
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
86
|
+
] = AaveReserveOverviewChain.ARBITRUM_MAINNET
|
|
87
|
+
r"""The chain to use."""
|
|
88
|
+
|
|
89
|
+
token: Annotated[
|
|
90
|
+
AaveReserveOverviewToken,
|
|
91
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
92
|
+
] = AaveReserveOverviewToken.USDC
|
|
93
|
+
r"""A class representing the token.
|
|
94
|
+
|
|
95
|
+
This class is used to represent the token in the system. Notice individual
|
|
96
|
+
endpoints' documentation where per chain tokens are presented.
|
|
97
|
+
"""
|
|
@@ -0,0 +1,25 @@
|
|
|
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 AaveReserveOverviewResponseTypedDict(TypedDict):
|
|
9
|
+
tvl: float
|
|
10
|
+
r"""Total tokens supplied in an Aave Reserve in USD. E.G. How much WBTC has been supplied on Aave in USD."""
|
|
11
|
+
total_borrowed: float
|
|
12
|
+
r"""Total tokens borrowed in an Aave Reserve converted to USD. E.G. How much WBTC has been supplied on Aave (in USD)."""
|
|
13
|
+
utilization_ratio: float
|
|
14
|
+
r"""Total borrowed divided by total supplied in an Aave Reserve. E.G. How much WBTC has been borrowed on Aaave divided by the amount supplied"""
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class AaveReserveOverviewResponse(BaseModel):
|
|
18
|
+
tvl: float
|
|
19
|
+
r"""Total tokens supplied in an Aave Reserve in USD. E.G. How much WBTC has been supplied on Aave in USD."""
|
|
20
|
+
|
|
21
|
+
total_borrowed: float
|
|
22
|
+
r"""Total tokens borrowed in an Aave Reserve converted to USD. E.G. How much WBTC has been supplied on Aave (in USD)."""
|
|
23
|
+
|
|
24
|
+
utilization_ratio: float
|
|
25
|
+
r"""Total borrowed divided by total supplied in an Aave Reserve. E.G. How much WBTC has been borrowed on Aaave divided by the amount supplied"""
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: compass_api_sdk
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.2.0
|
|
4
4
|
Summary: Compass API Python SDK
|
|
5
5
|
Author: royalnine
|
|
6
|
-
Requires-Python: >=3.9
|
|
6
|
+
Requires-Python: >=3.9.2
|
|
7
7
|
Classifier: Programming Language :: Python :: 3
|
|
8
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
9
8
|
Classifier: Programming Language :: Python :: 3.10
|
|
10
9
|
Classifier: Programming Language :: Python :: 3.11
|
|
11
10
|
Classifier: Programming Language :: Python :: 3.12
|
|
@@ -135,7 +134,7 @@ with CompassAPISDK(
|
|
|
135
134
|
api_key_auth="<YOUR_API_KEY_HERE>",
|
|
136
135
|
) as cas_client:
|
|
137
136
|
|
|
138
|
-
res = cas_client.aave_v3.
|
|
137
|
+
res = cas_client.aave_v3.reserve_overview(chain=models.AaveReserveOverviewChain.ARBITRUM_MAINNET, token=models.AaveReserveOverviewToken.USDC)
|
|
139
138
|
|
|
140
139
|
# Handle response
|
|
141
140
|
print(res)
|
|
@@ -155,7 +154,7 @@ async def main():
|
|
|
155
154
|
api_key_auth="<YOUR_API_KEY_HERE>",
|
|
156
155
|
) as cas_client:
|
|
157
156
|
|
|
158
|
-
res = await cas_client.aave_v3.
|
|
157
|
+
res = await cas_client.aave_v3.reserve_overview_async(chain=models.AaveReserveOverviewChain.ARBITRUM_MAINNET, token=models.AaveReserveOverviewToken.USDC)
|
|
159
158
|
|
|
160
159
|
# Handle response
|
|
161
160
|
print(res)
|
|
@@ -184,7 +183,7 @@ with CompassAPISDK(
|
|
|
184
183
|
api_key_auth="<YOUR_API_KEY_HERE>",
|
|
185
184
|
) as cas_client:
|
|
186
185
|
|
|
187
|
-
res = cas_client.aave_v3.
|
|
186
|
+
res = cas_client.aave_v3.reserve_overview(chain=models.AaveReserveOverviewChain.ARBITRUM_MAINNET, token=models.AaveReserveOverviewToken.USDC)
|
|
188
187
|
|
|
189
188
|
# Handle response
|
|
190
189
|
print(res)
|
|
@@ -200,6 +199,7 @@ with CompassAPISDK(
|
|
|
200
199
|
|
|
201
200
|
### [aave_v3](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aavev3/README.md)
|
|
202
201
|
|
|
202
|
+
* [reserve_overview](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aavev3/README.md#reserve_overview) - Reserve overview
|
|
203
203
|
* [rate](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aavev3/README.md#rate) - Interest rates
|
|
204
204
|
* [token_price](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aavev3/README.md#token_price) - Token prices
|
|
205
205
|
* [liquidity_change](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aavev3/README.md#liquidity_change) - Liquidity index
|
|
@@ -298,7 +298,7 @@ with CompassAPISDK(
|
|
|
298
298
|
api_key_auth="<YOUR_API_KEY_HERE>",
|
|
299
299
|
) as cas_client:
|
|
300
300
|
|
|
301
|
-
res = cas_client.aave_v3.
|
|
301
|
+
res = cas_client.aave_v3.reserve_overview(chain=models.AaveReserveOverviewChain.ARBITRUM_MAINNET, token=models.AaveReserveOverviewToken.USDC,
|
|
302
302
|
RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False))
|
|
303
303
|
|
|
304
304
|
# Handle response
|
|
@@ -317,7 +317,7 @@ with CompassAPISDK(
|
|
|
317
317
|
api_key_auth="<YOUR_API_KEY_HERE>",
|
|
318
318
|
) as cas_client:
|
|
319
319
|
|
|
320
|
-
res = cas_client.aave_v3.
|
|
320
|
+
res = cas_client.aave_v3.reserve_overview(chain=models.AaveReserveOverviewChain.ARBITRUM_MAINNET, token=models.AaveReserveOverviewToken.USDC)
|
|
321
321
|
|
|
322
322
|
# Handle response
|
|
323
323
|
print(res)
|
|
@@ -339,7 +339,7 @@ By default, an API error will raise a errors.APIError exception, which has the f
|
|
|
339
339
|
| `.raw_response` | *httpx.Response* | The raw HTTP response |
|
|
340
340
|
| `.body` | *str* | The response content |
|
|
341
341
|
|
|
342
|
-
When custom error responses are specified for an operation, the SDK may also raise their associated exceptions. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `
|
|
342
|
+
When custom error responses are specified for an operation, the SDK may also raise their associated exceptions. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `reserve_overview_async` method may raise the following exceptions:
|
|
343
343
|
|
|
344
344
|
| Error Type | Status Code | Content Type |
|
|
345
345
|
| -------------------------- | ----------- | ---------------- |
|
|
@@ -358,7 +358,7 @@ with CompassAPISDK(
|
|
|
358
358
|
res = None
|
|
359
359
|
try:
|
|
360
360
|
|
|
361
|
-
res = cas_client.aave_v3.
|
|
361
|
+
res = cas_client.aave_v3.reserve_overview(chain=models.AaveReserveOverviewChain.ARBITRUM_MAINNET, token=models.AaveReserveOverviewToken.USDC)
|
|
362
362
|
|
|
363
363
|
# Handle response
|
|
364
364
|
print(res)
|
|
@@ -387,7 +387,7 @@ with CompassAPISDK(
|
|
|
387
387
|
api_key_auth="<YOUR_API_KEY_HERE>",
|
|
388
388
|
) as cas_client:
|
|
389
389
|
|
|
390
|
-
res = cas_client.aave_v3.
|
|
390
|
+
res = cas_client.aave_v3.reserve_overview(chain=models.AaveReserveOverviewChain.ARBITRUM_MAINNET, token=models.AaveReserveOverviewToken.USDC)
|
|
391
391
|
|
|
392
392
|
# Handle response
|
|
393
393
|
print(res)
|
|
@@ -3,18 +3,19 @@ compass_api_sdk/_hooks/__init__.py,sha256=p5J13DeYuISQyQWirjJAObHIf2VtIlOtFqnIpv
|
|
|
3
3
|
compass_api_sdk/_hooks/registration.py,sha256=1QZB41w6If7I9dXiOSQx6dhSc6BPWrnI5Q5bMOr4iVA,624
|
|
4
4
|
compass_api_sdk/_hooks/sdkhooks.py,sha256=eVxHB2Q_JG6zZx5xn74i208ij-fpTHqq2jod6fbghRQ,2503
|
|
5
5
|
compass_api_sdk/_hooks/types.py,sha256=VC7TZz0BiM721MghXneEovG3UkaktRkt1OhMY3iLmZM,2818
|
|
6
|
-
compass_api_sdk/_version.py,sha256=
|
|
7
|
-
compass_api_sdk/aave_v3.py,sha256=
|
|
6
|
+
compass_api_sdk/_version.py,sha256=RSaF-sLYssj-T2rkuB7Ui-Pa-OFrtfBK8mOrcc66xCk,472
|
|
7
|
+
compass_api_sdk/aave_v3.py,sha256=JoHxEHy1c9ofvvCzTxp6S7qNz51_eW9clpVfMQI1xSo,107332
|
|
8
8
|
compass_api_sdk/aerodrome_slipstream.py,sha256=iZLOFguQiZD8eMNIxV_4h8JSr9P-V4gISxNCXisVYN8,83389
|
|
9
9
|
compass_api_sdk/basesdk.py,sha256=29RfgnfgQq_cRx8OHdQEdJuJ2DrgRZlzGIPC-_6-2bM,12136
|
|
10
10
|
compass_api_sdk/errors/__init__.py,sha256=f8nyj2IhW5h_xtEeg6cfKgByLkqowLv0Fxm0hUofQPs,257
|
|
11
11
|
compass_api_sdk/errors/apierror.py,sha256=9mTyJSyvUAOnSfW_1HWt9dGl8IDlpQ68DebwYsDNdug,528
|
|
12
12
|
compass_api_sdk/errors/httpvalidationerror.py,sha256=KBdpK3fYQoeMB-3m9dLKiMYimFN7B9VLma6YqMKX5k0,671
|
|
13
13
|
compass_api_sdk/httpclient.py,sha256=xAUX3nxG-fwYAE9lfv9uaspYKMFRJf5NM79mV2HKb1I,5486
|
|
14
|
-
compass_api_sdk/models/__init__.py,sha256=
|
|
14
|
+
compass_api_sdk/models/__init__.py,sha256=yPhnHmybEDkljowXnzLkYSuXq1bk3dJiU5v9l3lEEGY,45060
|
|
15
15
|
compass_api_sdk/models/aave_historical_transactionsop.py,sha256=ruwlHogJUn6HGWtoRNwEmoA6kXdu8rbDrxzJo-e9UmA,1461
|
|
16
16
|
compass_api_sdk/models/aave_liquidity_changeop.py,sha256=tR_nsySpTiXHxIreoDJ-Bk07wZgTLGLM05oWxsfpbrM,2801
|
|
17
17
|
compass_api_sdk/models/aave_rateop.py,sha256=kJgtnlxry6YRxLZvCNV4kKhHOT2Y5duKt-ADyh2NrNg,2405
|
|
18
|
+
compass_api_sdk/models/aave_reserve_overviewop.py,sha256=9Lfch89ugS8mXZKTQ-YBJqVxRkCHx_UFNlKgTHwTDvo,2515
|
|
18
19
|
compass_api_sdk/models/aave_token_priceop.py,sha256=RsaN0gHPtm8o5fdE_1T_ZZjvXADapfZR8YLjEGE_1VA,2465
|
|
19
20
|
compass_api_sdk/models/aave_user_position_per_tokenop.py,sha256=MF_eaxTQkK4sC7ONiVHOcb0PJJBnrAh1j1_XredC3aU,2735
|
|
20
21
|
compass_api_sdk/models/aave_user_position_summaryop.py,sha256=IreTBDQ92L3CVsTQD_Bc50yt6m5ZM2yuUEYMFhrFkJQ,1060
|
|
@@ -26,6 +27,7 @@ compass_api_sdk/models/aaveliquiditychangeresponse.py,sha256=G_fjNFMMAViJVXUejTd
|
|
|
26
27
|
compass_api_sdk/models/aaverateresponse.py,sha256=7Ra_FKYbGrm7ZqzNi8-1T0v2xDAGyZf6Iw5Juh1bXBI,1156
|
|
27
28
|
compass_api_sdk/models/aaverepayparams.py,sha256=ZQLgjGCZUK20dZ7UgrT3j4c6jn2Sq41M15riWbYh-ss,2858
|
|
28
29
|
compass_api_sdk/models/aaverepayrequest.py,sha256=ZIvYL0pamDkJDJjCRrLZ5Q6e2vQp-wptob9wGCAQS0g,3117
|
|
30
|
+
compass_api_sdk/models/aavereserveoverviewresponse.py,sha256=PaGkkZK3alCnkd4ss2-LR4dKGzKX0P8Fkj_cz3U61ko,1213
|
|
29
31
|
compass_api_sdk/models/aavesupplyparams.py,sha256=0ZntRNtspIaXs09S1ckA8jL3xKbBL-SApMZNkuE76Ks,2564
|
|
30
32
|
compass_api_sdk/models/aavesupplyrequest.py,sha256=KyQ995EhhSTAkA7OWKftzyzaQ3cJviBg-RzlR8AnTCA,2823
|
|
31
33
|
compass_api_sdk/models/aavetokenpriceresponse.py,sha256=LZTNIuSn_PHY5Im9e6ZF9CWnFM6O01kHBwHjTiQypqI,401
|
|
@@ -177,6 +179,6 @@ compass_api_sdk/utils/security.py,sha256=ktep3HKwbFs-MLxUYTM8Jd4v-ZBum5_Z0u1PFId
|
|
|
177
179
|
compass_api_sdk/utils/serializers.py,sha256=hiHBXM1AY8_N2Z_rvFfNSYwvLBkSQlPGFp8poasdU4s,5986
|
|
178
180
|
compass_api_sdk/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
|
|
179
181
|
compass_api_sdk/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
|
|
180
|
-
compass_api_sdk-0.
|
|
181
|
-
compass_api_sdk-0.
|
|
182
|
-
compass_api_sdk-0.
|
|
182
|
+
compass_api_sdk-0.2.0.dist-info/METADATA,sha256=8reiOKriq33lVUKQtU5DAw5uDRf1tvI3Vsl8ILlfc14,24636
|
|
183
|
+
compass_api_sdk-0.2.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
184
|
+
compass_api_sdk-0.2.0.dist-info/RECORD,,
|
|
File without changes
|