compass_api_sdk 0.2.0__py3-none-any.whl → 0.3.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-0.2.0.dist-info → compass_api_sdk-0.3.0.dist-info}/METADATA +34 -33
- compass_api_sdk-0.3.0.dist-info/RECORD +180 -0
- {compass_api_sdk → compassapisdk}/_hooks/sdkhooks.py +1 -1
- {compass_api_sdk → compassapisdk}/_hooks/types.py +1 -1
- {compass_api_sdk → compassapisdk}/_version.py +3 -3
- {compass_api_sdk → compassapisdk}/aave_v3.py +27 -27
- {compass_api_sdk → compassapisdk}/aerodrome_slipstream.py +11 -11
- {compass_api_sdk → compassapisdk}/basesdk.py +3 -3
- {compass_api_sdk → compassapisdk}/errors/httpvalidationerror.py +3 -3
- {compass_api_sdk → compassapisdk}/httpclient.py +7 -37
- {compass_api_sdk → compassapisdk}/models/__init__.py +46 -25
- {compass_api_sdk → compassapisdk}/models/aave_historical_transactionsop.py +8 -2
- {compass_api_sdk → compassapisdk}/models/aave_liquidity_changeop.py +8 -12
- {compass_api_sdk → compassapisdk}/models/aave_rateop.py +4 -12
- {compass_api_sdk → compassapisdk}/models/aave_reserve_overviewop.py +4 -12
- {compass_api_sdk → compassapisdk}/models/aave_token_priceop.py +4 -12
- {compass_api_sdk → compassapisdk}/models/aave_user_position_per_tokenop.py +6 -12
- {compass_api_sdk → compassapisdk}/models/aave_user_position_summaryop.py +4 -2
- {compass_api_sdk → compassapisdk}/models/aaveborrowparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aaveborrowrequest.py +1 -1
- compassapisdk/models/aavehistoricaltransactionsresponse.py +65 -0
- {compass_api_sdk → compassapisdk}/models/aaveliquiditychangeresponse.py +1 -1
- compassapisdk/models/aavelooprequest.py +87 -0
- {compass_api_sdk → compassapisdk}/models/aaverateresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aaverepayparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aaverepayrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aavereserveoverviewresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aavesupplyparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aavesupplyrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aavetokenpriceresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aaveuserpositionpertokenresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aaveuserpositionsummaryresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aavewithdrawparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aavewithdrawrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodrome_slipstream_liquidity_provision_positionsop.py +4 -2
- {compass_api_sdk → compassapisdk}/models/aerodrome_slipstream_pool_priceop.py +8 -22
- {compass_api_sdk → compassapisdk}/models/aerodromelppositionsresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeposition.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreambuyexactlyparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreambuyexactlyrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreamincreaseliquidityprovisionparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreamincreaseliquidityprovisionrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreammintliquidityprovisionparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreammintliquidityprovisionrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreampoolpriceresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreamsellexactlyparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreamsellexactlyrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreamwithdrawliquidityprovisionparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreamwithdrawliquidityprovisionrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/allowanceinforesponse.py +1 -1
- compassapisdk/models/borrow.py +67 -0
- {compass_api_sdk → compassapisdk}/models/chaininfo.py +1 -1
- {compass_api_sdk → compassapisdk}/models/compass_api_backend_models_morpho_read_response_get_markets_asset.py +1 -1
- {compass_api_sdk → compassapisdk}/models/compass_api_backend_models_morpho_read_response_get_vaults_asset.py +1 -1
- {compass_api_sdk → compassapisdk}/models/ensnameinforesponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/generic_allowanceop.py +10 -12
- {compass_api_sdk → compassapisdk}/models/generic_ensop.py +4 -2
- {compass_api_sdk → compassapisdk}/models/generic_portfolioop.py +4 -2
- {compass_api_sdk → compassapisdk}/models/generic_supported_tokensop.py +2 -2
- {compass_api_sdk → compassapisdk}/models/generic_visualize_portfolioop.py +4 -2
- {compass_api_sdk → compassapisdk}/models/image.py +1 -1
- {compass_api_sdk → compassapisdk}/models/increaseallowanceanyparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/increaseallowanceparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/increaseallowancerequest.py +1 -1
- compassapisdk/models/liquidationcall.py +64 -0
- {compass_api_sdk → compassapisdk}/models/marketstate.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morpho_market_positionop.py +11 -11
- {compass_api_sdk → compassapisdk}/models/morpho_marketsop.py +11 -11
- {compass_api_sdk → compassapisdk}/models/morpho_vault_positionop.py +11 -11
- {compass_api_sdk → compassapisdk}/models/morpho_vaultsop.py +22 -18
- {compass_api_sdk → compassapisdk}/models/morphoborrowrequest.py +9 -6
- {compass_api_sdk → compassapisdk}/models/morphocheckmarketpositionresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphocheckvaultpositionresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphodepositrequest.py +9 -6
- {compass_api_sdk → compassapisdk}/models/morphogetmarketsresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphogetvaultsresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphomarket.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphorepayrequest.py +9 -6
- {compass_api_sdk → compassapisdk}/models/morphosetvaultallowancerequest.py +9 -6
- {compass_api_sdk → compassapisdk}/models/morphosupplycollateralrequest.py +9 -6
- {compass_api_sdk → compassapisdk}/models/morphovault.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphowithdrawcollateralrequest.py +9 -6
- {compass_api_sdk → compassapisdk}/models/morphowithdrawrequest.py +9 -6
- {compass_api_sdk → compassapisdk}/models/multicallaction.py +1 -1
- {compass_api_sdk → compassapisdk}/models/multicallauthorizationrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/multicallauthorizationresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/multicallexecuterequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/portfolio.py +1 -1
- compassapisdk/models/redeemunderlying.py +48 -0
- compassapisdk/models/repay.py +52 -0
- compassapisdk/models/reserve.py +77 -0
- {compass_api_sdk → compassapisdk}/models/security.py +2 -2
- {compass_api_sdk → compassapisdk}/models/signedauthorization.py +1 -1
- {compass_api_sdk → compassapisdk}/models/sky_positionop.py +4 -2
- {compass_api_sdk → compassapisdk}/models/skybuyrequest.py +2 -2
- {compass_api_sdk → compassapisdk}/models/skycheckpositionresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/skydepositrequest.py +2 -2
- {compass_api_sdk → compassapisdk}/models/skysellrequest.py +2 -2
- {compass_api_sdk → compassapisdk}/models/skywithdrawrequest.py +2 -2
- compassapisdk/models/supply.py +54 -0
- compassapisdk/models/swapborrowrate.py +56 -0
- {compass_api_sdk → compassapisdk}/models/token_addressop.py +4 -12
- {compass_api_sdk → compassapisdk}/models/token_balanceop.py +8 -2
- {compass_api_sdk → compassapisdk}/models/token_priceop.py +4 -12
- {compass_api_sdk → compassapisdk}/models/tokenaddressresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/tokenbalance.py +1 -1
- {compass_api_sdk → compassapisdk}/models/tokenbalanceresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/tokeninfo.py +1 -1
- {compass_api_sdk → compassapisdk}/models/tokenpriceresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/tokentransfererc20params.py +1 -1
- {compass_api_sdk → compassapisdk}/models/tokentransferrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswap_liquidity_provision_in_rangeop.py +4 -2
- {compass_api_sdk → compassapisdk}/models/uniswap_liquidity_provision_positionsop.py +4 -2
- {compass_api_sdk → compassapisdk}/models/uniswap_pool_priceop.py +8 -30
- {compass_api_sdk → compassapisdk}/models/uniswap_quote_buy_exactlyop.py +12 -30
- {compass_api_sdk → compassapisdk}/models/uniswap_quote_sell_exactlyop.py +12 -30
- {compass_api_sdk → compassapisdk}/models/uniswapbuyexactlyparams.py +7 -7
- {compass_api_sdk → compassapisdk}/models/uniswapbuyexactlyrequest.py +7 -7
- {compass_api_sdk → compassapisdk}/models/uniswapbuyquoteinforesponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswapcheckinrangeresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswapincreaseliquidityprovisionparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswapincreaseliquidityprovisionrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswaplppositionsinforesponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswapmintliquidityprovisionparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswapmintliquidityprovisionrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswappoolpriceresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswappositionssolidityresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswapsellexactlyparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswapsellexactlyrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswapsellquoteinforesponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswapwithdrawliquidityprovisionparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswapwithdrawliquidityprovisionrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/unsignedmulticalltransaction.py +1 -1
- {compass_api_sdk → compassapisdk}/models/unsignedtransaction.py +1 -1
- {compass_api_sdk → compassapisdk}/models/unwrapwethparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/unwrapwethrequest.py +1 -1
- compassapisdk/models/usageascollateral.py +53 -0
- {compass_api_sdk → compassapisdk}/models/validationerror.py +1 -1
- {compass_api_sdk → compassapisdk}/models/vaultstate.py +1 -1
- {compass_api_sdk → compassapisdk}/models/weeklyapys.py +1 -1
- {compass_api_sdk → compassapisdk}/models/wrapethparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/wrapethrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/morpho.py +79 -63
- {compass_api_sdk → compassapisdk}/sdk.py +11 -11
- {compass_api_sdk → compassapisdk}/sdkconfiguration.py +2 -2
- {compass_api_sdk → compassapisdk}/sky.py +5 -5
- {compass_api_sdk → compassapisdk}/token_sdk.py +11 -11
- {compass_api_sdk → compassapisdk}/transaction_batching.py +287 -3
- {compass_api_sdk → compassapisdk}/uniswap_v3.py +39 -39
- {compass_api_sdk → compassapisdk}/universal.py +15 -15
- compass_api_sdk/_hooks/registration.py +0 -13
- compass_api_sdk/models/aavehistoricaltransactionbase.py +0 -113
- compass_api_sdk/models/aavehistoricaltransactionsresponse.py +0 -31
- compass_api_sdk/models/action.py +0 -14
- compass_api_sdk/models/borrow.py +0 -33
- compass_api_sdk/models/collateralreserve.py +0 -16
- compass_api_sdk/models/liquidationcall.py +0 -37
- compass_api_sdk/models/principalreserve.py +0 -16
- compass_api_sdk/models/redeemunderlying.py +0 -21
- compass_api_sdk/models/repay.py +0 -21
- compass_api_sdk/models/reserve.py +0 -16
- compass_api_sdk/models/supply.py +0 -21
- compass_api_sdk/models/swapborrowrate.py +0 -27
- compass_api_sdk/models/usageascollateral.py +0 -21
- compass_api_sdk-0.2.0.dist-info/RECORD +0 -184
- {compass_api_sdk-0.2.0.dist-info → compass_api_sdk-0.3.0.dist-info}/WHEEL +0 -0
- {compass_api_sdk → compassapisdk}/__init__.py +0 -0
- {compass_api_sdk → compassapisdk}/_hooks/__init__.py +0 -0
- {compass_api_sdk → compassapisdk}/errors/__init__.py +0 -0
- {compass_api_sdk → compassapisdk}/errors/apierror.py +0 -0
- {compass_api_sdk → compassapisdk}/models/chain.py +0 -0
- {compass_api_sdk → compassapisdk}/models/contractname.py +0 -0
- {compass_api_sdk → compassapisdk}/models/feeenum.py +0 -0
- {compass_api_sdk → compassapisdk}/models/interestratemode.py +0 -0
- {compass_api_sdk → compassapisdk}/models/multicallactiontype.py +0 -0
- {compass_api_sdk → compassapisdk}/models/token_enum.py +0 -0
- {compass_api_sdk → compassapisdk}/py.typed +0 -0
- {compass_api_sdk → compassapisdk}/types/__init__.py +0 -0
- {compass_api_sdk → compassapisdk}/types/basemodel.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/__init__.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/annotations.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/datetimes.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/enums.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/eventstreaming.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/forms.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/headers.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/logger.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/metadata.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/queryparams.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/requestbodies.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/retries.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/security.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/serializers.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/url.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/values.py +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from .basesdk import BaseSDK
|
|
4
|
-
from
|
|
5
|
-
from
|
|
6
|
-
from
|
|
4
|
+
from compassapisdk import errors, models, utils
|
|
5
|
+
from compassapisdk._hooks import HookContext
|
|
6
|
+
from compassapisdk.types import OptionalNullable, UNSET
|
|
7
7
|
from typing import Any, Mapping, Optional, Union
|
|
8
8
|
|
|
9
9
|
|
|
@@ -31,7 +31,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
31
31
|
decisions based on their current positions.
|
|
32
32
|
|
|
33
33
|
:param chain: The chain to use.
|
|
34
|
-
:param user:
|
|
34
|
+
:param user: The user to get positions for.
|
|
35
35
|
:param retries: Override the default retry configuration for this method
|
|
36
36
|
:param server_url: Override the default server URL for this method
|
|
37
37
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -141,7 +141,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
141
141
|
decisions based on their current positions.
|
|
142
142
|
|
|
143
143
|
:param chain: The chain to use.
|
|
144
|
-
:param user:
|
|
144
|
+
:param user: The user to get positions for.
|
|
145
145
|
:param retries: Override the default retry configuration for this method
|
|
146
146
|
:param server_url: Override the default server URL for this method
|
|
147
147
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -250,9 +250,9 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
250
250
|
the quote endpoint.
|
|
251
251
|
|
|
252
252
|
:param chain: The chain to use.
|
|
253
|
-
:param token_in:
|
|
254
|
-
:param token_out:
|
|
255
|
-
:param tick_spacing:
|
|
253
|
+
:param token_in: The symbol of a token in the pool.
|
|
254
|
+
:param token_out: The symbol of a token in the pool.
|
|
255
|
+
:param tick_spacing: The tick spacing of the pool
|
|
256
256
|
:param retries: Override the default retry configuration for this method
|
|
257
257
|
:param server_url: Override the default server URL for this method
|
|
258
258
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -363,9 +363,9 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
363
363
|
the quote endpoint.
|
|
364
364
|
|
|
365
365
|
:param chain: The chain to use.
|
|
366
|
-
:param token_in:
|
|
367
|
-
:param token_out:
|
|
368
|
-
:param tick_spacing:
|
|
366
|
+
:param token_in: The symbol of a token in the pool.
|
|
367
|
+
:param token_out: The symbol of a token in the pool.
|
|
368
|
+
:param tick_spacing: The tick spacing of the pool
|
|
369
369
|
:param retries: Override the default retry configuration for this method
|
|
370
370
|
:param server_url: Override the default server URL for this method
|
|
371
371
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from .sdkconfiguration import SDKConfiguration
|
|
4
|
-
from
|
|
5
|
-
from
|
|
4
|
+
from compassapisdk import errors, utils
|
|
5
|
+
from compassapisdk._hooks import (
|
|
6
6
|
AfterErrorContext,
|
|
7
7
|
AfterSuccessContext,
|
|
8
8
|
BeforeRequestContext,
|
|
9
9
|
)
|
|
10
|
-
from
|
|
10
|
+
from compassapisdk.utils import RetryConfig, SerializedRequestBody, get_body_content
|
|
11
11
|
import httpx
|
|
12
12
|
from typing import Callable, List, Mapping, Optional, Tuple
|
|
13
13
|
from urllib.parse import parse_qs, urlparse
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
5
|
-
from
|
|
6
|
-
from
|
|
4
|
+
from compassapisdk import utils
|
|
5
|
+
from compassapisdk.models import validationerror as models_validationerror
|
|
6
|
+
from compassapisdk.types import BaseModel
|
|
7
7
|
from typing import List, Optional
|
|
8
8
|
|
|
9
9
|
|
|
@@ -115,42 +115,12 @@ def close_clients(
|
|
|
115
115
|
pass
|
|
116
116
|
|
|
117
117
|
if async_client is not None and not async_client_supplied:
|
|
118
|
-
# First, try the simplest approach - use asyncio.run()
|
|
119
|
-
# This works when we're not in an async context
|
|
120
118
|
try:
|
|
121
|
-
asyncio.
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
loop = asyncio.get_running_loop()
|
|
129
|
-
# Create a task but don't wait for it
|
|
130
|
-
loop.create_task(async_client.aclose())
|
|
131
|
-
except Exception:
|
|
132
|
-
# If we can't get the loop or create a task, just ignore
|
|
133
|
-
# The GC will eventually clean up the resources
|
|
134
|
-
pass
|
|
135
|
-
# If we get "RuntimeError: There is no current event loop in thread",
|
|
136
|
-
# we're not in an async context, but asyncio.run() failed for some reason
|
|
137
|
-
# In this case, we can try to create a new event loop explicitly
|
|
138
|
-
elif "no current event loop" in str(e):
|
|
139
|
-
try:
|
|
140
|
-
# Create a new event loop and run the coroutine
|
|
141
|
-
loop = asyncio.new_event_loop()
|
|
142
|
-
asyncio.set_event_loop(loop)
|
|
143
|
-
try:
|
|
144
|
-
loop.run_until_complete(async_client.aclose())
|
|
145
|
-
finally:
|
|
146
|
-
loop.close()
|
|
147
|
-
asyncio.set_event_loop(None)
|
|
148
|
-
except Exception:
|
|
149
|
-
# If this also fails, just ignore
|
|
150
|
-
pass
|
|
151
|
-
# For any other RuntimeError, just ignore
|
|
152
|
-
else:
|
|
119
|
+
loop = asyncio.get_running_loop()
|
|
120
|
+
asyncio.run_coroutine_threadsafe(async_client.aclose(), loop)
|
|
121
|
+
except RuntimeError:
|
|
122
|
+
try:
|
|
123
|
+
asyncio.run(async_client.aclose())
|
|
124
|
+
except RuntimeError:
|
|
125
|
+
# best effort
|
|
153
126
|
pass
|
|
154
|
-
except Exception:
|
|
155
|
-
# For any other exception, just ignore
|
|
156
|
-
pass
|
|
@@ -52,18 +52,22 @@ from .aaveborrowrequest import (
|
|
|
52
52
|
AaveBorrowRequestAmountTypedDict,
|
|
53
53
|
AaveBorrowRequestTypedDict,
|
|
54
54
|
)
|
|
55
|
-
from .aavehistoricaltransactionbase import (
|
|
56
|
-
AaveHistoricalTransactionBase,
|
|
57
|
-
AaveHistoricalTransactionBaseTypedDict,
|
|
58
|
-
)
|
|
59
55
|
from .aavehistoricaltransactionsresponse import (
|
|
60
56
|
AaveHistoricalTransactionsResponse,
|
|
61
57
|
AaveHistoricalTransactionsResponseTypedDict,
|
|
58
|
+
Transaction,
|
|
59
|
+
TransactionTypedDict,
|
|
62
60
|
)
|
|
63
61
|
from .aaveliquiditychangeresponse import (
|
|
64
62
|
AaveLiquidityChangeResponse,
|
|
65
63
|
AaveLiquidityChangeResponseTypedDict,
|
|
66
64
|
)
|
|
65
|
+
from .aavelooprequest import (
|
|
66
|
+
AaveLoopRequest,
|
|
67
|
+
AaveLoopRequestTypedDict,
|
|
68
|
+
CollateralAmount,
|
|
69
|
+
CollateralAmountTypedDict,
|
|
70
|
+
)
|
|
67
71
|
from .aaverateresponse import AaveRateResponse, AaveRateResponseTypedDict
|
|
68
72
|
from .aaverepayparams import (
|
|
69
73
|
AaveRepayParams,
|
|
@@ -117,7 +121,6 @@ from .aavewithdrawrequest import (
|
|
|
117
121
|
AaveWithdrawRequestAmountTypedDict,
|
|
118
122
|
AaveWithdrawRequestTypedDict,
|
|
119
123
|
)
|
|
120
|
-
from .action import Action
|
|
121
124
|
from .aerodrome_slipstream_liquidity_provision_positionsop import (
|
|
122
125
|
AerodromeSlipstreamLiquidityProvisionPositionsChain,
|
|
123
126
|
AerodromeSlipstreamLiquidityProvisionPositionsRequest,
|
|
@@ -232,10 +235,9 @@ from .aerodromeslipstreamwithdrawliquidityprovisionrequest import (
|
|
|
232
235
|
AerodromeSlipstreamWithdrawLiquidityProvisionRequestTypedDict,
|
|
233
236
|
)
|
|
234
237
|
from .allowanceinforesponse import AllowanceInfoResponse, AllowanceInfoResponseTypedDict
|
|
235
|
-
from .borrow import Borrow, BorrowTypedDict
|
|
238
|
+
from .borrow import Borrow, BorrowTypedDict, Borrowratemode
|
|
236
239
|
from .chain import Chain
|
|
237
240
|
from .chaininfo import ChainInfo, ChainInfoTypedDict
|
|
238
|
-
from .collateralreserve import CollateralReserve, CollateralReserveTypedDict
|
|
239
241
|
from .compass_api_backend_models_morpho_read_response_get_markets_asset import (
|
|
240
242
|
CompassAPIBackendModelsMorphoReadResponseGetMarketsAsset,
|
|
241
243
|
CompassAPIBackendModelsMorphoReadResponseGetMarketsAssetTypedDict,
|
|
@@ -322,6 +324,7 @@ from .morphoborrowrequest import (
|
|
|
322
324
|
MorphoBorrowRequest,
|
|
323
325
|
MorphoBorrowRequestAmount,
|
|
324
326
|
MorphoBorrowRequestAmountTypedDict,
|
|
327
|
+
MorphoBorrowRequestChain,
|
|
325
328
|
MorphoBorrowRequestTypedDict,
|
|
326
329
|
)
|
|
327
330
|
from .morphocheckmarketpositionresponse import (
|
|
@@ -336,6 +339,7 @@ from .morphodepositrequest import (
|
|
|
336
339
|
MorphoDepositRequest,
|
|
337
340
|
MorphoDepositRequestAmount,
|
|
338
341
|
MorphoDepositRequestAmountTypedDict,
|
|
342
|
+
MorphoDepositRequestChain,
|
|
339
343
|
MorphoDepositRequestTypedDict,
|
|
340
344
|
)
|
|
341
345
|
from .morphogetmarketsresponse import (
|
|
@@ -347,17 +351,23 @@ from .morphogetvaultsresponse import (
|
|
|
347
351
|
MorphoGetVaultsResponseTypedDict,
|
|
348
352
|
)
|
|
349
353
|
from .morphomarket import MorphoMarket, MorphoMarketTypedDict
|
|
350
|
-
from .morphorepayrequest import
|
|
354
|
+
from .morphorepayrequest import (
|
|
355
|
+
MorphoRepayRequest,
|
|
356
|
+
MorphoRepayRequestChain,
|
|
357
|
+
MorphoRepayRequestTypedDict,
|
|
358
|
+
)
|
|
351
359
|
from .morphosetvaultallowancerequest import (
|
|
352
360
|
MorphoSetVaultAllowanceRequest,
|
|
353
361
|
MorphoSetVaultAllowanceRequestAmount,
|
|
354
362
|
MorphoSetVaultAllowanceRequestAmountTypedDict,
|
|
363
|
+
MorphoSetVaultAllowanceRequestChain,
|
|
355
364
|
MorphoSetVaultAllowanceRequestTypedDict,
|
|
356
365
|
)
|
|
357
366
|
from .morphosupplycollateralrequest import (
|
|
358
367
|
MorphoSupplyCollateralRequest,
|
|
359
368
|
MorphoSupplyCollateralRequestAmount,
|
|
360
369
|
MorphoSupplyCollateralRequestAmountTypedDict,
|
|
370
|
+
MorphoSupplyCollateralRequestChain,
|
|
361
371
|
MorphoSupplyCollateralRequestTypedDict,
|
|
362
372
|
)
|
|
363
373
|
from .morphovault import MorphoVault, MorphoVaultTypedDict
|
|
@@ -365,9 +375,14 @@ from .morphowithdrawcollateralrequest import (
|
|
|
365
375
|
MorphoWithdrawCollateralRequest,
|
|
366
376
|
MorphoWithdrawCollateralRequestAmount,
|
|
367
377
|
MorphoWithdrawCollateralRequestAmountTypedDict,
|
|
378
|
+
MorphoWithdrawCollateralRequestChain,
|
|
368
379
|
MorphoWithdrawCollateralRequestTypedDict,
|
|
369
380
|
)
|
|
370
|
-
from .morphowithdrawrequest import
|
|
381
|
+
from .morphowithdrawrequest import (
|
|
382
|
+
MorphoWithdrawRequest,
|
|
383
|
+
MorphoWithdrawRequestChain,
|
|
384
|
+
MorphoWithdrawRequestTypedDict,
|
|
385
|
+
)
|
|
371
386
|
from .multicallaction import (
|
|
372
387
|
Body,
|
|
373
388
|
BodyTypedDict,
|
|
@@ -388,7 +403,6 @@ from .multicallexecuterequest import (
|
|
|
388
403
|
MulticallExecuteRequestTypedDict,
|
|
389
404
|
)
|
|
390
405
|
from .portfolio import Portfolio, PortfolioTypedDict
|
|
391
|
-
from .principalreserve import PrincipalReserve, PrincipalReserveTypedDict
|
|
392
406
|
from .redeemunderlying import RedeemUnderlying, RedeemUnderlyingTypedDict
|
|
393
407
|
from .repay import Repay, RepayTypedDict
|
|
394
408
|
from .reserve import Reserve, ReserveTypedDict
|
|
@@ -513,14 +527,14 @@ from .uniswap_quote_sell_exactlyop import (
|
|
|
513
527
|
)
|
|
514
528
|
from .uniswapbuyexactlyparams import (
|
|
515
529
|
UniswapBuyExactlyParams,
|
|
516
|
-
|
|
517
|
-
|
|
530
|
+
UniswapBuyExactlyParamsAmount,
|
|
531
|
+
UniswapBuyExactlyParamsAmountTypedDict,
|
|
518
532
|
UniswapBuyExactlyParamsTypedDict,
|
|
519
533
|
)
|
|
520
534
|
from .uniswapbuyexactlyrequest import (
|
|
521
535
|
UniswapBuyExactlyRequest,
|
|
522
|
-
|
|
523
|
-
|
|
536
|
+
UniswapBuyExactlyRequestAmount,
|
|
537
|
+
UniswapBuyExactlyRequestAmountTypedDict,
|
|
524
538
|
UniswapBuyExactlyRequestTypedDict,
|
|
525
539
|
)
|
|
526
540
|
from .uniswapbuyquoteinforesponse import (
|
|
@@ -668,8 +682,6 @@ __all__ = [
|
|
|
668
682
|
"AaveBorrowRequestAmount",
|
|
669
683
|
"AaveBorrowRequestAmountTypedDict",
|
|
670
684
|
"AaveBorrowRequestTypedDict",
|
|
671
|
-
"AaveHistoricalTransactionBase",
|
|
672
|
-
"AaveHistoricalTransactionBaseTypedDict",
|
|
673
685
|
"AaveHistoricalTransactionsChain",
|
|
674
686
|
"AaveHistoricalTransactionsRequest",
|
|
675
687
|
"AaveHistoricalTransactionsRequestTypedDict",
|
|
@@ -681,6 +693,8 @@ __all__ = [
|
|
|
681
693
|
"AaveLiquidityChangeResponse",
|
|
682
694
|
"AaveLiquidityChangeResponseTypedDict",
|
|
683
695
|
"AaveLiquidityChangeToken",
|
|
696
|
+
"AaveLoopRequest",
|
|
697
|
+
"AaveLoopRequestTypedDict",
|
|
684
698
|
"AaveRateChain",
|
|
685
699
|
"AaveRateRequest",
|
|
686
700
|
"AaveRateRequestTypedDict",
|
|
@@ -734,7 +748,6 @@ __all__ = [
|
|
|
734
748
|
"AaveWithdrawRequestAmount",
|
|
735
749
|
"AaveWithdrawRequestAmountTypedDict",
|
|
736
750
|
"AaveWithdrawRequestTypedDict",
|
|
737
|
-
"Action",
|
|
738
751
|
"AerodromeLPPositionsResponse",
|
|
739
752
|
"AerodromeLPPositionsResponseTypedDict",
|
|
740
753
|
"AerodromePosition",
|
|
@@ -827,11 +840,12 @@ __all__ = [
|
|
|
827
840
|
"BodyTypedDict",
|
|
828
841
|
"Borrow",
|
|
829
842
|
"BorrowTypedDict",
|
|
843
|
+
"Borrowratemode",
|
|
830
844
|
"Chain",
|
|
831
845
|
"ChainInfo",
|
|
832
846
|
"ChainInfoTypedDict",
|
|
833
|
-
"
|
|
834
|
-
"
|
|
847
|
+
"CollateralAmount",
|
|
848
|
+
"CollateralAmountTypedDict",
|
|
835
849
|
"CompassAPIBackendModelsMorphoReadResponseGetMarketsAsset",
|
|
836
850
|
"CompassAPIBackendModelsMorphoReadResponseGetMarketsAssetTypedDict",
|
|
837
851
|
"CompassAPIBackendModelsMorphoReadResponseGetVaultsAsset",
|
|
@@ -883,6 +897,7 @@ __all__ = [
|
|
|
883
897
|
"MorphoBorrowRequest",
|
|
884
898
|
"MorphoBorrowRequestAmount",
|
|
885
899
|
"MorphoBorrowRequestAmountTypedDict",
|
|
900
|
+
"MorphoBorrowRequestChain",
|
|
886
901
|
"MorphoBorrowRequestTypedDict",
|
|
887
902
|
"MorphoCheckMarketPositionResponse",
|
|
888
903
|
"MorphoCheckMarketPositionResponseTypedDict",
|
|
@@ -891,6 +906,7 @@ __all__ = [
|
|
|
891
906
|
"MorphoDepositRequest",
|
|
892
907
|
"MorphoDepositRequestAmount",
|
|
893
908
|
"MorphoDepositRequestAmountTypedDict",
|
|
909
|
+
"MorphoDepositRequestChain",
|
|
894
910
|
"MorphoDepositRequestTypedDict",
|
|
895
911
|
"MorphoGetMarketsResponse",
|
|
896
912
|
"MorphoGetMarketsResponseTypedDict",
|
|
@@ -905,14 +921,17 @@ __all__ = [
|
|
|
905
921
|
"MorphoMarketsRequest",
|
|
906
922
|
"MorphoMarketsRequestTypedDict",
|
|
907
923
|
"MorphoRepayRequest",
|
|
924
|
+
"MorphoRepayRequestChain",
|
|
908
925
|
"MorphoRepayRequestTypedDict",
|
|
909
926
|
"MorphoSetVaultAllowanceRequest",
|
|
910
927
|
"MorphoSetVaultAllowanceRequestAmount",
|
|
911
928
|
"MorphoSetVaultAllowanceRequestAmountTypedDict",
|
|
929
|
+
"MorphoSetVaultAllowanceRequestChain",
|
|
912
930
|
"MorphoSetVaultAllowanceRequestTypedDict",
|
|
913
931
|
"MorphoSupplyCollateralRequest",
|
|
914
932
|
"MorphoSupplyCollateralRequestAmount",
|
|
915
933
|
"MorphoSupplyCollateralRequestAmountTypedDict",
|
|
934
|
+
"MorphoSupplyCollateralRequestChain",
|
|
916
935
|
"MorphoSupplyCollateralRequestTypedDict",
|
|
917
936
|
"MorphoVault",
|
|
918
937
|
"MorphoVaultPositionChain",
|
|
@@ -925,8 +944,10 @@ __all__ = [
|
|
|
925
944
|
"MorphoWithdrawCollateralRequest",
|
|
926
945
|
"MorphoWithdrawCollateralRequestAmount",
|
|
927
946
|
"MorphoWithdrawCollateralRequestAmountTypedDict",
|
|
947
|
+
"MorphoWithdrawCollateralRequestChain",
|
|
928
948
|
"MorphoWithdrawCollateralRequestTypedDict",
|
|
929
949
|
"MorphoWithdrawRequest",
|
|
950
|
+
"MorphoWithdrawRequestChain",
|
|
930
951
|
"MorphoWithdrawRequestTypedDict",
|
|
931
952
|
"MulticallAction",
|
|
932
953
|
"MulticallActionType",
|
|
@@ -939,8 +960,6 @@ __all__ = [
|
|
|
939
960
|
"MulticallExecuteRequestTypedDict",
|
|
940
961
|
"Portfolio",
|
|
941
962
|
"PortfolioTypedDict",
|
|
942
|
-
"PrincipalReserve",
|
|
943
|
-
"PrincipalReserveTypedDict",
|
|
944
963
|
"R",
|
|
945
964
|
"RTypedDict",
|
|
946
965
|
"RedeemUnderlying",
|
|
@@ -1015,13 +1034,15 @@ __all__ = [
|
|
|
1015
1034
|
"TokenTransferRequestToken",
|
|
1016
1035
|
"TokenTransferRequestTokenTypedDict",
|
|
1017
1036
|
"TokenTransferRequestTypedDict",
|
|
1037
|
+
"Transaction",
|
|
1038
|
+
"TransactionTypedDict",
|
|
1018
1039
|
"UniswapBuyExactlyParams",
|
|
1019
|
-
"
|
|
1020
|
-
"
|
|
1040
|
+
"UniswapBuyExactlyParamsAmount",
|
|
1041
|
+
"UniswapBuyExactlyParamsAmountTypedDict",
|
|
1021
1042
|
"UniswapBuyExactlyParamsTypedDict",
|
|
1022
1043
|
"UniswapBuyExactlyRequest",
|
|
1023
|
-
"
|
|
1024
|
-
"
|
|
1044
|
+
"UniswapBuyExactlyRequestAmount",
|
|
1045
|
+
"UniswapBuyExactlyRequestAmountTypedDict",
|
|
1025
1046
|
"UniswapBuyExactlyRequestTypedDict",
|
|
1026
1047
|
"UniswapBuyQuoteInfoResponse",
|
|
1027
1048
|
"UniswapBuyQuoteInfoResponseTypedDict",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
5
|
-
from
|
|
4
|
+
from compassapisdk.types import BaseModel
|
|
5
|
+
from compassapisdk.utils import FieldMetadata, QueryParamMetadata
|
|
6
6
|
from enum import Enum
|
|
7
7
|
from typing import Optional
|
|
8
8
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -18,10 +18,13 @@ class AaveHistoricalTransactionsChain(str, Enum):
|
|
|
18
18
|
|
|
19
19
|
class AaveHistoricalTransactionsRequestTypedDict(TypedDict):
|
|
20
20
|
offset: NotRequired[int]
|
|
21
|
+
r"""The offset of the first item to return."""
|
|
21
22
|
limit: NotRequired[int]
|
|
23
|
+
r"""The number of items to return."""
|
|
22
24
|
chain: AaveHistoricalTransactionsChain
|
|
23
25
|
r"""The chain to use."""
|
|
24
26
|
user_address: str
|
|
27
|
+
r"""The address of the user to get historical transactions for."""
|
|
25
28
|
|
|
26
29
|
|
|
27
30
|
class AaveHistoricalTransactionsRequest(BaseModel):
|
|
@@ -29,11 +32,13 @@ class AaveHistoricalTransactionsRequest(BaseModel):
|
|
|
29
32
|
Optional[int],
|
|
30
33
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
31
34
|
] = 0
|
|
35
|
+
r"""The offset of the first item to return."""
|
|
32
36
|
|
|
33
37
|
limit: Annotated[
|
|
34
38
|
Optional[int],
|
|
35
39
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
36
40
|
] = 100
|
|
41
|
+
r"""The number of items to return."""
|
|
37
42
|
|
|
38
43
|
chain: Annotated[
|
|
39
44
|
AaveHistoricalTransactionsChain,
|
|
@@ -44,3 +49,4 @@ class AaveHistoricalTransactionsRequest(BaseModel):
|
|
|
44
49
|
user_address: Annotated[
|
|
45
50
|
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
46
51
|
] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"
|
|
52
|
+
r"""The address of the user to get historical transactions for."""
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
5
|
-
from
|
|
4
|
+
from compassapisdk.types import BaseModel
|
|
5
|
+
from compassapisdk.utils import FieldMetadata, QueryParamMetadata
|
|
6
6
|
from enum import Enum
|
|
7
7
|
from typing_extensions import Annotated, TypedDict
|
|
8
8
|
|
|
@@ -72,13 +72,11 @@ class AaveLiquidityChangeRequestTypedDict(TypedDict):
|
|
|
72
72
|
chain: AaveLiquidityChangeChain
|
|
73
73
|
r"""The chain to use."""
|
|
74
74
|
token: AaveLiquidityChangeToken
|
|
75
|
-
r"""
|
|
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
|
-
"""
|
|
75
|
+
r"""The symbol of the asset to get liquidity change for.."""
|
|
80
76
|
start_block: int
|
|
77
|
+
r"""The start block to calculate liquidity change from."""
|
|
81
78
|
end_block: int
|
|
79
|
+
r"""The end block to calculate liquidity change to."""
|
|
82
80
|
|
|
83
81
|
|
|
84
82
|
class AaveLiquidityChangeRequest(BaseModel):
|
|
@@ -92,16 +90,14 @@ class AaveLiquidityChangeRequest(BaseModel):
|
|
|
92
90
|
AaveLiquidityChangeToken,
|
|
93
91
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
94
92
|
] = AaveLiquidityChangeToken.USDC
|
|
95
|
-
r"""
|
|
96
|
-
|
|
97
|
-
This class is used to represent the token in the system. Notice individual
|
|
98
|
-
endpoints' documentation where per chain tokens are presented.
|
|
99
|
-
"""
|
|
93
|
+
r"""The symbol of the asset to get liquidity change for.."""
|
|
100
94
|
|
|
101
95
|
start_block: Annotated[
|
|
102
96
|
int, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
103
97
|
] = 0
|
|
98
|
+
r"""The start block to calculate liquidity change from."""
|
|
104
99
|
|
|
105
100
|
end_block: Annotated[
|
|
106
101
|
int, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
107
102
|
] = 319407231
|
|
103
|
+
r"""The end block to calculate liquidity change to."""
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
5
|
-
from
|
|
4
|
+
from compassapisdk.types import BaseModel
|
|
5
|
+
from compassapisdk.utils import FieldMetadata, QueryParamMetadata
|
|
6
6
|
from enum import Enum
|
|
7
7
|
from typing_extensions import Annotated, TypedDict
|
|
8
8
|
|
|
@@ -72,11 +72,7 @@ class AaveRateRequestTypedDict(TypedDict):
|
|
|
72
72
|
chain: AaveRateChain
|
|
73
73
|
r"""The chain to use."""
|
|
74
74
|
token: AaveRateToken
|
|
75
|
-
r"""
|
|
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
|
-
"""
|
|
75
|
+
r"""The symbol of the asset to fetch the users' position on.."""
|
|
80
76
|
|
|
81
77
|
|
|
82
78
|
class AaveRateRequest(BaseModel):
|
|
@@ -90,8 +86,4 @@ class AaveRateRequest(BaseModel):
|
|
|
90
86
|
AaveRateToken,
|
|
91
87
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
92
88
|
] = AaveRateToken.USDC
|
|
93
|
-
r"""
|
|
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
|
-
"""
|
|
89
|
+
r"""The symbol of the asset to fetch the users' position on.."""
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
5
|
-
from
|
|
4
|
+
from compassapisdk.types import BaseModel
|
|
5
|
+
from compassapisdk.utils import FieldMetadata, QueryParamMetadata
|
|
6
6
|
from enum import Enum
|
|
7
7
|
from typing_extensions import Annotated, TypedDict
|
|
8
8
|
|
|
@@ -72,11 +72,7 @@ class AaveReserveOverviewRequestTypedDict(TypedDict):
|
|
|
72
72
|
chain: AaveReserveOverviewChain
|
|
73
73
|
r"""The chain to use."""
|
|
74
74
|
token: AaveReserveOverviewToken
|
|
75
|
-
r"""
|
|
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
|
-
"""
|
|
75
|
+
r"""The symbol of the asset.."""
|
|
80
76
|
|
|
81
77
|
|
|
82
78
|
class AaveReserveOverviewRequest(BaseModel):
|
|
@@ -90,8 +86,4 @@ class AaveReserveOverviewRequest(BaseModel):
|
|
|
90
86
|
AaveReserveOverviewToken,
|
|
91
87
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
92
88
|
] = AaveReserveOverviewToken.USDC
|
|
93
|
-
r"""
|
|
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
|
-
"""
|
|
89
|
+
r"""The symbol of the asset.."""
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
5
|
-
from
|
|
4
|
+
from compassapisdk.types import BaseModel
|
|
5
|
+
from compassapisdk.utils import FieldMetadata, QueryParamMetadata
|
|
6
6
|
from enum import Enum
|
|
7
7
|
from typing_extensions import Annotated, TypedDict
|
|
8
8
|
|
|
@@ -72,11 +72,7 @@ class AaveTokenPriceRequestTypedDict(TypedDict):
|
|
|
72
72
|
chain: AaveTokenPriceChain
|
|
73
73
|
r"""The chain to use."""
|
|
74
74
|
token: AaveTokenPriceToken
|
|
75
|
-
r"""
|
|
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
|
-
"""
|
|
75
|
+
r"""The symbol of the asset whose price you want.."""
|
|
80
76
|
|
|
81
77
|
|
|
82
78
|
class AaveTokenPriceRequest(BaseModel):
|
|
@@ -90,8 +86,4 @@ class AaveTokenPriceRequest(BaseModel):
|
|
|
90
86
|
AaveTokenPriceToken,
|
|
91
87
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
92
88
|
] = AaveTokenPriceToken.USDC
|
|
93
|
-
r"""
|
|
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
|
-
"""
|
|
89
|
+
r"""The symbol of the asset whose price you want.."""
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
5
|
-
from
|
|
4
|
+
from compassapisdk.types import BaseModel
|
|
5
|
+
from compassapisdk.utils import FieldMetadata, QueryParamMetadata
|
|
6
6
|
from enum import Enum
|
|
7
7
|
from typing_extensions import Annotated, TypedDict
|
|
8
8
|
|
|
@@ -72,12 +72,9 @@ class AaveUserPositionPerTokenRequestTypedDict(TypedDict):
|
|
|
72
72
|
chain: AaveUserPositionPerTokenChain
|
|
73
73
|
r"""The chain to use."""
|
|
74
74
|
user: str
|
|
75
|
+
r"""The user to fetch the token-specific position of."""
|
|
75
76
|
token: AaveUserPositionPerTokenToken
|
|
76
|
-
r"""
|
|
77
|
-
|
|
78
|
-
This class is used to represent the token in the system. Notice individual
|
|
79
|
-
endpoints' documentation where per chain tokens are presented.
|
|
80
|
-
"""
|
|
77
|
+
r"""The symbol of the asset to fetch the user's position on.."""
|
|
81
78
|
|
|
82
79
|
|
|
83
80
|
class AaveUserPositionPerTokenRequest(BaseModel):
|
|
@@ -90,13 +87,10 @@ class AaveUserPositionPerTokenRequest(BaseModel):
|
|
|
90
87
|
user: Annotated[
|
|
91
88
|
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
92
89
|
] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"
|
|
90
|
+
r"""The user to fetch the token-specific position of."""
|
|
93
91
|
|
|
94
92
|
token: Annotated[
|
|
95
93
|
AaveUserPositionPerTokenToken,
|
|
96
94
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
97
95
|
] = AaveUserPositionPerTokenToken.USDC
|
|
98
|
-
r"""
|
|
99
|
-
|
|
100
|
-
This class is used to represent the token in the system. Notice individual
|
|
101
|
-
endpoints' documentation where per chain tokens are presented.
|
|
102
|
-
"""
|
|
96
|
+
r"""The symbol of the asset to fetch the user's position on.."""
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
5
|
-
from
|
|
4
|
+
from compassapisdk.types import BaseModel
|
|
5
|
+
from compassapisdk.utils import FieldMetadata, QueryParamMetadata
|
|
6
6
|
from enum import Enum
|
|
7
7
|
from typing_extensions import Annotated, TypedDict
|
|
8
8
|
|
|
@@ -19,6 +19,7 @@ class AaveUserPositionSummaryRequestTypedDict(TypedDict):
|
|
|
19
19
|
chain: AaveUserPositionSummaryChain
|
|
20
20
|
r"""The chain to use."""
|
|
21
21
|
user: str
|
|
22
|
+
r"""The user to get position summary for."""
|
|
22
23
|
|
|
23
24
|
|
|
24
25
|
class AaveUserPositionSummaryRequest(BaseModel):
|
|
@@ -31,3 +32,4 @@ class AaveUserPositionSummaryRequest(BaseModel):
|
|
|
31
32
|
user: Annotated[
|
|
32
33
|
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
33
34
|
] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"
|
|
35
|
+
r"""The user to get position summary for."""
|