compass_api_sdk 0.1.12__py3-none-any.whl → 0.1.14__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.12"
6
+ __version__: str = "0.1.14"
7
7
  __openapi_doc_version__: str = "0.0.1"
8
8
  __gen_version__: str = "2.598.22"
9
- __user_agent__: str = "speakeasy-sdk/python 0.1.12 2.598.22 0.0.1 compass_api_sdk"
9
+ __user_agent__: str = "speakeasy-sdk/python 0.1.14 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,
@@ -113,55 +120,11 @@ from .aerodrome_slipstream_pool_priceop import (
113
120
  AerodromeSlipstreamPoolPriceTokenInToken,
114
121
  AerodromeSlipstreamPoolPriceTokenOutToken,
115
122
  )
116
- from .aerodromeaddliquidityethparams import (
117
- AerodromeAddLiquidityEthParams,
118
- AerodromeAddLiquidityEthParamsAmountEthMin,
119
- AerodromeAddLiquidityEthParamsAmountEthMinTypedDict,
120
- AerodromeAddLiquidityEthParamsAmountTokenMin,
121
- AerodromeAddLiquidityEthParamsAmountTokenMinTypedDict,
122
- AerodromeAddLiquidityEthParamsTypedDict,
123
- AmountEthDesired,
124
- AmountEthDesiredTypedDict,
125
- AmountTokenDesired,
126
- AmountTokenDesiredTypedDict,
127
- )
128
- from .aerodromeaddliquidityparams import (
129
- AerodromeAddLiquidityParams,
130
- AerodromeAddLiquidityParamsAmountAMin,
131
- AerodromeAddLiquidityParamsAmountAMinTypedDict,
132
- AerodromeAddLiquidityParamsAmountBMin,
133
- AerodromeAddLiquidityParamsAmountBMinTypedDict,
134
- AerodromeAddLiquidityParamsTypedDict,
135
- AmountADesired,
136
- AmountADesiredTypedDict,
137
- AmountBDesired,
138
- AmountBDesiredTypedDict,
139
- )
140
123
  from .aerodromelppositionsresponse import (
141
124
  AerodromeLPPositionsResponse,
142
125
  AerodromeLPPositionsResponseTypedDict,
143
126
  )
144
127
  from .aerodromeposition import AerodromePosition, AerodromePositionTypedDict
145
- from .aerodromeremoveliquidityethrequest import (
146
- AerodromeRemoveLiquidityEthRequest,
147
- AerodromeRemoveLiquidityEthRequestAmountEthMin,
148
- AerodromeRemoveLiquidityEthRequestAmountEthMinTypedDict,
149
- AerodromeRemoveLiquidityEthRequestAmountTokenMin,
150
- AerodromeRemoveLiquidityEthRequestAmountTokenMinTypedDict,
151
- AerodromeRemoveLiquidityEthRequestLiquidity,
152
- AerodromeRemoveLiquidityEthRequestLiquidityTypedDict,
153
- AerodromeRemoveLiquidityEthRequestTypedDict,
154
- )
155
- from .aerodromeremoveliquidityrequest import (
156
- AerodromeRemoveLiquidityRequest,
157
- AerodromeRemoveLiquidityRequestAmountAMin,
158
- AerodromeRemoveLiquidityRequestAmountAMinTypedDict,
159
- AerodromeRemoveLiquidityRequestAmountBMin,
160
- AerodromeRemoveLiquidityRequestAmountBMinTypedDict,
161
- AerodromeRemoveLiquidityRequestLiquidity,
162
- AerodromeRemoveLiquidityRequestLiquidityTypedDict,
163
- AerodromeRemoveLiquidityRequestTypedDict,
164
- )
165
128
  from .aerodromeslipstreambuyexactlyparams import (
166
129
  AerodromeSlipstreamBuyExactlyParams,
167
130
  AerodromeSlipstreamBuyExactlyParamsAmountInMaximum,
@@ -258,30 +221,6 @@ from .aerodromeslipstreamwithdrawliquidityprovisionrequest import (
258
221
  AerodromeSlipstreamWithdrawLiquidityProvisionRequestPercentageForWithdrawalTypedDict,
259
222
  AerodromeSlipstreamWithdrawLiquidityProvisionRequestTypedDict,
260
223
  )
261
- from .aerodromeswapethfortokenparams import (
262
- AerodromeSwapEthForTokenParams,
263
- AerodromeSwapEthForTokenParamsAmountIn,
264
- AerodromeSwapEthForTokenParamsAmountInTypedDict,
265
- AerodromeSwapEthForTokenParamsAmountOutMin,
266
- AerodromeSwapEthForTokenParamsAmountOutMinTypedDict,
267
- AerodromeSwapEthForTokenParamsTypedDict,
268
- )
269
- from .aerodromeswaptokenforethparams import (
270
- AerodromeSwapTokenForEthParams,
271
- AerodromeSwapTokenForEthParamsAmountIn,
272
- AerodromeSwapTokenForEthParamsAmountInTypedDict,
273
- AerodromeSwapTokenForEthParamsAmountOutMin,
274
- AerodromeSwapTokenForEthParamsAmountOutMinTypedDict,
275
- AerodromeSwapTokenForEthParamsTypedDict,
276
- )
277
- from .aerodromeswaptokensparams import (
278
- AerodromeSwapTokensParams,
279
- AerodromeSwapTokensParamsAmountIn,
280
- AerodromeSwapTokensParamsAmountInTypedDict,
281
- AerodromeSwapTokensParamsAmountOutMin,
282
- AerodromeSwapTokensParamsAmountOutMinTypedDict,
283
- AerodromeSwapTokensParamsTypedDict,
284
- )
285
224
  from .allowanceinforesponse import AllowanceInfoResponse, AllowanceInfoResponseTypedDict
286
225
  from .borrow import Borrow, BorrowTypedDict
287
226
  from .chain import Chain
@@ -732,6 +671,12 @@ __all__ = [
732
671
  "AaveLiquidityChangeResponse",
733
672
  "AaveLiquidityChangeResponseTypedDict",
734
673
  "AaveLiquidityChangeToken",
674
+ "AaveRateChain",
675
+ "AaveRateRequest",
676
+ "AaveRateRequestTypedDict",
677
+ "AaveRateResponse",
678
+ "AaveRateResponseTypedDict",
679
+ "AaveRateToken",
735
680
  "AaveRepayParams",
736
681
  "AaveRepayParamsAmount",
737
682
  "AaveRepayParamsAmountTypedDict",
@@ -774,38 +719,10 @@ __all__ = [
774
719
  "AaveWithdrawRequestAmountTypedDict",
775
720
  "AaveWithdrawRequestTypedDict",
776
721
  "Action",
777
- "AerodromeAddLiquidityEthParams",
778
- "AerodromeAddLiquidityEthParamsAmountEthMin",
779
- "AerodromeAddLiquidityEthParamsAmountEthMinTypedDict",
780
- "AerodromeAddLiquidityEthParamsAmountTokenMin",
781
- "AerodromeAddLiquidityEthParamsAmountTokenMinTypedDict",
782
- "AerodromeAddLiquidityEthParamsTypedDict",
783
- "AerodromeAddLiquidityParams",
784
- "AerodromeAddLiquidityParamsAmountAMin",
785
- "AerodromeAddLiquidityParamsAmountAMinTypedDict",
786
- "AerodromeAddLiquidityParamsAmountBMin",
787
- "AerodromeAddLiquidityParamsAmountBMinTypedDict",
788
- "AerodromeAddLiquidityParamsTypedDict",
789
722
  "AerodromeLPPositionsResponse",
790
723
  "AerodromeLPPositionsResponseTypedDict",
791
724
  "AerodromePosition",
792
725
  "AerodromePositionTypedDict",
793
- "AerodromeRemoveLiquidityEthRequest",
794
- "AerodromeRemoveLiquidityEthRequestAmountEthMin",
795
- "AerodromeRemoveLiquidityEthRequestAmountEthMinTypedDict",
796
- "AerodromeRemoveLiquidityEthRequestAmountTokenMin",
797
- "AerodromeRemoveLiquidityEthRequestAmountTokenMinTypedDict",
798
- "AerodromeRemoveLiquidityEthRequestLiquidity",
799
- "AerodromeRemoveLiquidityEthRequestLiquidityTypedDict",
800
- "AerodromeRemoveLiquidityEthRequestTypedDict",
801
- "AerodromeRemoveLiquidityRequest",
802
- "AerodromeRemoveLiquidityRequestAmountAMin",
803
- "AerodromeRemoveLiquidityRequestAmountAMinTypedDict",
804
- "AerodromeRemoveLiquidityRequestAmountBMin",
805
- "AerodromeRemoveLiquidityRequestAmountBMinTypedDict",
806
- "AerodromeRemoveLiquidityRequestLiquidity",
807
- "AerodromeRemoveLiquidityRequestLiquidityTypedDict",
808
- "AerodromeRemoveLiquidityRequestTypedDict",
809
726
  "AerodromeSlipstreamBuyExactlyParams",
810
727
  "AerodromeSlipstreamBuyExactlyParamsAmountInMaximum",
811
728
  "AerodromeSlipstreamBuyExactlyParamsAmountInMaximumTypedDict",
@@ -888,34 +805,8 @@ __all__ = [
888
805
  "AerodromeSlipstreamWithdrawLiquidityProvisionRequestPercentageForWithdrawal",
889
806
  "AerodromeSlipstreamWithdrawLiquidityProvisionRequestPercentageForWithdrawalTypedDict",
890
807
  "AerodromeSlipstreamWithdrawLiquidityProvisionRequestTypedDict",
891
- "AerodromeSwapEthForTokenParams",
892
- "AerodromeSwapEthForTokenParamsAmountIn",
893
- "AerodromeSwapEthForTokenParamsAmountInTypedDict",
894
- "AerodromeSwapEthForTokenParamsAmountOutMin",
895
- "AerodromeSwapEthForTokenParamsAmountOutMinTypedDict",
896
- "AerodromeSwapEthForTokenParamsTypedDict",
897
- "AerodromeSwapTokenForEthParams",
898
- "AerodromeSwapTokenForEthParamsAmountIn",
899
- "AerodromeSwapTokenForEthParamsAmountInTypedDict",
900
- "AerodromeSwapTokenForEthParamsAmountOutMin",
901
- "AerodromeSwapTokenForEthParamsAmountOutMinTypedDict",
902
- "AerodromeSwapTokenForEthParamsTypedDict",
903
- "AerodromeSwapTokensParams",
904
- "AerodromeSwapTokensParamsAmountIn",
905
- "AerodromeSwapTokensParamsAmountInTypedDict",
906
- "AerodromeSwapTokensParamsAmountOutMin",
907
- "AerodromeSwapTokensParamsAmountOutMinTypedDict",
908
- "AerodromeSwapTokensParamsTypedDict",
909
808
  "AllowanceInfoResponse",
910
809
  "AllowanceInfoResponseTypedDict",
911
- "AmountADesired",
912
- "AmountADesiredTypedDict",
913
- "AmountBDesired",
914
- "AmountBDesiredTypedDict",
915
- "AmountEthDesired",
916
- "AmountEthDesiredTypedDict",
917
- "AmountTokenDesired",
918
- "AmountTokenDesiredTypedDict",
919
810
  "Body",
920
811
  "BodyTypedDict",
921
812
  "Borrow",
@@ -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."""
@@ -5,22 +5,6 @@ from .aaveborrowparams import AaveBorrowParams, AaveBorrowParamsTypedDict
5
5
  from .aaverepayparams import AaveRepayParams, AaveRepayParamsTypedDict
6
6
  from .aavesupplyparams import AaveSupplyParams, AaveSupplyParamsTypedDict
7
7
  from .aavewithdrawparams import AaveWithdrawParams, AaveWithdrawParamsTypedDict
8
- from .aerodromeaddliquidityethparams import (
9
- AerodromeAddLiquidityEthParams,
10
- AerodromeAddLiquidityEthParamsTypedDict,
11
- )
12
- from .aerodromeaddliquidityparams import (
13
- AerodromeAddLiquidityParams,
14
- AerodromeAddLiquidityParamsTypedDict,
15
- )
16
- from .aerodromeremoveliquidityethrequest import (
17
- AerodromeRemoveLiquidityEthRequest,
18
- AerodromeRemoveLiquidityEthRequestTypedDict,
19
- )
20
- from .aerodromeremoveliquidityrequest import (
21
- AerodromeRemoveLiquidityRequest,
22
- AerodromeRemoveLiquidityRequestTypedDict,
23
- )
24
8
  from .aerodromeslipstreambuyexactlyparams import (
25
9
  AerodromeSlipstreamBuyExactlyParams,
26
10
  AerodromeSlipstreamBuyExactlyParamsTypedDict,
@@ -41,18 +25,6 @@ from .aerodromeslipstreamwithdrawliquidityprovisionparams import (
41
25
  AerodromeSlipstreamWithdrawLiquidityProvisionParams,
42
26
  AerodromeSlipstreamWithdrawLiquidityProvisionParamsTypedDict,
43
27
  )
44
- from .aerodromeswapethfortokenparams import (
45
- AerodromeSwapEthForTokenParams,
46
- AerodromeSwapEthForTokenParamsTypedDict,
47
- )
48
- from .aerodromeswaptokenforethparams import (
49
- AerodromeSwapTokenForEthParams,
50
- AerodromeSwapTokenForEthParamsTypedDict,
51
- )
52
- from .aerodromeswaptokensparams import (
53
- AerodromeSwapTokensParams,
54
- AerodromeSwapTokensParamsTypedDict,
55
- )
56
28
  from .increaseallowanceanyparams import (
57
29
  IncreaseAllowanceAnyParams,
58
30
  IncreaseAllowanceAnyParamsTypedDict,
@@ -98,30 +70,23 @@ BodyTypedDict = TypeAliasType(
98
70
  Union[
99
71
  WrapEthParamsTypedDict,
100
72
  UnwrapWethParamsTypedDict,
101
- UniswapWithdrawLiquidityProvisionParamsTypedDict,
102
73
  AerodromeSlipstreamWithdrawLiquidityProvisionParamsTypedDict,
103
- AaveSupplyParamsTypedDict,
104
- AaveWithdrawParamsTypedDict,
74
+ UniswapWithdrawLiquidityProvisionParamsTypedDict,
105
75
  TokenTransferErc20ParamsTypedDict,
106
76
  IncreaseAllowanceAnyParamsTypedDict,
77
+ AaveSupplyParamsTypedDict,
78
+ AaveWithdrawParamsTypedDict,
107
79
  IncreaseAllowanceParamsTypedDict,
108
- AaveBorrowParamsTypedDict,
109
80
  AaveRepayParamsTypedDict,
110
- AerodromeSlipstreamIncreaseLiquidityProvisionParamsTypedDict,
111
- UniswapIncreaseLiquidityProvisionParamsTypedDict,
112
- AerodromeSwapTokenForEthParamsTypedDict,
113
- AerodromeSwapEthForTokenParamsTypedDict,
81
+ AaveBorrowParamsTypedDict,
114
82
  AerodromeSlipstreamBuyExactlyParamsTypedDict,
115
83
  AerodromeSlipstreamSellExactlyParamsTypedDict,
116
- AerodromeSwapTokensParamsTypedDict,
84
+ AerodromeSlipstreamIncreaseLiquidityProvisionParamsTypedDict,
85
+ UniswapIncreaseLiquidityProvisionParamsTypedDict,
117
86
  UniswapBuyExactlyParamsTypedDict,
118
87
  UniswapSellExactlyParamsTypedDict,
119
- AerodromeAddLiquidityEthParamsTypedDict,
120
- AerodromeRemoveLiquidityEthRequestTypedDict,
121
- AerodromeAddLiquidityParamsTypedDict,
122
- AerodromeRemoveLiquidityRequestTypedDict,
123
- AerodromeSlipstreamMintLiquidityProvisionParamsTypedDict,
124
88
  UniswapMintLiquidityProvisionParamsTypedDict,
89
+ AerodromeSlipstreamMintLiquidityProvisionParamsTypedDict,
125
90
  ],
126
91
  )
127
92
 
@@ -131,30 +96,23 @@ Body = TypeAliasType(
131
96
  Union[
132
97
  WrapEthParams,
133
98
  UnwrapWethParams,
134
- UniswapWithdrawLiquidityProvisionParams,
135
99
  AerodromeSlipstreamWithdrawLiquidityProvisionParams,
136
- AaveSupplyParams,
137
- AaveWithdrawParams,
100
+ UniswapWithdrawLiquidityProvisionParams,
138
101
  TokenTransferErc20Params,
139
102
  IncreaseAllowanceAnyParams,
103
+ AaveSupplyParams,
104
+ AaveWithdrawParams,
140
105
  IncreaseAllowanceParams,
141
- AaveBorrowParams,
142
106
  AaveRepayParams,
143
- AerodromeSlipstreamIncreaseLiquidityProvisionParams,
144
- UniswapIncreaseLiquidityProvisionParams,
145
- AerodromeSwapTokenForEthParams,
146
- AerodromeSwapEthForTokenParams,
107
+ AaveBorrowParams,
147
108
  AerodromeSlipstreamBuyExactlyParams,
148
109
  AerodromeSlipstreamSellExactlyParams,
149
- AerodromeSwapTokensParams,
110
+ AerodromeSlipstreamIncreaseLiquidityProvisionParams,
111
+ UniswapIncreaseLiquidityProvisionParams,
150
112
  UniswapBuyExactlyParams,
151
113
  UniswapSellExactlyParams,
152
- AerodromeAddLiquidityEthParams,
153
- AerodromeRemoveLiquidityEthRequest,
154
- AerodromeAddLiquidityParams,
155
- AerodromeRemoveLiquidityRequest,
156
- AerodromeSlipstreamMintLiquidityProvisionParams,
157
114
  UniswapMintLiquidityProvisionParams,
115
+ AerodromeSlipstreamMintLiquidityProvisionParams,
158
116
  ],
159
117
  )
160
118