compass_api_sdk 1.1.2__py3-none-any.whl → 1.1.3rc0__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 +44 -44
- compass_api_sdk/aerodrome_slipstream.py +32 -32
- compass_api_sdk/models/__init__.py +0 -254
- compass_api_sdk/models/aaveborrowparams.py +4 -13
- compass_api_sdk/models/aaveborrowrequest.py +4 -13
- compass_api_sdk/models/aavelooprequest.py +8 -25
- compass_api_sdk/models/aaverepayparams.py +4 -13
- compass_api_sdk/models/aaverepayrequest.py +4 -13
- compass_api_sdk/models/aavesupplyparams.py +4 -13
- compass_api_sdk/models/aavesupplyrequest.py +4 -13
- compass_api_sdk/models/aavewithdrawparams.py +4 -13
- compass_api_sdk/models/aavewithdrawrequest.py +4 -13
- compass_api_sdk/models/aerodromeposition.py +4 -25
- compass_api_sdk/models/aerodromeslipstreambuyexactlyparams.py +8 -25
- compass_api_sdk/models/aerodromeslipstreambuyexactlyrequest.py +8 -25
- compass_api_sdk/models/aerodromeslipstreammintliquidityprovisionparams.py +8 -25
- compass_api_sdk/models/aerodromeslipstreammintliquidityprovisionrequest.py +8 -25
- compass_api_sdk/models/aerodromeslipstreampoolpriceresponse.py +8 -25
- compass_api_sdk/models/aerodromeslipstreamsellexactlyparams.py +8 -25
- compass_api_sdk/models/aerodromeslipstreamsellexactlyrequest.py +8 -25
- compass_api_sdk/models/batcheduseroperationsrequest.py +8 -2
- compass_api_sdk/models/compass_api_backend_models_generic_read_response_portfolio_tokenbalance.py +4 -13
- compass_api_sdk/models/odosswapparams.py +4 -25
- compass_api_sdk/models/odosswaprequest.py +4 -27
- compass_api_sdk/models/pendlemanageliquidityparams.py +2 -15
- compass_api_sdk/models/pendlemanageliquidityrequest.py +2 -15
- compass_api_sdk/models/pendletradeptparams.py +2 -15
- compass_api_sdk/models/pendletradeptrequest.py +2 -15
- compass_api_sdk/models/pendletradeytparams.py +2 -15
- compass_api_sdk/models/pendletradeytrequest.py +2 -15
- compass_api_sdk/models/reserve.py +6 -15
- compass_api_sdk/models/setallowanceparams.py +2 -15
- compass_api_sdk/models/setallowancerequest.py +2 -15
- compass_api_sdk/models/skysellrequest.py +4 -4
- compass_api_sdk/models/tokenbalanceresponse.py +5 -15
- compass_api_sdk/models/tokentransferparams.py +2 -15
- compass_api_sdk/models/tokentransferrequest.py +2 -15
- compass_api_sdk/models/uniswapbuyexactlyparams.py +8 -33
- compass_api_sdk/models/uniswapbuyexactlyrequest.py +8 -33
- compass_api_sdk/models/uniswapmintliquidityprovisionparams.py +8 -25
- compass_api_sdk/models/uniswapmintliquidityprovisionrequest.py +8 -25
- compass_api_sdk/models/uniswappoolpriceresponse.py +8 -25
- compass_api_sdk/models/uniswapsellexactlyparams.py +4 -29
- compass_api_sdk/models/uniswapsellexactlyrequest.py +4 -29
- 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/morpho.py +12 -24
- compass_api_sdk/pendle.py +6 -20
- compass_api_sdk/sdk.py +3 -3
- compass_api_sdk/sky.py +14 -16
- compass_api_sdk/swap.py +4 -12
- compass_api_sdk/{token_sdk.py → token.py} +13 -197
- compass_api_sdk/transaction_bundler.py +8 -8
- compass_api_sdk/uniswap_v3.py +44 -68
- compass_api_sdk/universal.py +6 -188
- {compass_api_sdk-1.1.2.dist-info → compass_api_sdk-1.1.3rc0.dist-info}/METADATA +5 -7
- {compass_api_sdk-1.1.2.dist-info → compass_api_sdk-1.1.3rc0.dist-info}/RECORD +74 -79
- 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.3rc0.dist-info}/WHEEL +0 -0
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .feeenum import FeeEnum
|
|
5
|
-
from .token_enum import TokenEnum
|
|
6
5
|
from compass_api_sdk.types import BaseModel
|
|
7
6
|
from compass_api_sdk.utils import validate_const
|
|
8
7
|
from enum import Enum
|
|
@@ -12,30 +11,6 @@ from typing import Literal, Optional, Union
|
|
|
12
11
|
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
13
12
|
|
|
14
13
|
|
|
15
|
-
UniswapSellExactlyRequestTokenInTypedDict = TypeAliasType(
|
|
16
|
-
"UniswapSellExactlyRequestTokenInTypedDict", Union[TokenEnum, str]
|
|
17
|
-
)
|
|
18
|
-
r"""The symbol or address of the token to sell.."""
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
UniswapSellExactlyRequestTokenIn = TypeAliasType(
|
|
22
|
-
"UniswapSellExactlyRequestTokenIn", Union[TokenEnum, str]
|
|
23
|
-
)
|
|
24
|
-
r"""The symbol or address of the token to sell.."""
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
UniswapSellExactlyRequestTokenOutTypedDict = TypeAliasType(
|
|
28
|
-
"UniswapSellExactlyRequestTokenOutTypedDict", Union[TokenEnum, str]
|
|
29
|
-
)
|
|
30
|
-
r"""The symbol or address of the token to buy.."""
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
UniswapSellExactlyRequestTokenOut = TypeAliasType(
|
|
34
|
-
"UniswapSellExactlyRequestTokenOut", Union[TokenEnum, str]
|
|
35
|
-
)
|
|
36
|
-
r"""The symbol or address of the token to buy.."""
|
|
37
|
-
|
|
38
|
-
|
|
39
14
|
UniswapSellExactlyRequestAmountInTypedDict = TypeAliasType(
|
|
40
15
|
"UniswapSellExactlyRequestAmountInTypedDict", Union[float, str]
|
|
41
16
|
)
|
|
@@ -57,9 +32,9 @@ class UniswapSellExactlyRequestChain(str, Enum):
|
|
|
57
32
|
class UniswapSellExactlyRequestTypedDict(TypedDict):
|
|
58
33
|
r"""Request model for selling exactly an amount of tokens."""
|
|
59
34
|
|
|
60
|
-
token_in:
|
|
35
|
+
token_in: str
|
|
61
36
|
r"""The symbol or address of the token to sell.."""
|
|
62
|
-
token_out:
|
|
37
|
+
token_out: str
|
|
63
38
|
r"""The symbol or address of the token to buy.."""
|
|
64
39
|
fee: FeeEnum
|
|
65
40
|
r"""The transaction fee of a Uniswap pool in bips.
|
|
@@ -79,10 +54,10 @@ class UniswapSellExactlyRequestTypedDict(TypedDict):
|
|
|
79
54
|
class UniswapSellExactlyRequest(BaseModel):
|
|
80
55
|
r"""Request model for selling exactly an amount of tokens."""
|
|
81
56
|
|
|
82
|
-
token_in:
|
|
57
|
+
token_in: str
|
|
83
58
|
r"""The symbol or address of the token to sell.."""
|
|
84
59
|
|
|
85
|
-
token_out:
|
|
60
|
+
token_out: str
|
|
86
61
|
r"""The symbol or address of the token to buy.."""
|
|
87
62
|
|
|
88
63
|
fee: FeeEnum
|
|
@@ -20,89 +20,12 @@ class V1AaveAvgRateChain(str, Enum):
|
|
|
20
20
|
ETHEREUM = "ethereum"
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
class V1AaveAvgRateToken(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 V1AaveAvgRateRequestTypedDict(TypedDict):
|
|
101
24
|
chain: V1AaveAvgRateChain
|
|
102
25
|
block: NotRequired[Nullable[int]]
|
|
103
26
|
r"""Optional block number (defaults to latest)."""
|
|
104
|
-
token:
|
|
105
|
-
r"""The symbol of the token.."""
|
|
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 average shall be calculated."""
|
|
108
31
|
|
|
@@ -120,10 +43,9 @@ class V1AaveAvgRateRequest(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 token.."""
|
|
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))
|
|
@@ -13,87 +13,10 @@ class V1AaveLiquidityChangeChain(str, Enum):
|
|
|
13
13
|
ETHEREUM = "ethereum"
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
class V1AaveLiquidityChangeToken(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
16
|
class V1AaveLiquidityChangeRequestTypedDict(TypedDict):
|
|
94
17
|
chain: V1AaveLiquidityChangeChain
|
|
95
|
-
token:
|
|
96
|
-
r"""The symbol of the asset to get liquidity change for.."""
|
|
18
|
+
token: str
|
|
19
|
+
r"""The symbol or address of the asset to get liquidity change for.."""
|
|
97
20
|
start_block: int
|
|
98
21
|
r"""The start block to calculate liquidity change from."""
|
|
99
22
|
end_block: int
|
|
@@ -107,10 +30,9 @@ class V1AaveLiquidityChangeRequest(BaseModel):
|
|
|
107
30
|
] = V1AaveLiquidityChangeChain.ARBITRUM
|
|
108
31
|
|
|
109
32
|
token: Annotated[
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
r"""The symbol of the asset to get liquidity change for.."""
|
|
33
|
+
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
34
|
+
] = "USDC"
|
|
35
|
+
r"""The symbol or address of the asset to get liquidity change for.."""
|
|
114
36
|
|
|
115
37
|
start_block: Annotated[
|
|
116
38
|
int, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
@@ -20,89 +20,12 @@ class V1AaveRateChain(str, Enum):
|
|
|
20
20
|
ETHEREUM = "ethereum"
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
class V1AaveRateToken(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 V1AaveRateRequestTypedDict(TypedDict):
|
|
101
24
|
chain: V1AaveRateChain
|
|
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 to fetch the user's position on.."""
|
|
106
29
|
|
|
107
30
|
|
|
108
31
|
class V1AaveRateRequest(BaseModel):
|
|
@@ -118,10 +41,9 @@ class V1AaveRateRequest(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 to fetch the users' position on.."""
|
|
44
|
+
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
45
|
+
] = "USDC"
|
|
46
|
+
r"""The symbol or address of the token to fetch the user's position on.."""
|
|
125
47
|
|
|
126
48
|
@model_serializer(mode="wrap")
|
|
127
49
|
def serialize_model(self, handler):
|
|
@@ -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):
|