compass_api_sdk 0.0.1__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/__init__.py +17 -0
- compass_api_sdk/_hooks/__init__.py +5 -0
- compass_api_sdk/_hooks/registration.py +13 -0
- compass_api_sdk/_hooks/sdkhooks.py +76 -0
- compass_api_sdk/_hooks/types.py +106 -0
- compass_api_sdk/_version.py +15 -0
- compass_api_sdk/aave_v3.py +1903 -0
- compass_api_sdk/aerodrome_slipstream.py +1875 -0
- compass_api_sdk/basesdk.py +362 -0
- compass_api_sdk/errors/__init__.py +7 -0
- compass_api_sdk/errors/apierror.py +22 -0
- compass_api_sdk/errors/httpvalidationerror.py +21 -0
- compass_api_sdk/httpclient.py +136 -0
- compass_api_sdk/models/__init__.py +777 -0
- compass_api_sdk/models/aave_liquidity_changeop.py +108 -0
- compass_api_sdk/models/aave_token_priceop.py +98 -0
- compass_api_sdk/models/aave_user_position_per_tokenop.py +104 -0
- compass_api_sdk/models/aave_user_position_summaryop.py +35 -0
- compass_api_sdk/models/aaveborrowrequest.py +105 -0
- compass_api_sdk/models/aaveliquiditychangeresponse.py +26 -0
- compass_api_sdk/models/aaverepayrequest.py +105 -0
- compass_api_sdk/models/aavesupplyrequest.py +93 -0
- compass_api_sdk/models/aavetokenpriceresponse.py +15 -0
- compass_api_sdk/models/aaveuserpositionpertokenresponse.py +73 -0
- compass_api_sdk/models/aaveuserpositionsummaryresponse.py +50 -0
- compass_api_sdk/models/aavewithdrawrequest.py +58 -0
- compass_api_sdk/models/aerodrome_slipstream_liquidity_provision_positionsop.py +35 -0
- compass_api_sdk/models/aerodrome_slipstream_pool_priceop.py +173 -0
- compass_api_sdk/models/aerodromelppositionsresponse.py +21 -0
- compass_api_sdk/models/aerodromeposition.py +70 -0
- compass_api_sdk/models/aerodromeslipstreambuyexactlyrequest.py +92 -0
- compass_api_sdk/models/aerodromeslipstreamincreaseliquidityprovisionrequest.py +109 -0
- compass_api_sdk/models/aerodromeslipstreammintliquidityprovisionrequest.py +186 -0
- compass_api_sdk/models/aerodromeslipstreampoolpriceresponse.py +57 -0
- compass_api_sdk/models/aerodromeslipstreamsellexactlyrequest.py +96 -0
- compass_api_sdk/models/aerodromeslipstreamwithdrawliquidityprovisionrequest.py +50 -0
- compass_api_sdk/models/allowanceinforesponse.py +48 -0
- compass_api_sdk/models/balanceinforesponse.py +43 -0
- compass_api_sdk/models/chain.py +12 -0
- compass_api_sdk/models/chaininfo.py +53 -0
- compass_api_sdk/models/compass_api_backend_models_morpho_read_response_get_markets_asset.py +22 -0
- compass_api_sdk/models/compass_api_backend_models_morpho_read_response_get_vaults_asset.py +23 -0
- compass_api_sdk/models/ensnameinforesponse.py +24 -0
- compass_api_sdk/models/feeenum.py +16 -0
- compass_api_sdk/models/generic_allowanceop.py +121 -0
- compass_api_sdk/models/generic_balanceop.py +104 -0
- compass_api_sdk/models/generic_ensop.py +35 -0
- compass_api_sdk/models/generic_portfolioop.py +35 -0
- compass_api_sdk/models/generic_price_usdop.py +98 -0
- compass_api_sdk/models/generic_supported_tokensop.py +29 -0
- compass_api_sdk/models/generic_visualize_portfolioop.py +35 -0
- compass_api_sdk/models/image.py +15 -0
- compass_api_sdk/models/increaseallowancerequest.py +77 -0
- compass_api_sdk/models/interestratemode.py +14 -0
- compass_api_sdk/models/marketstate.py +35 -0
- compass_api_sdk/models/morpho_market_positionop.py +39 -0
- compass_api_sdk/models/morpho_marketsop.py +78 -0
- compass_api_sdk/models/morpho_vault_positionop.py +39 -0
- compass_api_sdk/models/morpho_vaultsop.py +72 -0
- compass_api_sdk/models/morphoborrowrequest.py +91 -0
- compass_api_sdk/models/morphocheckmarketpositionresponse.py +23 -0
- compass_api_sdk/models/morphocheckvaultpositionresponse.py +20 -0
- compass_api_sdk/models/morphodepositrequest.py +86 -0
- compass_api_sdk/models/morphogetmarketsresponse.py +17 -0
- compass_api_sdk/models/morphogetvaultsresponse.py +17 -0
- compass_api_sdk/models/morphomarket.py +80 -0
- compass_api_sdk/models/morphorepayrequest.py +79 -0
- compass_api_sdk/models/morphosetvaultallowancerequest.py +44 -0
- compass_api_sdk/models/morphosupplycollateralrequest.py +91 -0
- compass_api_sdk/models/morphovault.py +47 -0
- compass_api_sdk/models/morphowithdrawcollateralrequest.py +91 -0
- compass_api_sdk/models/morphowithdrawrequest.py +74 -0
- compass_api_sdk/models/portfolio.py +22 -0
- compass_api_sdk/models/priceresponse.py +15 -0
- compass_api_sdk/models/security.py +24 -0
- compass_api_sdk/models/token_addressop.py +98 -0
- compass_api_sdk/models/token_balanceop.py +49 -0
- compass_api_sdk/models/token_enum.py +57 -0
- compass_api_sdk/models/token_priceop.py +97 -0
- compass_api_sdk/models/tokenaddressresponse.py +15 -0
- compass_api_sdk/models/tokenbalance.py +49 -0
- compass_api_sdk/models/tokenbalanceresponse.py +44 -0
- compass_api_sdk/models/tokeninfo.py +17 -0
- compass_api_sdk/models/tokenpriceresponse.py +15 -0
- compass_api_sdk/models/tokentransferrequest.py +66 -0
- compass_api_sdk/models/transfererc20request.py +62 -0
- compass_api_sdk/models/transferethrequest.py +46 -0
- compass_api_sdk/models/uniswap_liquidity_provision_in_rangeop.py +34 -0
- compass_api_sdk/models/uniswap_liquidity_provision_positionsop.py +35 -0
- compass_api_sdk/models/uniswap_pool_priceop.py +193 -0
- compass_api_sdk/models/uniswap_quote_buy_exactlyop.py +209 -0
- compass_api_sdk/models/uniswap_quote_sell_exactlyop.py +209 -0
- compass_api_sdk/models/uniswapbuyexactlyrequest.py +104 -0
- compass_api_sdk/models/uniswapbuyquoteinforesponse.py +20 -0
- compass_api_sdk/models/uniswapcheckinrangeresponse.py +15 -0
- compass_api_sdk/models/uniswapincreaseliquidityprovisionrequest.py +99 -0
- compass_api_sdk/models/uniswaplppositionsinforesponse.py +24 -0
- compass_api_sdk/models/uniswapmintliquidityprovisionrequest.py +185 -0
- compass_api_sdk/models/uniswappoolpriceresponse.py +47 -0
- compass_api_sdk/models/uniswappositionssolidityresponse.py +46 -0
- compass_api_sdk/models/uniswapsellexactlyrequest.py +104 -0
- compass_api_sdk/models/uniswapsellquoteinforesponse.py +20 -0
- compass_api_sdk/models/uniswapwithdrawliquidityprovisionrequest.py +51 -0
- compass_api_sdk/models/unsignedtransaction.py +58 -0
- compass_api_sdk/models/unwrapwethrequest.py +41 -0
- compass_api_sdk/models/validationerror.py +26 -0
- compass_api_sdk/models/vaultstate.py +32 -0
- compass_api_sdk/models/weeklyapys.py +23 -0
- compass_api_sdk/models/wrapethrequest.py +41 -0
- compass_api_sdk/morpho.py +2577 -0
- compass_api_sdk/py.typed +1 -0
- compass_api_sdk/sdk.py +155 -0
- compass_api_sdk/sdkconfiguration.py +56 -0
- compass_api_sdk/token_sdk.py +861 -0
- compass_api_sdk/types/__init__.py +21 -0
- compass_api_sdk/types/basemodel.py +39 -0
- compass_api_sdk/uniswap_v3.py +2551 -0
- compass_api_sdk/universal.py +2625 -0
- compass_api_sdk/utils/__init__.py +100 -0
- compass_api_sdk/utils/annotations.py +55 -0
- compass_api_sdk/utils/datetimes.py +23 -0
- compass_api_sdk/utils/enums.py +74 -0
- compass_api_sdk/utils/eventstreaming.py +238 -0
- compass_api_sdk/utils/forms.py +202 -0
- compass_api_sdk/utils/headers.py +136 -0
- compass_api_sdk/utils/logger.py +22 -0
- compass_api_sdk/utils/metadata.py +118 -0
- compass_api_sdk/utils/queryparams.py +205 -0
- compass_api_sdk/utils/requestbodies.py +66 -0
- compass_api_sdk/utils/retries.py +217 -0
- compass_api_sdk/utils/security.py +174 -0
- compass_api_sdk/utils/serializers.py +248 -0
- compass_api_sdk/utils/url.py +155 -0
- compass_api_sdk/utils/values.py +137 -0
- compass_api_sdk-0.0.1.dist-info/METADATA +534 -0
- compass_api_sdk-0.0.1.dist-info/RECORD +137 -0
- compass_api_sdk-0.0.1.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from compass_api_sdk.types import BaseModel
|
|
5
|
+
from typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class AaveUserPositionPerTokenResponseTypedDict(TypedDict):
|
|
9
|
+
token_balance: str
|
|
10
|
+
r"""The balance of AAVE aTokens (interest-bearing representations of your deposits)."""
|
|
11
|
+
stable_debt: str
|
|
12
|
+
r"""The amount of the user's debt with a fixed interest rate."""
|
|
13
|
+
variable_debt: str
|
|
14
|
+
r"""The amount of the user's debt with a variable interest rate."""
|
|
15
|
+
principal_stable_debt: str
|
|
16
|
+
r"""The amount of the user's debt that was part of the initial principal of all
|
|
17
|
+
loans with a stable interest rate.
|
|
18
|
+
"""
|
|
19
|
+
principal_variable_debt: str
|
|
20
|
+
r"""The amount of the user's debt that was part of the initial principal of all
|
|
21
|
+
loans with a variable interest rate. This is the value stored by AAVE, which may be slightly
|
|
22
|
+
inaccurate, but reflects what AAVE believes you initially paid.
|
|
23
|
+
"""
|
|
24
|
+
stable_borrow_rate: str
|
|
25
|
+
r"""The current average annualised interest rate for all your stable loans in
|
|
26
|
+
this pool.
|
|
27
|
+
"""
|
|
28
|
+
stable_borrow_rate_for_new_loans: str
|
|
29
|
+
r"""The annualised interest rate you would pay on a new stable loan."""
|
|
30
|
+
variable_borrow_rate: str
|
|
31
|
+
r"""The current annualised interest rate for variable rate loans in this pool.
|
|
32
|
+
(This applies to both current and new loans.)
|
|
33
|
+
"""
|
|
34
|
+
liquidity_rate: str
|
|
35
|
+
r"""The annualised interest rate for deposited supplies."""
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
class AaveUserPositionPerTokenResponse(BaseModel):
|
|
39
|
+
token_balance: str
|
|
40
|
+
r"""The balance of AAVE aTokens (interest-bearing representations of your deposits)."""
|
|
41
|
+
|
|
42
|
+
stable_debt: str
|
|
43
|
+
r"""The amount of the user's debt with a fixed interest rate."""
|
|
44
|
+
|
|
45
|
+
variable_debt: str
|
|
46
|
+
r"""The amount of the user's debt with a variable interest rate."""
|
|
47
|
+
|
|
48
|
+
principal_stable_debt: str
|
|
49
|
+
r"""The amount of the user's debt that was part of the initial principal of all
|
|
50
|
+
loans with a stable interest rate.
|
|
51
|
+
"""
|
|
52
|
+
|
|
53
|
+
principal_variable_debt: str
|
|
54
|
+
r"""The amount of the user's debt that was part of the initial principal of all
|
|
55
|
+
loans with a variable interest rate. This is the value stored by AAVE, which may be slightly
|
|
56
|
+
inaccurate, but reflects what AAVE believes you initially paid.
|
|
57
|
+
"""
|
|
58
|
+
|
|
59
|
+
stable_borrow_rate: str
|
|
60
|
+
r"""The current average annualised interest rate for all your stable loans in
|
|
61
|
+
this pool.
|
|
62
|
+
"""
|
|
63
|
+
|
|
64
|
+
stable_borrow_rate_for_new_loans: str
|
|
65
|
+
r"""The annualised interest rate you would pay on a new stable loan."""
|
|
66
|
+
|
|
67
|
+
variable_borrow_rate: str
|
|
68
|
+
r"""The current annualised interest rate for variable rate loans in this pool.
|
|
69
|
+
(This applies to both current and new loans.)
|
|
70
|
+
"""
|
|
71
|
+
|
|
72
|
+
liquidity_rate: str
|
|
73
|
+
r"""The annualised interest rate for deposited supplies."""
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from compass_api_sdk.types import BaseModel
|
|
5
|
+
from typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class AaveUserPositionSummaryResponseTypedDict(TypedDict):
|
|
9
|
+
maximum_loan_to_value_ratio: str
|
|
10
|
+
r"""The loan to value ratio of a user."""
|
|
11
|
+
health_factor: str
|
|
12
|
+
r"""The health factor of a user. If this is above 1 it is safe; below 1 and the
|
|
13
|
+
user is in risk of liquidation. This number might be very high (which would mean the user is
|
|
14
|
+
safe!)
|
|
15
|
+
"""
|
|
16
|
+
total_collateral: str
|
|
17
|
+
r"""The total collateral (in USD) of a user."""
|
|
18
|
+
total_debt: str
|
|
19
|
+
r"""The total debt (in USD) of a user."""
|
|
20
|
+
available_borrows: str
|
|
21
|
+
r"""The available borrows (in USD) of a user."""
|
|
22
|
+
liquidation_threshold: str
|
|
23
|
+
r"""The liquidation threshold of a user. A user might exceed this due to changing
|
|
24
|
+
asset values.
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class AaveUserPositionSummaryResponse(BaseModel):
|
|
29
|
+
maximum_loan_to_value_ratio: str
|
|
30
|
+
r"""The loan to value ratio of a user."""
|
|
31
|
+
|
|
32
|
+
health_factor: str
|
|
33
|
+
r"""The health factor of a user. If this is above 1 it is safe; below 1 and the
|
|
34
|
+
user is in risk of liquidation. This number might be very high (which would mean the user is
|
|
35
|
+
safe!)
|
|
36
|
+
"""
|
|
37
|
+
|
|
38
|
+
total_collateral: str
|
|
39
|
+
r"""The total collateral (in USD) of a user."""
|
|
40
|
+
|
|
41
|
+
total_debt: str
|
|
42
|
+
r"""The total debt (in USD) of a user."""
|
|
43
|
+
|
|
44
|
+
available_borrows: str
|
|
45
|
+
r"""The available borrows (in USD) of a user."""
|
|
46
|
+
|
|
47
|
+
liquidation_threshold: str
|
|
48
|
+
r"""The liquidation threshold of a user. A user might exceed this due to changing
|
|
49
|
+
asset values.
|
|
50
|
+
"""
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .chain import Chain
|
|
5
|
+
from .token_enum import TokenEnum
|
|
6
|
+
from compass_api_sdk.types import BaseModel
|
|
7
|
+
from typing import Union
|
|
8
|
+
from typing_extensions import TypeAliasType, TypedDict
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
AaveWithdrawRequestAmountTypedDict = TypeAliasType(
|
|
12
|
+
"AaveWithdrawRequestAmountTypedDict", Union[float, str]
|
|
13
|
+
)
|
|
14
|
+
r"""The amount of the asset to withdraw"""
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
AaveWithdrawRequestAmount = TypeAliasType(
|
|
18
|
+
"AaveWithdrawRequestAmount", Union[float, str]
|
|
19
|
+
)
|
|
20
|
+
r"""The amount of the asset to withdraw"""
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class AaveWithdrawRequestTypedDict(TypedDict):
|
|
24
|
+
token: TokenEnum
|
|
25
|
+
r"""A class representing the token.
|
|
26
|
+
|
|
27
|
+
This class is used to represent the token in the system. Notice individual
|
|
28
|
+
endpoints' documentation where per chain tokens are presented.
|
|
29
|
+
"""
|
|
30
|
+
amount: AaveWithdrawRequestAmountTypedDict
|
|
31
|
+
r"""The amount of the asset to withdraw"""
|
|
32
|
+
recipient: str
|
|
33
|
+
r"""The address of the recipient of the withdrawn funds."""
|
|
34
|
+
chain: Chain
|
|
35
|
+
r"""The chain to use."""
|
|
36
|
+
sender: str
|
|
37
|
+
r"""The address of the transaction sender."""
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
class AaveWithdrawRequest(BaseModel):
|
|
41
|
+
token: TokenEnum
|
|
42
|
+
r"""A class representing the token.
|
|
43
|
+
|
|
44
|
+
This class is used to represent the token in the system. Notice individual
|
|
45
|
+
endpoints' documentation where per chain tokens are presented.
|
|
46
|
+
"""
|
|
47
|
+
|
|
48
|
+
amount: AaveWithdrawRequestAmount
|
|
49
|
+
r"""The amount of the asset to withdraw"""
|
|
50
|
+
|
|
51
|
+
recipient: str
|
|
52
|
+
r"""The address of the recipient of the withdrawn funds."""
|
|
53
|
+
|
|
54
|
+
chain: Chain
|
|
55
|
+
r"""The chain to use."""
|
|
56
|
+
|
|
57
|
+
sender: str
|
|
58
|
+
r"""The address of the transaction sender."""
|
|
@@ -0,0 +1,35 @@
|
|
|
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 AerodromeSlipstreamLiquidityProvisionPositionsChain(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
|
+
|
|
18
|
+
|
|
19
|
+
class AerodromeSlipstreamLiquidityProvisionPositionsRequestTypedDict(TypedDict):
|
|
20
|
+
chain: NotRequired[AerodromeSlipstreamLiquidityProvisionPositionsChain]
|
|
21
|
+
r"""The chain to use."""
|
|
22
|
+
user: NotRequired[str]
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class AerodromeSlipstreamLiquidityProvisionPositionsRequest(BaseModel):
|
|
26
|
+
chain: Annotated[
|
|
27
|
+
Optional[AerodromeSlipstreamLiquidityProvisionPositionsChain],
|
|
28
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
29
|
+
] = AerodromeSlipstreamLiquidityProvisionPositionsChain.BASE_MAINNET
|
|
30
|
+
r"""The chain to use."""
|
|
31
|
+
|
|
32
|
+
user: Annotated[
|
|
33
|
+
Optional[str],
|
|
34
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
35
|
+
] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"
|
|
@@ -0,0 +1,173 @@
|
|
|
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 AerodromeSlipstreamPoolPriceChain(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
|
+
|
|
18
|
+
|
|
19
|
+
class AerodromeSlipstreamPoolPriceTokenInToken(str, Enum):
|
|
20
|
+
r"""A class representing the token.
|
|
21
|
+
|
|
22
|
+
This class is used to represent the token in the system. Notice individual
|
|
23
|
+
endpoints' documentation where per chain tokens are presented.
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
ONE_INCH = "1INCH"
|
|
27
|
+
AAVE = "AAVE"
|
|
28
|
+
BAL = "BAL"
|
|
29
|
+
CB_BTC = "cbBTC"
|
|
30
|
+
CB_ETH = "cbETH"
|
|
31
|
+
CRV = "CRV"
|
|
32
|
+
CRV_USD = "crvUSD"
|
|
33
|
+
DAI = "DAI"
|
|
34
|
+
ENS = "ENS"
|
|
35
|
+
ET_HX = "ETHx"
|
|
36
|
+
FRAX = "FRAX"
|
|
37
|
+
FXS = "FXS"
|
|
38
|
+
GHO = "GHO"
|
|
39
|
+
KNC = "KNC"
|
|
40
|
+
LDO = "LDO"
|
|
41
|
+
LINK = "LINK"
|
|
42
|
+
LUSD = "LUSD"
|
|
43
|
+
MKR = "MKR"
|
|
44
|
+
OS_ETH = "osETH"
|
|
45
|
+
PYUSD = "PYUSD"
|
|
46
|
+
R_ETH = "rETH"
|
|
47
|
+
RPL = "RPL"
|
|
48
|
+
RS_ETH = "rsETH"
|
|
49
|
+
S_DAI = "sDAI"
|
|
50
|
+
SNX = "SNX"
|
|
51
|
+
STG = "STG"
|
|
52
|
+
S_US_DE = "sUSDe"
|
|
53
|
+
T_BTC = "tBTC"
|
|
54
|
+
UNI = "UNI"
|
|
55
|
+
USDC = "USDC"
|
|
56
|
+
US_DE = "USDe"
|
|
57
|
+
USDS = "USDS"
|
|
58
|
+
USDT = "USDT"
|
|
59
|
+
WBTC = "WBTC"
|
|
60
|
+
WE_ETH = "weETH"
|
|
61
|
+
WETH = "WETH"
|
|
62
|
+
WST_ETH = "wstETH"
|
|
63
|
+
ARB = "ARB"
|
|
64
|
+
EURS = "EURS"
|
|
65
|
+
MAI = "MAI"
|
|
66
|
+
USD_CE = "USDCe"
|
|
67
|
+
AERO = "AERO"
|
|
68
|
+
EUR = "EUR"
|
|
69
|
+
VIRTUAL = "VIRTUAL"
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
class AerodromeSlipstreamPoolPriceTokenOutToken(str, Enum):
|
|
73
|
+
r"""A class representing the token.
|
|
74
|
+
|
|
75
|
+
This class is used to represent the token in the system. Notice individual
|
|
76
|
+
endpoints' documentation where per chain tokens are presented.
|
|
77
|
+
"""
|
|
78
|
+
|
|
79
|
+
ONE_INCH = "1INCH"
|
|
80
|
+
AAVE = "AAVE"
|
|
81
|
+
BAL = "BAL"
|
|
82
|
+
CB_BTC = "cbBTC"
|
|
83
|
+
CB_ETH = "cbETH"
|
|
84
|
+
CRV = "CRV"
|
|
85
|
+
CRV_USD = "crvUSD"
|
|
86
|
+
DAI = "DAI"
|
|
87
|
+
ENS = "ENS"
|
|
88
|
+
ET_HX = "ETHx"
|
|
89
|
+
FRAX = "FRAX"
|
|
90
|
+
FXS = "FXS"
|
|
91
|
+
GHO = "GHO"
|
|
92
|
+
KNC = "KNC"
|
|
93
|
+
LDO = "LDO"
|
|
94
|
+
LINK = "LINK"
|
|
95
|
+
LUSD = "LUSD"
|
|
96
|
+
MKR = "MKR"
|
|
97
|
+
OS_ETH = "osETH"
|
|
98
|
+
PYUSD = "PYUSD"
|
|
99
|
+
R_ETH = "rETH"
|
|
100
|
+
RPL = "RPL"
|
|
101
|
+
RS_ETH = "rsETH"
|
|
102
|
+
S_DAI = "sDAI"
|
|
103
|
+
SNX = "SNX"
|
|
104
|
+
STG = "STG"
|
|
105
|
+
S_US_DE = "sUSDe"
|
|
106
|
+
T_BTC = "tBTC"
|
|
107
|
+
UNI = "UNI"
|
|
108
|
+
USDC = "USDC"
|
|
109
|
+
US_DE = "USDe"
|
|
110
|
+
USDS = "USDS"
|
|
111
|
+
USDT = "USDT"
|
|
112
|
+
WBTC = "WBTC"
|
|
113
|
+
WE_ETH = "weETH"
|
|
114
|
+
WETH = "WETH"
|
|
115
|
+
WST_ETH = "wstETH"
|
|
116
|
+
ARB = "ARB"
|
|
117
|
+
EURS = "EURS"
|
|
118
|
+
MAI = "MAI"
|
|
119
|
+
USD_CE = "USDCe"
|
|
120
|
+
AERO = "AERO"
|
|
121
|
+
EUR = "EUR"
|
|
122
|
+
VIRTUAL = "VIRTUAL"
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
class AerodromeSlipstreamPoolPriceRequestTypedDict(TypedDict):
|
|
126
|
+
chain: NotRequired[AerodromeSlipstreamPoolPriceChain]
|
|
127
|
+
r"""The chain to use."""
|
|
128
|
+
token_in: NotRequired[AerodromeSlipstreamPoolPriceTokenInToken]
|
|
129
|
+
r"""A class representing the token.
|
|
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
|
+
"""
|
|
134
|
+
token_out: NotRequired[AerodromeSlipstreamPoolPriceTokenOutToken]
|
|
135
|
+
r"""A class representing the token.
|
|
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
|
+
"""
|
|
140
|
+
tick_spacing: NotRequired[int]
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
class AerodromeSlipstreamPoolPriceRequest(BaseModel):
|
|
144
|
+
chain: Annotated[
|
|
145
|
+
Optional[AerodromeSlipstreamPoolPriceChain],
|
|
146
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
147
|
+
] = AerodromeSlipstreamPoolPriceChain.BASE_MAINNET
|
|
148
|
+
r"""The chain to use."""
|
|
149
|
+
|
|
150
|
+
token_in: Annotated[
|
|
151
|
+
Optional[AerodromeSlipstreamPoolPriceTokenInToken],
|
|
152
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
153
|
+
] = AerodromeSlipstreamPoolPriceTokenInToken.USDC
|
|
154
|
+
r"""A class representing the token.
|
|
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
|
+
"""
|
|
159
|
+
|
|
160
|
+
token_out: Annotated[
|
|
161
|
+
Optional[AerodromeSlipstreamPoolPriceTokenOutToken],
|
|
162
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
163
|
+
] = AerodromeSlipstreamPoolPriceTokenOutToken.WETH
|
|
164
|
+
r"""A class representing the token.
|
|
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
|
+
"""
|
|
169
|
+
|
|
170
|
+
tick_spacing: Annotated[
|
|
171
|
+
Optional[int],
|
|
172
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
173
|
+
] = 100
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .aerodromeposition import AerodromePosition, AerodromePositionTypedDict
|
|
5
|
+
from compass_api_sdk.types import BaseModel
|
|
6
|
+
from typing import Dict
|
|
7
|
+
from typing_extensions import TypedDict
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class AerodromeLPPositionsResponseTypedDict(TypedDict):
|
|
11
|
+
positions: Dict[str, AerodromePositionTypedDict]
|
|
12
|
+
r"""Liquidity provision positions belonging to a particular user. The key is a
|
|
13
|
+
tuple of the token0, token1, tick_spacing, tick_lower, and tick_upper of the position.
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class AerodromeLPPositionsResponse(BaseModel):
|
|
18
|
+
positions: Dict[str, AerodromePosition]
|
|
19
|
+
r"""Liquidity provision positions belonging to a particular user. The key is a
|
|
20
|
+
tuple of the token0, token1, tick_spacing, tick_lower, and tick_upper of the position.
|
|
21
|
+
"""
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .token_enum import TokenEnum
|
|
5
|
+
from compass_api_sdk.types import BaseModel
|
|
6
|
+
from typing_extensions import TypedDict
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class AerodromePositionTypedDict(TypedDict):
|
|
10
|
+
nonce: int
|
|
11
|
+
operator: str
|
|
12
|
+
token0: TokenEnum
|
|
13
|
+
r"""A class representing the token.
|
|
14
|
+
|
|
15
|
+
This class is used to represent the token in the system. Notice individual
|
|
16
|
+
endpoints' documentation where per chain tokens are presented.
|
|
17
|
+
"""
|
|
18
|
+
token1: TokenEnum
|
|
19
|
+
r"""A class representing the token.
|
|
20
|
+
|
|
21
|
+
This class is used to represent the token in the system. Notice individual
|
|
22
|
+
endpoints' documentation where per chain tokens are presented.
|
|
23
|
+
"""
|
|
24
|
+
tick_spacing: int
|
|
25
|
+
tick_lower: int
|
|
26
|
+
tick_upper: int
|
|
27
|
+
liquidity: int
|
|
28
|
+
fee_growth_inside0_last_x128: int
|
|
29
|
+
fee_growth_inside1_last_x128: int
|
|
30
|
+
tokens_owed0: int
|
|
31
|
+
tokens_owed1: int
|
|
32
|
+
token_id: int
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class AerodromePosition(BaseModel):
|
|
36
|
+
nonce: int
|
|
37
|
+
|
|
38
|
+
operator: str
|
|
39
|
+
|
|
40
|
+
token0: TokenEnum
|
|
41
|
+
r"""A class representing the token.
|
|
42
|
+
|
|
43
|
+
This class is used to represent the token in the system. Notice individual
|
|
44
|
+
endpoints' documentation where per chain tokens are presented.
|
|
45
|
+
"""
|
|
46
|
+
|
|
47
|
+
token1: TokenEnum
|
|
48
|
+
r"""A class representing the token.
|
|
49
|
+
|
|
50
|
+
This class is used to represent the token in the system. Notice individual
|
|
51
|
+
endpoints' documentation where per chain tokens are presented.
|
|
52
|
+
"""
|
|
53
|
+
|
|
54
|
+
tick_spacing: int
|
|
55
|
+
|
|
56
|
+
tick_lower: int
|
|
57
|
+
|
|
58
|
+
tick_upper: int
|
|
59
|
+
|
|
60
|
+
liquidity: int
|
|
61
|
+
|
|
62
|
+
fee_growth_inside0_last_x128: int
|
|
63
|
+
|
|
64
|
+
fee_growth_inside1_last_x128: int
|
|
65
|
+
|
|
66
|
+
tokens_owed0: int
|
|
67
|
+
|
|
68
|
+
tokens_owed1: int
|
|
69
|
+
|
|
70
|
+
token_id: int
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .chain import Chain
|
|
5
|
+
from .token_enum import TokenEnum
|
|
6
|
+
from compass_api_sdk.types import BaseModel
|
|
7
|
+
from typing import Union
|
|
8
|
+
from typing_extensions import TypeAliasType, TypedDict
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
AerodromeSlipstreamBuyExactlyRequestAmountOutTypedDict = TypeAliasType(
|
|
12
|
+
"AerodromeSlipstreamBuyExactlyRequestAmountOutTypedDict", Union[float, str]
|
|
13
|
+
)
|
|
14
|
+
r"""The amount of the token to swap to"""
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
AerodromeSlipstreamBuyExactlyRequestAmountOut = TypeAliasType(
|
|
18
|
+
"AerodromeSlipstreamBuyExactlyRequestAmountOut", Union[float, str]
|
|
19
|
+
)
|
|
20
|
+
r"""The amount of the token to swap to"""
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
AerodromeSlipstreamBuyExactlyRequestAmountInMaximumTypedDict = TypeAliasType(
|
|
24
|
+
"AerodromeSlipstreamBuyExactlyRequestAmountInMaximumTypedDict", Union[float, str]
|
|
25
|
+
)
|
|
26
|
+
r"""The maximum amount of the token to swap from"""
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
AerodromeSlipstreamBuyExactlyRequestAmountInMaximum = TypeAliasType(
|
|
30
|
+
"AerodromeSlipstreamBuyExactlyRequestAmountInMaximum", Union[float, str]
|
|
31
|
+
)
|
|
32
|
+
r"""The maximum amount of the token to swap from"""
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class AerodromeSlipstreamBuyExactlyRequestTypedDict(TypedDict):
|
|
36
|
+
r"""Request model for buying exactly an amount of tokens."""
|
|
37
|
+
|
|
38
|
+
token_in: TokenEnum
|
|
39
|
+
r"""A class representing the token.
|
|
40
|
+
|
|
41
|
+
This class is used to represent the token in the system. Notice individual
|
|
42
|
+
endpoints' documentation where per chain tokens are presented.
|
|
43
|
+
"""
|
|
44
|
+
token_out: TokenEnum
|
|
45
|
+
r"""A class representing the token.
|
|
46
|
+
|
|
47
|
+
This class is used to represent the token in the system. Notice individual
|
|
48
|
+
endpoints' documentation where per chain tokens are presented.
|
|
49
|
+
"""
|
|
50
|
+
tick_spacing: int
|
|
51
|
+
r"""The tick spacing of the pool"""
|
|
52
|
+
amount_out: AerodromeSlipstreamBuyExactlyRequestAmountOutTypedDict
|
|
53
|
+
r"""The amount of the token to swap to"""
|
|
54
|
+
amount_in_maximum: AerodromeSlipstreamBuyExactlyRequestAmountInMaximumTypedDict
|
|
55
|
+
r"""The maximum amount of the token to swap from"""
|
|
56
|
+
chain: Chain
|
|
57
|
+
r"""The chain to use."""
|
|
58
|
+
sender: str
|
|
59
|
+
r"""The address of the transaction sender."""
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
class AerodromeSlipstreamBuyExactlyRequest(BaseModel):
|
|
63
|
+
r"""Request model for buying exactly an amount of tokens."""
|
|
64
|
+
|
|
65
|
+
token_in: TokenEnum
|
|
66
|
+
r"""A class representing the token.
|
|
67
|
+
|
|
68
|
+
This class is used to represent the token in the system. Notice individual
|
|
69
|
+
endpoints' documentation where per chain tokens are presented.
|
|
70
|
+
"""
|
|
71
|
+
|
|
72
|
+
token_out: TokenEnum
|
|
73
|
+
r"""A class representing the token.
|
|
74
|
+
|
|
75
|
+
This class is used to represent the token in the system. Notice individual
|
|
76
|
+
endpoints' documentation where per chain tokens are presented.
|
|
77
|
+
"""
|
|
78
|
+
|
|
79
|
+
tick_spacing: int
|
|
80
|
+
r"""The tick spacing of the pool"""
|
|
81
|
+
|
|
82
|
+
amount_out: AerodromeSlipstreamBuyExactlyRequestAmountOut
|
|
83
|
+
r"""The amount of the token to swap to"""
|
|
84
|
+
|
|
85
|
+
amount_in_maximum: AerodromeSlipstreamBuyExactlyRequestAmountInMaximum
|
|
86
|
+
r"""The maximum amount of the token to swap from"""
|
|
87
|
+
|
|
88
|
+
chain: Chain
|
|
89
|
+
r"""The chain to use."""
|
|
90
|
+
|
|
91
|
+
sender: str
|
|
92
|
+
r"""The address of the transaction sender."""
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .chain import Chain
|
|
5
|
+
from compass_api_sdk.types import BaseModel
|
|
6
|
+
from typing import Union
|
|
7
|
+
from typing_extensions import TypeAliasType, TypedDict
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount0DesiredTypedDict = (
|
|
11
|
+
TypeAliasType(
|
|
12
|
+
"AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount0DesiredTypedDict",
|
|
13
|
+
Union[float, str],
|
|
14
|
+
)
|
|
15
|
+
)
|
|
16
|
+
r"""The desired amount of the first token to deposit"""
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount0Desired = TypeAliasType(
|
|
20
|
+
"AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount0Desired",
|
|
21
|
+
Union[float, str],
|
|
22
|
+
)
|
|
23
|
+
r"""The desired amount of the first token to deposit"""
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount1DesiredTypedDict = (
|
|
27
|
+
TypeAliasType(
|
|
28
|
+
"AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount1DesiredTypedDict",
|
|
29
|
+
Union[float, str],
|
|
30
|
+
)
|
|
31
|
+
)
|
|
32
|
+
r"""The desired amount of the second token to deposit"""
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount1Desired = TypeAliasType(
|
|
36
|
+
"AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount1Desired",
|
|
37
|
+
Union[float, str],
|
|
38
|
+
)
|
|
39
|
+
r"""The desired amount of the second token to deposit"""
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount0MinTypedDict = TypeAliasType(
|
|
43
|
+
"AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount0MinTypedDict",
|
|
44
|
+
Union[float, str],
|
|
45
|
+
)
|
|
46
|
+
r"""The minimum amount of the first token to deposit"""
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount0Min = TypeAliasType(
|
|
50
|
+
"AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount0Min", Union[float, str]
|
|
51
|
+
)
|
|
52
|
+
r"""The minimum amount of the first token to deposit"""
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount1MinTypedDict = TypeAliasType(
|
|
56
|
+
"AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount1MinTypedDict",
|
|
57
|
+
Union[float, str],
|
|
58
|
+
)
|
|
59
|
+
r"""The minimum amount of the second token to deposit"""
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount1Min = TypeAliasType(
|
|
63
|
+
"AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount1Min", Union[float, str]
|
|
64
|
+
)
|
|
65
|
+
r"""The minimum amount of the second token to deposit"""
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
class AerodromeSlipstreamIncreaseLiquidityProvisionRequestTypedDict(TypedDict):
|
|
69
|
+
token_id: int
|
|
70
|
+
r"""Token ID of the NFT representing the liquidity provisioned position."""
|
|
71
|
+
amount0_desired: (
|
|
72
|
+
AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount0DesiredTypedDict
|
|
73
|
+
)
|
|
74
|
+
r"""The desired amount of the first token to deposit"""
|
|
75
|
+
amount1_desired: (
|
|
76
|
+
AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount1DesiredTypedDict
|
|
77
|
+
)
|
|
78
|
+
r"""The desired amount of the second token to deposit"""
|
|
79
|
+
amount0_min: AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount0MinTypedDict
|
|
80
|
+
r"""The minimum amount of the first token to deposit"""
|
|
81
|
+
amount1_min: AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount1MinTypedDict
|
|
82
|
+
r"""The minimum amount of the second token to deposit"""
|
|
83
|
+
chain: Chain
|
|
84
|
+
r"""The chain to use."""
|
|
85
|
+
sender: str
|
|
86
|
+
r"""The address of the transaction sender."""
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
class AerodromeSlipstreamIncreaseLiquidityProvisionRequest(BaseModel):
|
|
90
|
+
token_id: int
|
|
91
|
+
r"""Token ID of the NFT representing the liquidity provisioned position."""
|
|
92
|
+
|
|
93
|
+
amount0_desired: AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount0Desired
|
|
94
|
+
r"""The desired amount of the first token to deposit"""
|
|
95
|
+
|
|
96
|
+
amount1_desired: AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount1Desired
|
|
97
|
+
r"""The desired amount of the second token to deposit"""
|
|
98
|
+
|
|
99
|
+
amount0_min: AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount0Min
|
|
100
|
+
r"""The minimum amount of the first token to deposit"""
|
|
101
|
+
|
|
102
|
+
amount1_min: AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount1Min
|
|
103
|
+
r"""The minimum amount of the second token to deposit"""
|
|
104
|
+
|
|
105
|
+
chain: Chain
|
|
106
|
+
r"""The chain to use."""
|
|
107
|
+
|
|
108
|
+
sender: str
|
|
109
|
+
r"""The address of the transaction sender."""
|