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
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .borrow import Borrow, BorrowTypedDict
|
|
5
|
+
from .liquidationcall import LiquidationCall, LiquidationCallTypedDict
|
|
6
|
+
from .redeemunderlying import RedeemUnderlying, RedeemUnderlyingTypedDict
|
|
7
|
+
from .repay import Repay, RepayTypedDict
|
|
8
|
+
from .supply import Supply, SupplyTypedDict
|
|
9
|
+
from .swapborrowrate import SwapBorrowRate, SwapBorrowRateTypedDict
|
|
10
|
+
from .usageascollateral import UsageAsCollateral, UsageAsCollateralTypedDict
|
|
11
|
+
from compassapisdk.types import BaseModel
|
|
12
|
+
from compassapisdk.utils import get_discriminator
|
|
13
|
+
from pydantic import Discriminator, Tag
|
|
14
|
+
from typing import List, Union
|
|
15
|
+
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
TransactionTypedDict = TypeAliasType(
|
|
19
|
+
"TransactionTypedDict",
|
|
20
|
+
Union[
|
|
21
|
+
RedeemUnderlyingTypedDict,
|
|
22
|
+
RepayTypedDict,
|
|
23
|
+
SupplyTypedDict,
|
|
24
|
+
UsageAsCollateralTypedDict,
|
|
25
|
+
BorrowTypedDict,
|
|
26
|
+
SwapBorrowRateTypedDict,
|
|
27
|
+
LiquidationCallTypedDict,
|
|
28
|
+
],
|
|
29
|
+
)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
Transaction = Annotated[
|
|
33
|
+
Union[
|
|
34
|
+
Annotated[Borrow, Tag("Borrow")],
|
|
35
|
+
Annotated[LiquidationCall, Tag("LiquidationCall")],
|
|
36
|
+
Annotated[RedeemUnderlying, Tag("RedeemUnderlying")],
|
|
37
|
+
Annotated[Repay, Tag("Repay")],
|
|
38
|
+
Annotated[Supply, Tag("Supply")],
|
|
39
|
+
Annotated[SwapBorrowRate, Tag("SwapBorrowRate")],
|
|
40
|
+
Annotated[UsageAsCollateral, Tag("UsageAsCollateral")],
|
|
41
|
+
],
|
|
42
|
+
Discriminator(lambda m: get_discriminator(m, "action", "action")),
|
|
43
|
+
]
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
class AaveHistoricalTransactionsResponseTypedDict(TypedDict):
|
|
47
|
+
r"""Response model for getting Aave historical transactions."""
|
|
48
|
+
|
|
49
|
+
offset: int
|
|
50
|
+
r"""Specifies how many transactions to skip before returning results, letting you choose the starting point for the data you want to receive."""
|
|
51
|
+
limit: int
|
|
52
|
+
r"""Sets the maximum number of transactions to include in the response, helping control the size of the returned dataset."""
|
|
53
|
+
transactions: List[TransactionTypedDict]
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
class AaveHistoricalTransactionsResponse(BaseModel):
|
|
57
|
+
r"""Response model for getting Aave historical transactions."""
|
|
58
|
+
|
|
59
|
+
offset: int
|
|
60
|
+
r"""Specifies how many transactions to skip before returning results, letting you choose the starting point for the data you want to receive."""
|
|
61
|
+
|
|
62
|
+
limit: int
|
|
63
|
+
r"""Sets the maximum number of transactions to include in the response, helping control the size of the returned dataset."""
|
|
64
|
+
|
|
65
|
+
transactions: List[Transaction]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
4
|
+
from compassapisdk.types import BaseModel
|
|
5
5
|
from datetime import datetime
|
|
6
6
|
from typing_extensions import TypedDict
|
|
7
7
|
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .chain import Chain
|
|
5
|
+
from .signedauthorization import SignedAuthorization, SignedAuthorizationTypedDict
|
|
6
|
+
from .token_enum import TokenEnum
|
|
7
|
+
from compassapisdk.types import BaseModel
|
|
8
|
+
from typing import Union
|
|
9
|
+
from typing_extensions import TypeAliasType, TypedDict
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
CollateralAmountTypedDict = TypeAliasType(
|
|
13
|
+
"CollateralAmountTypedDict", Union[float, str]
|
|
14
|
+
)
|
|
15
|
+
r"""Amount of collateral token to supply to Aave"""
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
CollateralAmount = TypeAliasType("CollateralAmount", Union[float, str])
|
|
19
|
+
r"""Amount of collateral token to supply to Aave"""
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class AaveLoopRequestTypedDict(TypedDict):
|
|
23
|
+
r"""Request model for executing an Aave loop transaction."""
|
|
24
|
+
|
|
25
|
+
chain: Chain
|
|
26
|
+
r"""The chain to use."""
|
|
27
|
+
sender: str
|
|
28
|
+
r"""The address of the transaction sender."""
|
|
29
|
+
signed_authorization: SignedAuthorizationTypedDict
|
|
30
|
+
collateral_token: TokenEnum
|
|
31
|
+
r"""A class representing the token.
|
|
32
|
+
|
|
33
|
+
This class is used to represent the token in the system. Notice individual
|
|
34
|
+
endpoints' documentation where per chain tokens are presented.
|
|
35
|
+
"""
|
|
36
|
+
borrow_token: TokenEnum
|
|
37
|
+
r"""A class representing the token.
|
|
38
|
+
|
|
39
|
+
This class is used to represent the token in the system. Notice individual
|
|
40
|
+
endpoints' documentation where per chain tokens are presented.
|
|
41
|
+
"""
|
|
42
|
+
collateral_amount: CollateralAmountTypedDict
|
|
43
|
+
r"""Amount of collateral token to supply to Aave"""
|
|
44
|
+
loop_count: int
|
|
45
|
+
r"""Number of times to perform the supply-borrow loop"""
|
|
46
|
+
max_slippage_percent: float
|
|
47
|
+
r"""Maximum allowed slippage for token swaps in percentage"""
|
|
48
|
+
loan_to_value: float
|
|
49
|
+
r"""Loan To Value percentage of the loop"""
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
class AaveLoopRequest(BaseModel):
|
|
53
|
+
r"""Request model for executing an Aave loop transaction."""
|
|
54
|
+
|
|
55
|
+
chain: Chain
|
|
56
|
+
r"""The chain to use."""
|
|
57
|
+
|
|
58
|
+
sender: str
|
|
59
|
+
r"""The address of the transaction sender."""
|
|
60
|
+
|
|
61
|
+
signed_authorization: SignedAuthorization
|
|
62
|
+
|
|
63
|
+
collateral_token: TokenEnum
|
|
64
|
+
r"""A class representing the token.
|
|
65
|
+
|
|
66
|
+
This class is used to represent the token in the system. Notice individual
|
|
67
|
+
endpoints' documentation where per chain tokens are presented.
|
|
68
|
+
"""
|
|
69
|
+
|
|
70
|
+
borrow_token: TokenEnum
|
|
71
|
+
r"""A class representing the token.
|
|
72
|
+
|
|
73
|
+
This class is used to represent the token in the system. Notice individual
|
|
74
|
+
endpoints' documentation where per chain tokens are presented.
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
collateral_amount: CollateralAmount
|
|
78
|
+
r"""Amount of collateral token to supply to Aave"""
|
|
79
|
+
|
|
80
|
+
loop_count: int
|
|
81
|
+
r"""Number of times to perform the supply-borrow loop"""
|
|
82
|
+
|
|
83
|
+
max_slippage_percent: float
|
|
84
|
+
r"""Maximum allowed slippage for token swaps in percentage"""
|
|
85
|
+
|
|
86
|
+
loan_to_value: float
|
|
87
|
+
r"""Loan To Value percentage of the loop"""
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .chain import Chain
|
|
5
5
|
from .token_enum import TokenEnum
|
|
6
|
-
from
|
|
6
|
+
from compassapisdk.types import BaseModel
|
|
7
7
|
from typing import Union
|
|
8
8
|
from typing_extensions import TypeAliasType, TypedDict
|
|
9
9
|
|
{compass_api_sdk → compassapisdk}/models/aerodrome_slipstream_liquidity_provision_positionsop.py
RENAMED
|
@@ -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
|
|
@@ -20,6 +20,7 @@ class AerodromeSlipstreamLiquidityProvisionPositionsRequestTypedDict(TypedDict):
|
|
|
20
20
|
chain: AerodromeSlipstreamLiquidityProvisionPositionsChain
|
|
21
21
|
r"""The chain to use."""
|
|
22
22
|
user: NotRequired[str]
|
|
23
|
+
r"""The user to get positions for."""
|
|
23
24
|
|
|
24
25
|
|
|
25
26
|
class AerodromeSlipstreamLiquidityProvisionPositionsRequest(BaseModel):
|
|
@@ -33,3 +34,4 @@ class AerodromeSlipstreamLiquidityProvisionPositionsRequest(BaseModel):
|
|
|
33
34
|
Optional[str],
|
|
34
35
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
35
36
|
] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"
|
|
37
|
+
r"""The user to get positions 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 import Optional
|
|
8
8
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -126,18 +126,11 @@ class AerodromeSlipstreamPoolPriceRequestTypedDict(TypedDict):
|
|
|
126
126
|
chain: AerodromeSlipstreamPoolPriceChain
|
|
127
127
|
r"""The chain to use."""
|
|
128
128
|
token_in: AerodromeSlipstreamPoolPriceTokenInToken
|
|
129
|
-
r"""
|
|
130
|
-
|
|
131
|
-
This class is used to represent the token in the system. Notice individual
|
|
132
|
-
endpoints' documentation where per chain tokens are presented.
|
|
133
|
-
"""
|
|
129
|
+
r"""The symbol of a token in the pool."""
|
|
134
130
|
token_out: AerodromeSlipstreamPoolPriceTokenOutToken
|
|
135
|
-
r"""
|
|
136
|
-
|
|
137
|
-
This class is used to represent the token in the system. Notice individual
|
|
138
|
-
endpoints' documentation where per chain tokens are presented.
|
|
139
|
-
"""
|
|
131
|
+
r"""The symbol of a token in the pool."""
|
|
140
132
|
tick_spacing: NotRequired[int]
|
|
133
|
+
r"""The tick spacing of the pool"""
|
|
141
134
|
|
|
142
135
|
|
|
143
136
|
class AerodromeSlipstreamPoolPriceRequest(BaseModel):
|
|
@@ -151,23 +144,16 @@ class AerodromeSlipstreamPoolPriceRequest(BaseModel):
|
|
|
151
144
|
AerodromeSlipstreamPoolPriceTokenInToken,
|
|
152
145
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
153
146
|
] = AerodromeSlipstreamPoolPriceTokenInToken.USDC
|
|
154
|
-
r"""
|
|
155
|
-
|
|
156
|
-
This class is used to represent the token in the system. Notice individual
|
|
157
|
-
endpoints' documentation where per chain tokens are presented.
|
|
158
|
-
"""
|
|
147
|
+
r"""The symbol of a token in the pool."""
|
|
159
148
|
|
|
160
149
|
token_out: Annotated[
|
|
161
150
|
AerodromeSlipstreamPoolPriceTokenOutToken,
|
|
162
151
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
163
152
|
] = AerodromeSlipstreamPoolPriceTokenOutToken.WETH
|
|
164
|
-
r"""
|
|
165
|
-
|
|
166
|
-
This class is used to represent the token in the system. Notice individual
|
|
167
|
-
endpoints' documentation where per chain tokens are presented.
|
|
168
|
-
"""
|
|
153
|
+
r"""The symbol of a token in the pool."""
|
|
169
154
|
|
|
170
155
|
tick_spacing: Annotated[
|
|
171
156
|
Optional[int],
|
|
172
157
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
173
158
|
] = 100
|
|
159
|
+
r"""The tick spacing of the pool"""
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .aerodromeposition import AerodromePosition, AerodromePositionTypedDict
|
|
5
|
-
from
|
|
5
|
+
from compassapisdk.types import BaseModel
|
|
6
6
|
from typing import Dict
|
|
7
7
|
from typing_extensions import TypedDict
|
|
8
8
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .chain import Chain
|
|
5
5
|
from .token_enum import TokenEnum
|
|
6
|
-
from
|
|
6
|
+
from compassapisdk.types import BaseModel
|
|
7
7
|
from typing import Union
|
|
8
8
|
from typing_extensions import TypeAliasType, TypedDict
|
|
9
9
|
|
{compass_api_sdk → compassapisdk}/models/aerodromeslipstreamincreaseliquidityprovisionparams.py
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
4
|
+
from compassapisdk.types import BaseModel
|
|
5
5
|
from typing import Union
|
|
6
6
|
from typing_extensions import TypeAliasType, TypedDict
|
|
7
7
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .token_enum import TokenEnum
|
|
5
|
-
from
|
|
5
|
+
from compassapisdk.types import BaseModel
|
|
6
6
|
from typing import Optional, Union
|
|
7
7
|
from typing_extensions import NotRequired, TypeAliasType, TypedDict
|
|
8
8
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .chain import Chain
|
|
5
5
|
from .token_enum import TokenEnum
|
|
6
|
-
from
|
|
6
|
+
from compassapisdk.types import BaseModel
|
|
7
7
|
from typing import Optional, Union
|
|
8
8
|
from typing_extensions import NotRequired, TypeAliasType, TypedDict
|
|
9
9
|
|
{compass_api_sdk → compassapisdk}/models/aerodromeslipstreamwithdrawliquidityprovisionparams.py
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
4
|
+
from compassapisdk.types import BaseModel
|
|
5
5
|
from typing import Union
|
|
6
6
|
from typing_extensions import TypeAliasType, TypedDict
|
|
7
7
|
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .reserve import Reserve, ReserveTypedDict
|
|
5
|
+
from compassapisdk.types import BaseModel
|
|
6
|
+
from compassapisdk.utils import validate_const
|
|
7
|
+
from enum import Enum
|
|
8
|
+
import pydantic
|
|
9
|
+
from pydantic.functional_validators import AfterValidator
|
|
10
|
+
from typing import Literal
|
|
11
|
+
from typing_extensions import Annotated, TypedDict
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class Borrowratemode(int, Enum):
|
|
15
|
+
r"""The interest rate mode to borrow: 1 represents stable interest rate mode. 2 represents variable interest rate mode"""
|
|
16
|
+
|
|
17
|
+
ONE = 1
|
|
18
|
+
TWO = 2
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class BorrowTypedDict(TypedDict):
|
|
22
|
+
id: str
|
|
23
|
+
r"""The id of a historical transaction on aave"""
|
|
24
|
+
timestamp: int
|
|
25
|
+
r"""Timestamp in unix time"""
|
|
26
|
+
tx_hash: str
|
|
27
|
+
r"""Transaction hash. You can paste these into the search bar on etherscan"""
|
|
28
|
+
amount: float
|
|
29
|
+
r"""Quantity of token"""
|
|
30
|
+
borrow_rate_mode: Borrowratemode
|
|
31
|
+
r"""The interest rate mode to borrow: 1 represents stable interest rate mode. 2 represents variable interest rate mode"""
|
|
32
|
+
reserve: ReserveTypedDict
|
|
33
|
+
asset_price_usd: float
|
|
34
|
+
r"""Price of token in USD"""
|
|
35
|
+
block: int
|
|
36
|
+
action: Literal["Borrow"]
|
|
37
|
+
r"""The type of transaction"""
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
class Borrow(BaseModel):
|
|
41
|
+
id: str
|
|
42
|
+
r"""The id of a historical transaction on aave"""
|
|
43
|
+
|
|
44
|
+
timestamp: int
|
|
45
|
+
r"""Timestamp in unix time"""
|
|
46
|
+
|
|
47
|
+
tx_hash: Annotated[str, pydantic.Field(alias="txHash")]
|
|
48
|
+
r"""Transaction hash. You can paste these into the search bar on etherscan"""
|
|
49
|
+
|
|
50
|
+
amount: float
|
|
51
|
+
r"""Quantity of token"""
|
|
52
|
+
|
|
53
|
+
borrow_rate_mode: Annotated[Borrowratemode, pydantic.Field(alias="borrowRateMode")]
|
|
54
|
+
r"""The interest rate mode to borrow: 1 represents stable interest rate mode. 2 represents variable interest rate mode"""
|
|
55
|
+
|
|
56
|
+
reserve: Reserve
|
|
57
|
+
|
|
58
|
+
asset_price_usd: Annotated[float, pydantic.Field(alias="assetPriceUSD")]
|
|
59
|
+
r"""Price of token in USD"""
|
|
60
|
+
|
|
61
|
+
block: int
|
|
62
|
+
|
|
63
|
+
ACTION: Annotated[
|
|
64
|
+
Annotated[Literal["Borrow"], AfterValidator(validate_const("Borrow"))],
|
|
65
|
+
pydantic.Field(alias="action"),
|
|
66
|
+
] = "Borrow"
|
|
67
|
+
r"""The type of transaction"""
|