compass_api_sdk 0.1.11__py3-none-any.whl → 0.1.13__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.

@@ -3,10 +3,10 @@
3
3
  import importlib.metadata
4
4
 
5
5
  __title__: str = "compass_api_sdk"
6
- __version__: str = "0.1.11"
6
+ __version__: str = "0.1.13"
7
7
  __openapi_doc_version__: str = "0.0.1"
8
- __gen_version__: str = "2.598.21"
9
- __user_agent__: str = "speakeasy-sdk/python 0.1.11 2.598.21 0.0.1 compass_api_sdk"
8
+ __gen_version__: str = "2.598.22"
9
+ __user_agent__: str = "speakeasy-sdk/python 0.1.13 2.598.22 0.0.1 compass_api_sdk"
10
10
 
11
11
  try:
12
12
  if __package__ is not None:
@@ -8,6 +8,232 @@ from typing import Any, Mapping, Optional, Union
8
8
 
9
9
 
10
10
  class AaveV3(BaseSDK):
11
+ def rate(
12
+ self,
13
+ *,
14
+ chain: models.AaveRateChain = models.AaveRateChain.ARBITRUM_MAINNET,
15
+ token: models.AaveRateToken = models.AaveRateToken.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.AaveRateResponse:
21
+ r"""Interest rates
22
+
23
+ Returns the latest APY and APR rates for a specified token on Aave, for both
24
+ deposits and loans.
25
+
26
+ **Annual percentage yield (APY)** is the yearly return/cost after continuous
27
+ compounding of the per-second rate stored on-chain. This value is the same value as
28
+ seen the on [app.aave.com](
29
+ https://app.aave.com/)
30
+ but more up-to-date as it is taken directly from the
31
+ blockchain every time this endpoint is called.
32
+
33
+ **Annual percentage rate (APR)** is the yearly simple interest rate (no
34
+ compounding).
35
+
36
+ For APY/APR on loans Aave offers both stable and fixed rates on certain tokens.
37
+
38
+ :param chain: The chain to use.
39
+ :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.
40
+ :param retries: Override the default retry configuration for this method
41
+ :param server_url: Override the default server URL for this method
42
+ :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
43
+ :param http_headers: Additional headers to set or replace on requests.
44
+ """
45
+ base_url = None
46
+ url_variables = None
47
+ if timeout_ms is None:
48
+ timeout_ms = self.sdk_configuration.timeout_ms
49
+
50
+ if server_url is not None:
51
+ base_url = server_url
52
+ else:
53
+ base_url = self._get_url(base_url, url_variables)
54
+
55
+ request = models.AaveRateRequest(
56
+ chain=chain,
57
+ token=token,
58
+ )
59
+
60
+ req = self._build_request(
61
+ method="GET",
62
+ path="/v0/aave/rate/get",
63
+ base_url=base_url,
64
+ url_variables=url_variables,
65
+ request=request,
66
+ request_body_required=False,
67
+ request_has_path_params=False,
68
+ request_has_query_params=True,
69
+ user_agent_header="user-agent",
70
+ accept_header_value="application/json",
71
+ http_headers=http_headers,
72
+ security=self.sdk_configuration.security,
73
+ timeout_ms=timeout_ms,
74
+ )
75
+
76
+ if retries == UNSET:
77
+ if self.sdk_configuration.retry_config is not UNSET:
78
+ retries = self.sdk_configuration.retry_config
79
+
80
+ retry_config = None
81
+ if isinstance(retries, utils.RetryConfig):
82
+ retry_config = (retries, ["429", "500", "502", "503", "504"])
83
+
84
+ http_res = self.do_request(
85
+ hook_ctx=HookContext(
86
+ base_url=base_url or "",
87
+ operation_id="aave_rate",
88
+ oauth2_scopes=[],
89
+ security_source=self.sdk_configuration.security,
90
+ ),
91
+ request=req,
92
+ error_status_codes=["422", "4XX", "5XX"],
93
+ retry_config=retry_config,
94
+ )
95
+
96
+ response_data: Any = None
97
+ if utils.match_response(http_res, "200", "application/json"):
98
+ return utils.unmarshal_json(http_res.text, models.AaveRateResponse)
99
+ if utils.match_response(http_res, "422", "application/json"):
100
+ response_data = utils.unmarshal_json(
101
+ http_res.text, errors.HTTPValidationErrorData
102
+ )
103
+ raise errors.HTTPValidationError(data=response_data)
104
+ if utils.match_response(http_res, "4XX", "*"):
105
+ http_res_text = utils.stream_to_text(http_res)
106
+ raise errors.APIError(
107
+ "API error occurred", http_res.status_code, http_res_text, http_res
108
+ )
109
+ if utils.match_response(http_res, "5XX", "*"):
110
+ http_res_text = utils.stream_to_text(http_res)
111
+ raise errors.APIError(
112
+ "API error occurred", http_res.status_code, http_res_text, http_res
113
+ )
114
+
115
+ content_type = http_res.headers.get("Content-Type")
116
+ http_res_text = utils.stream_to_text(http_res)
117
+ raise errors.APIError(
118
+ f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
119
+ http_res.status_code,
120
+ http_res_text,
121
+ http_res,
122
+ )
123
+
124
+ async def rate_async(
125
+ self,
126
+ *,
127
+ chain: models.AaveRateChain = models.AaveRateChain.ARBITRUM_MAINNET,
128
+ token: models.AaveRateToken = models.AaveRateToken.USDC,
129
+ retries: OptionalNullable[utils.RetryConfig] = UNSET,
130
+ server_url: Optional[str] = None,
131
+ timeout_ms: Optional[int] = None,
132
+ http_headers: Optional[Mapping[str, str]] = None,
133
+ ) -> models.AaveRateResponse:
134
+ r"""Interest rates
135
+
136
+ Returns the latest APY and APR rates for a specified token on Aave, for both
137
+ deposits and loans.
138
+
139
+ **Annual percentage yield (APY)** is the yearly return/cost after continuous
140
+ compounding of the per-second rate stored on-chain. This value is the same value as
141
+ seen the on [app.aave.com](
142
+ https://app.aave.com/)
143
+ but more up-to-date as it is taken directly from the
144
+ blockchain every time this endpoint is called.
145
+
146
+ **Annual percentage rate (APR)** is the yearly simple interest rate (no
147
+ compounding).
148
+
149
+ For APY/APR on loans Aave offers both stable and fixed rates on certain tokens.
150
+
151
+ :param chain: The chain to use.
152
+ :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.
153
+ :param retries: Override the default retry configuration for this method
154
+ :param server_url: Override the default server URL for this method
155
+ :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
156
+ :param http_headers: Additional headers to set or replace on requests.
157
+ """
158
+ base_url = None
159
+ url_variables = None
160
+ if timeout_ms is None:
161
+ timeout_ms = self.sdk_configuration.timeout_ms
162
+
163
+ if server_url is not None:
164
+ base_url = server_url
165
+ else:
166
+ base_url = self._get_url(base_url, url_variables)
167
+
168
+ request = models.AaveRateRequest(
169
+ chain=chain,
170
+ token=token,
171
+ )
172
+
173
+ req = self._build_request_async(
174
+ method="GET",
175
+ path="/v0/aave/rate/get",
176
+ base_url=base_url,
177
+ url_variables=url_variables,
178
+ request=request,
179
+ request_body_required=False,
180
+ request_has_path_params=False,
181
+ request_has_query_params=True,
182
+ user_agent_header="user-agent",
183
+ accept_header_value="application/json",
184
+ http_headers=http_headers,
185
+ security=self.sdk_configuration.security,
186
+ timeout_ms=timeout_ms,
187
+ )
188
+
189
+ if retries == UNSET:
190
+ if self.sdk_configuration.retry_config is not UNSET:
191
+ retries = self.sdk_configuration.retry_config
192
+
193
+ retry_config = None
194
+ if isinstance(retries, utils.RetryConfig):
195
+ retry_config = (retries, ["429", "500", "502", "503", "504"])
196
+
197
+ http_res = await self.do_request_async(
198
+ hook_ctx=HookContext(
199
+ base_url=base_url or "",
200
+ operation_id="aave_rate",
201
+ oauth2_scopes=[],
202
+ security_source=self.sdk_configuration.security,
203
+ ),
204
+ request=req,
205
+ error_status_codes=["422", "4XX", "5XX"],
206
+ retry_config=retry_config,
207
+ )
208
+
209
+ response_data: Any = None
210
+ if utils.match_response(http_res, "200", "application/json"):
211
+ return utils.unmarshal_json(http_res.text, models.AaveRateResponse)
212
+ if utils.match_response(http_res, "422", "application/json"):
213
+ response_data = utils.unmarshal_json(
214
+ http_res.text, errors.HTTPValidationErrorData
215
+ )
216
+ raise errors.HTTPValidationError(data=response_data)
217
+ if utils.match_response(http_res, "4XX", "*"):
218
+ http_res_text = await utils.stream_to_text_async(http_res)
219
+ raise errors.APIError(
220
+ "API error occurred", http_res.status_code, http_res_text, http_res
221
+ )
222
+ if utils.match_response(http_res, "5XX", "*"):
223
+ http_res_text = await utils.stream_to_text_async(http_res)
224
+ raise errors.APIError(
225
+ "API error occurred", http_res.status_code, http_res_text, http_res
226
+ )
227
+
228
+ content_type = http_res.headers.get("Content-Type")
229
+ http_res_text = await utils.stream_to_text_async(http_res)
230
+ raise errors.APIError(
231
+ f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
232
+ http_res.status_code,
233
+ http_res_text,
234
+ http_res,
235
+ )
236
+
11
237
  def token_price(
12
238
  self,
13
239
  *,
@@ -11,6 +11,12 @@ from .aave_liquidity_changeop import (
11
11
  AaveLiquidityChangeRequestTypedDict,
12
12
  AaveLiquidityChangeToken,
13
13
  )
14
+ from .aave_rateop import (
15
+ AaveRateChain,
16
+ AaveRateRequest,
17
+ AaveRateRequestTypedDict,
18
+ AaveRateToken,
19
+ )
14
20
  from .aave_token_priceop import (
15
21
  AaveTokenPriceChain,
16
22
  AaveTokenPriceRequest,
@@ -52,6 +58,7 @@ from .aaveliquiditychangeresponse import (
52
58
  AaveLiquidityChangeResponse,
53
59
  AaveLiquidityChangeResponseTypedDict,
54
60
  )
61
+ from .aaverateresponse import AaveRateResponse, AaveRateResponseTypedDict
55
62
  from .aaverepayparams import (
56
63
  AaveRepayParams,
57
64
  AaveRepayParamsAmount,
@@ -732,6 +739,12 @@ __all__ = [
732
739
  "AaveLiquidityChangeResponse",
733
740
  "AaveLiquidityChangeResponseTypedDict",
734
741
  "AaveLiquidityChangeToken",
742
+ "AaveRateChain",
743
+ "AaveRateRequest",
744
+ "AaveRateRequestTypedDict",
745
+ "AaveRateResponse",
746
+ "AaveRateResponseTypedDict",
747
+ "AaveRateToken",
735
748
  "AaveRepayParams",
736
749
  "AaveRepayParamsAmount",
737
750
  "AaveRepayParamsAmountTypedDict",
@@ -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 AaveRateChain(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 AaveRateToken(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 AaveRateRequestTypedDict(TypedDict):
72
+ chain: AaveRateChain
73
+ r"""The chain to use."""
74
+ token: AaveRateToken
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 AaveRateRequest(BaseModel):
83
+ chain: Annotated[
84
+ AaveRateChain,
85
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
86
+ ] = AaveRateChain.ARBITRUM_MAINNET
87
+ r"""The chain to use."""
88
+
89
+ token: Annotated[
90
+ AaveRateToken,
91
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
92
+ ] = AaveRateToken.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,40 @@
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 AaveRateResponseTypedDict(TypedDict):
9
+ supply_apy_variable_rate: str
10
+ r"""Variable rate APY for deposits."""
11
+ supply_apr_variable_rate: str
12
+ r"""Variable rate APR for deposits."""
13
+ borrow_apy_variable_rate: str
14
+ r"""Variable rate APY for loans."""
15
+ borrow_apr_variable_rate: str
16
+ r"""Variable rate APR for loans."""
17
+ borrow_apy_fixed_rate: str
18
+ r"""Fixed rate APY for loans."""
19
+ borrow_apr_fixed_rate: str
20
+ r"""Fixed rate APR for loans."""
21
+
22
+
23
+ class AaveRateResponse(BaseModel):
24
+ supply_apy_variable_rate: str
25
+ r"""Variable rate APY for deposits."""
26
+
27
+ supply_apr_variable_rate: str
28
+ r"""Variable rate APR for deposits."""
29
+
30
+ borrow_apy_variable_rate: str
31
+ r"""Variable rate APY for loans."""
32
+
33
+ borrow_apr_variable_rate: str
34
+ r"""Variable rate APR for loans."""
35
+
36
+ borrow_apy_fixed_rate: str
37
+ r"""Fixed rate APY for loans."""
38
+
39
+ borrow_apr_fixed_rate: str
40
+ r"""Fixed rate APR for loans."""
compass_api_sdk/sky.py CHANGED
@@ -215,9 +215,13 @@ class Sky(BaseSDK):
215
215
  ) -> models.UnsignedTransaction:
216
216
  r"""Buy USDS
217
217
 
218
- Buy USDS with DAI or USDC on a 1:1 basis.
218
+ Buy USDS with DAI or USDC on a 1:1 basis. There are no fees.
219
219
 
220
- There are no fees.
220
+ If buying with DAI, user will need to set an allowance on the DAI contract for the
221
+ 'SkyDaiUsdsConverter' contract beforehand.
222
+
223
+ If buying with USDC, user will need to set an allowance on the USDC contract for the
224
+ 'SkyDaiUsdsConverter' contract beforehand.
221
225
 
222
226
  :param token_in: The token you would like to swap 1:1 for USDS. Choose from DAI or USDC.
223
227
  :param amount: The amount of USDS you would like to buy 1:1 with 'token_in'.
@@ -323,9 +327,13 @@ class Sky(BaseSDK):
323
327
  ) -> models.UnsignedTransaction:
324
328
  r"""Buy USDS
325
329
 
326
- Buy USDS with DAI or USDC on a 1:1 basis.
330
+ Buy USDS with DAI or USDC on a 1:1 basis. There are no fees.
327
331
 
328
- There are no fees.
332
+ If buying with DAI, user will need to set an allowance on the DAI contract for the
333
+ 'SkyDaiUsdsConverter' contract beforehand.
334
+
335
+ If buying with USDC, user will need to set an allowance on the USDC contract for the
336
+ 'SkyDaiUsdsConverter' contract beforehand.
329
337
 
330
338
  :param token_in: The token you would like to swap 1:1 for USDS. Choose from DAI or USDC.
331
339
  :param amount: The amount of USDS you would like to buy 1:1 with 'token_in'.
@@ -433,9 +441,13 @@ class Sky(BaseSDK):
433
441
  ) -> models.UnsignedTransaction:
434
442
  r"""Sell USDS
435
443
 
436
- Sell USDS for DAI or USDC on a 1:1 basis.
444
+ Sell USDS for DAI or USDC on a 1:1 basis. There are no fees.
437
445
 
438
- There are no fees.
446
+ If swapping to DAI, user will need to set an allowance on the USDS contract for the
447
+ 'SkyDaiUsdsConverter' contract beforehand.
448
+
449
+ If swapping to USDC, user will need to set an allowance on the USDS contract for the
450
+ 'SkyUsdcUsdsConverter' contract beforehand.
439
451
 
440
452
  :param token_out: The token you would like to swap 1:1 with USDS. Choose from DAI or USDC.
441
453
  :param amount: The amount of USDS you would like to sell 1:1 for 'token_out'.
@@ -543,9 +555,13 @@ class Sky(BaseSDK):
543
555
  ) -> models.UnsignedTransaction:
544
556
  r"""Sell USDS
545
557
 
546
- Sell USDS for DAI or USDC on a 1:1 basis.
558
+ Sell USDS for DAI or USDC on a 1:1 basis. There are no fees.
547
559
 
548
- There are no fees.
560
+ If swapping to DAI, user will need to set an allowance on the USDS contract for the
561
+ 'SkyDaiUsdsConverter' contract beforehand.
562
+
563
+ If swapping to USDC, user will need to set an allowance on the USDS contract for the
564
+ 'SkyUsdcUsdsConverter' contract beforehand.
549
565
 
550
566
  :param token_out: The token you would like to swap 1:1 with USDS. Choose from DAI or USDC.
551
567
  :param amount: The amount of USDS you would like to sell 1:1 for 'token_out'.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: compass_api_sdk
3
- Version: 0.1.11
3
+ Version: 0.1.13
4
4
  Summary: Compass API Python SDK
5
5
  Author: royalnine
6
6
  Requires-Python: >=3.9
@@ -135,7 +135,7 @@ with CompassAPISDK(
135
135
  api_key_auth="<YOUR_API_KEY_HERE>",
136
136
  ) as cas_client:
137
137
 
138
- res = cas_client.aave_v3.token_price(chain=models.AaveTokenPriceChain.ARBITRUM_MAINNET, token=models.AaveTokenPriceToken.USDC)
138
+ res = cas_client.aave_v3.rate(chain=models.AaveRateChain.ARBITRUM_MAINNET, token=models.AaveRateToken.USDC)
139
139
 
140
140
  # Handle response
141
141
  print(res)
@@ -155,7 +155,7 @@ async def main():
155
155
  api_key_auth="<YOUR_API_KEY_HERE>",
156
156
  ) as cas_client:
157
157
 
158
- res = await cas_client.aave_v3.token_price_async(chain=models.AaveTokenPriceChain.ARBITRUM_MAINNET, token=models.AaveTokenPriceToken.USDC)
158
+ res = await cas_client.aave_v3.rate_async(chain=models.AaveRateChain.ARBITRUM_MAINNET, token=models.AaveRateToken.USDC)
159
159
 
160
160
  # Handle response
161
161
  print(res)
@@ -184,7 +184,7 @@ with CompassAPISDK(
184
184
  api_key_auth="<YOUR_API_KEY_HERE>",
185
185
  ) as cas_client:
186
186
 
187
- res = cas_client.aave_v3.token_price(chain=models.AaveTokenPriceChain.ARBITRUM_MAINNET, token=models.AaveTokenPriceToken.USDC)
187
+ res = cas_client.aave_v3.rate(chain=models.AaveRateChain.ARBITRUM_MAINNET, token=models.AaveRateToken.USDC)
188
188
 
189
189
  # Handle response
190
190
  print(res)
@@ -200,6 +200,7 @@ with CompassAPISDK(
200
200
 
201
201
  ### [aave_v3](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aavev3/README.md)
202
202
 
203
+ * [rate](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aavev3/README.md#rate) - Interest rates
203
204
  * [token_price](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aavev3/README.md#token_price) - Token prices
204
205
  * [liquidity_change](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aavev3/README.md#liquidity_change) - Liquidity index
205
206
  * [user_position_summary](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aavev3/README.md#user_position_summary) - Positions - total
@@ -297,7 +298,7 @@ with CompassAPISDK(
297
298
  api_key_auth="<YOUR_API_KEY_HERE>",
298
299
  ) as cas_client:
299
300
 
300
- res = cas_client.aave_v3.token_price(chain=models.AaveTokenPriceChain.ARBITRUM_MAINNET, token=models.AaveTokenPriceToken.USDC,
301
+ res = cas_client.aave_v3.rate(chain=models.AaveRateChain.ARBITRUM_MAINNET, token=models.AaveRateToken.USDC,
301
302
  RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False))
302
303
 
303
304
  # Handle response
@@ -316,7 +317,7 @@ with CompassAPISDK(
316
317
  api_key_auth="<YOUR_API_KEY_HERE>",
317
318
  ) as cas_client:
318
319
 
319
- res = cas_client.aave_v3.token_price(chain=models.AaveTokenPriceChain.ARBITRUM_MAINNET, token=models.AaveTokenPriceToken.USDC)
320
+ res = cas_client.aave_v3.rate(chain=models.AaveRateChain.ARBITRUM_MAINNET, token=models.AaveRateToken.USDC)
320
321
 
321
322
  # Handle response
322
323
  print(res)
@@ -338,7 +339,7 @@ By default, an API error will raise a errors.APIError exception, which has the f
338
339
  | `.raw_response` | *httpx.Response* | The raw HTTP response |
339
340
  | `.body` | *str* | The response content |
340
341
 
341
- 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 `token_price_async` method may raise the following exceptions:
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 `rate_async` method may raise the following exceptions:
342
343
 
343
344
  | Error Type | Status Code | Content Type |
344
345
  | -------------------------- | ----------- | ---------------- |
@@ -357,7 +358,7 @@ with CompassAPISDK(
357
358
  res = None
358
359
  try:
359
360
 
360
- res = cas_client.aave_v3.token_price(chain=models.AaveTokenPriceChain.ARBITRUM_MAINNET, token=models.AaveTokenPriceToken.USDC)
361
+ res = cas_client.aave_v3.rate(chain=models.AaveRateChain.ARBITRUM_MAINNET, token=models.AaveRateToken.USDC)
361
362
 
362
363
  # Handle response
363
364
  print(res)
@@ -386,7 +387,7 @@ with CompassAPISDK(
386
387
  api_key_auth="<YOUR_API_KEY_HERE>",
387
388
  ) as cas_client:
388
389
 
389
- res = cas_client.aave_v3.token_price(chain=models.AaveTokenPriceChain.ARBITRUM_MAINNET, token=models.AaveTokenPriceToken.USDC)
390
+ res = cas_client.aave_v3.rate(chain=models.AaveRateChain.ARBITRUM_MAINNET, token=models.AaveRateToken.USDC)
390
391
 
391
392
  # Handle response
392
393
  print(res)
@@ -3,17 +3,18 @@ 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=jTgpCND9mb0CjMzykSVX6yvXDANYnppJx7FcRMyDMTA,476
7
- compass_api_sdk/aave_v3.py,sha256=XaSnohTBRL-LxZp0IOBe77yz5AOMp-RswgK_pJDMVo0,89308
6
+ compass_api_sdk/_version.py,sha256=WvDA7Vm-Y9MoB3iMv_0mKQuYLrnopGBHtqfcXa05yIc,476
7
+ compass_api_sdk/aave_v3.py,sha256=NvBRCg7v6ldYV5MAB3k541Bikh3xESC5-eVU8HJXZEE,98662
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=u2QQssNwQJ9RHu7HtoM5C--EHFmewnsIlPILwVg0ueE,49447
14
+ compass_api_sdk/models/__init__.py,sha256=v0AGM-1xbY8Mcq3LTXhms_5RAkfa_xyh8UroFr1aWC4,49793
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
+ compass_api_sdk/models/aave_rateop.py,sha256=kJgtnlxry6YRxLZvCNV4kKhHOT2Y5duKt-ADyh2NrNg,2405
17
18
  compass_api_sdk/models/aave_token_priceop.py,sha256=RsaN0gHPtm8o5fdE_1T_ZZjvXADapfZR8YLjEGE_1VA,2465
18
19
  compass_api_sdk/models/aave_user_position_per_tokenop.py,sha256=MF_eaxTQkK4sC7ONiVHOcb0PJJBnrAh1j1_XredC3aU,2735
19
20
  compass_api_sdk/models/aave_user_position_summaryop.py,sha256=IreTBDQ92L3CVsTQD_Bc50yt6m5ZM2yuUEYMFhrFkJQ,1060
@@ -22,6 +23,7 @@ compass_api_sdk/models/aaveborrowrequest.py,sha256=pVu6tIgYojyv2mF0_adDX1LM2uvMa
22
23
  compass_api_sdk/models/aavehistoricaltransactionbase.py,sha256=8v4lYDNvfZNJo5D2Ii4qLY0jTmOCUpRZaoEdVJMrcdM,3478
23
24
  compass_api_sdk/models/aavehistoricaltransactionsresponse.py,sha256=UmZGngGfIm0WNWHOmPS9zFy5X6-AJmcyyvnhJEJ7VQk,811
24
25
  compass_api_sdk/models/aaveliquiditychangeresponse.py,sha256=G_fjNFMMAViJVXUejTdqNDyNrv-BieQDDpT6iwtwCwg,811
26
+ compass_api_sdk/models/aaverateresponse.py,sha256=7Ra_FKYbGrm7ZqzNi8-1T0v2xDAGyZf6Iw5Juh1bXBI,1156
25
27
  compass_api_sdk/models/aaverepayparams.py,sha256=ZQLgjGCZUK20dZ7UgrT3j4c6jn2Sq41M15riWbYh-ss,2858
26
28
  compass_api_sdk/models/aaverepayrequest.py,sha256=ZIvYL0pamDkJDJjCRrLZ5Q6e2vQp-wptob9wGCAQS0g,3117
27
29
  compass_api_sdk/models/aavesupplyparams.py,sha256=0ZntRNtspIaXs09S1ckA8jL3xKbBL-SApMZNkuE76Ks,2564
@@ -159,7 +161,7 @@ compass_api_sdk/morpho.py,sha256=5bLWY1vW0CjcsOryDBsFwWwFyhdQ1wCPIWHQl9trjQU,107
159
161
  compass_api_sdk/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
160
162
  compass_api_sdk/sdk.py,sha256=ivTdGJ_eI9K0k5ZuJWPhhCiHwZ0vHB-VgyiILFTjEeA,6101
161
163
  compass_api_sdk/sdkconfiguration.py,sha256=K-B67o2xftk7Rh5z59xBL0TcCn_XhX0Yh_JePPegvvU,1764
162
- compass_api_sdk/sky.py,sha256=5mZn2u0ZlND4LghUHTBQfwSDbdWkr5y5GFEtRIVtPN8,42437
164
+ compass_api_sdk/sky.py,sha256=rjtLEHGEFqd4bIkXAUmcut_JlsQqUjH1LDfZ63PqGk8,43557
163
165
  compass_api_sdk/token_sdk.py,sha256=dRB0-HHsHma1Q9O6gKuBSaTGIVd9LBCqE5opq7F2RZE,34562
164
166
  compass_api_sdk/transaction_batching.py,sha256=mXk4XrANAAXL8AV0Sh5Ct7yirEjPz67sniOI3yReLjc,19165
165
167
  compass_api_sdk/types/__init__.py,sha256=RArOwSgeeTIva6h-4ttjXwMUeCkz10nAFBL9D-QljI4,377
@@ -182,6 +184,6 @@ compass_api_sdk/utils/security.py,sha256=ktep3HKwbFs-MLxUYTM8Jd4v-ZBum5_Z0u1PFId
182
184
  compass_api_sdk/utils/serializers.py,sha256=hiHBXM1AY8_N2Z_rvFfNSYwvLBkSQlPGFp8poasdU4s,5986
183
185
  compass_api_sdk/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
184
186
  compass_api_sdk/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
185
- compass_api_sdk-0.1.11.dist-info/METADATA,sha256=iqd3j7tA_mKU2HwmkRO2aiwbUBAwwkyP4fHEHhUS9fI,24335
186
- compass_api_sdk-0.1.11.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
187
- compass_api_sdk-0.1.11.dist-info/RECORD,,
187
+ compass_api_sdk-0.1.13.dist-info/METADATA,sha256=FK7flUkBzsfprHCkbbztMi5G9nqaha_C748MvCUysxU,24302
188
+ compass_api_sdk-0.1.13.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
189
+ compass_api_sdk-0.1.13.dist-info/RECORD,,