compass_api_sdk 1.1.1rc0__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.1rc0.dist-info → compass_api_sdk-1.1.3rc0.dist-info}/METADATA +5 -7
- {compass_api_sdk-1.1.1rc0.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.1rc0.dist-info → compass_api_sdk-1.1.3rc0.dist-info}/WHEEL +0 -0
|
@@ -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."""
|
|
@@ -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"]
|