compass_api_sdk 0.1.13__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.

@@ -3,10 +3,10 @@
3
3
  import importlib.metadata
4
4
 
5
5
  __title__: str = "compass_api_sdk"
6
- __version__: str = "0.1.13"
6
+ __version__: str = "0.2.0"
7
7
  __openapi_doc_version__: str = "0.0.1"
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"
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:
@@ -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,
@@ -120,55 +130,11 @@ from .aerodrome_slipstream_pool_priceop import (
120
130
  AerodromeSlipstreamPoolPriceTokenInToken,
121
131
  AerodromeSlipstreamPoolPriceTokenOutToken,
122
132
  )
123
- from .aerodromeaddliquidityethparams import (
124
- AerodromeAddLiquidityEthParams,
125
- AerodromeAddLiquidityEthParamsAmountEthMin,
126
- AerodromeAddLiquidityEthParamsAmountEthMinTypedDict,
127
- AerodromeAddLiquidityEthParamsAmountTokenMin,
128
- AerodromeAddLiquidityEthParamsAmountTokenMinTypedDict,
129
- AerodromeAddLiquidityEthParamsTypedDict,
130
- AmountEthDesired,
131
- AmountEthDesiredTypedDict,
132
- AmountTokenDesired,
133
- AmountTokenDesiredTypedDict,
134
- )
135
- from .aerodromeaddliquidityparams import (
136
- AerodromeAddLiquidityParams,
137
- AerodromeAddLiquidityParamsAmountAMin,
138
- AerodromeAddLiquidityParamsAmountAMinTypedDict,
139
- AerodromeAddLiquidityParamsAmountBMin,
140
- AerodromeAddLiquidityParamsAmountBMinTypedDict,
141
- AerodromeAddLiquidityParamsTypedDict,
142
- AmountADesired,
143
- AmountADesiredTypedDict,
144
- AmountBDesired,
145
- AmountBDesiredTypedDict,
146
- )
147
133
  from .aerodromelppositionsresponse import (
148
134
  AerodromeLPPositionsResponse,
149
135
  AerodromeLPPositionsResponseTypedDict,
150
136
  )
151
137
  from .aerodromeposition import AerodromePosition, AerodromePositionTypedDict
152
- from .aerodromeremoveliquidityethrequest import (
153
- AerodromeRemoveLiquidityEthRequest,
154
- AerodromeRemoveLiquidityEthRequestAmountEthMin,
155
- AerodromeRemoveLiquidityEthRequestAmountEthMinTypedDict,
156
- AerodromeRemoveLiquidityEthRequestAmountTokenMin,
157
- AerodromeRemoveLiquidityEthRequestAmountTokenMinTypedDict,
158
- AerodromeRemoveLiquidityEthRequestLiquidity,
159
- AerodromeRemoveLiquidityEthRequestLiquidityTypedDict,
160
- AerodromeRemoveLiquidityEthRequestTypedDict,
161
- )
162
- from .aerodromeremoveliquidityrequest import (
163
- AerodromeRemoveLiquidityRequest,
164
- AerodromeRemoveLiquidityRequestAmountAMin,
165
- AerodromeRemoveLiquidityRequestAmountAMinTypedDict,
166
- AerodromeRemoveLiquidityRequestAmountBMin,
167
- AerodromeRemoveLiquidityRequestAmountBMinTypedDict,
168
- AerodromeRemoveLiquidityRequestLiquidity,
169
- AerodromeRemoveLiquidityRequestLiquidityTypedDict,
170
- AerodromeRemoveLiquidityRequestTypedDict,
171
- )
172
138
  from .aerodromeslipstreambuyexactlyparams import (
173
139
  AerodromeSlipstreamBuyExactlyParams,
174
140
  AerodromeSlipstreamBuyExactlyParamsAmountInMaximum,
@@ -265,30 +231,6 @@ from .aerodromeslipstreamwithdrawliquidityprovisionrequest import (
265
231
  AerodromeSlipstreamWithdrawLiquidityProvisionRequestPercentageForWithdrawalTypedDict,
266
232
  AerodromeSlipstreamWithdrawLiquidityProvisionRequestTypedDict,
267
233
  )
268
- from .aerodromeswapethfortokenparams import (
269
- AerodromeSwapEthForTokenParams,
270
- AerodromeSwapEthForTokenParamsAmountIn,
271
- AerodromeSwapEthForTokenParamsAmountInTypedDict,
272
- AerodromeSwapEthForTokenParamsAmountOutMin,
273
- AerodromeSwapEthForTokenParamsAmountOutMinTypedDict,
274
- AerodromeSwapEthForTokenParamsTypedDict,
275
- )
276
- from .aerodromeswaptokenforethparams import (
277
- AerodromeSwapTokenForEthParams,
278
- AerodromeSwapTokenForEthParamsAmountIn,
279
- AerodromeSwapTokenForEthParamsAmountInTypedDict,
280
- AerodromeSwapTokenForEthParamsAmountOutMin,
281
- AerodromeSwapTokenForEthParamsAmountOutMinTypedDict,
282
- AerodromeSwapTokenForEthParamsTypedDict,
283
- )
284
- from .aerodromeswaptokensparams import (
285
- AerodromeSwapTokensParams,
286
- AerodromeSwapTokensParamsAmountIn,
287
- AerodromeSwapTokensParamsAmountInTypedDict,
288
- AerodromeSwapTokensParamsAmountOutMin,
289
- AerodromeSwapTokensParamsAmountOutMinTypedDict,
290
- AerodromeSwapTokensParamsTypedDict,
291
- )
292
234
  from .allowanceinforesponse import AllowanceInfoResponse, AllowanceInfoResponseTypedDict
293
235
  from .borrow import Borrow, BorrowTypedDict
294
236
  from .chain import Chain
@@ -753,6 +695,12 @@ __all__ = [
753
695
  "AaveRepayRequestAmount",
754
696
  "AaveRepayRequestAmountTypedDict",
755
697
  "AaveRepayRequestTypedDict",
698
+ "AaveReserveOverviewChain",
699
+ "AaveReserveOverviewRequest",
700
+ "AaveReserveOverviewRequestTypedDict",
701
+ "AaveReserveOverviewResponse",
702
+ "AaveReserveOverviewResponseTypedDict",
703
+ "AaveReserveOverviewToken",
756
704
  "AaveSupplyParams",
757
705
  "AaveSupplyParamsAmount",
758
706
  "AaveSupplyParamsAmountTypedDict",
@@ -787,38 +735,10 @@ __all__ = [
787
735
  "AaveWithdrawRequestAmountTypedDict",
788
736
  "AaveWithdrawRequestTypedDict",
789
737
  "Action",
790
- "AerodromeAddLiquidityEthParams",
791
- "AerodromeAddLiquidityEthParamsAmountEthMin",
792
- "AerodromeAddLiquidityEthParamsAmountEthMinTypedDict",
793
- "AerodromeAddLiquidityEthParamsAmountTokenMin",
794
- "AerodromeAddLiquidityEthParamsAmountTokenMinTypedDict",
795
- "AerodromeAddLiquidityEthParamsTypedDict",
796
- "AerodromeAddLiquidityParams",
797
- "AerodromeAddLiquidityParamsAmountAMin",
798
- "AerodromeAddLiquidityParamsAmountAMinTypedDict",
799
- "AerodromeAddLiquidityParamsAmountBMin",
800
- "AerodromeAddLiquidityParamsAmountBMinTypedDict",
801
- "AerodromeAddLiquidityParamsTypedDict",
802
738
  "AerodromeLPPositionsResponse",
803
739
  "AerodromeLPPositionsResponseTypedDict",
804
740
  "AerodromePosition",
805
741
  "AerodromePositionTypedDict",
806
- "AerodromeRemoveLiquidityEthRequest",
807
- "AerodromeRemoveLiquidityEthRequestAmountEthMin",
808
- "AerodromeRemoveLiquidityEthRequestAmountEthMinTypedDict",
809
- "AerodromeRemoveLiquidityEthRequestAmountTokenMin",
810
- "AerodromeRemoveLiquidityEthRequestAmountTokenMinTypedDict",
811
- "AerodromeRemoveLiquidityEthRequestLiquidity",
812
- "AerodromeRemoveLiquidityEthRequestLiquidityTypedDict",
813
- "AerodromeRemoveLiquidityEthRequestTypedDict",
814
- "AerodromeRemoveLiquidityRequest",
815
- "AerodromeRemoveLiquidityRequestAmountAMin",
816
- "AerodromeRemoveLiquidityRequestAmountAMinTypedDict",
817
- "AerodromeRemoveLiquidityRequestAmountBMin",
818
- "AerodromeRemoveLiquidityRequestAmountBMinTypedDict",
819
- "AerodromeRemoveLiquidityRequestLiquidity",
820
- "AerodromeRemoveLiquidityRequestLiquidityTypedDict",
821
- "AerodromeRemoveLiquidityRequestTypedDict",
822
742
  "AerodromeSlipstreamBuyExactlyParams",
823
743
  "AerodromeSlipstreamBuyExactlyParamsAmountInMaximum",
824
744
  "AerodromeSlipstreamBuyExactlyParamsAmountInMaximumTypedDict",
@@ -901,34 +821,8 @@ __all__ = [
901
821
  "AerodromeSlipstreamWithdrawLiquidityProvisionRequestPercentageForWithdrawal",
902
822
  "AerodromeSlipstreamWithdrawLiquidityProvisionRequestPercentageForWithdrawalTypedDict",
903
823
  "AerodromeSlipstreamWithdrawLiquidityProvisionRequestTypedDict",
904
- "AerodromeSwapEthForTokenParams",
905
- "AerodromeSwapEthForTokenParamsAmountIn",
906
- "AerodromeSwapEthForTokenParamsAmountInTypedDict",
907
- "AerodromeSwapEthForTokenParamsAmountOutMin",
908
- "AerodromeSwapEthForTokenParamsAmountOutMinTypedDict",
909
- "AerodromeSwapEthForTokenParamsTypedDict",
910
- "AerodromeSwapTokenForEthParams",
911
- "AerodromeSwapTokenForEthParamsAmountIn",
912
- "AerodromeSwapTokenForEthParamsAmountInTypedDict",
913
- "AerodromeSwapTokenForEthParamsAmountOutMin",
914
- "AerodromeSwapTokenForEthParamsAmountOutMinTypedDict",
915
- "AerodromeSwapTokenForEthParamsTypedDict",
916
- "AerodromeSwapTokensParams",
917
- "AerodromeSwapTokensParamsAmountIn",
918
- "AerodromeSwapTokensParamsAmountInTypedDict",
919
- "AerodromeSwapTokensParamsAmountOutMin",
920
- "AerodromeSwapTokensParamsAmountOutMinTypedDict",
921
- "AerodromeSwapTokensParamsTypedDict",
922
824
  "AllowanceInfoResponse",
923
825
  "AllowanceInfoResponseTypedDict",
924
- "AmountADesired",
925
- "AmountADesiredTypedDict",
926
- "AmountBDesired",
927
- "AmountBDesiredTypedDict",
928
- "AmountEthDesired",
929
- "AmountEthDesiredTypedDict",
930
- "AmountTokenDesired",
931
- "AmountTokenDesiredTypedDict",
932
826
  "Body",
933
827
  "BodyTypedDict",
934
828
  "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 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"""
@@ -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
 
@@ -9,13 +9,6 @@ class MulticallActionType(str, Enum):
9
9
  AAVE_REPAY = "AAVE_REPAY"
10
10
  AAVE_SUPPLY = "AAVE_SUPPLY"
11
11
  AAVE_WITHDRAW = "AAVE_WITHDRAW"
12
- AERODROME_BASIC_ADD_LIQUIDITY = "AERODROME_BASIC_ADD_LIQUIDITY"
13
- AERODROME_BASIC_ADD_LIQUIDITY_ETH = "AERODROME_BASIC_ADD_LIQUIDITY_ETH"
14
- AERODROME_BASIC_REMOVE_LIQUIDITY = "AERODROME_BASIC_REMOVE_LIQUIDITY"
15
- AERODROME_BASIC_REMOVE_LIQUIDITY_ETH = "AERODROME_BASIC_REMOVE_LIQUIDITY_ETH"
16
- AERODROME_BASIC_SWAP_ETH_FOR_TOKEN = "AERODROME_BASIC_SWAP_ETH_FOR_TOKEN"
17
- AERODROME_BASIC_SWAP_TOKEN = "AERODROME_BASIC_SWAP_TOKEN"
18
- AERODROME_BASIC_SWAP_TOKEN_FOR_ETH = "AERODROME_BASIC_SWAP_TOKEN_FOR_ETH"
19
12
  AERODROME_SLIPSTREAM_BUY_EXACTLY = "AERODROME_SLIPSTREAM_BUY_EXACTLY"
20
13
  AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY = "AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY"
21
14
  AERODROME_SLIPSTREAM_MINT_LIQUIDITY = "AERODROME_SLIPSTREAM_MINT_LIQUIDITY"