compass_api_sdk 0.2.1__py3-none-any.whl → 0.3.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of compass_api_sdk might be problematic. Click here for more details.
- {compass_api_sdk-0.2.1.dist-info → compass_api_sdk-0.3.1.dist-info}/METADATA +33 -33
- compass_api_sdk-0.3.1.dist-info/RECORD +180 -0
- {compass_api_sdk → compassapisdk}/_hooks/sdkhooks.py +1 -1
- {compass_api_sdk → compassapisdk}/_hooks/types.py +1 -1
- {compass_api_sdk → compassapisdk}/_version.py +3 -3
- {compass_api_sdk → compassapisdk}/aave_v3.py +27 -27
- {compass_api_sdk → compassapisdk}/aerodrome_slipstream.py +11 -11
- {compass_api_sdk → compassapisdk}/basesdk.py +3 -3
- {compass_api_sdk → compassapisdk}/errors/httpvalidationerror.py +3 -3
- {compass_api_sdk → compassapisdk}/httpclient.py +7 -37
- {compass_api_sdk → compassapisdk}/models/aave_historical_transactionsop.py +8 -2
- {compass_api_sdk → compassapisdk}/models/aave_liquidity_changeop.py +8 -12
- {compass_api_sdk → compassapisdk}/models/aave_rateop.py +4 -12
- {compass_api_sdk → compassapisdk}/models/aave_reserve_overviewop.py +4 -12
- {compass_api_sdk → compassapisdk}/models/aave_token_priceop.py +4 -12
- {compass_api_sdk → compassapisdk}/models/aave_user_position_per_tokenop.py +6 -12
- {compass_api_sdk → compassapisdk}/models/aave_user_position_summaryop.py +4 -2
- {compass_api_sdk → compassapisdk}/models/aaveborrowparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aaveborrowrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aavehistoricaltransactionsresponse.py +2 -2
- {compass_api_sdk → compassapisdk}/models/aaveliquiditychangeresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aavelooprequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aaverateresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aaverepayparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aaverepayrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aavereserveoverviewresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aavesupplyparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aavesupplyrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aavetokenpriceresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aaveuserpositionpertokenresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aaveuserpositionsummaryresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aavewithdrawparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aavewithdrawrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodrome_slipstream_liquidity_provision_positionsop.py +4 -2
- {compass_api_sdk → compassapisdk}/models/aerodrome_slipstream_pool_priceop.py +8 -22
- {compass_api_sdk → compassapisdk}/models/aerodromelppositionsresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeposition.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreambuyexactlyparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreambuyexactlyrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreamincreaseliquidityprovisionparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreamincreaseliquidityprovisionrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreammintliquidityprovisionparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreammintliquidityprovisionrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreampoolpriceresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreamsellexactlyparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreamsellexactlyrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreamwithdrawliquidityprovisionparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreamwithdrawliquidityprovisionrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/allowanceinforesponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/borrow.py +2 -2
- {compass_api_sdk → compassapisdk}/models/chaininfo.py +1 -1
- {compass_api_sdk → compassapisdk}/models/compass_api_backend_models_morpho_read_response_get_markets_asset.py +1 -1
- {compass_api_sdk → compassapisdk}/models/compass_api_backend_models_morpho_read_response_get_vaults_asset.py +1 -1
- {compass_api_sdk → compassapisdk}/models/ensnameinforesponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/generic_allowanceop.py +10 -12
- {compass_api_sdk → compassapisdk}/models/generic_ensop.py +4 -2
- {compass_api_sdk → compassapisdk}/models/generic_portfolioop.py +4 -2
- {compass_api_sdk → compassapisdk}/models/generic_supported_tokensop.py +2 -2
- {compass_api_sdk → compassapisdk}/models/generic_visualize_portfolioop.py +4 -2
- {compass_api_sdk → compassapisdk}/models/image.py +1 -1
- {compass_api_sdk → compassapisdk}/models/increaseallowanceanyparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/increaseallowanceparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/increaseallowancerequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/liquidationcall.py +2 -2
- {compass_api_sdk → compassapisdk}/models/marketstate.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morpho_market_positionop.py +9 -6
- {compass_api_sdk → compassapisdk}/models/morpho_marketsop.py +20 -23
- {compass_api_sdk → compassapisdk}/models/morpho_vault_positionop.py +9 -6
- {compass_api_sdk → compassapisdk}/models/morpho_vaultsop.py +14 -19
- {compass_api_sdk → compassapisdk}/models/morphoborrowrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphocheckmarketpositionresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphocheckvaultpositionresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphodepositrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphogetmarketsresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphogetvaultsresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphomarket.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphorepayrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphosetvaultallowancerequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphosupplycollateralrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphovault.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphowithdrawcollateralrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphowithdrawrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/multicallaction.py +1 -1
- {compass_api_sdk → compassapisdk}/models/multicallauthorizationrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/multicallauthorizationresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/multicallexecuterequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/portfolio.py +1 -1
- {compass_api_sdk → compassapisdk}/models/redeemunderlying.py +1 -1
- {compass_api_sdk → compassapisdk}/models/repay.py +2 -2
- {compass_api_sdk → compassapisdk}/models/reserve.py +1 -1
- {compass_api_sdk → compassapisdk}/models/security.py +2 -2
- {compass_api_sdk → compassapisdk}/models/signedauthorization.py +1 -1
- {compass_api_sdk → compassapisdk}/models/sky_positionop.py +4 -2
- {compass_api_sdk → compassapisdk}/models/skybuyrequest.py +2 -2
- {compass_api_sdk → compassapisdk}/models/skycheckpositionresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/skydepositrequest.py +2 -2
- {compass_api_sdk → compassapisdk}/models/skysellrequest.py +2 -2
- {compass_api_sdk → compassapisdk}/models/skywithdrawrequest.py +2 -2
- {compass_api_sdk → compassapisdk}/models/supply.py +2 -2
- {compass_api_sdk → compassapisdk}/models/swapborrowrate.py +2 -2
- {compass_api_sdk → compassapisdk}/models/token_addressop.py +4 -12
- {compass_api_sdk → compassapisdk}/models/token_balanceop.py +8 -2
- {compass_api_sdk → compassapisdk}/models/token_priceop.py +4 -12
- {compass_api_sdk → compassapisdk}/models/tokenaddressresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/tokenbalance.py +1 -1
- {compass_api_sdk → compassapisdk}/models/tokenbalanceresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/tokeninfo.py +1 -1
- {compass_api_sdk → compassapisdk}/models/tokenpriceresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/tokentransfererc20params.py +1 -1
- {compass_api_sdk → compassapisdk}/models/tokentransferrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswap_liquidity_provision_in_rangeop.py +4 -2
- {compass_api_sdk → compassapisdk}/models/uniswap_liquidity_provision_positionsop.py +4 -2
- {compass_api_sdk → compassapisdk}/models/uniswap_pool_priceop.py +8 -30
- {compass_api_sdk → compassapisdk}/models/uniswap_quote_buy_exactlyop.py +12 -30
- {compass_api_sdk → compassapisdk}/models/uniswap_quote_sell_exactlyop.py +12 -30
- {compass_api_sdk → compassapisdk}/models/uniswapbuyexactlyparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswapbuyexactlyrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswapbuyquoteinforesponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswapcheckinrangeresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswapincreaseliquidityprovisionparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswapincreaseliquidityprovisionrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswaplppositionsinforesponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswapmintliquidityprovisionparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswapmintliquidityprovisionrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswappoolpriceresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswappositionssolidityresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswapsellexactlyparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswapsellexactlyrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswapsellquoteinforesponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswapwithdrawliquidityprovisionparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswapwithdrawliquidityprovisionrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/unsignedmulticalltransaction.py +1 -1
- {compass_api_sdk → compassapisdk}/models/unsignedtransaction.py +1 -1
- {compass_api_sdk → compassapisdk}/models/unwrapwethparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/unwrapwethrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/usageascollateral.py +2 -2
- {compass_api_sdk → compassapisdk}/models/validationerror.py +1 -1
- {compass_api_sdk → compassapisdk}/models/vaultstate.py +1 -1
- {compass_api_sdk → compassapisdk}/models/weeklyapys.py +1 -1
- {compass_api_sdk → compassapisdk}/models/wrapethparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/wrapethrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/morpho.py +31 -47
- {compass_api_sdk → compassapisdk}/sdk.py +11 -11
- {compass_api_sdk → compassapisdk}/sdkconfiguration.py +2 -2
- {compass_api_sdk → compassapisdk}/sky.py +5 -5
- {compass_api_sdk → compassapisdk}/token_sdk.py +11 -11
- {compass_api_sdk → compassapisdk}/transaction_batching.py +3 -3
- {compass_api_sdk → compassapisdk}/uniswap_v3.py +29 -29
- {compass_api_sdk → compassapisdk}/universal.py +15 -15
- compass_api_sdk/_hooks/registration.py +0 -13
- compass_api_sdk-0.2.1.dist-info/RECORD +0 -181
- {compass_api_sdk-0.2.1.dist-info → compass_api_sdk-0.3.1.dist-info}/WHEEL +0 -0
- {compass_api_sdk → compassapisdk}/__init__.py +0 -0
- {compass_api_sdk → compassapisdk}/_hooks/__init__.py +0 -0
- {compass_api_sdk → compassapisdk}/errors/__init__.py +0 -0
- {compass_api_sdk → compassapisdk}/errors/apierror.py +0 -0
- {compass_api_sdk → compassapisdk}/models/__init__.py +0 -0
- {compass_api_sdk → compassapisdk}/models/chain.py +0 -0
- {compass_api_sdk → compassapisdk}/models/contractname.py +0 -0
- {compass_api_sdk → compassapisdk}/models/feeenum.py +0 -0
- {compass_api_sdk → compassapisdk}/models/interestratemode.py +0 -0
- {compass_api_sdk → compassapisdk}/models/multicallactiontype.py +0 -0
- {compass_api_sdk → compassapisdk}/models/token_enum.py +0 -0
- {compass_api_sdk → compassapisdk}/py.typed +0 -0
- {compass_api_sdk → compassapisdk}/types/__init__.py +0 -0
- {compass_api_sdk → compassapisdk}/types/basemodel.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/__init__.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/annotations.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/datetimes.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/enums.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/eventstreaming.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/forms.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/headers.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/logger.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/metadata.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/queryparams.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/requestbodies.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/retries.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/security.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/serializers.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/url.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/values.py +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
5
|
-
from
|
|
4
|
+
from compassapisdk.types import BaseModel
|
|
5
|
+
from compassapisdk.utils import FieldMetadata, QueryParamMetadata
|
|
6
6
|
from enum import Enum
|
|
7
7
|
from typing import Union
|
|
8
8
|
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
@@ -137,34 +137,26 @@ class UniswapQuoteBuyExactlyFeeEnum(str, Enum):
|
|
|
137
137
|
UniswapQuoteBuyExactlyAmountOutTypedDict = TypeAliasType(
|
|
138
138
|
"UniswapQuoteBuyExactlyAmountOutTypedDict", Union[float, str]
|
|
139
139
|
)
|
|
140
|
+
r"""The amount of the token to swap to"""
|
|
140
141
|
|
|
141
142
|
|
|
142
143
|
UniswapQuoteBuyExactlyAmountOut = TypeAliasType(
|
|
143
144
|
"UniswapQuoteBuyExactlyAmountOut", Union[float, str]
|
|
144
145
|
)
|
|
146
|
+
r"""The amount of the token to swap to"""
|
|
145
147
|
|
|
146
148
|
|
|
147
149
|
class UniswapQuoteBuyExactlyRequestTypedDict(TypedDict):
|
|
148
150
|
amount_out: UniswapQuoteBuyExactlyAmountOutTypedDict
|
|
151
|
+
r"""The amount of the token to swap to"""
|
|
149
152
|
chain: UniswapQuoteBuyExactlyChain
|
|
150
153
|
r"""The chain to use."""
|
|
151
154
|
token_in: UniswapQuoteBuyExactlyTokenInToken
|
|
152
|
-
r"""
|
|
153
|
-
|
|
154
|
-
This class is used to represent the token in the system. Notice individual
|
|
155
|
-
endpoints' documentation where per chain tokens are presented.
|
|
156
|
-
"""
|
|
155
|
+
r"""The symbol of the token to swap from."""
|
|
157
156
|
token_out: UniswapQuoteBuyExactlyTokenOutToken
|
|
158
|
-
r"""
|
|
159
|
-
|
|
160
|
-
This class is used to represent the token in the system. Notice individual
|
|
161
|
-
endpoints' documentation where per chain tokens are presented.
|
|
162
|
-
"""
|
|
157
|
+
r"""The symbol of the token to swap to."""
|
|
163
158
|
fee: UniswapQuoteBuyExactlyFeeEnum
|
|
164
|
-
r"""The
|
|
165
|
-
|
|
166
|
-
Uniswap supports 4 different fee levels.
|
|
167
|
-
"""
|
|
159
|
+
r"""The fee to pay for the swap"""
|
|
168
160
|
|
|
169
161
|
|
|
170
162
|
class UniswapQuoteBuyExactlyRequest(BaseModel):
|
|
@@ -172,6 +164,7 @@ class UniswapQuoteBuyExactlyRequest(BaseModel):
|
|
|
172
164
|
UniswapQuoteBuyExactlyAmountOut,
|
|
173
165
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
174
166
|
]
|
|
167
|
+
r"""The amount of the token to swap to"""
|
|
175
168
|
|
|
176
169
|
chain: Annotated[
|
|
177
170
|
UniswapQuoteBuyExactlyChain,
|
|
@@ -183,27 +176,16 @@ class UniswapQuoteBuyExactlyRequest(BaseModel):
|
|
|
183
176
|
UniswapQuoteBuyExactlyTokenInToken,
|
|
184
177
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
185
178
|
] = UniswapQuoteBuyExactlyTokenInToken.USDC
|
|
186
|
-
r"""
|
|
187
|
-
|
|
188
|
-
This class is used to represent the token in the system. Notice individual
|
|
189
|
-
endpoints' documentation where per chain tokens are presented.
|
|
190
|
-
"""
|
|
179
|
+
r"""The symbol of the token to swap from."""
|
|
191
180
|
|
|
192
181
|
token_out: Annotated[
|
|
193
182
|
UniswapQuoteBuyExactlyTokenOutToken,
|
|
194
183
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
195
184
|
] = UniswapQuoteBuyExactlyTokenOutToken.USDT
|
|
196
|
-
r"""
|
|
197
|
-
|
|
198
|
-
This class is used to represent the token in the system. Notice individual
|
|
199
|
-
endpoints' documentation where per chain tokens are presented.
|
|
200
|
-
"""
|
|
185
|
+
r"""The symbol of the token to swap to."""
|
|
201
186
|
|
|
202
187
|
fee: Annotated[
|
|
203
188
|
UniswapQuoteBuyExactlyFeeEnum,
|
|
204
189
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
205
190
|
] = UniswapQuoteBuyExactlyFeeEnum.ZERO_DOT_01
|
|
206
|
-
r"""The
|
|
207
|
-
|
|
208
|
-
Uniswap supports 4 different fee levels.
|
|
209
|
-
"""
|
|
191
|
+
r"""The fee to pay for the swap"""
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
5
|
-
from
|
|
4
|
+
from compassapisdk.types import BaseModel
|
|
5
|
+
from compassapisdk.utils import FieldMetadata, QueryParamMetadata
|
|
6
6
|
from enum import Enum
|
|
7
7
|
from typing import Union
|
|
8
8
|
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
@@ -137,34 +137,26 @@ class UniswapQuoteSellExactlyFeeEnum(str, Enum):
|
|
|
137
137
|
UniswapQuoteSellExactlyAmountInTypedDict = TypeAliasType(
|
|
138
138
|
"UniswapQuoteSellExactlyAmountInTypedDict", Union[float, str]
|
|
139
139
|
)
|
|
140
|
+
r"""The amount of the token to swap from"""
|
|
140
141
|
|
|
141
142
|
|
|
142
143
|
UniswapQuoteSellExactlyAmountIn = TypeAliasType(
|
|
143
144
|
"UniswapQuoteSellExactlyAmountIn", Union[float, str]
|
|
144
145
|
)
|
|
146
|
+
r"""The amount of the token to swap from"""
|
|
145
147
|
|
|
146
148
|
|
|
147
149
|
class UniswapQuoteSellExactlyRequestTypedDict(TypedDict):
|
|
148
150
|
amount_in: UniswapQuoteSellExactlyAmountInTypedDict
|
|
151
|
+
r"""The amount of the token to swap from"""
|
|
149
152
|
chain: UniswapQuoteSellExactlyChain
|
|
150
153
|
r"""The chain to use."""
|
|
151
154
|
token_in: UniswapQuoteSellExactlyTokenInToken
|
|
152
|
-
r"""
|
|
153
|
-
|
|
154
|
-
This class is used to represent the token in the system. Notice individual
|
|
155
|
-
endpoints' documentation where per chain tokens are presented.
|
|
156
|
-
"""
|
|
155
|
+
r"""The symbol of the token to swap from."""
|
|
157
156
|
token_out: UniswapQuoteSellExactlyTokenOutToken
|
|
158
|
-
r"""
|
|
159
|
-
|
|
160
|
-
This class is used to represent the token in the system. Notice individual
|
|
161
|
-
endpoints' documentation where per chain tokens are presented.
|
|
162
|
-
"""
|
|
157
|
+
r"""The symbol of the token to swap to."""
|
|
163
158
|
fee: UniswapQuoteSellExactlyFeeEnum
|
|
164
|
-
r"""The
|
|
165
|
-
|
|
166
|
-
Uniswap supports 4 different fee levels.
|
|
167
|
-
"""
|
|
159
|
+
r"""The fee to pay for the swap"""
|
|
168
160
|
|
|
169
161
|
|
|
170
162
|
class UniswapQuoteSellExactlyRequest(BaseModel):
|
|
@@ -172,6 +164,7 @@ class UniswapQuoteSellExactlyRequest(BaseModel):
|
|
|
172
164
|
UniswapQuoteSellExactlyAmountIn,
|
|
173
165
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
174
166
|
]
|
|
167
|
+
r"""The amount of the token to swap from"""
|
|
175
168
|
|
|
176
169
|
chain: Annotated[
|
|
177
170
|
UniswapQuoteSellExactlyChain,
|
|
@@ -183,27 +176,16 @@ class UniswapQuoteSellExactlyRequest(BaseModel):
|
|
|
183
176
|
UniswapQuoteSellExactlyTokenInToken,
|
|
184
177
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
185
178
|
] = UniswapQuoteSellExactlyTokenInToken.USDC
|
|
186
|
-
r"""
|
|
187
|
-
|
|
188
|
-
This class is used to represent the token in the system. Notice individual
|
|
189
|
-
endpoints' documentation where per chain tokens are presented.
|
|
190
|
-
"""
|
|
179
|
+
r"""The symbol of the token to swap from."""
|
|
191
180
|
|
|
192
181
|
token_out: Annotated[
|
|
193
182
|
UniswapQuoteSellExactlyTokenOutToken,
|
|
194
183
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
195
184
|
] = UniswapQuoteSellExactlyTokenOutToken.USDT
|
|
196
|
-
r"""
|
|
197
|
-
|
|
198
|
-
This class is used to represent the token in the system. Notice individual
|
|
199
|
-
endpoints' documentation where per chain tokens are presented.
|
|
200
|
-
"""
|
|
185
|
+
r"""The symbol of the token to swap to."""
|
|
201
186
|
|
|
202
187
|
fee: Annotated[
|
|
203
188
|
UniswapQuoteSellExactlyFeeEnum,
|
|
204
189
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
205
190
|
] = UniswapQuoteSellExactlyFeeEnum.ZERO_DOT_01
|
|
206
|
-
r"""The
|
|
207
|
-
|
|
208
|
-
Uniswap supports 4 different fee levels.
|
|
209
|
-
"""
|
|
191
|
+
r"""The fee to pay for the swap"""
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .feeenum import FeeEnum
|
|
5
5
|
from .token_enum import TokenEnum
|
|
6
|
-
from
|
|
6
|
+
from compassapisdk.types import BaseModel
|
|
7
7
|
from typing import Optional, Union
|
|
8
8
|
from typing_extensions import NotRequired, TypeAliasType, TypedDict
|
|
9
9
|
|
|
@@ -4,7 +4,7 @@ from __future__ import annotations
|
|
|
4
4
|
from .chain import Chain
|
|
5
5
|
from .feeenum import FeeEnum
|
|
6
6
|
from .token_enum import TokenEnum
|
|
7
|
-
from
|
|
7
|
+
from compassapisdk.types import BaseModel
|
|
8
8
|
from typing import Optional, Union
|
|
9
9
|
from typing_extensions import NotRequired, TypeAliasType, TypedDict
|
|
10
10
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
4
|
+
from compassapisdk.types import BaseModel
|
|
5
5
|
from typing import Union
|
|
6
6
|
from typing_extensions import TypeAliasType, TypedDict
|
|
7
7
|
|
|
@@ -5,7 +5,7 @@ from .uniswappositionssolidityresponse import (
|
|
|
5
5
|
UniswapPositionsSolidityResponse,
|
|
6
6
|
UniswapPositionsSolidityResponseTypedDict,
|
|
7
7
|
)
|
|
8
|
-
from
|
|
8
|
+
from compassapisdk.types import BaseModel
|
|
9
9
|
from typing import Dict
|
|
10
10
|
from typing_extensions import TypedDict
|
|
11
11
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .feeenum import FeeEnum
|
|
5
5
|
from .token_enum import TokenEnum
|
|
6
|
-
from
|
|
6
|
+
from compassapisdk.types import BaseModel
|
|
7
7
|
from typing import Optional, Union
|
|
8
8
|
from typing_extensions import NotRequired, TypeAliasType, TypedDict
|
|
9
9
|
|
|
@@ -4,7 +4,7 @@ from __future__ import annotations
|
|
|
4
4
|
from .chain import Chain
|
|
5
5
|
from .feeenum import FeeEnum
|
|
6
6
|
from .token_enum import TokenEnum
|
|
7
|
-
from
|
|
7
|
+
from compassapisdk.types import BaseModel
|
|
8
8
|
from typing import Optional, Union
|
|
9
9
|
from typing_extensions import NotRequired, TypeAliasType, TypedDict
|
|
10
10
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
4
|
+
from compassapisdk.types import BaseModel
|
|
5
5
|
from typing import Union
|
|
6
6
|
from typing_extensions import TypeAliasType, TypedDict
|
|
7
7
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .signedauthorization import SignedAuthorization, SignedAuthorizationTypedDict
|
|
5
|
-
from
|
|
5
|
+
from compassapisdk.types import BaseModel
|
|
6
6
|
import pydantic
|
|
7
7
|
from typing import List, Optional
|
|
8
8
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
4
|
+
from compassapisdk.types import BaseModel
|
|
5
5
|
import pydantic
|
|
6
6
|
from typing_extensions import Annotated, TypedDict
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
4
|
+
from compassapisdk.types import BaseModel
|
|
5
5
|
from typing import Union
|
|
6
6
|
from typing_extensions import TypeAliasType, TypedDict
|
|
7
7
|
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .reserve import Reserve, ReserveTypedDict
|
|
5
|
-
from
|
|
6
|
-
from
|
|
5
|
+
from compassapisdk.types import BaseModel
|
|
6
|
+
from compassapisdk.utils import validate_const
|
|
7
7
|
import pydantic
|
|
8
8
|
from pydantic.functional_validators import AfterValidator
|
|
9
9
|
from typing import Literal
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
4
|
+
from compassapisdk.types import BaseModel
|
|
5
5
|
from typing import List, Union
|
|
6
6
|
from typing_extensions import TypeAliasType, TypedDict
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
4
|
+
from compassapisdk.types import BaseModel
|
|
5
5
|
import pydantic
|
|
6
6
|
from typing_extensions import Annotated, TypedDict
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
4
|
+
from compassapisdk.types import BaseModel
|
|
5
5
|
import pydantic
|
|
6
6
|
from typing_extensions import Annotated, TypedDict
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
4
|
+
from compassapisdk.types import BaseModel
|
|
5
5
|
from typing import Union
|
|
6
6
|
from typing_extensions import TypeAliasType, TypedDict
|
|
7
7
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from .basesdk import BaseSDK
|
|
4
|
-
from
|
|
5
|
-
from
|
|
6
|
-
from
|
|
4
|
+
from compassapisdk import errors, models, utils
|
|
5
|
+
from compassapisdk._hooks import HookContext
|
|
6
|
+
from compassapisdk.types import Nullable, OptionalNullable, UNSET
|
|
7
7
|
from typing import Any, Mapping, Optional, Union
|
|
8
8
|
|
|
9
9
|
|
|
@@ -11,10 +11,8 @@ class Morpho(BaseSDK):
|
|
|
11
11
|
def vaults(
|
|
12
12
|
self,
|
|
13
13
|
*,
|
|
14
|
-
chain:
|
|
15
|
-
|
|
16
|
-
] = models.MorphoVaultsChain.ETHEREUM_MAINNET,
|
|
17
|
-
deposit_token: OptionalNullable[str] = UNSET,
|
|
14
|
+
chain: models.MorphoVaultsChain = models.MorphoVaultsChain.ETHEREUM_MAINNET,
|
|
15
|
+
deposit_token: Nullable[str],
|
|
18
16
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
19
17
|
server_url: Optional[str] = None,
|
|
20
18
|
timeout_ms: Optional[int] = None,
|
|
@@ -29,7 +27,7 @@ class Morpho(BaseSDK):
|
|
|
29
27
|
exchange value increasing over time.
|
|
30
28
|
|
|
31
29
|
:param chain:
|
|
32
|
-
:param deposit_token:
|
|
30
|
+
:param deposit_token: Token address that will filter vaults by this deposit token.
|
|
33
31
|
:param retries: Override the default retry configuration for this method
|
|
34
32
|
:param server_url: Override the default server URL for this method
|
|
35
33
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -117,10 +115,8 @@ class Morpho(BaseSDK):
|
|
|
117
115
|
async def vaults_async(
|
|
118
116
|
self,
|
|
119
117
|
*,
|
|
120
|
-
chain:
|
|
121
|
-
|
|
122
|
-
] = models.MorphoVaultsChain.ETHEREUM_MAINNET,
|
|
123
|
-
deposit_token: OptionalNullable[str] = UNSET,
|
|
118
|
+
chain: models.MorphoVaultsChain = models.MorphoVaultsChain.ETHEREUM_MAINNET,
|
|
119
|
+
deposit_token: Nullable[str],
|
|
124
120
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
125
121
|
server_url: Optional[str] = None,
|
|
126
122
|
timeout_ms: Optional[int] = None,
|
|
@@ -135,7 +131,7 @@ class Morpho(BaseSDK):
|
|
|
135
131
|
exchange value increasing over time.
|
|
136
132
|
|
|
137
133
|
:param chain:
|
|
138
|
-
:param deposit_token:
|
|
134
|
+
:param deposit_token: Token address that will filter vaults by this deposit token.
|
|
139
135
|
:param retries: Override the default retry configuration for this method
|
|
140
136
|
:param server_url: Override the default server URL for this method
|
|
141
137
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -223,11 +219,9 @@ class Morpho(BaseSDK):
|
|
|
223
219
|
def vault_position(
|
|
224
220
|
self,
|
|
225
221
|
*,
|
|
222
|
+
chain: models.MorphoVaultPositionChain = models.MorphoVaultPositionChain.ETHEREUM_MAINNET,
|
|
226
223
|
user_address: str = "0xa829B388A3DF7f581cE957a95edbe419dd146d1B",
|
|
227
224
|
vault_address: str = "0xbEef047a543E45807105E51A8BBEFCc5950fcfBa",
|
|
228
|
-
chain: Optional[
|
|
229
|
-
models.MorphoVaultPositionChain
|
|
230
|
-
] = models.MorphoVaultPositionChain.ETHEREUM_MAINNET,
|
|
231
225
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
232
226
|
server_url: Optional[str] = None,
|
|
233
227
|
timeout_ms: Optional[int] = None,
|
|
@@ -238,9 +232,9 @@ class Morpho(BaseSDK):
|
|
|
238
232
|
Check how many shares you own and the equivalent token amount of a given
|
|
239
233
|
vault.
|
|
240
234
|
|
|
241
|
-
:param user_address:
|
|
242
|
-
:param vault_address:
|
|
243
235
|
:param chain:
|
|
236
|
+
:param user_address: The user address of the desired vault position.
|
|
237
|
+
:param vault_address: The vault address of the desired vault position.
|
|
244
238
|
:param retries: Override the default retry configuration for this method
|
|
245
239
|
:param server_url: Override the default server URL for this method
|
|
246
240
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -331,11 +325,9 @@ class Morpho(BaseSDK):
|
|
|
331
325
|
async def vault_position_async(
|
|
332
326
|
self,
|
|
333
327
|
*,
|
|
328
|
+
chain: models.MorphoVaultPositionChain = models.MorphoVaultPositionChain.ETHEREUM_MAINNET,
|
|
334
329
|
user_address: str = "0xa829B388A3DF7f581cE957a95edbe419dd146d1B",
|
|
335
330
|
vault_address: str = "0xbEef047a543E45807105E51A8BBEFCc5950fcfBa",
|
|
336
|
-
chain: Optional[
|
|
337
|
-
models.MorphoVaultPositionChain
|
|
338
|
-
] = models.MorphoVaultPositionChain.ETHEREUM_MAINNET,
|
|
339
331
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
340
332
|
server_url: Optional[str] = None,
|
|
341
333
|
timeout_ms: Optional[int] = None,
|
|
@@ -346,9 +338,9 @@ class Morpho(BaseSDK):
|
|
|
346
338
|
Check how many shares you own and the equivalent token amount of a given
|
|
347
339
|
vault.
|
|
348
340
|
|
|
349
|
-
:param user_address:
|
|
350
|
-
:param vault_address:
|
|
351
341
|
:param chain:
|
|
342
|
+
:param user_address: The user address of the desired vault position.
|
|
343
|
+
:param vault_address: The vault address of the desired vault position.
|
|
352
344
|
:param retries: Override the default retry configuration for this method
|
|
353
345
|
:param server_url: Override the default server URL for this method
|
|
354
346
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -439,11 +431,9 @@ class Morpho(BaseSDK):
|
|
|
439
431
|
def markets(
|
|
440
432
|
self,
|
|
441
433
|
*,
|
|
442
|
-
chain:
|
|
443
|
-
|
|
444
|
-
]
|
|
445
|
-
collateral_token: OptionalNullable[str] = UNSET,
|
|
446
|
-
loan_token: OptionalNullable[str] = UNSET,
|
|
434
|
+
chain: models.MorphoMarketsChain = models.MorphoMarketsChain.ETHEREUM_MAINNET,
|
|
435
|
+
collateral_token: Nullable[str],
|
|
436
|
+
loan_token: Nullable[str],
|
|
447
437
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
448
438
|
server_url: Optional[str] = None,
|
|
449
439
|
timeout_ms: Optional[int] = None,
|
|
@@ -457,8 +447,8 @@ class Morpho(BaseSDK):
|
|
|
457
447
|
can be used as collateral.
|
|
458
448
|
|
|
459
449
|
:param chain:
|
|
460
|
-
:param collateral_token:
|
|
461
|
-
:param loan_token:
|
|
450
|
+
:param collateral_token: Collateral token to identify the market.
|
|
451
|
+
:param loan_token: Loan token to identify the market.
|
|
462
452
|
:param retries: Override the default retry configuration for this method
|
|
463
453
|
:param server_url: Override the default server URL for this method
|
|
464
454
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -547,11 +537,9 @@ class Morpho(BaseSDK):
|
|
|
547
537
|
async def markets_async(
|
|
548
538
|
self,
|
|
549
539
|
*,
|
|
550
|
-
chain:
|
|
551
|
-
|
|
552
|
-
]
|
|
553
|
-
collateral_token: OptionalNullable[str] = UNSET,
|
|
554
|
-
loan_token: OptionalNullable[str] = UNSET,
|
|
540
|
+
chain: models.MorphoMarketsChain = models.MorphoMarketsChain.ETHEREUM_MAINNET,
|
|
541
|
+
collateral_token: Nullable[str],
|
|
542
|
+
loan_token: Nullable[str],
|
|
555
543
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
556
544
|
server_url: Optional[str] = None,
|
|
557
545
|
timeout_ms: Optional[int] = None,
|
|
@@ -565,8 +553,8 @@ class Morpho(BaseSDK):
|
|
|
565
553
|
can be used as collateral.
|
|
566
554
|
|
|
567
555
|
:param chain:
|
|
568
|
-
:param collateral_token:
|
|
569
|
-
:param loan_token:
|
|
556
|
+
:param collateral_token: Collateral token to identify the market.
|
|
557
|
+
:param loan_token: Loan token to identify the market.
|
|
570
558
|
:param retries: Override the default retry configuration for this method
|
|
571
559
|
:param server_url: Override the default server URL for this method
|
|
572
560
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -655,11 +643,9 @@ class Morpho(BaseSDK):
|
|
|
655
643
|
def market_position(
|
|
656
644
|
self,
|
|
657
645
|
*,
|
|
646
|
+
chain: models.MorphoMarketPositionChain = models.MorphoMarketPositionChain.ETHEREUM_MAINNET,
|
|
658
647
|
user_address: str = "0xa829B388A3DF7f581cE957a95edbe419dd146d1B",
|
|
659
648
|
unique_market_key: str = "0xe7399fdebc318d76dfec7356caafcf8cd4b91287e139a3ec423f09aeeb656fc4",
|
|
660
|
-
chain: Optional[
|
|
661
|
-
models.MorphoMarketPositionChain
|
|
662
|
-
] = models.MorphoMarketPositionChain.ETHEREUM_MAINNET,
|
|
663
649
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
664
650
|
server_url: Optional[str] = None,
|
|
665
651
|
timeout_ms: Optional[int] = None,
|
|
@@ -670,9 +656,9 @@ class Morpho(BaseSDK):
|
|
|
670
656
|
Check how many shares you've borrowed and the equivalent token amount of a given
|
|
671
657
|
market.
|
|
672
658
|
|
|
673
|
-
:param user_address:
|
|
674
|
-
:param unique_market_key:
|
|
675
659
|
:param chain:
|
|
660
|
+
:param user_address: The user address of the desired market position.
|
|
661
|
+
:param unique_market_key: The key that uniquely identifies the market. This can be found using the 'Get Markets' endpoint.
|
|
676
662
|
:param retries: Override the default retry configuration for this method
|
|
677
663
|
:param server_url: Override the default server URL for this method
|
|
678
664
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -763,11 +749,9 @@ class Morpho(BaseSDK):
|
|
|
763
749
|
async def market_position_async(
|
|
764
750
|
self,
|
|
765
751
|
*,
|
|
752
|
+
chain: models.MorphoMarketPositionChain = models.MorphoMarketPositionChain.ETHEREUM_MAINNET,
|
|
766
753
|
user_address: str = "0xa829B388A3DF7f581cE957a95edbe419dd146d1B",
|
|
767
754
|
unique_market_key: str = "0xe7399fdebc318d76dfec7356caafcf8cd4b91287e139a3ec423f09aeeb656fc4",
|
|
768
|
-
chain: Optional[
|
|
769
|
-
models.MorphoMarketPositionChain
|
|
770
|
-
] = models.MorphoMarketPositionChain.ETHEREUM_MAINNET,
|
|
771
755
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
772
756
|
server_url: Optional[str] = None,
|
|
773
757
|
timeout_ms: Optional[int] = None,
|
|
@@ -778,9 +762,9 @@ class Morpho(BaseSDK):
|
|
|
778
762
|
Check how many shares you've borrowed and the equivalent token amount of a given
|
|
779
763
|
market.
|
|
780
764
|
|
|
781
|
-
:param user_address:
|
|
782
|
-
:param unique_market_key:
|
|
783
765
|
:param chain:
|
|
766
|
+
:param user_address: The user address of the desired market position.
|
|
767
|
+
:param unique_market_key: The key that uniquely identifies the market. This can be found using the 'Get Markets' endpoint.
|
|
784
768
|
:param retries: Override the default retry configuration for this method
|
|
785
769
|
:param server_url: Override the default server URL for this method
|
|
786
770
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|