compass_api_sdk 1.1.2__py3-none-any.whl → 1.1.3rc1__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.3rc1.dist-info}/METADATA +5 -7
- {compass_api_sdk-1.1.2.dist-info → compass_api_sdk-1.1.3rc1.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.3rc1.dist-info}/WHEEL +0 -0
|
@@ -20,89 +20,12 @@ class V1AaveReserveOverviewChain(str, Enum):
|
|
|
20
20
|
ETHEREUM = "ethereum"
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
class V1AaveReserveOverviewToken(str, Enum):
|
|
24
|
-
r"""A class representing the token.
|
|
25
|
-
|
|
26
|
-
This class is used to represent the token in the system. Notice individual
|
|
27
|
-
endpoints' documentation where per chain tokens are presented.
|
|
28
|
-
"""
|
|
29
|
-
|
|
30
|
-
ONE_INCH = "1INCH"
|
|
31
|
-
AAVE = "AAVE"
|
|
32
|
-
AERO = "AERO"
|
|
33
|
-
ARB = "ARB"
|
|
34
|
-
BAL = "BAL"
|
|
35
|
-
BNKR = "BNKR"
|
|
36
|
-
CB_BTC = "cbBTC"
|
|
37
|
-
CB_ETH = "cbETH"
|
|
38
|
-
CLANKER = "CLANKER"
|
|
39
|
-
COPI = "COPI"
|
|
40
|
-
CRV = "CRV"
|
|
41
|
-
CRV_USD = "crvUSD"
|
|
42
|
-
CYBER = "CYBER"
|
|
43
|
-
DAI = "DAI"
|
|
44
|
-
DOGINME = "DOGINME"
|
|
45
|
-
E_BTC = "eBTC"
|
|
46
|
-
ENS = "ENS"
|
|
47
|
-
ETH = "ETH"
|
|
48
|
-
ETHFI = "ETHFI"
|
|
49
|
-
ET_HX = "ETHx"
|
|
50
|
-
EURC = "EURC"
|
|
51
|
-
EUR = "EUR"
|
|
52
|
-
EURS = "EURS"
|
|
53
|
-
E_US_DE = "eUSDe"
|
|
54
|
-
EZ_ETH = "ezETH"
|
|
55
|
-
FBTC = "FBTC"
|
|
56
|
-
FRAX = "FRAX"
|
|
57
|
-
FXS = "FXS"
|
|
58
|
-
GHO = "GHO"
|
|
59
|
-
KNC = "KNC"
|
|
60
|
-
LBTC = "LBTC"
|
|
61
|
-
LDO = "LDO"
|
|
62
|
-
LINK = "LINK"
|
|
63
|
-
LS_ETH = "LsETH"
|
|
64
|
-
LUSD = "LUSD"
|
|
65
|
-
MAI = "MAI"
|
|
66
|
-
MKR = "MKR"
|
|
67
|
-
OS_ETH = "osETH"
|
|
68
|
-
PT_E_USDE_14_AUG2025 = "PT-eUSDE-14AUG2025"
|
|
69
|
-
PT_E_USDE_29_MAY2025 = "PT-eUSDE-29MAY2025"
|
|
70
|
-
PT_S_USDE_25_SEP2025 = "PT-sUSDE-25SEP2025"
|
|
71
|
-
PT_S_USDE_31_JUL2025 = "PT-sUSDE-31JUL2025"
|
|
72
|
-
PT_US_DE_31_JUL2025 = "PT-USDe-31JUL2025"
|
|
73
|
-
PYUSD = "PYUSD"
|
|
74
|
-
R_ETH = "rETH"
|
|
75
|
-
RLUSD = "RLUSD"
|
|
76
|
-
RPL = "RPL"
|
|
77
|
-
RS_ETH = "rsETH"
|
|
78
|
-
S_DAI = "sDAI"
|
|
79
|
-
SNX = "SNX"
|
|
80
|
-
STG = "STG"
|
|
81
|
-
S_US_DE = "sUSDe"
|
|
82
|
-
T_BTC = "tBTC"
|
|
83
|
-
UNI = "UNI"
|
|
84
|
-
US_DB_C = "USDbC"
|
|
85
|
-
USD_CE = "USDCe"
|
|
86
|
-
USDC = "USDC"
|
|
87
|
-
US_DE = "USDe"
|
|
88
|
-
USDS = "USDS"
|
|
89
|
-
US_DTB = "USDtb"
|
|
90
|
-
USDT = "USDT"
|
|
91
|
-
VIRTUAL = "VIRTUAL"
|
|
92
|
-
WBTC = "WBTC"
|
|
93
|
-
WE_ETH = "weETH"
|
|
94
|
-
WELL = "WELL"
|
|
95
|
-
WETH = "WETH"
|
|
96
|
-
WRS_ETH = "wrsETH"
|
|
97
|
-
WST_ETH = "wstETH"
|
|
98
|
-
|
|
99
|
-
|
|
100
23
|
class V1AaveReserveOverviewRequestTypedDict(TypedDict):
|
|
101
24
|
chain: V1AaveReserveOverviewChain
|
|
102
25
|
block: NotRequired[Nullable[int]]
|
|
103
26
|
r"""Optional block number (defaults to latest)."""
|
|
104
|
-
token:
|
|
105
|
-
r"""The symbol of the asset.."""
|
|
27
|
+
token: str
|
|
28
|
+
r"""The symbol or address of the asset.."""
|
|
106
29
|
|
|
107
30
|
|
|
108
31
|
class V1AaveReserveOverviewRequest(BaseModel):
|
|
@@ -118,10 +41,9 @@ class V1AaveReserveOverviewRequest(BaseModel):
|
|
|
118
41
|
r"""Optional block number (defaults to latest)."""
|
|
119
42
|
|
|
120
43
|
token: Annotated[
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
r"""The symbol of the asset.."""
|
|
44
|
+
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
45
|
+
] = "USDC"
|
|
46
|
+
r"""The symbol or address of the asset.."""
|
|
125
47
|
|
|
126
48
|
@model_serializer(mode="wrap")
|
|
127
49
|
def serialize_model(self, handler):
|
|
@@ -20,89 +20,12 @@ class V1AaveStdRateChain(str, Enum):
|
|
|
20
20
|
ETHEREUM = "ethereum"
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
class V1AaveStdRateToken(str, Enum):
|
|
24
|
-
r"""A class representing the token.
|
|
25
|
-
|
|
26
|
-
This class is used to represent the token in the system. Notice individual
|
|
27
|
-
endpoints' documentation where per chain tokens are presented.
|
|
28
|
-
"""
|
|
29
|
-
|
|
30
|
-
ONE_INCH = "1INCH"
|
|
31
|
-
AAVE = "AAVE"
|
|
32
|
-
AERO = "AERO"
|
|
33
|
-
ARB = "ARB"
|
|
34
|
-
BAL = "BAL"
|
|
35
|
-
BNKR = "BNKR"
|
|
36
|
-
CB_BTC = "cbBTC"
|
|
37
|
-
CB_ETH = "cbETH"
|
|
38
|
-
CLANKER = "CLANKER"
|
|
39
|
-
COPI = "COPI"
|
|
40
|
-
CRV = "CRV"
|
|
41
|
-
CRV_USD = "crvUSD"
|
|
42
|
-
CYBER = "CYBER"
|
|
43
|
-
DAI = "DAI"
|
|
44
|
-
DOGINME = "DOGINME"
|
|
45
|
-
E_BTC = "eBTC"
|
|
46
|
-
ENS = "ENS"
|
|
47
|
-
ETH = "ETH"
|
|
48
|
-
ETHFI = "ETHFI"
|
|
49
|
-
ET_HX = "ETHx"
|
|
50
|
-
EURC = "EURC"
|
|
51
|
-
EUR = "EUR"
|
|
52
|
-
EURS = "EURS"
|
|
53
|
-
E_US_DE = "eUSDe"
|
|
54
|
-
EZ_ETH = "ezETH"
|
|
55
|
-
FBTC = "FBTC"
|
|
56
|
-
FRAX = "FRAX"
|
|
57
|
-
FXS = "FXS"
|
|
58
|
-
GHO = "GHO"
|
|
59
|
-
KNC = "KNC"
|
|
60
|
-
LBTC = "LBTC"
|
|
61
|
-
LDO = "LDO"
|
|
62
|
-
LINK = "LINK"
|
|
63
|
-
LS_ETH = "LsETH"
|
|
64
|
-
LUSD = "LUSD"
|
|
65
|
-
MAI = "MAI"
|
|
66
|
-
MKR = "MKR"
|
|
67
|
-
OS_ETH = "osETH"
|
|
68
|
-
PT_E_USDE_14_AUG2025 = "PT-eUSDE-14AUG2025"
|
|
69
|
-
PT_E_USDE_29_MAY2025 = "PT-eUSDE-29MAY2025"
|
|
70
|
-
PT_S_USDE_25_SEP2025 = "PT-sUSDE-25SEP2025"
|
|
71
|
-
PT_S_USDE_31_JUL2025 = "PT-sUSDE-31JUL2025"
|
|
72
|
-
PT_US_DE_31_JUL2025 = "PT-USDe-31JUL2025"
|
|
73
|
-
PYUSD = "PYUSD"
|
|
74
|
-
R_ETH = "rETH"
|
|
75
|
-
RLUSD = "RLUSD"
|
|
76
|
-
RPL = "RPL"
|
|
77
|
-
RS_ETH = "rsETH"
|
|
78
|
-
S_DAI = "sDAI"
|
|
79
|
-
SNX = "SNX"
|
|
80
|
-
STG = "STG"
|
|
81
|
-
S_US_DE = "sUSDe"
|
|
82
|
-
T_BTC = "tBTC"
|
|
83
|
-
UNI = "UNI"
|
|
84
|
-
US_DB_C = "USDbC"
|
|
85
|
-
USD_CE = "USDCe"
|
|
86
|
-
USDC = "USDC"
|
|
87
|
-
US_DE = "USDe"
|
|
88
|
-
USDS = "USDS"
|
|
89
|
-
US_DTB = "USDtb"
|
|
90
|
-
USDT = "USDT"
|
|
91
|
-
VIRTUAL = "VIRTUAL"
|
|
92
|
-
WBTC = "WBTC"
|
|
93
|
-
WE_ETH = "weETH"
|
|
94
|
-
WELL = "WELL"
|
|
95
|
-
WETH = "WETH"
|
|
96
|
-
WRS_ETH = "wrsETH"
|
|
97
|
-
WST_ETH = "wstETH"
|
|
98
|
-
|
|
99
|
-
|
|
100
23
|
class V1AaveStdRateRequestTypedDict(TypedDict):
|
|
101
24
|
chain: V1AaveStdRateChain
|
|
102
25
|
block: NotRequired[Nullable[int]]
|
|
103
26
|
r"""Optional block number (defaults to latest)."""
|
|
104
|
-
token:
|
|
105
|
-
r"""The symbol of the
|
|
27
|
+
token: str
|
|
28
|
+
r"""The symbol or address of the token.."""
|
|
106
29
|
days: int
|
|
107
30
|
r"""The number of days for which the standard deviation shall be calculated."""
|
|
108
31
|
|
|
@@ -120,10 +43,9 @@ class V1AaveStdRateRequest(BaseModel):
|
|
|
120
43
|
r"""Optional block number (defaults to latest)."""
|
|
121
44
|
|
|
122
45
|
token: Annotated[
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
r"""The symbol of the tokenn.."""
|
|
46
|
+
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
47
|
+
] = "USDC"
|
|
48
|
+
r"""The symbol or address of the token.."""
|
|
127
49
|
|
|
128
50
|
days: Annotated[
|
|
129
51
|
int, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
@@ -20,89 +20,12 @@ class V1AaveTokenPriceChain(str, Enum):
|
|
|
20
20
|
ETHEREUM = "ethereum"
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
class V1AaveTokenPriceToken(str, Enum):
|
|
24
|
-
r"""A class representing the token.
|
|
25
|
-
|
|
26
|
-
This class is used to represent the token in the system. Notice individual
|
|
27
|
-
endpoints' documentation where per chain tokens are presented.
|
|
28
|
-
"""
|
|
29
|
-
|
|
30
|
-
ONE_INCH = "1INCH"
|
|
31
|
-
AAVE = "AAVE"
|
|
32
|
-
AERO = "AERO"
|
|
33
|
-
ARB = "ARB"
|
|
34
|
-
BAL = "BAL"
|
|
35
|
-
BNKR = "BNKR"
|
|
36
|
-
CB_BTC = "cbBTC"
|
|
37
|
-
CB_ETH = "cbETH"
|
|
38
|
-
CLANKER = "CLANKER"
|
|
39
|
-
COPI = "COPI"
|
|
40
|
-
CRV = "CRV"
|
|
41
|
-
CRV_USD = "crvUSD"
|
|
42
|
-
CYBER = "CYBER"
|
|
43
|
-
DAI = "DAI"
|
|
44
|
-
DOGINME = "DOGINME"
|
|
45
|
-
E_BTC = "eBTC"
|
|
46
|
-
ENS = "ENS"
|
|
47
|
-
ETH = "ETH"
|
|
48
|
-
ETHFI = "ETHFI"
|
|
49
|
-
ET_HX = "ETHx"
|
|
50
|
-
EURC = "EURC"
|
|
51
|
-
EUR = "EUR"
|
|
52
|
-
EURS = "EURS"
|
|
53
|
-
E_US_DE = "eUSDe"
|
|
54
|
-
EZ_ETH = "ezETH"
|
|
55
|
-
FBTC = "FBTC"
|
|
56
|
-
FRAX = "FRAX"
|
|
57
|
-
FXS = "FXS"
|
|
58
|
-
GHO = "GHO"
|
|
59
|
-
KNC = "KNC"
|
|
60
|
-
LBTC = "LBTC"
|
|
61
|
-
LDO = "LDO"
|
|
62
|
-
LINK = "LINK"
|
|
63
|
-
LS_ETH = "LsETH"
|
|
64
|
-
LUSD = "LUSD"
|
|
65
|
-
MAI = "MAI"
|
|
66
|
-
MKR = "MKR"
|
|
67
|
-
OS_ETH = "osETH"
|
|
68
|
-
PT_E_USDE_14_AUG2025 = "PT-eUSDE-14AUG2025"
|
|
69
|
-
PT_E_USDE_29_MAY2025 = "PT-eUSDE-29MAY2025"
|
|
70
|
-
PT_S_USDE_25_SEP2025 = "PT-sUSDE-25SEP2025"
|
|
71
|
-
PT_S_USDE_31_JUL2025 = "PT-sUSDE-31JUL2025"
|
|
72
|
-
PT_US_DE_31_JUL2025 = "PT-USDe-31JUL2025"
|
|
73
|
-
PYUSD = "PYUSD"
|
|
74
|
-
R_ETH = "rETH"
|
|
75
|
-
RLUSD = "RLUSD"
|
|
76
|
-
RPL = "RPL"
|
|
77
|
-
RS_ETH = "rsETH"
|
|
78
|
-
S_DAI = "sDAI"
|
|
79
|
-
SNX = "SNX"
|
|
80
|
-
STG = "STG"
|
|
81
|
-
S_US_DE = "sUSDe"
|
|
82
|
-
T_BTC = "tBTC"
|
|
83
|
-
UNI = "UNI"
|
|
84
|
-
US_DB_C = "USDbC"
|
|
85
|
-
USD_CE = "USDCe"
|
|
86
|
-
USDC = "USDC"
|
|
87
|
-
US_DE = "USDe"
|
|
88
|
-
USDS = "USDS"
|
|
89
|
-
US_DTB = "USDtb"
|
|
90
|
-
USDT = "USDT"
|
|
91
|
-
VIRTUAL = "VIRTUAL"
|
|
92
|
-
WBTC = "WBTC"
|
|
93
|
-
WE_ETH = "weETH"
|
|
94
|
-
WELL = "WELL"
|
|
95
|
-
WETH = "WETH"
|
|
96
|
-
WRS_ETH = "wrsETH"
|
|
97
|
-
WST_ETH = "wstETH"
|
|
98
|
-
|
|
99
|
-
|
|
100
23
|
class V1AaveTokenPriceRequestTypedDict(TypedDict):
|
|
101
24
|
chain: V1AaveTokenPriceChain
|
|
102
25
|
block: NotRequired[Nullable[int]]
|
|
103
26
|
r"""Optional block number (defaults to latest)."""
|
|
104
|
-
token:
|
|
105
|
-
r"""The symbol of the asset whose price you want.."""
|
|
27
|
+
token: str
|
|
28
|
+
r"""The symbol or address of the asset whose price you want.."""
|
|
106
29
|
|
|
107
30
|
|
|
108
31
|
class V1AaveTokenPriceRequest(BaseModel):
|
|
@@ -118,10 +41,9 @@ class V1AaveTokenPriceRequest(BaseModel):
|
|
|
118
41
|
r"""Optional block number (defaults to latest)."""
|
|
119
42
|
|
|
120
43
|
token: Annotated[
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
r"""The symbol of the asset whose price you want.."""
|
|
44
|
+
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
45
|
+
] = "USDC"
|
|
46
|
+
r"""The symbol or address of the asset whose price you want.."""
|
|
125
47
|
|
|
126
48
|
@model_serializer(mode="wrap")
|
|
127
49
|
def serialize_model(self, handler):
|
|
@@ -20,91 +20,14 @@ class V1AaveUserPositionPerTokenChain(str, Enum):
|
|
|
20
20
|
ETHEREUM = "ethereum"
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
class V1AaveUserPositionPerTokenToken(str, Enum):
|
|
24
|
-
r"""A class representing the token.
|
|
25
|
-
|
|
26
|
-
This class is used to represent the token in the system. Notice individual
|
|
27
|
-
endpoints' documentation where per chain tokens are presented.
|
|
28
|
-
"""
|
|
29
|
-
|
|
30
|
-
ONE_INCH = "1INCH"
|
|
31
|
-
AAVE = "AAVE"
|
|
32
|
-
AERO = "AERO"
|
|
33
|
-
ARB = "ARB"
|
|
34
|
-
BAL = "BAL"
|
|
35
|
-
BNKR = "BNKR"
|
|
36
|
-
CB_BTC = "cbBTC"
|
|
37
|
-
CB_ETH = "cbETH"
|
|
38
|
-
CLANKER = "CLANKER"
|
|
39
|
-
COPI = "COPI"
|
|
40
|
-
CRV = "CRV"
|
|
41
|
-
CRV_USD = "crvUSD"
|
|
42
|
-
CYBER = "CYBER"
|
|
43
|
-
DAI = "DAI"
|
|
44
|
-
DOGINME = "DOGINME"
|
|
45
|
-
E_BTC = "eBTC"
|
|
46
|
-
ENS = "ENS"
|
|
47
|
-
ETH = "ETH"
|
|
48
|
-
ETHFI = "ETHFI"
|
|
49
|
-
ET_HX = "ETHx"
|
|
50
|
-
EURC = "EURC"
|
|
51
|
-
EUR = "EUR"
|
|
52
|
-
EURS = "EURS"
|
|
53
|
-
E_US_DE = "eUSDe"
|
|
54
|
-
EZ_ETH = "ezETH"
|
|
55
|
-
FBTC = "FBTC"
|
|
56
|
-
FRAX = "FRAX"
|
|
57
|
-
FXS = "FXS"
|
|
58
|
-
GHO = "GHO"
|
|
59
|
-
KNC = "KNC"
|
|
60
|
-
LBTC = "LBTC"
|
|
61
|
-
LDO = "LDO"
|
|
62
|
-
LINK = "LINK"
|
|
63
|
-
LS_ETH = "LsETH"
|
|
64
|
-
LUSD = "LUSD"
|
|
65
|
-
MAI = "MAI"
|
|
66
|
-
MKR = "MKR"
|
|
67
|
-
OS_ETH = "osETH"
|
|
68
|
-
PT_E_USDE_14_AUG2025 = "PT-eUSDE-14AUG2025"
|
|
69
|
-
PT_E_USDE_29_MAY2025 = "PT-eUSDE-29MAY2025"
|
|
70
|
-
PT_S_USDE_25_SEP2025 = "PT-sUSDE-25SEP2025"
|
|
71
|
-
PT_S_USDE_31_JUL2025 = "PT-sUSDE-31JUL2025"
|
|
72
|
-
PT_US_DE_31_JUL2025 = "PT-USDe-31JUL2025"
|
|
73
|
-
PYUSD = "PYUSD"
|
|
74
|
-
R_ETH = "rETH"
|
|
75
|
-
RLUSD = "RLUSD"
|
|
76
|
-
RPL = "RPL"
|
|
77
|
-
RS_ETH = "rsETH"
|
|
78
|
-
S_DAI = "sDAI"
|
|
79
|
-
SNX = "SNX"
|
|
80
|
-
STG = "STG"
|
|
81
|
-
S_US_DE = "sUSDe"
|
|
82
|
-
T_BTC = "tBTC"
|
|
83
|
-
UNI = "UNI"
|
|
84
|
-
US_DB_C = "USDbC"
|
|
85
|
-
USD_CE = "USDCe"
|
|
86
|
-
USDC = "USDC"
|
|
87
|
-
US_DE = "USDe"
|
|
88
|
-
USDS = "USDS"
|
|
89
|
-
US_DTB = "USDtb"
|
|
90
|
-
USDT = "USDT"
|
|
91
|
-
VIRTUAL = "VIRTUAL"
|
|
92
|
-
WBTC = "WBTC"
|
|
93
|
-
WE_ETH = "weETH"
|
|
94
|
-
WELL = "WELL"
|
|
95
|
-
WETH = "WETH"
|
|
96
|
-
WRS_ETH = "wrsETH"
|
|
97
|
-
WST_ETH = "wstETH"
|
|
98
|
-
|
|
99
|
-
|
|
100
23
|
class V1AaveUserPositionPerTokenRequestTypedDict(TypedDict):
|
|
101
24
|
chain: V1AaveUserPositionPerTokenChain
|
|
102
25
|
block: NotRequired[Nullable[int]]
|
|
103
26
|
r"""Optional block number (defaults to latest)."""
|
|
104
27
|
user: str
|
|
105
28
|
r"""The user to fetch the token-specific position of."""
|
|
106
|
-
token:
|
|
107
|
-
r"""The symbol of the asset to fetch the user's position on.."""
|
|
29
|
+
token: str
|
|
30
|
+
r"""The symbol or address of the asset to fetch the user's position on.."""
|
|
108
31
|
|
|
109
32
|
|
|
110
33
|
class V1AaveUserPositionPerTokenRequest(BaseModel):
|
|
@@ -125,10 +48,9 @@ class V1AaveUserPositionPerTokenRequest(BaseModel):
|
|
|
125
48
|
r"""The user to fetch the token-specific position of."""
|
|
126
49
|
|
|
127
50
|
token: Annotated[
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
r"""The symbol of the asset to fetch the user's position on.."""
|
|
51
|
+
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
52
|
+
] = "USDC"
|
|
53
|
+
r"""The symbol or address of the asset to fetch the user's position on.."""
|
|
132
54
|
|
|
133
55
|
@model_serializer(mode="wrap")
|
|
134
56
|
def serialize_model(self, handler):
|
|
@@ -12,166 +12,12 @@ class V1AerodromeSlipstreamPoolPriceChain(str, Enum):
|
|
|
12
12
|
BASE = "base"
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
class V1AerodromeSlipstreamPoolPriceTokenInToken(str, Enum):
|
|
16
|
-
r"""A class representing the token.
|
|
17
|
-
|
|
18
|
-
This class is used to represent the token in the system. Notice individual
|
|
19
|
-
endpoints' documentation where per chain tokens are presented.
|
|
20
|
-
"""
|
|
21
|
-
|
|
22
|
-
ONE_INCH = "1INCH"
|
|
23
|
-
AAVE = "AAVE"
|
|
24
|
-
AERO = "AERO"
|
|
25
|
-
ARB = "ARB"
|
|
26
|
-
BAL = "BAL"
|
|
27
|
-
BNKR = "BNKR"
|
|
28
|
-
CB_BTC = "cbBTC"
|
|
29
|
-
CB_ETH = "cbETH"
|
|
30
|
-
CLANKER = "CLANKER"
|
|
31
|
-
COPI = "COPI"
|
|
32
|
-
CRV = "CRV"
|
|
33
|
-
CRV_USD = "crvUSD"
|
|
34
|
-
CYBER = "CYBER"
|
|
35
|
-
DAI = "DAI"
|
|
36
|
-
DOGINME = "DOGINME"
|
|
37
|
-
E_BTC = "eBTC"
|
|
38
|
-
ENS = "ENS"
|
|
39
|
-
ETH = "ETH"
|
|
40
|
-
ETHFI = "ETHFI"
|
|
41
|
-
ET_HX = "ETHx"
|
|
42
|
-
EURC = "EURC"
|
|
43
|
-
EUR = "EUR"
|
|
44
|
-
EURS = "EURS"
|
|
45
|
-
E_US_DE = "eUSDe"
|
|
46
|
-
EZ_ETH = "ezETH"
|
|
47
|
-
FBTC = "FBTC"
|
|
48
|
-
FRAX = "FRAX"
|
|
49
|
-
FXS = "FXS"
|
|
50
|
-
GHO = "GHO"
|
|
51
|
-
KNC = "KNC"
|
|
52
|
-
LBTC = "LBTC"
|
|
53
|
-
LDO = "LDO"
|
|
54
|
-
LINK = "LINK"
|
|
55
|
-
LS_ETH = "LsETH"
|
|
56
|
-
LUSD = "LUSD"
|
|
57
|
-
MAI = "MAI"
|
|
58
|
-
MKR = "MKR"
|
|
59
|
-
OS_ETH = "osETH"
|
|
60
|
-
PT_E_USDE_14_AUG2025 = "PT-eUSDE-14AUG2025"
|
|
61
|
-
PT_E_USDE_29_MAY2025 = "PT-eUSDE-29MAY2025"
|
|
62
|
-
PT_S_USDE_25_SEP2025 = "PT-sUSDE-25SEP2025"
|
|
63
|
-
PT_S_USDE_31_JUL2025 = "PT-sUSDE-31JUL2025"
|
|
64
|
-
PT_US_DE_31_JUL2025 = "PT-USDe-31JUL2025"
|
|
65
|
-
PYUSD = "PYUSD"
|
|
66
|
-
R_ETH = "rETH"
|
|
67
|
-
RLUSD = "RLUSD"
|
|
68
|
-
RPL = "RPL"
|
|
69
|
-
RS_ETH = "rsETH"
|
|
70
|
-
S_DAI = "sDAI"
|
|
71
|
-
SNX = "SNX"
|
|
72
|
-
STG = "STG"
|
|
73
|
-
S_US_DE = "sUSDe"
|
|
74
|
-
T_BTC = "tBTC"
|
|
75
|
-
UNI = "UNI"
|
|
76
|
-
US_DB_C = "USDbC"
|
|
77
|
-
USD_CE = "USDCe"
|
|
78
|
-
USDC = "USDC"
|
|
79
|
-
US_DE = "USDe"
|
|
80
|
-
USDS = "USDS"
|
|
81
|
-
US_DTB = "USDtb"
|
|
82
|
-
USDT = "USDT"
|
|
83
|
-
VIRTUAL = "VIRTUAL"
|
|
84
|
-
WBTC = "WBTC"
|
|
85
|
-
WE_ETH = "weETH"
|
|
86
|
-
WELL = "WELL"
|
|
87
|
-
WETH = "WETH"
|
|
88
|
-
WRS_ETH = "wrsETH"
|
|
89
|
-
WST_ETH = "wstETH"
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
class V1AerodromeSlipstreamPoolPriceTokenOutToken(str, Enum):
|
|
93
|
-
r"""A class representing the token.
|
|
94
|
-
|
|
95
|
-
This class is used to represent the token in the system. Notice individual
|
|
96
|
-
endpoints' documentation where per chain tokens are presented.
|
|
97
|
-
"""
|
|
98
|
-
|
|
99
|
-
ONE_INCH = "1INCH"
|
|
100
|
-
AAVE = "AAVE"
|
|
101
|
-
AERO = "AERO"
|
|
102
|
-
ARB = "ARB"
|
|
103
|
-
BAL = "BAL"
|
|
104
|
-
BNKR = "BNKR"
|
|
105
|
-
CB_BTC = "cbBTC"
|
|
106
|
-
CB_ETH = "cbETH"
|
|
107
|
-
CLANKER = "CLANKER"
|
|
108
|
-
COPI = "COPI"
|
|
109
|
-
CRV = "CRV"
|
|
110
|
-
CRV_USD = "crvUSD"
|
|
111
|
-
CYBER = "CYBER"
|
|
112
|
-
DAI = "DAI"
|
|
113
|
-
DOGINME = "DOGINME"
|
|
114
|
-
E_BTC = "eBTC"
|
|
115
|
-
ENS = "ENS"
|
|
116
|
-
ETH = "ETH"
|
|
117
|
-
ETHFI = "ETHFI"
|
|
118
|
-
ET_HX = "ETHx"
|
|
119
|
-
EURC = "EURC"
|
|
120
|
-
EUR = "EUR"
|
|
121
|
-
EURS = "EURS"
|
|
122
|
-
E_US_DE = "eUSDe"
|
|
123
|
-
EZ_ETH = "ezETH"
|
|
124
|
-
FBTC = "FBTC"
|
|
125
|
-
FRAX = "FRAX"
|
|
126
|
-
FXS = "FXS"
|
|
127
|
-
GHO = "GHO"
|
|
128
|
-
KNC = "KNC"
|
|
129
|
-
LBTC = "LBTC"
|
|
130
|
-
LDO = "LDO"
|
|
131
|
-
LINK = "LINK"
|
|
132
|
-
LS_ETH = "LsETH"
|
|
133
|
-
LUSD = "LUSD"
|
|
134
|
-
MAI = "MAI"
|
|
135
|
-
MKR = "MKR"
|
|
136
|
-
OS_ETH = "osETH"
|
|
137
|
-
PT_E_USDE_14_AUG2025 = "PT-eUSDE-14AUG2025"
|
|
138
|
-
PT_E_USDE_29_MAY2025 = "PT-eUSDE-29MAY2025"
|
|
139
|
-
PT_S_USDE_25_SEP2025 = "PT-sUSDE-25SEP2025"
|
|
140
|
-
PT_S_USDE_31_JUL2025 = "PT-sUSDE-31JUL2025"
|
|
141
|
-
PT_US_DE_31_JUL2025 = "PT-USDe-31JUL2025"
|
|
142
|
-
PYUSD = "PYUSD"
|
|
143
|
-
R_ETH = "rETH"
|
|
144
|
-
RLUSD = "RLUSD"
|
|
145
|
-
RPL = "RPL"
|
|
146
|
-
RS_ETH = "rsETH"
|
|
147
|
-
S_DAI = "sDAI"
|
|
148
|
-
SNX = "SNX"
|
|
149
|
-
STG = "STG"
|
|
150
|
-
S_US_DE = "sUSDe"
|
|
151
|
-
T_BTC = "tBTC"
|
|
152
|
-
UNI = "UNI"
|
|
153
|
-
US_DB_C = "USDbC"
|
|
154
|
-
USD_CE = "USDCe"
|
|
155
|
-
USDC = "USDC"
|
|
156
|
-
US_DE = "USDe"
|
|
157
|
-
USDS = "USDS"
|
|
158
|
-
US_DTB = "USDtb"
|
|
159
|
-
USDT = "USDT"
|
|
160
|
-
VIRTUAL = "VIRTUAL"
|
|
161
|
-
WBTC = "WBTC"
|
|
162
|
-
WE_ETH = "weETH"
|
|
163
|
-
WELL = "WELL"
|
|
164
|
-
WETH = "WETH"
|
|
165
|
-
WRS_ETH = "wrsETH"
|
|
166
|
-
WST_ETH = "wstETH"
|
|
167
|
-
|
|
168
|
-
|
|
169
15
|
class V1AerodromeSlipstreamPoolPriceRequestTypedDict(TypedDict):
|
|
170
16
|
chain: V1AerodromeSlipstreamPoolPriceChain
|
|
171
|
-
token_in:
|
|
172
|
-
r"""The symbol of a token in the pool."""
|
|
173
|
-
token_out:
|
|
174
|
-
r"""The symbol of a token in the pool."""
|
|
17
|
+
token_in: str
|
|
18
|
+
r"""The symbol or address of a token in the pool."""
|
|
19
|
+
token_out: str
|
|
20
|
+
r"""The symbol or address of a token in the pool."""
|
|
175
21
|
tick_spacing: NotRequired[int]
|
|
176
22
|
r"""The tick spacing of the pool"""
|
|
177
23
|
|
|
@@ -183,16 +29,14 @@ class V1AerodromeSlipstreamPoolPriceRequest(BaseModel):
|
|
|
183
29
|
] = V1AerodromeSlipstreamPoolPriceChain.BASE
|
|
184
30
|
|
|
185
31
|
token_in: Annotated[
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
r"""The symbol of a token in the pool."""
|
|
32
|
+
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
33
|
+
] = "USDC"
|
|
34
|
+
r"""The symbol or address of a token in the pool."""
|
|
190
35
|
|
|
191
36
|
token_out: Annotated[
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
r"""The symbol of a token in the pool."""
|
|
37
|
+
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
38
|
+
] = "WETH"
|
|
39
|
+
r"""The symbol or address of a token in the pool."""
|
|
196
40
|
|
|
197
41
|
tick_spacing: Annotated[
|
|
198
42
|
Optional[int],
|
|
@@ -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 BaseModel
|
|
6
5
|
from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
|
|
7
6
|
from enum import Enum
|
|
@@ -15,18 +14,6 @@ class V1GenericAllowanceChain(str, Enum):
|
|
|
15
14
|
ETHEREUM = "ethereum"
|
|
16
15
|
|
|
17
16
|
|
|
18
|
-
V1GenericAllowanceTokenTypedDict = TypeAliasType(
|
|
19
|
-
"V1GenericAllowanceTokenTypedDict", Union[TokenEnum, str]
|
|
20
|
-
)
|
|
21
|
-
r"""The symbol or address of the token for which the allowance is checked.."""
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
V1GenericAllowanceToken = TypeAliasType(
|
|
25
|
-
"V1GenericAllowanceToken", Union[TokenEnum, str]
|
|
26
|
-
)
|
|
27
|
-
r"""The symbol or address of the token for which the allowance is checked.."""
|
|
28
|
-
|
|
29
|
-
|
|
30
17
|
class V1GenericAllowanceContractEnum(str, Enum):
|
|
31
18
|
AAVE_V3_POOL = "AaveV3Pool"
|
|
32
19
|
AERODROME_BASIC_ROUTER = "AerodromeBasicRouter"
|
|
@@ -59,22 +46,16 @@ r"""The name or address of the contract to check allowance for."""
|
|
|
59
46
|
|
|
60
47
|
|
|
61
48
|
class V1GenericAllowanceRequestTypedDict(TypedDict):
|
|
62
|
-
token: V1GenericAllowanceTokenTypedDict
|
|
63
|
-
r"""The symbol or address of the token for which the allowance is checked.."""
|
|
64
49
|
contract: V1GenericAllowanceContractUnionTypedDict
|
|
65
50
|
r"""The name or address of the contract to check allowance for."""
|
|
66
51
|
chain: V1GenericAllowanceChain
|
|
67
52
|
user: NotRequired[str]
|
|
68
53
|
r"""The user to get the ERC20 allowance of."""
|
|
54
|
+
token: str
|
|
55
|
+
r"""The symbol or address of the token for which the allowance is checked."""
|
|
69
56
|
|
|
70
57
|
|
|
71
58
|
class V1GenericAllowanceRequest(BaseModel):
|
|
72
|
-
token: Annotated[
|
|
73
|
-
V1GenericAllowanceToken,
|
|
74
|
-
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
75
|
-
]
|
|
76
|
-
r"""The symbol or address of the token for which the allowance is checked.."""
|
|
77
|
-
|
|
78
59
|
contract: Annotated[
|
|
79
60
|
V1GenericAllowanceContractUnion,
|
|
80
61
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
@@ -91,3 +72,8 @@ class V1GenericAllowanceRequest(BaseModel):
|
|
|
91
72
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
92
73
|
] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"
|
|
93
74
|
r"""The user to get the ERC20 allowance of."""
|
|
75
|
+
|
|
76
|
+
token: Annotated[
|
|
77
|
+
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
78
|
+
] = "USDC"
|
|
79
|
+
r"""The symbol or address of the token for which the allowance is checked."""
|