compass_api_sdk 0.1.6__py3-none-any.whl → 0.1.8__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/_hooks/registration.py +13 -0
- {compassapisdk → compass_api_sdk}/_hooks/sdkhooks.py +1 -1
- {compassapisdk → compass_api_sdk}/_hooks/types.py +1 -1
- {compassapisdk → compass_api_sdk}/_version.py +3 -3
- {compassapisdk → compass_api_sdk}/aave_v3.py +229 -3
- {compassapisdk → compass_api_sdk}/aerodrome_slipstream.py +3 -3
- {compassapisdk → compass_api_sdk}/basesdk.py +3 -3
- {compassapisdk → compass_api_sdk}/errors/httpvalidationerror.py +3 -3
- {compassapisdk → compass_api_sdk}/models/__init__.py +60 -24
- compass_api_sdk/models/aave_historical_transactionsop.py +49 -0
- {compassapisdk → compass_api_sdk}/models/aave_liquidity_changeop.py +5 -2
- {compassapisdk → compass_api_sdk}/models/aave_token_priceop.py +5 -2
- {compassapisdk → compass_api_sdk}/models/aave_user_position_per_tokenop.py +5 -2
- {compassapisdk → compass_api_sdk}/models/aave_user_position_summaryop.py +5 -2
- {compassapisdk → compass_api_sdk}/models/aaveborrowparams.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aaveborrowrequest.py +1 -1
- compass_api_sdk/models/aavehistoricaltransactionbase.py +113 -0
- compass_api_sdk/models/aavehistoricaltransactionsresponse.py +31 -0
- {compassapisdk → compass_api_sdk}/models/aaveliquiditychangeresponse.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aaverepayparams.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aaverepayrequest.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aavesupplyparams.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aavesupplyrequest.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aavetokenpriceresponse.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aaveuserpositionpertokenresponse.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aaveuserpositionsummaryresponse.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aavewithdrawparams.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aavewithdrawrequest.py +1 -1
- compass_api_sdk/models/action.py +14 -0
- {compassapisdk → compass_api_sdk}/models/aerodrome_slipstream_liquidity_provision_positionsop.py +5 -2
- {compassapisdk → compass_api_sdk}/models/aerodrome_slipstream_pool_priceop.py +5 -2
- {compassapisdk → compass_api_sdk}/models/aerodromeaddliquidityethparams.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aerodromeaddliquidityparams.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aerodromelppositionsresponse.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aerodromeposition.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aerodromeremoveliquidityethrequest.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aerodromeremoveliquidityrequest.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aerodromeslipstreambuyexactlyparams.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aerodromeslipstreambuyexactlyrequest.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aerodromeslipstreamincreaseliquidityprovisionparams.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aerodromeslipstreamincreaseliquidityprovisionrequest.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aerodromeslipstreammintliquidityprovisionparams.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aerodromeslipstreammintliquidityprovisionrequest.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aerodromeslipstreampoolpriceresponse.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aerodromeslipstreamsellexactlyparams.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aerodromeslipstreamsellexactlyrequest.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aerodromeslipstreamwithdrawliquidityprovisionparams.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aerodromeslipstreamwithdrawliquidityprovisionrequest.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aerodromeswapethfortokenparams.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aerodromeswaptokenforethparams.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aerodromeswaptokensparams.py +1 -1
- {compassapisdk → compass_api_sdk}/models/allowanceinforesponse.py +1 -1
- compass_api_sdk/models/borrow.py +33 -0
- {compassapisdk → compass_api_sdk}/models/chain.py +3 -0
- {compassapisdk → compass_api_sdk}/models/chaininfo.py +1 -1
- compass_api_sdk/models/collateralreserve.py +16 -0
- {compassapisdk → compass_api_sdk}/models/compass_api_backend_models_morpho_read_response_get_markets_asset.py +1 -1
- {compassapisdk → compass_api_sdk}/models/compass_api_backend_models_morpho_read_response_get_vaults_asset.py +1 -1
- {compassapisdk → compass_api_sdk}/models/ensnameinforesponse.py +1 -1
- {compassapisdk → compass_api_sdk}/models/generic_allowanceop.py +5 -2
- {compassapisdk → compass_api_sdk}/models/generic_ensop.py +5 -2
- {compassapisdk → compass_api_sdk}/models/generic_portfolioop.py +5 -2
- {compassapisdk → compass_api_sdk}/models/generic_supported_tokensop.py +5 -2
- {compassapisdk → compass_api_sdk}/models/generic_visualize_portfolioop.py +5 -2
- {compassapisdk → compass_api_sdk}/models/image.py +1 -1
- {compassapisdk → compass_api_sdk}/models/increaseallowanceanyparams.py +1 -1
- {compassapisdk → compass_api_sdk}/models/increaseallowanceparams.py +1 -1
- {compassapisdk → compass_api_sdk}/models/increaseallowancerequest.py +1 -1
- compass_api_sdk/models/liquidationcall.py +37 -0
- {compassapisdk → compass_api_sdk}/models/marketstate.py +1 -1
- {compassapisdk → compass_api_sdk}/models/morpho_market_positionop.py +5 -2
- {compassapisdk → compass_api_sdk}/models/morpho_marketsop.py +5 -2
- {compassapisdk → compass_api_sdk}/models/morpho_vault_positionop.py +5 -2
- {compassapisdk → compass_api_sdk}/models/morpho_vaultsop.py +5 -2
- {compassapisdk → compass_api_sdk}/models/morphoborrowrequest.py +1 -1
- {compassapisdk → compass_api_sdk}/models/morphocheckmarketpositionresponse.py +1 -1
- {compassapisdk → compass_api_sdk}/models/morphocheckvaultpositionresponse.py +1 -1
- {compassapisdk → compass_api_sdk}/models/morphodepositrequest.py +1 -1
- {compassapisdk → compass_api_sdk}/models/morphogetmarketsresponse.py +1 -1
- {compassapisdk → compass_api_sdk}/models/morphogetvaultsresponse.py +1 -1
- {compassapisdk → compass_api_sdk}/models/morphomarket.py +1 -1
- {compassapisdk → compass_api_sdk}/models/morphorepayrequest.py +1 -1
- {compassapisdk → compass_api_sdk}/models/morphosetvaultallowancerequest.py +1 -1
- {compassapisdk → compass_api_sdk}/models/morphosupplycollateralrequest.py +1 -1
- {compassapisdk → compass_api_sdk}/models/morphovault.py +1 -1
- {compassapisdk → compass_api_sdk}/models/morphowithdrawcollateralrequest.py +1 -1
- {compassapisdk → compass_api_sdk}/models/morphowithdrawrequest.py +1 -1
- {compassapisdk → compass_api_sdk}/models/multicallaction.py +1 -1
- {compassapisdk → compass_api_sdk}/models/multicallauthorizationrequest.py +1 -1
- {compassapisdk → compass_api_sdk}/models/multicallauthorizationresponse.py +1 -1
- {compassapisdk → compass_api_sdk}/models/multicallexecuterequest.py +1 -1
- {compassapisdk → compass_api_sdk}/models/portfolio.py +1 -1
- compass_api_sdk/models/principalreserve.py +16 -0
- compass_api_sdk/models/redeemunderlying.py +21 -0
- compass_api_sdk/models/repay.py +21 -0
- compass_api_sdk/models/reserve.py +16 -0
- {compassapisdk → compass_api_sdk}/models/security.py +2 -2
- {compassapisdk → compass_api_sdk}/models/signedauthorization.py +1 -1
- {compassapisdk → compass_api_sdk}/models/sky_positionop.py +2 -2
- {compassapisdk → compass_api_sdk}/models/skybuyrequest.py +2 -2
- {compassapisdk → compass_api_sdk}/models/skycheckpositionresponse.py +1 -1
- {compassapisdk → compass_api_sdk}/models/skydepositrequest.py +2 -2
- {compassapisdk → compass_api_sdk}/models/skysellrequest.py +2 -2
- {compassapisdk → compass_api_sdk}/models/skywithdrawrequest.py +2 -2
- compass_api_sdk/models/supply.py +21 -0
- compass_api_sdk/models/swapborrowrate.py +27 -0
- {compassapisdk → compass_api_sdk}/models/token_addressop.py +5 -2
- {compassapisdk → compass_api_sdk}/models/token_balanceop.py +5 -2
- {compassapisdk → compass_api_sdk}/models/token_priceop.py +5 -2
- {compassapisdk → compass_api_sdk}/models/tokenaddressresponse.py +1 -1
- {compassapisdk → compass_api_sdk}/models/tokenbalance.py +1 -1
- {compassapisdk → compass_api_sdk}/models/tokenbalanceresponse.py +1 -1
- {compassapisdk → compass_api_sdk}/models/tokeninfo.py +1 -1
- {compassapisdk → compass_api_sdk}/models/tokenpriceresponse.py +1 -1
- {compassapisdk → compass_api_sdk}/models/tokentransfererc20params.py +1 -1
- {compassapisdk → compass_api_sdk}/models/tokentransferrequest.py +1 -1
- {compassapisdk → compass_api_sdk}/models/uniswap_liquidity_provision_in_rangeop.py +5 -2
- {compassapisdk → compass_api_sdk}/models/uniswap_liquidity_provision_positionsop.py +5 -2
- {compassapisdk → compass_api_sdk}/models/uniswap_pool_priceop.py +5 -2
- {compassapisdk → compass_api_sdk}/models/uniswap_quote_buy_exactlyop.py +5 -2
- {compassapisdk → compass_api_sdk}/models/uniswap_quote_sell_exactlyop.py +5 -2
- {compassapisdk → compass_api_sdk}/models/uniswapbuyexactlyparams.py +5 -17
- {compassapisdk → compass_api_sdk}/models/uniswapbuyexactlyrequest.py +5 -17
- {compassapisdk → compass_api_sdk}/models/uniswapbuyquoteinforesponse.py +1 -1
- {compassapisdk → compass_api_sdk}/models/uniswapcheckinrangeresponse.py +1 -1
- {compassapisdk → compass_api_sdk}/models/uniswapincreaseliquidityprovisionparams.py +1 -1
- {compassapisdk → compass_api_sdk}/models/uniswapincreaseliquidityprovisionrequest.py +1 -1
- {compassapisdk → compass_api_sdk}/models/uniswaplppositionsinforesponse.py +1 -1
- {compassapisdk → compass_api_sdk}/models/uniswapmintliquidityprovisionparams.py +1 -1
- {compassapisdk → compass_api_sdk}/models/uniswapmintliquidityprovisionrequest.py +1 -1
- {compassapisdk → compass_api_sdk}/models/uniswappoolpriceresponse.py +1 -1
- {compassapisdk → compass_api_sdk}/models/uniswappositionssolidityresponse.py +1 -1
- {compassapisdk → compass_api_sdk}/models/uniswapsellexactlyparams.py +11 -23
- {compassapisdk → compass_api_sdk}/models/uniswapsellexactlyrequest.py +12 -24
- {compassapisdk → compass_api_sdk}/models/uniswapsellquoteinforesponse.py +1 -1
- {compassapisdk → compass_api_sdk}/models/uniswapwithdrawliquidityprovisionparams.py +1 -1
- {compassapisdk → compass_api_sdk}/models/uniswapwithdrawliquidityprovisionrequest.py +1 -1
- {compassapisdk → compass_api_sdk}/models/unsignedmulticalltransaction.py +1 -1
- {compassapisdk → compass_api_sdk}/models/unsignedtransaction.py +1 -1
- {compassapisdk → compass_api_sdk}/models/unwrapwethparams.py +1 -1
- {compassapisdk → compass_api_sdk}/models/unwrapwethrequest.py +1 -1
- compass_api_sdk/models/usageascollateral.py +21 -0
- {compassapisdk → compass_api_sdk}/models/validationerror.py +1 -1
- {compassapisdk → compass_api_sdk}/models/vaultstate.py +1 -1
- {compassapisdk → compass_api_sdk}/models/weeklyapys.py +1 -1
- {compassapisdk → compass_api_sdk}/models/wrapethparams.py +1 -1
- {compassapisdk → compass_api_sdk}/models/wrapethrequest.py +1 -1
- {compassapisdk → compass_api_sdk}/morpho.py +3 -3
- {compassapisdk → compass_api_sdk}/sdk.py +11 -11
- {compassapisdk → compass_api_sdk}/sdkconfiguration.py +4 -4
- {compassapisdk → compass_api_sdk}/sky.py +3 -3
- {compassapisdk → compass_api_sdk}/token_sdk.py +3 -3
- {compassapisdk → compass_api_sdk}/transaction_batching.py +3 -3
- {compassapisdk → compass_api_sdk}/uniswap_v3.py +25 -41
- {compassapisdk → compass_api_sdk}/universal.py +3 -3
- {compass_api_sdk-0.1.6.dist-info → compass_api_sdk-0.1.8.dist-info}/METADATA +35 -34
- compass_api_sdk-0.1.8.dist-info/RECORD +187 -0
- {compass_api_sdk-0.1.6.dist-info → compass_api_sdk-0.1.8.dist-info}/WHEEL +1 -1
- compass_api_sdk-0.1.6.dist-info/RECORD +0 -172
- {compassapisdk → compass_api_sdk}/__init__.py +0 -0
- {compassapisdk → compass_api_sdk}/_hooks/__init__.py +0 -0
- {compassapisdk → compass_api_sdk}/errors/__init__.py +0 -0
- {compassapisdk → compass_api_sdk}/errors/apierror.py +0 -0
- {compassapisdk → compass_api_sdk}/httpclient.py +0 -0
- {compassapisdk → compass_api_sdk}/models/contractname.py +0 -0
- {compassapisdk → compass_api_sdk}/models/feeenum.py +0 -0
- {compassapisdk → compass_api_sdk}/models/interestratemode.py +0 -0
- {compassapisdk → compass_api_sdk}/models/multicallactiontype.py +19 -19
- {compassapisdk → compass_api_sdk}/models/token_enum.py +0 -0
- {compassapisdk → compass_api_sdk}/py.typed +0 -0
- {compassapisdk → compass_api_sdk}/types/__init__.py +0 -0
- {compassapisdk → compass_api_sdk}/types/basemodel.py +0 -0
- {compassapisdk → compass_api_sdk}/utils/__init__.py +0 -0
- {compassapisdk → compass_api_sdk}/utils/annotations.py +0 -0
- {compassapisdk → compass_api_sdk}/utils/datetimes.py +0 -0
- {compassapisdk → compass_api_sdk}/utils/enums.py +0 -0
- {compassapisdk → compass_api_sdk}/utils/eventstreaming.py +0 -0
- {compassapisdk → compass_api_sdk}/utils/forms.py +0 -0
- {compassapisdk → compass_api_sdk}/utils/headers.py +0 -0
- {compassapisdk → compass_api_sdk}/utils/logger.py +0 -0
- {compassapisdk → compass_api_sdk}/utils/metadata.py +0 -0
- {compassapisdk → compass_api_sdk}/utils/queryparams.py +0 -0
- {compassapisdk → compass_api_sdk}/utils/requestbodies.py +0 -0
- {compassapisdk → compass_api_sdk}/utils/retries.py +0 -0
- {compassapisdk → compass_api_sdk}/utils/security.py +0 -0
- {compassapisdk → compass_api_sdk}/utils/serializers.py +0 -0
- {compassapisdk → compass_api_sdk}/utils/url.py +0 -0
- {compassapisdk → compass_api_sdk}/utils/values.py +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from .types import Hooks
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
# This file is only ever generated once on the first generation and then is free to be modified.
|
|
5
|
+
# Any hooks you wish to add should be registered in the init_hooks function. Feel free to define them
|
|
6
|
+
# in this file or in separate files in the hooks folder.
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def init_hooks(hooks: Hooks):
|
|
10
|
+
# pylint: disable=unused-argument
|
|
11
|
+
"""Add hooks by calling hooks.register{sdk_init/before_request/after_success/after_error}Hook
|
|
12
|
+
with an instance of a hook that implements that specific Hook interface
|
|
13
|
+
Hooks are registered per SDK instance, and are valid for the lifetime of the SDK instance"""
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from abc import ABC, abstractmethod
|
|
4
|
-
from
|
|
4
|
+
from compass_api_sdk.httpclient import HttpClient
|
|
5
5
|
import httpx
|
|
6
6
|
from typing import Any, Callable, List, Optional, Tuple, Union
|
|
7
7
|
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import importlib.metadata
|
|
4
4
|
|
|
5
5
|
__title__: str = "compass_api_sdk"
|
|
6
|
-
__version__: str = "0.1.
|
|
6
|
+
__version__: str = "0.1.8"
|
|
7
7
|
__openapi_doc_version__: str = "0.0.1"
|
|
8
|
-
__gen_version__: str = "2.
|
|
9
|
-
__user_agent__: str = "speakeasy-sdk/python 0.1.
|
|
8
|
+
__gen_version__: str = "2.597.9"
|
|
9
|
+
__user_agent__: str = "speakeasy-sdk/python 0.1.8 2.597.9 0.0.1 compass_api_sdk"
|
|
10
10
|
|
|
11
11
|
try:
|
|
12
12
|
if __package__ is not None:
|
|
@@ -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 compass_api_sdk import errors, models, utils
|
|
5
|
+
from compass_api_sdk._hooks import HookContext
|
|
6
|
+
from compass_api_sdk.types import OptionalNullable, UNSET
|
|
7
7
|
from typing import Any, Mapping, Optional, Union
|
|
8
8
|
|
|
9
9
|
|
|
@@ -902,6 +902,232 @@ class AaveV3(BaseSDK):
|
|
|
902
902
|
http_res,
|
|
903
903
|
)
|
|
904
904
|
|
|
905
|
+
def historical_transactions(
|
|
906
|
+
self,
|
|
907
|
+
*,
|
|
908
|
+
chain: models.AaveHistoricalTransactionsChain = models.AaveHistoricalTransactionsChain.ARBITRUM_MAINNET,
|
|
909
|
+
user_address: str = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
910
|
+
offset: Optional[int] = 0,
|
|
911
|
+
limit: Optional[int] = 100,
|
|
912
|
+
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
913
|
+
server_url: Optional[str] = None,
|
|
914
|
+
timeout_ms: Optional[int] = None,
|
|
915
|
+
http_headers: Optional[Mapping[str, str]] = None,
|
|
916
|
+
) -> models.AaveHistoricalTransactionsResponse:
|
|
917
|
+
r"""Historical transactions
|
|
918
|
+
|
|
919
|
+
This endpoint retrieves historical transactions for a user on the AAVE platform.
|
|
920
|
+
|
|
921
|
+
It returns a list of transactions including deposits, withdrawals, borrows, and
|
|
922
|
+
repayments. Each transaction includes details such as the token, amount, timestamp,
|
|
923
|
+
and transaction type. This provides a comprehensive view of the user's historical
|
|
924
|
+
activity within the AAVE protocol.
|
|
925
|
+
|
|
926
|
+
:param chain: The chain to use.
|
|
927
|
+
:param user_address:
|
|
928
|
+
:param offset:
|
|
929
|
+
:param limit:
|
|
930
|
+
:param retries: Override the default retry configuration for this method
|
|
931
|
+
:param server_url: Override the default server URL for this method
|
|
932
|
+
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
933
|
+
:param http_headers: Additional headers to set or replace on requests.
|
|
934
|
+
"""
|
|
935
|
+
base_url = None
|
|
936
|
+
url_variables = None
|
|
937
|
+
if timeout_ms is None:
|
|
938
|
+
timeout_ms = self.sdk_configuration.timeout_ms
|
|
939
|
+
|
|
940
|
+
if server_url is not None:
|
|
941
|
+
base_url = server_url
|
|
942
|
+
else:
|
|
943
|
+
base_url = self._get_url(base_url, url_variables)
|
|
944
|
+
|
|
945
|
+
request = models.AaveHistoricalTransactionsRequest(
|
|
946
|
+
offset=offset,
|
|
947
|
+
limit=limit,
|
|
948
|
+
chain=chain,
|
|
949
|
+
user_address=user_address,
|
|
950
|
+
)
|
|
951
|
+
|
|
952
|
+
req = self._build_request(
|
|
953
|
+
method="GET",
|
|
954
|
+
path="/v0/aave/historical_transactions/get",
|
|
955
|
+
base_url=base_url,
|
|
956
|
+
url_variables=url_variables,
|
|
957
|
+
request=request,
|
|
958
|
+
request_body_required=False,
|
|
959
|
+
request_has_path_params=False,
|
|
960
|
+
request_has_query_params=True,
|
|
961
|
+
user_agent_header="user-agent",
|
|
962
|
+
accept_header_value="application/json",
|
|
963
|
+
http_headers=http_headers,
|
|
964
|
+
security=self.sdk_configuration.security,
|
|
965
|
+
timeout_ms=timeout_ms,
|
|
966
|
+
)
|
|
967
|
+
|
|
968
|
+
if retries == UNSET:
|
|
969
|
+
if self.sdk_configuration.retry_config is not UNSET:
|
|
970
|
+
retries = self.sdk_configuration.retry_config
|
|
971
|
+
|
|
972
|
+
retry_config = None
|
|
973
|
+
if isinstance(retries, utils.RetryConfig):
|
|
974
|
+
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
|
975
|
+
|
|
976
|
+
http_res = self.do_request(
|
|
977
|
+
hook_ctx=HookContext(
|
|
978
|
+
base_url=base_url or "",
|
|
979
|
+
operation_id="aave_historical_transactions",
|
|
980
|
+
oauth2_scopes=[],
|
|
981
|
+
security_source=self.sdk_configuration.security,
|
|
982
|
+
),
|
|
983
|
+
request=req,
|
|
984
|
+
error_status_codes=["422", "4XX", "5XX"],
|
|
985
|
+
retry_config=retry_config,
|
|
986
|
+
)
|
|
987
|
+
|
|
988
|
+
response_data: Any = None
|
|
989
|
+
if utils.match_response(http_res, "200", "application/json"):
|
|
990
|
+
return utils.unmarshal_json(
|
|
991
|
+
http_res.text, models.AaveHistoricalTransactionsResponse
|
|
992
|
+
)
|
|
993
|
+
if utils.match_response(http_res, "422", "application/json"):
|
|
994
|
+
response_data = utils.unmarshal_json(
|
|
995
|
+
http_res.text, errors.HTTPValidationErrorData
|
|
996
|
+
)
|
|
997
|
+
raise errors.HTTPValidationError(data=response_data)
|
|
998
|
+
if utils.match_response(http_res, "4XX", "*"):
|
|
999
|
+
http_res_text = utils.stream_to_text(http_res)
|
|
1000
|
+
raise errors.APIError(
|
|
1001
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
|
1002
|
+
)
|
|
1003
|
+
if utils.match_response(http_res, "5XX", "*"):
|
|
1004
|
+
http_res_text = utils.stream_to_text(http_res)
|
|
1005
|
+
raise errors.APIError(
|
|
1006
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
|
1007
|
+
)
|
|
1008
|
+
|
|
1009
|
+
content_type = http_res.headers.get("Content-Type")
|
|
1010
|
+
http_res_text = utils.stream_to_text(http_res)
|
|
1011
|
+
raise errors.APIError(
|
|
1012
|
+
f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
|
|
1013
|
+
http_res.status_code,
|
|
1014
|
+
http_res_text,
|
|
1015
|
+
http_res,
|
|
1016
|
+
)
|
|
1017
|
+
|
|
1018
|
+
async def historical_transactions_async(
|
|
1019
|
+
self,
|
|
1020
|
+
*,
|
|
1021
|
+
chain: models.AaveHistoricalTransactionsChain = models.AaveHistoricalTransactionsChain.ARBITRUM_MAINNET,
|
|
1022
|
+
user_address: str = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
1023
|
+
offset: Optional[int] = 0,
|
|
1024
|
+
limit: Optional[int] = 100,
|
|
1025
|
+
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
1026
|
+
server_url: Optional[str] = None,
|
|
1027
|
+
timeout_ms: Optional[int] = None,
|
|
1028
|
+
http_headers: Optional[Mapping[str, str]] = None,
|
|
1029
|
+
) -> models.AaveHistoricalTransactionsResponse:
|
|
1030
|
+
r"""Historical transactions
|
|
1031
|
+
|
|
1032
|
+
This endpoint retrieves historical transactions for a user on the AAVE platform.
|
|
1033
|
+
|
|
1034
|
+
It returns a list of transactions including deposits, withdrawals, borrows, and
|
|
1035
|
+
repayments. Each transaction includes details such as the token, amount, timestamp,
|
|
1036
|
+
and transaction type. This provides a comprehensive view of the user's historical
|
|
1037
|
+
activity within the AAVE protocol.
|
|
1038
|
+
|
|
1039
|
+
:param chain: The chain to use.
|
|
1040
|
+
:param user_address:
|
|
1041
|
+
:param offset:
|
|
1042
|
+
:param limit:
|
|
1043
|
+
:param retries: Override the default retry configuration for this method
|
|
1044
|
+
:param server_url: Override the default server URL for this method
|
|
1045
|
+
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
1046
|
+
:param http_headers: Additional headers to set or replace on requests.
|
|
1047
|
+
"""
|
|
1048
|
+
base_url = None
|
|
1049
|
+
url_variables = None
|
|
1050
|
+
if timeout_ms is None:
|
|
1051
|
+
timeout_ms = self.sdk_configuration.timeout_ms
|
|
1052
|
+
|
|
1053
|
+
if server_url is not None:
|
|
1054
|
+
base_url = server_url
|
|
1055
|
+
else:
|
|
1056
|
+
base_url = self._get_url(base_url, url_variables)
|
|
1057
|
+
|
|
1058
|
+
request = models.AaveHistoricalTransactionsRequest(
|
|
1059
|
+
offset=offset,
|
|
1060
|
+
limit=limit,
|
|
1061
|
+
chain=chain,
|
|
1062
|
+
user_address=user_address,
|
|
1063
|
+
)
|
|
1064
|
+
|
|
1065
|
+
req = self._build_request_async(
|
|
1066
|
+
method="GET",
|
|
1067
|
+
path="/v0/aave/historical_transactions/get",
|
|
1068
|
+
base_url=base_url,
|
|
1069
|
+
url_variables=url_variables,
|
|
1070
|
+
request=request,
|
|
1071
|
+
request_body_required=False,
|
|
1072
|
+
request_has_path_params=False,
|
|
1073
|
+
request_has_query_params=True,
|
|
1074
|
+
user_agent_header="user-agent",
|
|
1075
|
+
accept_header_value="application/json",
|
|
1076
|
+
http_headers=http_headers,
|
|
1077
|
+
security=self.sdk_configuration.security,
|
|
1078
|
+
timeout_ms=timeout_ms,
|
|
1079
|
+
)
|
|
1080
|
+
|
|
1081
|
+
if retries == UNSET:
|
|
1082
|
+
if self.sdk_configuration.retry_config is not UNSET:
|
|
1083
|
+
retries = self.sdk_configuration.retry_config
|
|
1084
|
+
|
|
1085
|
+
retry_config = None
|
|
1086
|
+
if isinstance(retries, utils.RetryConfig):
|
|
1087
|
+
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
|
1088
|
+
|
|
1089
|
+
http_res = await self.do_request_async(
|
|
1090
|
+
hook_ctx=HookContext(
|
|
1091
|
+
base_url=base_url or "",
|
|
1092
|
+
operation_id="aave_historical_transactions",
|
|
1093
|
+
oauth2_scopes=[],
|
|
1094
|
+
security_source=self.sdk_configuration.security,
|
|
1095
|
+
),
|
|
1096
|
+
request=req,
|
|
1097
|
+
error_status_codes=["422", "4XX", "5XX"],
|
|
1098
|
+
retry_config=retry_config,
|
|
1099
|
+
)
|
|
1100
|
+
|
|
1101
|
+
response_data: Any = None
|
|
1102
|
+
if utils.match_response(http_res, "200", "application/json"):
|
|
1103
|
+
return utils.unmarshal_json(
|
|
1104
|
+
http_res.text, models.AaveHistoricalTransactionsResponse
|
|
1105
|
+
)
|
|
1106
|
+
if utils.match_response(http_res, "422", "application/json"):
|
|
1107
|
+
response_data = utils.unmarshal_json(
|
|
1108
|
+
http_res.text, errors.HTTPValidationErrorData
|
|
1109
|
+
)
|
|
1110
|
+
raise errors.HTTPValidationError(data=response_data)
|
|
1111
|
+
if utils.match_response(http_res, "4XX", "*"):
|
|
1112
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
|
1113
|
+
raise errors.APIError(
|
|
1114
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
|
1115
|
+
)
|
|
1116
|
+
if utils.match_response(http_res, "5XX", "*"):
|
|
1117
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
|
1118
|
+
raise errors.APIError(
|
|
1119
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
|
1120
|
+
)
|
|
1121
|
+
|
|
1122
|
+
content_type = http_res.headers.get("Content-Type")
|
|
1123
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
|
1124
|
+
raise errors.APIError(
|
|
1125
|
+
f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
|
|
1126
|
+
http_res.status_code,
|
|
1127
|
+
http_res_text,
|
|
1128
|
+
http_res,
|
|
1129
|
+
)
|
|
1130
|
+
|
|
905
1131
|
def supply(
|
|
906
1132
|
self,
|
|
907
1133
|
*,
|
|
@@ -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 compass_api_sdk import errors, models, utils
|
|
5
|
+
from compass_api_sdk._hooks import HookContext
|
|
6
|
+
from compass_api_sdk.types import OptionalNullable, UNSET
|
|
7
7
|
from typing import Any, Mapping, Optional, Union
|
|
8
8
|
|
|
9
9
|
|
|
@@ -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 compass_api_sdk import errors, utils
|
|
5
|
+
from compass_api_sdk._hooks import (
|
|
6
6
|
AfterErrorContext,
|
|
7
7
|
AfterSuccessContext,
|
|
8
8
|
BeforeRequestContext,
|
|
9
9
|
)
|
|
10
|
-
from
|
|
10
|
+
from compass_api_sdk.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 compass_api_sdk import utils
|
|
5
|
+
from compass_api_sdk.models import validationerror as models_validationerror
|
|
6
|
+
from compass_api_sdk.types import BaseModel
|
|
7
7
|
from typing import List, Optional
|
|
8
8
|
|
|
9
9
|
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
|
+
from .aave_historical_transactionsop import (
|
|
4
|
+
AaveHistoricalTransactionsChain,
|
|
5
|
+
AaveHistoricalTransactionsRequest,
|
|
6
|
+
AaveHistoricalTransactionsRequestTypedDict,
|
|
7
|
+
)
|
|
3
8
|
from .aave_liquidity_changeop import (
|
|
4
9
|
AaveLiquidityChangeChain,
|
|
5
10
|
AaveLiquidityChangeRequest,
|
|
@@ -35,6 +40,14 @@ from .aaveborrowrequest import (
|
|
|
35
40
|
AaveBorrowRequestAmountTypedDict,
|
|
36
41
|
AaveBorrowRequestTypedDict,
|
|
37
42
|
)
|
|
43
|
+
from .aavehistoricaltransactionbase import (
|
|
44
|
+
AaveHistoricalTransactionBase,
|
|
45
|
+
AaveHistoricalTransactionBaseTypedDict,
|
|
46
|
+
)
|
|
47
|
+
from .aavehistoricaltransactionsresponse import (
|
|
48
|
+
AaveHistoricalTransactionsResponse,
|
|
49
|
+
AaveHistoricalTransactionsResponseTypedDict,
|
|
50
|
+
)
|
|
38
51
|
from .aaveliquiditychangeresponse import (
|
|
39
52
|
AaveLiquidityChangeResponse,
|
|
40
53
|
AaveLiquidityChangeResponseTypedDict,
|
|
@@ -87,6 +100,7 @@ from .aavewithdrawrequest import (
|
|
|
87
100
|
AaveWithdrawRequestAmountTypedDict,
|
|
88
101
|
AaveWithdrawRequestTypedDict,
|
|
89
102
|
)
|
|
103
|
+
from .action import Action
|
|
90
104
|
from .aerodrome_slipstream_liquidity_provision_positionsop import (
|
|
91
105
|
AerodromeSlipstreamLiquidityProvisionPositionsChain,
|
|
92
106
|
AerodromeSlipstreamLiquidityProvisionPositionsRequest,
|
|
@@ -269,8 +283,10 @@ from .aerodromeswaptokensparams import (
|
|
|
269
283
|
AerodromeSwapTokensParamsTypedDict,
|
|
270
284
|
)
|
|
271
285
|
from .allowanceinforesponse import AllowanceInfoResponse, AllowanceInfoResponseTypedDict
|
|
286
|
+
from .borrow import Borrow, BorrowTypedDict
|
|
272
287
|
from .chain import Chain
|
|
273
288
|
from .chaininfo import ChainInfo, ChainInfoTypedDict
|
|
289
|
+
from .collateralreserve import CollateralReserve, CollateralReserveTypedDict
|
|
274
290
|
from .compass_api_backend_models_morpho_read_response_get_markets_asset import (
|
|
275
291
|
CompassAPIBackendModelsMorphoReadResponseGetMarketsAsset,
|
|
276
292
|
CompassAPIBackendModelsMorphoReadResponseGetMarketsAssetTypedDict,
|
|
@@ -331,6 +347,7 @@ from .increaseallowancerequest import (
|
|
|
331
347
|
IncreaseAllowanceRequestTypedDict,
|
|
332
348
|
)
|
|
333
349
|
from .interestratemode import InterestRateMode
|
|
350
|
+
from .liquidationcall import LiquidationCall, LiquidationCallTypedDict
|
|
334
351
|
from .marketstate import MarketState, MarketStateTypedDict
|
|
335
352
|
from .morpho_market_positionop import (
|
|
336
353
|
MorphoMarketPositionChain,
|
|
@@ -422,6 +439,10 @@ from .multicallexecuterequest import (
|
|
|
422
439
|
MulticallExecuteRequestTypedDict,
|
|
423
440
|
)
|
|
424
441
|
from .portfolio import Portfolio, PortfolioTypedDict
|
|
442
|
+
from .principalreserve import PrincipalReserve, PrincipalReserveTypedDict
|
|
443
|
+
from .redeemunderlying import RedeemUnderlying, RedeemUnderlyingTypedDict
|
|
444
|
+
from .repay import Repay, RepayTypedDict
|
|
445
|
+
from .reserve import Reserve, ReserveTypedDict
|
|
425
446
|
from .security import Security, SecurityTypedDict
|
|
426
447
|
from .signedauthorization import (
|
|
427
448
|
R,
|
|
@@ -457,6 +478,8 @@ from .skysellrequest import (
|
|
|
457
478
|
TokenOut,
|
|
458
479
|
)
|
|
459
480
|
from .skywithdrawrequest import SkyWithdrawRequest, SkyWithdrawRequestTypedDict
|
|
481
|
+
from .supply import Supply, SupplyTypedDict
|
|
482
|
+
from .swapborrowrate import SwapBorrowRate, SwapBorrowRateTypedDict
|
|
460
483
|
from .token_addressop import (
|
|
461
484
|
TokenAddressChain,
|
|
462
485
|
TokenAddressRequest,
|
|
@@ -541,16 +564,12 @@ from .uniswap_quote_sell_exactlyop import (
|
|
|
541
564
|
)
|
|
542
565
|
from .uniswapbuyexactlyparams import (
|
|
543
566
|
UniswapBuyExactlyParams,
|
|
544
|
-
UniswapBuyExactlyParamsAmountInMaximum,
|
|
545
|
-
UniswapBuyExactlyParamsAmountInMaximumTypedDict,
|
|
546
567
|
UniswapBuyExactlyParamsAmountOut,
|
|
547
568
|
UniswapBuyExactlyParamsAmountOutTypedDict,
|
|
548
569
|
UniswapBuyExactlyParamsTypedDict,
|
|
549
570
|
)
|
|
550
571
|
from .uniswapbuyexactlyrequest import (
|
|
551
572
|
UniswapBuyExactlyRequest,
|
|
552
|
-
UniswapBuyExactlyRequestAmountInMaximum,
|
|
553
|
-
UniswapBuyExactlyRequestAmountInMaximumTypedDict,
|
|
554
573
|
UniswapBuyExactlyRequestAmountOut,
|
|
555
574
|
UniswapBuyExactlyRequestAmountOutTypedDict,
|
|
556
575
|
UniswapBuyExactlyRequestTypedDict,
|
|
@@ -625,18 +644,14 @@ from .uniswappositionssolidityresponse import (
|
|
|
625
644
|
)
|
|
626
645
|
from .uniswapsellexactlyparams import (
|
|
627
646
|
UniswapSellExactlyParams,
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
UniswapSellExactlyParamsAmountOutMinimum,
|
|
631
|
-
UniswapSellExactlyParamsAmountOutMinimumTypedDict,
|
|
647
|
+
UniswapSellExactlyParamsAmount,
|
|
648
|
+
UniswapSellExactlyParamsAmountTypedDict,
|
|
632
649
|
UniswapSellExactlyParamsTypedDict,
|
|
633
650
|
)
|
|
634
651
|
from .uniswapsellexactlyrequest import (
|
|
635
652
|
UniswapSellExactlyRequest,
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
UniswapSellExactlyRequestAmountOutMinimum,
|
|
639
|
-
UniswapSellExactlyRequestAmountOutMinimumTypedDict,
|
|
653
|
+
UniswapSellExactlyRequestAmount,
|
|
654
|
+
UniswapSellExactlyRequestAmountTypedDict,
|
|
640
655
|
UniswapSellExactlyRequestTypedDict,
|
|
641
656
|
)
|
|
642
657
|
from .uniswapsellquoteinforesponse import (
|
|
@@ -672,6 +687,7 @@ from .unwrapwethrequest import (
|
|
|
672
687
|
UnwrapWethRequestAmountTypedDict,
|
|
673
688
|
UnwrapWethRequestTypedDict,
|
|
674
689
|
)
|
|
690
|
+
from .usageascollateral import UsageAsCollateral, UsageAsCollateralTypedDict
|
|
675
691
|
from .validationerror import (
|
|
676
692
|
Loc,
|
|
677
693
|
LocTypedDict,
|
|
@@ -703,6 +719,13 @@ __all__ = [
|
|
|
703
719
|
"AaveBorrowRequestAmount",
|
|
704
720
|
"AaveBorrowRequestAmountTypedDict",
|
|
705
721
|
"AaveBorrowRequestTypedDict",
|
|
722
|
+
"AaveHistoricalTransactionBase",
|
|
723
|
+
"AaveHistoricalTransactionBaseTypedDict",
|
|
724
|
+
"AaveHistoricalTransactionsChain",
|
|
725
|
+
"AaveHistoricalTransactionsRequest",
|
|
726
|
+
"AaveHistoricalTransactionsRequestTypedDict",
|
|
727
|
+
"AaveHistoricalTransactionsResponse",
|
|
728
|
+
"AaveHistoricalTransactionsResponseTypedDict",
|
|
706
729
|
"AaveLiquidityChangeChain",
|
|
707
730
|
"AaveLiquidityChangeRequest",
|
|
708
731
|
"AaveLiquidityChangeRequestTypedDict",
|
|
@@ -750,6 +773,7 @@ __all__ = [
|
|
|
750
773
|
"AaveWithdrawRequestAmount",
|
|
751
774
|
"AaveWithdrawRequestAmountTypedDict",
|
|
752
775
|
"AaveWithdrawRequestTypedDict",
|
|
776
|
+
"Action",
|
|
753
777
|
"AerodromeAddLiquidityEthParams",
|
|
754
778
|
"AerodromeAddLiquidityEthParamsAmountEthMin",
|
|
755
779
|
"AerodromeAddLiquidityEthParamsAmountEthMinTypedDict",
|
|
@@ -894,9 +918,13 @@ __all__ = [
|
|
|
894
918
|
"AmountTokenDesiredTypedDict",
|
|
895
919
|
"Body",
|
|
896
920
|
"BodyTypedDict",
|
|
921
|
+
"Borrow",
|
|
922
|
+
"BorrowTypedDict",
|
|
897
923
|
"Chain",
|
|
898
924
|
"ChainInfo",
|
|
899
925
|
"ChainInfoTypedDict",
|
|
926
|
+
"CollateralReserve",
|
|
927
|
+
"CollateralReserveTypedDict",
|
|
900
928
|
"CompassAPIBackendModelsMorphoReadResponseGetMarketsAsset",
|
|
901
929
|
"CompassAPIBackendModelsMorphoReadResponseGetMarketsAssetTypedDict",
|
|
902
930
|
"CompassAPIBackendModelsMorphoReadResponseGetVaultsAsset",
|
|
@@ -939,6 +967,8 @@ __all__ = [
|
|
|
939
967
|
"IncreaseAllowanceRequestContractName",
|
|
940
968
|
"IncreaseAllowanceRequestTypedDict",
|
|
941
969
|
"InterestRateMode",
|
|
970
|
+
"LiquidationCall",
|
|
971
|
+
"LiquidationCallTypedDict",
|
|
942
972
|
"Loc",
|
|
943
973
|
"LocTypedDict",
|
|
944
974
|
"MarketState",
|
|
@@ -1002,8 +1032,16 @@ __all__ = [
|
|
|
1002
1032
|
"MulticallExecuteRequestTypedDict",
|
|
1003
1033
|
"Portfolio",
|
|
1004
1034
|
"PortfolioTypedDict",
|
|
1035
|
+
"PrincipalReserve",
|
|
1036
|
+
"PrincipalReserveTypedDict",
|
|
1005
1037
|
"R",
|
|
1006
1038
|
"RTypedDict",
|
|
1039
|
+
"RedeemUnderlying",
|
|
1040
|
+
"RedeemUnderlyingTypedDict",
|
|
1041
|
+
"Repay",
|
|
1042
|
+
"RepayTypedDict",
|
|
1043
|
+
"Reserve",
|
|
1044
|
+
"ReserveTypedDict",
|
|
1007
1045
|
"S",
|
|
1008
1046
|
"STypedDict",
|
|
1009
1047
|
"Security",
|
|
@@ -1028,6 +1066,10 @@ __all__ = [
|
|
|
1028
1066
|
"SkySellRequestTypedDict",
|
|
1029
1067
|
"SkyWithdrawRequest",
|
|
1030
1068
|
"SkyWithdrawRequestTypedDict",
|
|
1069
|
+
"Supply",
|
|
1070
|
+
"SupplyTypedDict",
|
|
1071
|
+
"SwapBorrowRate",
|
|
1072
|
+
"SwapBorrowRateTypedDict",
|
|
1031
1073
|
"TokenAddressChain",
|
|
1032
1074
|
"TokenAddressRequest",
|
|
1033
1075
|
"TokenAddressRequestTypedDict",
|
|
@@ -1067,14 +1109,10 @@ __all__ = [
|
|
|
1067
1109
|
"TokenTransferRequestTokenTypedDict",
|
|
1068
1110
|
"TokenTransferRequestTypedDict",
|
|
1069
1111
|
"UniswapBuyExactlyParams",
|
|
1070
|
-
"UniswapBuyExactlyParamsAmountInMaximum",
|
|
1071
|
-
"UniswapBuyExactlyParamsAmountInMaximumTypedDict",
|
|
1072
1112
|
"UniswapBuyExactlyParamsAmountOut",
|
|
1073
1113
|
"UniswapBuyExactlyParamsAmountOutTypedDict",
|
|
1074
1114
|
"UniswapBuyExactlyParamsTypedDict",
|
|
1075
1115
|
"UniswapBuyExactlyRequest",
|
|
1076
|
-
"UniswapBuyExactlyRequestAmountInMaximum",
|
|
1077
|
-
"UniswapBuyExactlyRequestAmountInMaximumTypedDict",
|
|
1078
1116
|
"UniswapBuyExactlyRequestAmountOut",
|
|
1079
1117
|
"UniswapBuyExactlyRequestAmountOutTypedDict",
|
|
1080
1118
|
"UniswapBuyExactlyRequestTypedDict",
|
|
@@ -1157,16 +1195,12 @@ __all__ = [
|
|
|
1157
1195
|
"UniswapQuoteSellExactlyTokenInToken",
|
|
1158
1196
|
"UniswapQuoteSellExactlyTokenOutToken",
|
|
1159
1197
|
"UniswapSellExactlyParams",
|
|
1160
|
-
"
|
|
1161
|
-
"
|
|
1162
|
-
"UniswapSellExactlyParamsAmountOutMinimum",
|
|
1163
|
-
"UniswapSellExactlyParamsAmountOutMinimumTypedDict",
|
|
1198
|
+
"UniswapSellExactlyParamsAmount",
|
|
1199
|
+
"UniswapSellExactlyParamsAmountTypedDict",
|
|
1164
1200
|
"UniswapSellExactlyParamsTypedDict",
|
|
1165
1201
|
"UniswapSellExactlyRequest",
|
|
1166
|
-
"
|
|
1167
|
-
"
|
|
1168
|
-
"UniswapSellExactlyRequestAmountOutMinimum",
|
|
1169
|
-
"UniswapSellExactlyRequestAmountOutMinimumTypedDict",
|
|
1202
|
+
"UniswapSellExactlyRequestAmount",
|
|
1203
|
+
"UniswapSellExactlyRequestAmountTypedDict",
|
|
1170
1204
|
"UniswapSellExactlyRequestTypedDict",
|
|
1171
1205
|
"UniswapSellQuoteInfoResponse",
|
|
1172
1206
|
"UniswapSellQuoteInfoResponseTypedDict",
|
|
@@ -1190,6 +1224,8 @@ __all__ = [
|
|
|
1190
1224
|
"UnwrapWethRequestAmount",
|
|
1191
1225
|
"UnwrapWethRequestAmountTypedDict",
|
|
1192
1226
|
"UnwrapWethRequestTypedDict",
|
|
1227
|
+
"UsageAsCollateral",
|
|
1228
|
+
"UsageAsCollateralTypedDict",
|
|
1193
1229
|
"ValidationError",
|
|
1194
1230
|
"ValidationErrorTypedDict",
|
|
1195
1231
|
"VaultState",
|
|
@@ -0,0 +1,49 @@
|
|
|
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 import Optional
|
|
8
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class AaveHistoricalTransactionsChain(str, Enum):
|
|
12
|
+
r"""The chain to use."""
|
|
13
|
+
|
|
14
|
+
BASE_MAINNET = "base:mainnet"
|
|
15
|
+
ETHEREUM_MAINNET = "ethereum:mainnet"
|
|
16
|
+
ARBITRUM_MAINNET = "arbitrum:mainnet"
|
|
17
|
+
ETHEREUM_LOCAL = "ethereum:local"
|
|
18
|
+
ARBITRUM_LOCAL = "arbitrum:local"
|
|
19
|
+
BASE_LOCAL = "base:local"
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class AaveHistoricalTransactionsRequestTypedDict(TypedDict):
|
|
23
|
+
offset: NotRequired[int]
|
|
24
|
+
limit: NotRequired[int]
|
|
25
|
+
chain: AaveHistoricalTransactionsChain
|
|
26
|
+
r"""The chain to use."""
|
|
27
|
+
user_address: str
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class AaveHistoricalTransactionsRequest(BaseModel):
|
|
31
|
+
offset: Annotated[
|
|
32
|
+
Optional[int],
|
|
33
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
34
|
+
] = 0
|
|
35
|
+
|
|
36
|
+
limit: Annotated[
|
|
37
|
+
Optional[int],
|
|
38
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
39
|
+
] = 100
|
|
40
|
+
|
|
41
|
+
chain: Annotated[
|
|
42
|
+
AaveHistoricalTransactionsChain,
|
|
43
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
44
|
+
] = AaveHistoricalTransactionsChain.ARBITRUM_MAINNET
|
|
45
|
+
r"""The chain to use."""
|
|
46
|
+
|
|
47
|
+
user_address: Annotated[
|
|
48
|
+
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
49
|
+
] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"
|
|
@@ -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 compass_api_sdk.types import BaseModel
|
|
5
|
+
from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
|
|
6
6
|
from enum import Enum
|
|
7
7
|
from typing_extensions import Annotated, TypedDict
|
|
8
8
|
|
|
@@ -13,6 +13,9 @@ class AaveLiquidityChangeChain(str, Enum):
|
|
|
13
13
|
BASE_MAINNET = "base:mainnet"
|
|
14
14
|
ETHEREUM_MAINNET = "ethereum:mainnet"
|
|
15
15
|
ARBITRUM_MAINNET = "arbitrum:mainnet"
|
|
16
|
+
ETHEREUM_LOCAL = "ethereum:local"
|
|
17
|
+
ARBITRUM_LOCAL = "arbitrum:local"
|
|
18
|
+
BASE_LOCAL = "base:local"
|
|
16
19
|
|
|
17
20
|
|
|
18
21
|
class AaveLiquidityChangeToken(str, Enum):
|
|
@@ -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 compass_api_sdk.types import BaseModel
|
|
5
|
+
from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
|
|
6
6
|
from enum import Enum
|
|
7
7
|
from typing_extensions import Annotated, TypedDict
|
|
8
8
|
|
|
@@ -13,6 +13,9 @@ class AaveTokenPriceChain(str, Enum):
|
|
|
13
13
|
BASE_MAINNET = "base:mainnet"
|
|
14
14
|
ETHEREUM_MAINNET = "ethereum:mainnet"
|
|
15
15
|
ARBITRUM_MAINNET = "arbitrum:mainnet"
|
|
16
|
+
ETHEREUM_LOCAL = "ethereum:local"
|
|
17
|
+
ARBITRUM_LOCAL = "arbitrum:local"
|
|
18
|
+
BASE_LOCAL = "base:local"
|
|
16
19
|
|
|
17
20
|
|
|
18
21
|
class AaveTokenPriceToken(str, Enum):
|