compass_api_sdk 1.1.2__py3-none-any.whl → 1.1.3__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/_version.py +3 -3
- compass_api_sdk/aave_v3.py +68 -44
- compass_api_sdk/aerodrome_slipstream.py +62 -32
- compass_api_sdk/erc_4626_vaults.py +12 -0
- compass_api_sdk/ethena.py +18 -0
- compass_api_sdk/models/__init__.py +0 -254
- compass_api_sdk/models/aaveborrowparams.py +4 -13
- compass_api_sdk/models/aaveborrowrequest.py +10 -14
- compass_api_sdk/models/aavelooprequest.py +18 -26
- compass_api_sdk/models/aaverepayparams.py +4 -13
- compass_api_sdk/models/aaverepayrequest.py +10 -14
- compass_api_sdk/models/aavesupplyparams.py +4 -13
- compass_api_sdk/models/aavesupplyrequest.py +10 -14
- compass_api_sdk/models/aavewithdrawparams.py +4 -13
- compass_api_sdk/models/aavewithdrawrequest.py +10 -14
- compass_api_sdk/models/aerodromeposition.py +4 -25
- compass_api_sdk/models/aerodromeslipstreambuyexactlyparams.py +8 -25
- compass_api_sdk/models/aerodromeslipstreambuyexactlyrequest.py +14 -26
- compass_api_sdk/models/aerodromeslipstreamincreaseliquidityprovisionrequest.py +6 -1
- compass_api_sdk/models/aerodromeslipstreammintliquidityprovisionparams.py +8 -25
- compass_api_sdk/models/aerodromeslipstreammintliquidityprovisionrequest.py +14 -26
- compass_api_sdk/models/aerodromeslipstreampoolpriceresponse.py +8 -25
- compass_api_sdk/models/aerodromeslipstreamsellexactlyparams.py +8 -25
- compass_api_sdk/models/aerodromeslipstreamsellexactlyrequest.py +13 -25
- compass_api_sdk/models/aerodromeslipstreamwithdrawliquidityprovisionrequest.py +6 -1
- compass_api_sdk/models/batcheduseroperationsrequest.py +15 -4
- compass_api_sdk/models/compass_api_backend_models_generic_read_response_portfolio_tokenbalance.py +4 -13
- compass_api_sdk/models/ethenadepositrequest.py +6 -1
- compass_api_sdk/models/ethenarequesttowithdrawrequest.py +6 -1
- compass_api_sdk/models/ethenaunstakerequest.py +6 -1
- compass_api_sdk/models/morphoborrowrequest.py +6 -1
- compass_api_sdk/models/morphodepositrequest.py +6 -1
- compass_api_sdk/models/morphorepayrequest.py +11 -1
- compass_api_sdk/models/morphosupplycollateralrequest.py +11 -1
- compass_api_sdk/models/morphowithdrawcollateralrequest.py +6 -1
- compass_api_sdk/models/morphowithdrawrequest.py +6 -1
- compass_api_sdk/models/multicallexecuterequest.py +7 -2
- compass_api_sdk/models/odosswapparams.py +4 -25
- compass_api_sdk/models/odosswaprequest.py +10 -28
- compass_api_sdk/models/pendlemanageliquidityparams.py +2 -15
- compass_api_sdk/models/pendlemanageliquidityrequest.py +8 -16
- compass_api_sdk/models/pendleredeemyieldrequest.py +6 -1
- compass_api_sdk/models/pendletradeptparams.py +2 -15
- compass_api_sdk/models/pendletradeptrequest.py +8 -16
- compass_api_sdk/models/pendletradeytparams.py +2 -15
- compass_api_sdk/models/pendletradeytrequest.py +8 -16
- compass_api_sdk/models/reserve.py +6 -15
- compass_api_sdk/models/setallowanceparams.py +2 -15
- compass_api_sdk/models/setallowancerequest.py +8 -16
- compass_api_sdk/models/skybuyrequest.py +6 -1
- compass_api_sdk/models/skydepositrequest.py +6 -1
- compass_api_sdk/models/skysellrequest.py +7 -2
- compass_api_sdk/models/skywithdrawrequest.py +6 -1
- compass_api_sdk/models/tokenbalanceresponse.py +5 -15
- compass_api_sdk/models/tokentransferparams.py +2 -15
- compass_api_sdk/models/tokentransferrequest.py +8 -16
- compass_api_sdk/models/uniswapbuyexactlyparams.py +8 -33
- compass_api_sdk/models/uniswapbuyexactlyrequest.py +14 -34
- compass_api_sdk/models/uniswapincreaseliquidityprovisionrequest.py +6 -1
- compass_api_sdk/models/uniswapmintliquidityprovisionparams.py +8 -25
- compass_api_sdk/models/uniswapmintliquidityprovisionrequest.py +14 -26
- compass_api_sdk/models/uniswappoolpriceresponse.py +8 -25
- compass_api_sdk/models/uniswapsellexactlyparams.py +4 -29
- compass_api_sdk/models/uniswapsellexactlyrequest.py +10 -30
- compass_api_sdk/models/uniswapwithdrawliquidityprovisionrequest.py +6 -1
- compass_api_sdk/models/unsignedmulticalltransaction.py +34 -3
- compass_api_sdk/models/unsignedtransaction.py +34 -3
- compass_api_sdk/models/unwrapwethrequest.py +6 -1
- compass_api_sdk/models/v1_aave_avg_rateop.py +5 -83
- compass_api_sdk/models/v1_aave_liquidity_changeop.py +5 -83
- compass_api_sdk/models/v1_aave_rateop.py +5 -83
- compass_api_sdk/models/v1_aave_reserve_overviewop.py +5 -83
- compass_api_sdk/models/v1_aave_std_rateop.py +5 -83
- compass_api_sdk/models/v1_aave_token_priceop.py +5 -83
- compass_api_sdk/models/v1_aave_user_position_per_tokenop.py +5 -83
- compass_api_sdk/models/v1_aerodrome_slipstream_pool_priceop.py +10 -166
- compass_api_sdk/models/v1_generic_allowanceop.py +7 -21
- compass_api_sdk/models/v1_morpho_marketsop.py +9 -29
- compass_api_sdk/models/v1_morpho_vaultsop.py +5 -15
- compass_api_sdk/models/v1_sky_positionop.py +4 -5
- compass_api_sdk/models/v1_token_balanceop.py +10 -23
- compass_api_sdk/models/v1_token_priceop.py +7 -8
- compass_api_sdk/models/v1_uniswap_pool_priceop.py +10 -166
- compass_api_sdk/models/v1_uniswap_quote_buy_exactlyop.py +10 -166
- compass_api_sdk/models/v1_uniswap_quote_sell_exactlyop.py +10 -166
- compass_api_sdk/models/vaultdepositrequest.py +6 -1
- compass_api_sdk/models/vaultwithdrawrequest.py +6 -1
- compass_api_sdk/models/wrapethrequest.py +6 -1
- compass_api_sdk/morpho.py +48 -24
- compass_api_sdk/pendle.py +30 -20
- compass_api_sdk/sdk.py +3 -3
- compass_api_sdk/sky.py +38 -16
- compass_api_sdk/smart_account.py +6 -0
- compass_api_sdk/swap.py +10 -12
- compass_api_sdk/{token_sdk.py → token.py} +19 -197
- compass_api_sdk/transaction_bundler.py +20 -8
- compass_api_sdk/uniswap_v3.py +74 -68
- compass_api_sdk/universal.py +24 -188
- {compass_api_sdk-1.1.2.dist-info → compass_api_sdk-1.1.3.dist-info}/METADATA +5 -7
- {compass_api_sdk-1.1.2.dist-info → compass_api_sdk-1.1.3.dist-info}/RECORD +101 -106
- compass_api_sdk/models/token_enum.py +0 -81
- compass_api_sdk/models/tokenaddressresponse.py +0 -15
- compass_api_sdk/models/tokeninfo.py +0 -17
- compass_api_sdk/models/v1_generic_supported_tokensop.py +0 -24
- compass_api_sdk/models/v1_token_addressop.py +0 -109
- {compass_api_sdk-1.1.2.dist-info → compass_api_sdk-1.1.3.dist-info}/WHEEL +0 -0
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .token_enum import TokenEnum
|
|
5
4
|
from compass_api_sdk.types import (
|
|
6
5
|
BaseModel,
|
|
7
6
|
Nullable,
|
|
@@ -12,8 +11,7 @@ from compass_api_sdk.types import (
|
|
|
12
11
|
from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
|
|
13
12
|
from enum import Enum
|
|
14
13
|
from pydantic import model_serializer
|
|
15
|
-
from
|
|
16
|
-
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
14
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
17
15
|
|
|
18
16
|
|
|
19
17
|
class V1MorphoMarketsChain(str, Enum):
|
|
@@ -22,30 +20,12 @@ class V1MorphoMarketsChain(str, Enum):
|
|
|
22
20
|
ETHEREUM = "ethereum"
|
|
23
21
|
|
|
24
22
|
|
|
25
|
-
CollateralTokenTypedDict = TypeAliasType(
|
|
26
|
-
"CollateralTokenTypedDict", Union[TokenEnum, str]
|
|
27
|
-
)
|
|
28
|
-
r"""Collateral token to identify the market."""
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
CollateralToken = TypeAliasType("CollateralToken", Union[TokenEnum, str])
|
|
32
|
-
r"""Collateral token to identify the market."""
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
LoanTokenTypedDict = TypeAliasType("LoanTokenTypedDict", Union[TokenEnum, str])
|
|
36
|
-
r"""Loan token to identify the market."""
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
LoanToken = TypeAliasType("LoanToken", Union[TokenEnum, str])
|
|
40
|
-
r"""Loan token to identify the market."""
|
|
41
|
-
|
|
42
|
-
|
|
43
23
|
class V1MorphoMarketsRequestTypedDict(TypedDict):
|
|
44
24
|
chain: V1MorphoMarketsChain
|
|
45
|
-
collateral_token: NotRequired[Nullable[
|
|
46
|
-
r"""
|
|
47
|
-
loan_token: NotRequired[Nullable[
|
|
48
|
-
r"""
|
|
25
|
+
collateral_token: NotRequired[Nullable[str]]
|
|
26
|
+
r"""Symbol or address of the collateral token to filter markets by. Optional parameter."""
|
|
27
|
+
loan_token: NotRequired[Nullable[str]]
|
|
28
|
+
r"""Symbol or address of the loan token to filter markets by. Optional parameter."""
|
|
49
29
|
|
|
50
30
|
|
|
51
31
|
class V1MorphoMarketsRequest(BaseModel):
|
|
@@ -55,16 +35,16 @@ class V1MorphoMarketsRequest(BaseModel):
|
|
|
55
35
|
] = V1MorphoMarketsChain.BASE
|
|
56
36
|
|
|
57
37
|
collateral_token: Annotated[
|
|
58
|
-
OptionalNullable[
|
|
38
|
+
OptionalNullable[str],
|
|
59
39
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
60
40
|
] = UNSET
|
|
61
|
-
r"""
|
|
41
|
+
r"""Symbol or address of the collateral token to filter markets by. Optional parameter."""
|
|
62
42
|
|
|
63
43
|
loan_token: Annotated[
|
|
64
|
-
OptionalNullable[
|
|
44
|
+
OptionalNullable[str],
|
|
65
45
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
66
46
|
] = UNSET
|
|
67
|
-
r"""
|
|
47
|
+
r"""Symbol or address of the loan token to filter markets by. Optional parameter."""
|
|
68
48
|
|
|
69
49
|
@model_serializer(mode="wrap")
|
|
70
50
|
def serialize_model(self, handler):
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .token_enum import TokenEnum
|
|
5
4
|
from compass_api_sdk.types import (
|
|
6
5
|
BaseModel,
|
|
7
6
|
Nullable,
|
|
@@ -12,8 +11,7 @@ from compass_api_sdk.types import (
|
|
|
12
11
|
from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
|
|
13
12
|
from enum import Enum
|
|
14
13
|
from pydantic import model_serializer
|
|
15
|
-
from
|
|
16
|
-
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
14
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
17
15
|
|
|
18
16
|
|
|
19
17
|
class V1MorphoVaultsChain(str, Enum):
|
|
@@ -22,18 +20,10 @@ class V1MorphoVaultsChain(str, Enum):
|
|
|
22
20
|
ETHEREUM = "ethereum"
|
|
23
21
|
|
|
24
22
|
|
|
25
|
-
DepositTokenTypedDict = TypeAliasType("DepositTokenTypedDict", Union[TokenEnum, str])
|
|
26
|
-
r"""Token address that will filter vaults by this deposit token."""
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
DepositToken = TypeAliasType("DepositToken", Union[TokenEnum, str])
|
|
30
|
-
r"""Token address that will filter vaults by this deposit token."""
|
|
31
|
-
|
|
32
|
-
|
|
33
23
|
class V1MorphoVaultsRequestTypedDict(TypedDict):
|
|
34
24
|
chain: V1MorphoVaultsChain
|
|
35
|
-
deposit_token: NotRequired[Nullable[
|
|
36
|
-
r"""
|
|
25
|
+
deposit_token: NotRequired[Nullable[str]]
|
|
26
|
+
r"""Symbol or address of the deposit token to filter vaults by. Optional parameter."""
|
|
37
27
|
|
|
38
28
|
|
|
39
29
|
class V1MorphoVaultsRequest(BaseModel):
|
|
@@ -43,10 +33,10 @@ class V1MorphoVaultsRequest(BaseModel):
|
|
|
43
33
|
] = V1MorphoVaultsChain.BASE
|
|
44
34
|
|
|
45
35
|
deposit_token: Annotated[
|
|
46
|
-
OptionalNullable[
|
|
36
|
+
OptionalNullable[str],
|
|
47
37
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
48
38
|
] = UNSET
|
|
49
|
-
r"""
|
|
39
|
+
r"""Symbol or address of the deposit token to filter vaults by. Optional parameter."""
|
|
50
40
|
|
|
51
41
|
@model_serializer(mode="wrap")
|
|
52
42
|
def serialize_model(self, handler):
|
|
@@ -4,8 +4,7 @@ from __future__ import annotations
|
|
|
4
4
|
from compass_api_sdk.types import BaseModel
|
|
5
5
|
from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
|
|
6
6
|
from enum import Enum
|
|
7
|
-
from
|
|
8
|
-
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
7
|
+
from typing_extensions import Annotated, TypedDict
|
|
9
8
|
|
|
10
9
|
|
|
11
10
|
class V1SkyPositionChain(str, Enum):
|
|
@@ -13,18 +12,18 @@ class V1SkyPositionChain(str, Enum):
|
|
|
13
12
|
|
|
14
13
|
|
|
15
14
|
class V1SkyPositionRequestTypedDict(TypedDict):
|
|
16
|
-
chain:
|
|
15
|
+
chain: V1SkyPositionChain
|
|
17
16
|
user_address: str
|
|
18
17
|
r"""The user-address of the desired position."""
|
|
19
18
|
|
|
20
19
|
|
|
21
20
|
class V1SkyPositionRequest(BaseModel):
|
|
22
21
|
chain: Annotated[
|
|
23
|
-
|
|
22
|
+
V1SkyPositionChain,
|
|
24
23
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
25
24
|
] = V1SkyPositionChain.ETHEREUM
|
|
26
25
|
|
|
27
26
|
user_address: Annotated[
|
|
28
27
|
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
29
|
-
] = "
|
|
28
|
+
] = "0xacCEE9C7A5a759f814C7A770e2D8F78d662b1F60"
|
|
30
29
|
r"""The user-address of the desired position."""
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .token_enum import TokenEnum
|
|
5
4
|
from compass_api_sdk.types import BaseModel
|
|
6
5
|
from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
|
|
7
6
|
from enum import Enum
|
|
8
|
-
from
|
|
9
|
-
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
7
|
+
from typing_extensions import Annotated, TypedDict
|
|
10
8
|
|
|
11
9
|
|
|
12
10
|
class V1TokenBalanceChain(str, Enum):
|
|
@@ -15,31 +13,15 @@ class V1TokenBalanceChain(str, Enum):
|
|
|
15
13
|
ETHEREUM = "ethereum"
|
|
16
14
|
|
|
17
15
|
|
|
18
|
-
V1TokenBalanceTokenTypedDict = TypeAliasType(
|
|
19
|
-
"V1TokenBalanceTokenTypedDict", Union[TokenEnum, str]
|
|
20
|
-
)
|
|
21
|
-
r"""The symbol of the token for which the balance is checked.."""
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
V1TokenBalanceToken = TypeAliasType("V1TokenBalanceToken", Union[TokenEnum, str])
|
|
25
|
-
r"""The symbol of the token for which the balance is checked.."""
|
|
26
|
-
|
|
27
|
-
|
|
28
16
|
class V1TokenBalanceRequestTypedDict(TypedDict):
|
|
29
|
-
token: V1TokenBalanceTokenTypedDict
|
|
30
|
-
r"""The symbol of the token for which the balance is checked.."""
|
|
31
17
|
chain: V1TokenBalanceChain
|
|
32
18
|
user: str
|
|
33
|
-
r"""The user to get the
|
|
19
|
+
r"""The user to get the token balance of."""
|
|
20
|
+
token: str
|
|
21
|
+
r"""The symbol or address of the token for which the balance is checked."""
|
|
34
22
|
|
|
35
23
|
|
|
36
24
|
class V1TokenBalanceRequest(BaseModel):
|
|
37
|
-
token: Annotated[
|
|
38
|
-
V1TokenBalanceToken,
|
|
39
|
-
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
40
|
-
]
|
|
41
|
-
r"""The symbol of the token for which the balance is checked.."""
|
|
42
|
-
|
|
43
25
|
chain: Annotated[
|
|
44
26
|
V1TokenBalanceChain,
|
|
45
27
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
@@ -48,4 +30,9 @@ class V1TokenBalanceRequest(BaseModel):
|
|
|
48
30
|
user: Annotated[
|
|
49
31
|
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
50
32
|
] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"
|
|
51
|
-
r"""The user to get the
|
|
33
|
+
r"""The user to get the token balance of."""
|
|
34
|
+
|
|
35
|
+
token: Annotated[
|
|
36
|
+
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
37
|
+
] = "USDC"
|
|
38
|
+
r"""The symbol or address of the token for which the balance is checked."""
|
|
@@ -11,7 +11,6 @@ from compass_api_sdk.types import (
|
|
|
11
11
|
from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
|
|
12
12
|
from enum import Enum
|
|
13
13
|
from pydantic import model_serializer
|
|
14
|
-
from typing import Any
|
|
15
14
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
16
15
|
|
|
17
16
|
|
|
@@ -22,19 +21,14 @@ class V1TokenPriceChain(str, Enum):
|
|
|
22
21
|
|
|
23
22
|
|
|
24
23
|
class V1TokenPriceRequestTypedDict(TypedDict):
|
|
25
|
-
token: Any
|
|
26
|
-
r"""The symbol or address of the token for which to get the price."""
|
|
27
24
|
chain: V1TokenPriceChain
|
|
28
25
|
block: NotRequired[Nullable[int]]
|
|
29
26
|
r"""Optional block number (defaults to latest)."""
|
|
27
|
+
token: str
|
|
28
|
+
r"""The symbol or address of the token for which to get the price.."""
|
|
30
29
|
|
|
31
30
|
|
|
32
31
|
class V1TokenPriceRequest(BaseModel):
|
|
33
|
-
token: Annotated[
|
|
34
|
-
Any, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
35
|
-
]
|
|
36
|
-
r"""The symbol or address of the token for which to get the price."""
|
|
37
|
-
|
|
38
32
|
chain: Annotated[
|
|
39
33
|
V1TokenPriceChain,
|
|
40
34
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
@@ -46,6 +40,11 @@ class V1TokenPriceRequest(BaseModel):
|
|
|
46
40
|
] = UNSET
|
|
47
41
|
r"""Optional block number (defaults to latest)."""
|
|
48
42
|
|
|
43
|
+
token: Annotated[
|
|
44
|
+
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
45
|
+
] = "AAVE"
|
|
46
|
+
r"""The symbol or address of the token for which to get the price.."""
|
|
47
|
+
|
|
49
48
|
@model_serializer(mode="wrap")
|
|
50
49
|
def serialize_model(self, handler):
|
|
51
50
|
optional_fields = ["block"]
|
|
@@ -13,160 +13,6 @@ class V1UniswapPoolPriceChain(str, Enum):
|
|
|
13
13
|
ETHEREUM = "ethereum"
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
class V1UniswapPoolPriceTokenInToken(str, Enum):
|
|
17
|
-
r"""A class representing the token.
|
|
18
|
-
|
|
19
|
-
This class is used to represent the token in the system. Notice individual
|
|
20
|
-
endpoints' documentation where per chain tokens are presented.
|
|
21
|
-
"""
|
|
22
|
-
|
|
23
|
-
ONE_INCH = "1INCH"
|
|
24
|
-
AAVE = "AAVE"
|
|
25
|
-
AERO = "AERO"
|
|
26
|
-
ARB = "ARB"
|
|
27
|
-
BAL = "BAL"
|
|
28
|
-
BNKR = "BNKR"
|
|
29
|
-
CB_BTC = "cbBTC"
|
|
30
|
-
CB_ETH = "cbETH"
|
|
31
|
-
CLANKER = "CLANKER"
|
|
32
|
-
COPI = "COPI"
|
|
33
|
-
CRV = "CRV"
|
|
34
|
-
CRV_USD = "crvUSD"
|
|
35
|
-
CYBER = "CYBER"
|
|
36
|
-
DAI = "DAI"
|
|
37
|
-
DOGINME = "DOGINME"
|
|
38
|
-
E_BTC = "eBTC"
|
|
39
|
-
ENS = "ENS"
|
|
40
|
-
ETH = "ETH"
|
|
41
|
-
ETHFI = "ETHFI"
|
|
42
|
-
ET_HX = "ETHx"
|
|
43
|
-
EURC = "EURC"
|
|
44
|
-
EUR = "EUR"
|
|
45
|
-
EURS = "EURS"
|
|
46
|
-
E_US_DE = "eUSDe"
|
|
47
|
-
EZ_ETH = "ezETH"
|
|
48
|
-
FBTC = "FBTC"
|
|
49
|
-
FRAX = "FRAX"
|
|
50
|
-
FXS = "FXS"
|
|
51
|
-
GHO = "GHO"
|
|
52
|
-
KNC = "KNC"
|
|
53
|
-
LBTC = "LBTC"
|
|
54
|
-
LDO = "LDO"
|
|
55
|
-
LINK = "LINK"
|
|
56
|
-
LS_ETH = "LsETH"
|
|
57
|
-
LUSD = "LUSD"
|
|
58
|
-
MAI = "MAI"
|
|
59
|
-
MKR = "MKR"
|
|
60
|
-
OS_ETH = "osETH"
|
|
61
|
-
PT_E_USDE_14_AUG2025 = "PT-eUSDE-14AUG2025"
|
|
62
|
-
PT_E_USDE_29_MAY2025 = "PT-eUSDE-29MAY2025"
|
|
63
|
-
PT_S_USDE_25_SEP2025 = "PT-sUSDE-25SEP2025"
|
|
64
|
-
PT_S_USDE_31_JUL2025 = "PT-sUSDE-31JUL2025"
|
|
65
|
-
PT_US_DE_31_JUL2025 = "PT-USDe-31JUL2025"
|
|
66
|
-
PYUSD = "PYUSD"
|
|
67
|
-
R_ETH = "rETH"
|
|
68
|
-
RLUSD = "RLUSD"
|
|
69
|
-
RPL = "RPL"
|
|
70
|
-
RS_ETH = "rsETH"
|
|
71
|
-
S_DAI = "sDAI"
|
|
72
|
-
SNX = "SNX"
|
|
73
|
-
STG = "STG"
|
|
74
|
-
S_US_DE = "sUSDe"
|
|
75
|
-
T_BTC = "tBTC"
|
|
76
|
-
UNI = "UNI"
|
|
77
|
-
US_DB_C = "USDbC"
|
|
78
|
-
USD_CE = "USDCe"
|
|
79
|
-
USDC = "USDC"
|
|
80
|
-
US_DE = "USDe"
|
|
81
|
-
USDS = "USDS"
|
|
82
|
-
US_DTB = "USDtb"
|
|
83
|
-
USDT = "USDT"
|
|
84
|
-
VIRTUAL = "VIRTUAL"
|
|
85
|
-
WBTC = "WBTC"
|
|
86
|
-
WE_ETH = "weETH"
|
|
87
|
-
WELL = "WELL"
|
|
88
|
-
WETH = "WETH"
|
|
89
|
-
WRS_ETH = "wrsETH"
|
|
90
|
-
WST_ETH = "wstETH"
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
class V1UniswapPoolPriceTokenOutToken(str, Enum):
|
|
94
|
-
r"""A class representing the token.
|
|
95
|
-
|
|
96
|
-
This class is used to represent the token in the system. Notice individual
|
|
97
|
-
endpoints' documentation where per chain tokens are presented.
|
|
98
|
-
"""
|
|
99
|
-
|
|
100
|
-
ONE_INCH = "1INCH"
|
|
101
|
-
AAVE = "AAVE"
|
|
102
|
-
AERO = "AERO"
|
|
103
|
-
ARB = "ARB"
|
|
104
|
-
BAL = "BAL"
|
|
105
|
-
BNKR = "BNKR"
|
|
106
|
-
CB_BTC = "cbBTC"
|
|
107
|
-
CB_ETH = "cbETH"
|
|
108
|
-
CLANKER = "CLANKER"
|
|
109
|
-
COPI = "COPI"
|
|
110
|
-
CRV = "CRV"
|
|
111
|
-
CRV_USD = "crvUSD"
|
|
112
|
-
CYBER = "CYBER"
|
|
113
|
-
DAI = "DAI"
|
|
114
|
-
DOGINME = "DOGINME"
|
|
115
|
-
E_BTC = "eBTC"
|
|
116
|
-
ENS = "ENS"
|
|
117
|
-
ETH = "ETH"
|
|
118
|
-
ETHFI = "ETHFI"
|
|
119
|
-
ET_HX = "ETHx"
|
|
120
|
-
EURC = "EURC"
|
|
121
|
-
EUR = "EUR"
|
|
122
|
-
EURS = "EURS"
|
|
123
|
-
E_US_DE = "eUSDe"
|
|
124
|
-
EZ_ETH = "ezETH"
|
|
125
|
-
FBTC = "FBTC"
|
|
126
|
-
FRAX = "FRAX"
|
|
127
|
-
FXS = "FXS"
|
|
128
|
-
GHO = "GHO"
|
|
129
|
-
KNC = "KNC"
|
|
130
|
-
LBTC = "LBTC"
|
|
131
|
-
LDO = "LDO"
|
|
132
|
-
LINK = "LINK"
|
|
133
|
-
LS_ETH = "LsETH"
|
|
134
|
-
LUSD = "LUSD"
|
|
135
|
-
MAI = "MAI"
|
|
136
|
-
MKR = "MKR"
|
|
137
|
-
OS_ETH = "osETH"
|
|
138
|
-
PT_E_USDE_14_AUG2025 = "PT-eUSDE-14AUG2025"
|
|
139
|
-
PT_E_USDE_29_MAY2025 = "PT-eUSDE-29MAY2025"
|
|
140
|
-
PT_S_USDE_25_SEP2025 = "PT-sUSDE-25SEP2025"
|
|
141
|
-
PT_S_USDE_31_JUL2025 = "PT-sUSDE-31JUL2025"
|
|
142
|
-
PT_US_DE_31_JUL2025 = "PT-USDe-31JUL2025"
|
|
143
|
-
PYUSD = "PYUSD"
|
|
144
|
-
R_ETH = "rETH"
|
|
145
|
-
RLUSD = "RLUSD"
|
|
146
|
-
RPL = "RPL"
|
|
147
|
-
RS_ETH = "rsETH"
|
|
148
|
-
S_DAI = "sDAI"
|
|
149
|
-
SNX = "SNX"
|
|
150
|
-
STG = "STG"
|
|
151
|
-
S_US_DE = "sUSDe"
|
|
152
|
-
T_BTC = "tBTC"
|
|
153
|
-
UNI = "UNI"
|
|
154
|
-
US_DB_C = "USDbC"
|
|
155
|
-
USD_CE = "USDCe"
|
|
156
|
-
USDC = "USDC"
|
|
157
|
-
US_DE = "USDe"
|
|
158
|
-
USDS = "USDS"
|
|
159
|
-
US_DTB = "USDtb"
|
|
160
|
-
USDT = "USDT"
|
|
161
|
-
VIRTUAL = "VIRTUAL"
|
|
162
|
-
WBTC = "WBTC"
|
|
163
|
-
WE_ETH = "weETH"
|
|
164
|
-
WELL = "WELL"
|
|
165
|
-
WETH = "WETH"
|
|
166
|
-
WRS_ETH = "wrsETH"
|
|
167
|
-
WST_ETH = "wstETH"
|
|
168
|
-
|
|
169
|
-
|
|
170
16
|
class V1UniswapPoolPriceFeeEnum(str, Enum):
|
|
171
17
|
r"""The transaction fee of a Uniswap pool in bips.
|
|
172
18
|
|
|
@@ -181,10 +27,10 @@ class V1UniswapPoolPriceFeeEnum(str, Enum):
|
|
|
181
27
|
|
|
182
28
|
class V1UniswapPoolPriceRequestTypedDict(TypedDict):
|
|
183
29
|
chain: V1UniswapPoolPriceChain
|
|
184
|
-
token_in:
|
|
185
|
-
r"""The symbol of a token in the pool"""
|
|
186
|
-
token_out:
|
|
187
|
-
r"""The symbol of a token in the pool"""
|
|
30
|
+
token_in: str
|
|
31
|
+
r"""The symbol or address of a token in the pool"""
|
|
32
|
+
token_out: str
|
|
33
|
+
r"""The symbol or address of a token in the pool"""
|
|
188
34
|
fee: V1UniswapPoolPriceFeeEnum
|
|
189
35
|
r"""The fee of the pool"""
|
|
190
36
|
|
|
@@ -196,16 +42,14 @@ class V1UniswapPoolPriceRequest(BaseModel):
|
|
|
196
42
|
] = V1UniswapPoolPriceChain.ARBITRUM
|
|
197
43
|
|
|
198
44
|
token_in: Annotated[
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
r"""The symbol of a token in the pool"""
|
|
45
|
+
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
46
|
+
] = "USDC"
|
|
47
|
+
r"""The symbol or address of a token in the pool"""
|
|
203
48
|
|
|
204
49
|
token_out: Annotated[
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
r"""The symbol of a token in the pool"""
|
|
50
|
+
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
51
|
+
] = "USDT"
|
|
52
|
+
r"""The symbol or address of a token in the pool"""
|
|
209
53
|
|
|
210
54
|
fee: Annotated[
|
|
211
55
|
V1UniswapPoolPriceFeeEnum,
|
|
@@ -14,160 +14,6 @@ class V1UniswapQuoteBuyExactlyChain(str, Enum):
|
|
|
14
14
|
ETHEREUM = "ethereum"
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
class V1UniswapQuoteBuyExactlyTokenInToken(str, Enum):
|
|
18
|
-
r"""A class representing the token.
|
|
19
|
-
|
|
20
|
-
This class is used to represent the token in the system. Notice individual
|
|
21
|
-
endpoints' documentation where per chain tokens are presented.
|
|
22
|
-
"""
|
|
23
|
-
|
|
24
|
-
ONE_INCH = "1INCH"
|
|
25
|
-
AAVE = "AAVE"
|
|
26
|
-
AERO = "AERO"
|
|
27
|
-
ARB = "ARB"
|
|
28
|
-
BAL = "BAL"
|
|
29
|
-
BNKR = "BNKR"
|
|
30
|
-
CB_BTC = "cbBTC"
|
|
31
|
-
CB_ETH = "cbETH"
|
|
32
|
-
CLANKER = "CLANKER"
|
|
33
|
-
COPI = "COPI"
|
|
34
|
-
CRV = "CRV"
|
|
35
|
-
CRV_USD = "crvUSD"
|
|
36
|
-
CYBER = "CYBER"
|
|
37
|
-
DAI = "DAI"
|
|
38
|
-
DOGINME = "DOGINME"
|
|
39
|
-
E_BTC = "eBTC"
|
|
40
|
-
ENS = "ENS"
|
|
41
|
-
ETH = "ETH"
|
|
42
|
-
ETHFI = "ETHFI"
|
|
43
|
-
ET_HX = "ETHx"
|
|
44
|
-
EURC = "EURC"
|
|
45
|
-
EUR = "EUR"
|
|
46
|
-
EURS = "EURS"
|
|
47
|
-
E_US_DE = "eUSDe"
|
|
48
|
-
EZ_ETH = "ezETH"
|
|
49
|
-
FBTC = "FBTC"
|
|
50
|
-
FRAX = "FRAX"
|
|
51
|
-
FXS = "FXS"
|
|
52
|
-
GHO = "GHO"
|
|
53
|
-
KNC = "KNC"
|
|
54
|
-
LBTC = "LBTC"
|
|
55
|
-
LDO = "LDO"
|
|
56
|
-
LINK = "LINK"
|
|
57
|
-
LS_ETH = "LsETH"
|
|
58
|
-
LUSD = "LUSD"
|
|
59
|
-
MAI = "MAI"
|
|
60
|
-
MKR = "MKR"
|
|
61
|
-
OS_ETH = "osETH"
|
|
62
|
-
PT_E_USDE_14_AUG2025 = "PT-eUSDE-14AUG2025"
|
|
63
|
-
PT_E_USDE_29_MAY2025 = "PT-eUSDE-29MAY2025"
|
|
64
|
-
PT_S_USDE_25_SEP2025 = "PT-sUSDE-25SEP2025"
|
|
65
|
-
PT_S_USDE_31_JUL2025 = "PT-sUSDE-31JUL2025"
|
|
66
|
-
PT_US_DE_31_JUL2025 = "PT-USDe-31JUL2025"
|
|
67
|
-
PYUSD = "PYUSD"
|
|
68
|
-
R_ETH = "rETH"
|
|
69
|
-
RLUSD = "RLUSD"
|
|
70
|
-
RPL = "RPL"
|
|
71
|
-
RS_ETH = "rsETH"
|
|
72
|
-
S_DAI = "sDAI"
|
|
73
|
-
SNX = "SNX"
|
|
74
|
-
STG = "STG"
|
|
75
|
-
S_US_DE = "sUSDe"
|
|
76
|
-
T_BTC = "tBTC"
|
|
77
|
-
UNI = "UNI"
|
|
78
|
-
US_DB_C = "USDbC"
|
|
79
|
-
USD_CE = "USDCe"
|
|
80
|
-
USDC = "USDC"
|
|
81
|
-
US_DE = "USDe"
|
|
82
|
-
USDS = "USDS"
|
|
83
|
-
US_DTB = "USDtb"
|
|
84
|
-
USDT = "USDT"
|
|
85
|
-
VIRTUAL = "VIRTUAL"
|
|
86
|
-
WBTC = "WBTC"
|
|
87
|
-
WE_ETH = "weETH"
|
|
88
|
-
WELL = "WELL"
|
|
89
|
-
WETH = "WETH"
|
|
90
|
-
WRS_ETH = "wrsETH"
|
|
91
|
-
WST_ETH = "wstETH"
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
class V1UniswapQuoteBuyExactlyTokenOutToken(str, Enum):
|
|
95
|
-
r"""A class representing the token.
|
|
96
|
-
|
|
97
|
-
This class is used to represent the token in the system. Notice individual
|
|
98
|
-
endpoints' documentation where per chain tokens are presented.
|
|
99
|
-
"""
|
|
100
|
-
|
|
101
|
-
ONE_INCH = "1INCH"
|
|
102
|
-
AAVE = "AAVE"
|
|
103
|
-
AERO = "AERO"
|
|
104
|
-
ARB = "ARB"
|
|
105
|
-
BAL = "BAL"
|
|
106
|
-
BNKR = "BNKR"
|
|
107
|
-
CB_BTC = "cbBTC"
|
|
108
|
-
CB_ETH = "cbETH"
|
|
109
|
-
CLANKER = "CLANKER"
|
|
110
|
-
COPI = "COPI"
|
|
111
|
-
CRV = "CRV"
|
|
112
|
-
CRV_USD = "crvUSD"
|
|
113
|
-
CYBER = "CYBER"
|
|
114
|
-
DAI = "DAI"
|
|
115
|
-
DOGINME = "DOGINME"
|
|
116
|
-
E_BTC = "eBTC"
|
|
117
|
-
ENS = "ENS"
|
|
118
|
-
ETH = "ETH"
|
|
119
|
-
ETHFI = "ETHFI"
|
|
120
|
-
ET_HX = "ETHx"
|
|
121
|
-
EURC = "EURC"
|
|
122
|
-
EUR = "EUR"
|
|
123
|
-
EURS = "EURS"
|
|
124
|
-
E_US_DE = "eUSDe"
|
|
125
|
-
EZ_ETH = "ezETH"
|
|
126
|
-
FBTC = "FBTC"
|
|
127
|
-
FRAX = "FRAX"
|
|
128
|
-
FXS = "FXS"
|
|
129
|
-
GHO = "GHO"
|
|
130
|
-
KNC = "KNC"
|
|
131
|
-
LBTC = "LBTC"
|
|
132
|
-
LDO = "LDO"
|
|
133
|
-
LINK = "LINK"
|
|
134
|
-
LS_ETH = "LsETH"
|
|
135
|
-
LUSD = "LUSD"
|
|
136
|
-
MAI = "MAI"
|
|
137
|
-
MKR = "MKR"
|
|
138
|
-
OS_ETH = "osETH"
|
|
139
|
-
PT_E_USDE_14_AUG2025 = "PT-eUSDE-14AUG2025"
|
|
140
|
-
PT_E_USDE_29_MAY2025 = "PT-eUSDE-29MAY2025"
|
|
141
|
-
PT_S_USDE_25_SEP2025 = "PT-sUSDE-25SEP2025"
|
|
142
|
-
PT_S_USDE_31_JUL2025 = "PT-sUSDE-31JUL2025"
|
|
143
|
-
PT_US_DE_31_JUL2025 = "PT-USDe-31JUL2025"
|
|
144
|
-
PYUSD = "PYUSD"
|
|
145
|
-
R_ETH = "rETH"
|
|
146
|
-
RLUSD = "RLUSD"
|
|
147
|
-
RPL = "RPL"
|
|
148
|
-
RS_ETH = "rsETH"
|
|
149
|
-
S_DAI = "sDAI"
|
|
150
|
-
SNX = "SNX"
|
|
151
|
-
STG = "STG"
|
|
152
|
-
S_US_DE = "sUSDe"
|
|
153
|
-
T_BTC = "tBTC"
|
|
154
|
-
UNI = "UNI"
|
|
155
|
-
US_DB_C = "USDbC"
|
|
156
|
-
USD_CE = "USDCe"
|
|
157
|
-
USDC = "USDC"
|
|
158
|
-
US_DE = "USDe"
|
|
159
|
-
USDS = "USDS"
|
|
160
|
-
US_DTB = "USDtb"
|
|
161
|
-
USDT = "USDT"
|
|
162
|
-
VIRTUAL = "VIRTUAL"
|
|
163
|
-
WBTC = "WBTC"
|
|
164
|
-
WE_ETH = "weETH"
|
|
165
|
-
WELL = "WELL"
|
|
166
|
-
WETH = "WETH"
|
|
167
|
-
WRS_ETH = "wrsETH"
|
|
168
|
-
WST_ETH = "wstETH"
|
|
169
|
-
|
|
170
|
-
|
|
171
17
|
class V1UniswapQuoteBuyExactlyFeeEnum(str, Enum):
|
|
172
18
|
r"""The transaction fee of a Uniswap pool in bips.
|
|
173
19
|
|
|
@@ -196,10 +42,10 @@ class V1UniswapQuoteBuyExactlyRequestTypedDict(TypedDict):
|
|
|
196
42
|
amount_out: V1UniswapQuoteBuyExactlyAmountOutTypedDict
|
|
197
43
|
r"""The amount of the token to swap to"""
|
|
198
44
|
chain: V1UniswapQuoteBuyExactlyChain
|
|
199
|
-
token_in:
|
|
200
|
-
r"""The symbol of the token to swap from."""
|
|
201
|
-
token_out:
|
|
202
|
-
r"""The symbol of the token to swap to."""
|
|
45
|
+
token_in: str
|
|
46
|
+
r"""The symbol or address of the token to swap from."""
|
|
47
|
+
token_out: str
|
|
48
|
+
r"""The symbol or address of the token to swap to."""
|
|
203
49
|
fee: V1UniswapQuoteBuyExactlyFeeEnum
|
|
204
50
|
r"""The fee to pay for the swap"""
|
|
205
51
|
|
|
@@ -217,16 +63,14 @@ class V1UniswapQuoteBuyExactlyRequest(BaseModel):
|
|
|
217
63
|
] = V1UniswapQuoteBuyExactlyChain.ARBITRUM
|
|
218
64
|
|
|
219
65
|
token_in: Annotated[
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
r"""The symbol of the token to swap from."""
|
|
66
|
+
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
67
|
+
] = "USDC"
|
|
68
|
+
r"""The symbol or address of the token to swap from."""
|
|
224
69
|
|
|
225
70
|
token_out: Annotated[
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
r"""The symbol of the token to swap to."""
|
|
71
|
+
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
72
|
+
] = "USDT"
|
|
73
|
+
r"""The symbol or address of the token to swap to."""
|
|
230
74
|
|
|
231
75
|
fee: Annotated[
|
|
232
76
|
V1UniswapQuoteBuyExactlyFeeEnum,
|