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,13 +1,13 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from .sdkconfiguration import SDKConfiguration
|
|
4
|
-
from
|
|
5
|
-
from
|
|
4
|
+
from compassapisdk import errors, utils
|
|
5
|
+
from compassapisdk._hooks import (
|
|
6
6
|
AfterErrorContext,
|
|
7
7
|
AfterSuccessContext,
|
|
8
8
|
BeforeRequestContext,
|
|
9
9
|
)
|
|
10
|
-
from
|
|
10
|
+
from compassapisdk.utils import RetryConfig, SerializedRequestBody, get_body_content
|
|
11
11
|
import httpx
|
|
12
12
|
from typing import Callable, List, Mapping, Optional, Tuple
|
|
13
13
|
from urllib.parse import parse_qs, urlparse
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
5
|
-
from
|
|
6
|
-
from
|
|
4
|
+
from compassapisdk import utils
|
|
5
|
+
from compassapisdk.models import validationerror as models_validationerror
|
|
6
|
+
from compassapisdk.types import BaseModel
|
|
7
7
|
from typing import List, Optional
|
|
8
8
|
|
|
9
9
|
|
|
@@ -115,42 +115,12 @@ def close_clients(
|
|
|
115
115
|
pass
|
|
116
116
|
|
|
117
117
|
if async_client is not None and not async_client_supplied:
|
|
118
|
-
# First, try the simplest approach - use asyncio.run()
|
|
119
|
-
# This works when we're not in an async context
|
|
120
118
|
try:
|
|
121
|
-
asyncio.
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
loop = asyncio.get_running_loop()
|
|
129
|
-
# Create a task but don't wait for it
|
|
130
|
-
loop.create_task(async_client.aclose())
|
|
131
|
-
except Exception:
|
|
132
|
-
# If we can't get the loop or create a task, just ignore
|
|
133
|
-
# The GC will eventually clean up the resources
|
|
134
|
-
pass
|
|
135
|
-
# If we get "RuntimeError: There is no current event loop in thread",
|
|
136
|
-
# we're not in an async context, but asyncio.run() failed for some reason
|
|
137
|
-
# In this case, we can try to create a new event loop explicitly
|
|
138
|
-
elif "no current event loop" in str(e):
|
|
139
|
-
try:
|
|
140
|
-
# Create a new event loop and run the coroutine
|
|
141
|
-
loop = asyncio.new_event_loop()
|
|
142
|
-
asyncio.set_event_loop(loop)
|
|
143
|
-
try:
|
|
144
|
-
loop.run_until_complete(async_client.aclose())
|
|
145
|
-
finally:
|
|
146
|
-
loop.close()
|
|
147
|
-
asyncio.set_event_loop(None)
|
|
148
|
-
except Exception:
|
|
149
|
-
# If this also fails, just ignore
|
|
150
|
-
pass
|
|
151
|
-
# For any other RuntimeError, just ignore
|
|
152
|
-
else:
|
|
119
|
+
loop = asyncio.get_running_loop()
|
|
120
|
+
asyncio.run_coroutine_threadsafe(async_client.aclose(), loop)
|
|
121
|
+
except RuntimeError:
|
|
122
|
+
try:
|
|
123
|
+
asyncio.run(async_client.aclose())
|
|
124
|
+
except RuntimeError:
|
|
125
|
+
# best effort
|
|
153
126
|
pass
|
|
154
|
-
except Exception:
|
|
155
|
-
# For any other exception, just ignore
|
|
156
|
-
pass
|
|
@@ -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 Optional
|
|
8
8
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -18,10 +18,13 @@ class AaveHistoricalTransactionsChain(str, Enum):
|
|
|
18
18
|
|
|
19
19
|
class AaveHistoricalTransactionsRequestTypedDict(TypedDict):
|
|
20
20
|
offset: NotRequired[int]
|
|
21
|
+
r"""The offset of the first item to return."""
|
|
21
22
|
limit: NotRequired[int]
|
|
23
|
+
r"""The number of items to return."""
|
|
22
24
|
chain: AaveHistoricalTransactionsChain
|
|
23
25
|
r"""The chain to use."""
|
|
24
26
|
user_address: str
|
|
27
|
+
r"""The address of the user to get historical transactions for."""
|
|
25
28
|
|
|
26
29
|
|
|
27
30
|
class AaveHistoricalTransactionsRequest(BaseModel):
|
|
@@ -29,11 +32,13 @@ class AaveHistoricalTransactionsRequest(BaseModel):
|
|
|
29
32
|
Optional[int],
|
|
30
33
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
31
34
|
] = 0
|
|
35
|
+
r"""The offset of the first item to return."""
|
|
32
36
|
|
|
33
37
|
limit: Annotated[
|
|
34
38
|
Optional[int],
|
|
35
39
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
36
40
|
] = 100
|
|
41
|
+
r"""The number of items to return."""
|
|
37
42
|
|
|
38
43
|
chain: Annotated[
|
|
39
44
|
AaveHistoricalTransactionsChain,
|
|
@@ -44,3 +49,4 @@ class AaveHistoricalTransactionsRequest(BaseModel):
|
|
|
44
49
|
user_address: Annotated[
|
|
45
50
|
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
46
51
|
] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"
|
|
52
|
+
r"""The address of the user to get historical transactions for."""
|
|
@@ -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_extensions import Annotated, TypedDict
|
|
8
8
|
|
|
@@ -72,13 +72,11 @@ class AaveLiquidityChangeRequestTypedDict(TypedDict):
|
|
|
72
72
|
chain: AaveLiquidityChangeChain
|
|
73
73
|
r"""The chain to use."""
|
|
74
74
|
token: AaveLiquidityChangeToken
|
|
75
|
-
r"""
|
|
76
|
-
|
|
77
|
-
This class is used to represent the token in the system. Notice individual
|
|
78
|
-
endpoints' documentation where per chain tokens are presented.
|
|
79
|
-
"""
|
|
75
|
+
r"""The symbol of the asset to get liquidity change for.."""
|
|
80
76
|
start_block: int
|
|
77
|
+
r"""The start block to calculate liquidity change from."""
|
|
81
78
|
end_block: int
|
|
79
|
+
r"""The end block to calculate liquidity change to."""
|
|
82
80
|
|
|
83
81
|
|
|
84
82
|
class AaveLiquidityChangeRequest(BaseModel):
|
|
@@ -92,16 +90,14 @@ class AaveLiquidityChangeRequest(BaseModel):
|
|
|
92
90
|
AaveLiquidityChangeToken,
|
|
93
91
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
94
92
|
] = AaveLiquidityChangeToken.USDC
|
|
95
|
-
r"""
|
|
96
|
-
|
|
97
|
-
This class is used to represent the token in the system. Notice individual
|
|
98
|
-
endpoints' documentation where per chain tokens are presented.
|
|
99
|
-
"""
|
|
93
|
+
r"""The symbol of the asset to get liquidity change for.."""
|
|
100
94
|
|
|
101
95
|
start_block: Annotated[
|
|
102
96
|
int, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
103
97
|
] = 0
|
|
98
|
+
r"""The start block to calculate liquidity change from."""
|
|
104
99
|
|
|
105
100
|
end_block: Annotated[
|
|
106
101
|
int, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
107
102
|
] = 319407231
|
|
103
|
+
r"""The end block to calculate liquidity change to."""
|
|
@@ -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_extensions import Annotated, TypedDict
|
|
8
8
|
|
|
@@ -72,11 +72,7 @@ class AaveRateRequestTypedDict(TypedDict):
|
|
|
72
72
|
chain: AaveRateChain
|
|
73
73
|
r"""The chain to use."""
|
|
74
74
|
token: AaveRateToken
|
|
75
|
-
r"""
|
|
76
|
-
|
|
77
|
-
This class is used to represent the token in the system. Notice individual
|
|
78
|
-
endpoints' documentation where per chain tokens are presented.
|
|
79
|
-
"""
|
|
75
|
+
r"""The symbol of the asset to fetch the users' position on.."""
|
|
80
76
|
|
|
81
77
|
|
|
82
78
|
class AaveRateRequest(BaseModel):
|
|
@@ -90,8 +86,4 @@ class AaveRateRequest(BaseModel):
|
|
|
90
86
|
AaveRateToken,
|
|
91
87
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
92
88
|
] = AaveRateToken.USDC
|
|
93
|
-
r"""
|
|
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
|
-
"""
|
|
89
|
+
r"""The symbol of the asset to fetch the users' position on.."""
|
|
@@ -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_extensions import Annotated, TypedDict
|
|
8
8
|
|
|
@@ -72,11 +72,7 @@ class AaveReserveOverviewRequestTypedDict(TypedDict):
|
|
|
72
72
|
chain: AaveReserveOverviewChain
|
|
73
73
|
r"""The chain to use."""
|
|
74
74
|
token: AaveReserveOverviewToken
|
|
75
|
-
r"""
|
|
76
|
-
|
|
77
|
-
This class is used to represent the token in the system. Notice individual
|
|
78
|
-
endpoints' documentation where per chain tokens are presented.
|
|
79
|
-
"""
|
|
75
|
+
r"""The symbol of the asset.."""
|
|
80
76
|
|
|
81
77
|
|
|
82
78
|
class AaveReserveOverviewRequest(BaseModel):
|
|
@@ -90,8 +86,4 @@ class AaveReserveOverviewRequest(BaseModel):
|
|
|
90
86
|
AaveReserveOverviewToken,
|
|
91
87
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
92
88
|
] = AaveReserveOverviewToken.USDC
|
|
93
|
-
r"""
|
|
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
|
-
"""
|
|
89
|
+
r"""The symbol of the asset.."""
|
|
@@ -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_extensions import Annotated, TypedDict
|
|
8
8
|
|
|
@@ -72,11 +72,7 @@ class AaveTokenPriceRequestTypedDict(TypedDict):
|
|
|
72
72
|
chain: AaveTokenPriceChain
|
|
73
73
|
r"""The chain to use."""
|
|
74
74
|
token: AaveTokenPriceToken
|
|
75
|
-
r"""
|
|
76
|
-
|
|
77
|
-
This class is used to represent the token in the system. Notice individual
|
|
78
|
-
endpoints' documentation where per chain tokens are presented.
|
|
79
|
-
"""
|
|
75
|
+
r"""The symbol of the asset whose price you want.."""
|
|
80
76
|
|
|
81
77
|
|
|
82
78
|
class AaveTokenPriceRequest(BaseModel):
|
|
@@ -90,8 +86,4 @@ class AaveTokenPriceRequest(BaseModel):
|
|
|
90
86
|
AaveTokenPriceToken,
|
|
91
87
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
92
88
|
] = AaveTokenPriceToken.USDC
|
|
93
|
-
r"""
|
|
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
|
-
"""
|
|
89
|
+
r"""The symbol of the asset whose price you want.."""
|
|
@@ -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_extensions import Annotated, TypedDict
|
|
8
8
|
|
|
@@ -72,12 +72,9 @@ class AaveUserPositionPerTokenRequestTypedDict(TypedDict):
|
|
|
72
72
|
chain: AaveUserPositionPerTokenChain
|
|
73
73
|
r"""The chain to use."""
|
|
74
74
|
user: str
|
|
75
|
+
r"""The user to fetch the token-specific position of."""
|
|
75
76
|
token: AaveUserPositionPerTokenToken
|
|
76
|
-
r"""
|
|
77
|
-
|
|
78
|
-
This class is used to represent the token in the system. Notice individual
|
|
79
|
-
endpoints' documentation where per chain tokens are presented.
|
|
80
|
-
"""
|
|
77
|
+
r"""The symbol of the asset to fetch the user's position on.."""
|
|
81
78
|
|
|
82
79
|
|
|
83
80
|
class AaveUserPositionPerTokenRequest(BaseModel):
|
|
@@ -90,13 +87,10 @@ class AaveUserPositionPerTokenRequest(BaseModel):
|
|
|
90
87
|
user: Annotated[
|
|
91
88
|
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
92
89
|
] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"
|
|
90
|
+
r"""The user to fetch the token-specific position of."""
|
|
93
91
|
|
|
94
92
|
token: Annotated[
|
|
95
93
|
AaveUserPositionPerTokenToken,
|
|
96
94
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
97
95
|
] = AaveUserPositionPerTokenToken.USDC
|
|
98
|
-
r"""
|
|
99
|
-
|
|
100
|
-
This class is used to represent the token in the system. Notice individual
|
|
101
|
-
endpoints' documentation where per chain tokens are presented.
|
|
102
|
-
"""
|
|
96
|
+
r"""The symbol of the asset to fetch the user's position on.."""
|
|
@@ -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_extensions import Annotated, TypedDict
|
|
8
8
|
|
|
@@ -19,6 +19,7 @@ class AaveUserPositionSummaryRequestTypedDict(TypedDict):
|
|
|
19
19
|
chain: AaveUserPositionSummaryChain
|
|
20
20
|
r"""The chain to use."""
|
|
21
21
|
user: str
|
|
22
|
+
r"""The user to get position summary for."""
|
|
22
23
|
|
|
23
24
|
|
|
24
25
|
class AaveUserPositionSummaryRequest(BaseModel):
|
|
@@ -31,3 +32,4 @@ class AaveUserPositionSummaryRequest(BaseModel):
|
|
|
31
32
|
user: Annotated[
|
|
32
33
|
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
33
34
|
] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"
|
|
35
|
+
r"""The user to get position summary for."""
|
|
@@ -8,8 +8,8 @@ from .repay import Repay, RepayTypedDict
|
|
|
8
8
|
from .supply import Supply, SupplyTypedDict
|
|
9
9
|
from .swapborrowrate import SwapBorrowRate, SwapBorrowRateTypedDict
|
|
10
10
|
from .usageascollateral import UsageAsCollateral, UsageAsCollateralTypedDict
|
|
11
|
-
from
|
|
12
|
-
from
|
|
11
|
+
from compassapisdk.types import BaseModel
|
|
12
|
+
from compassapisdk.utils import get_discriminator
|
|
13
13
|
from pydantic import Discriminator, Tag
|
|
14
14
|
from typing import List, Union
|
|
15
15
|
from typing_extensions import Annotated, TypeAliasType, 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
|
from datetime import datetime
|
|
6
6
|
from typing_extensions import TypedDict
|
|
7
7
|
|
|
@@ -4,7 +4,7 @@ from __future__ import annotations
|
|
|
4
4
|
from .chain import Chain
|
|
5
5
|
from .signedauthorization import SignedAuthorization, SignedAuthorizationTypedDict
|
|
6
6
|
from .token_enum import TokenEnum
|
|
7
|
-
from
|
|
7
|
+
from compassapisdk.types import BaseModel
|
|
8
8
|
from typing import Union
|
|
9
9
|
from typing_extensions import TypeAliasType, TypedDict
|
|
10
10
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .chain import Chain
|
|
5
5
|
from .token_enum import TokenEnum
|
|
6
|
-
from
|
|
6
|
+
from compassapisdk.types import BaseModel
|
|
7
7
|
from typing import Union
|
|
8
8
|
from typing_extensions import TypeAliasType, TypedDict
|
|
9
9
|
|
{compass_api_sdk → compassapisdk}/models/aerodrome_slipstream_liquidity_provision_positionsop.py
RENAMED
|
@@ -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 Optional
|
|
8
8
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -20,6 +20,7 @@ class AerodromeSlipstreamLiquidityProvisionPositionsRequestTypedDict(TypedDict):
|
|
|
20
20
|
chain: AerodromeSlipstreamLiquidityProvisionPositionsChain
|
|
21
21
|
r"""The chain to use."""
|
|
22
22
|
user: NotRequired[str]
|
|
23
|
+
r"""The user to get positions for."""
|
|
23
24
|
|
|
24
25
|
|
|
25
26
|
class AerodromeSlipstreamLiquidityProvisionPositionsRequest(BaseModel):
|
|
@@ -33,3 +34,4 @@ class AerodromeSlipstreamLiquidityProvisionPositionsRequest(BaseModel):
|
|
|
33
34
|
Optional[str],
|
|
34
35
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
35
36
|
] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"
|
|
37
|
+
r"""The user to get positions for."""
|
|
@@ -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 Optional
|
|
8
8
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -126,18 +126,11 @@ class AerodromeSlipstreamPoolPriceRequestTypedDict(TypedDict):
|
|
|
126
126
|
chain: AerodromeSlipstreamPoolPriceChain
|
|
127
127
|
r"""The chain to use."""
|
|
128
128
|
token_in: AerodromeSlipstreamPoolPriceTokenInToken
|
|
129
|
-
r"""
|
|
130
|
-
|
|
131
|
-
This class is used to represent the token in the system. Notice individual
|
|
132
|
-
endpoints' documentation where per chain tokens are presented.
|
|
133
|
-
"""
|
|
129
|
+
r"""The symbol of a token in the pool."""
|
|
134
130
|
token_out: AerodromeSlipstreamPoolPriceTokenOutToken
|
|
135
|
-
r"""
|
|
136
|
-
|
|
137
|
-
This class is used to represent the token in the system. Notice individual
|
|
138
|
-
endpoints' documentation where per chain tokens are presented.
|
|
139
|
-
"""
|
|
131
|
+
r"""The symbol of a token in the pool."""
|
|
140
132
|
tick_spacing: NotRequired[int]
|
|
133
|
+
r"""The tick spacing of the pool"""
|
|
141
134
|
|
|
142
135
|
|
|
143
136
|
class AerodromeSlipstreamPoolPriceRequest(BaseModel):
|
|
@@ -151,23 +144,16 @@ class AerodromeSlipstreamPoolPriceRequest(BaseModel):
|
|
|
151
144
|
AerodromeSlipstreamPoolPriceTokenInToken,
|
|
152
145
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
153
146
|
] = AerodromeSlipstreamPoolPriceTokenInToken.USDC
|
|
154
|
-
r"""
|
|
155
|
-
|
|
156
|
-
This class is used to represent the token in the system. Notice individual
|
|
157
|
-
endpoints' documentation where per chain tokens are presented.
|
|
158
|
-
"""
|
|
147
|
+
r"""The symbol of a token in the pool."""
|
|
159
148
|
|
|
160
149
|
token_out: Annotated[
|
|
161
150
|
AerodromeSlipstreamPoolPriceTokenOutToken,
|
|
162
151
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
163
152
|
] = AerodromeSlipstreamPoolPriceTokenOutToken.WETH
|
|
164
|
-
r"""
|
|
165
|
-
|
|
166
|
-
This class is used to represent the token in the system. Notice individual
|
|
167
|
-
endpoints' documentation where per chain tokens are presented.
|
|
168
|
-
"""
|
|
153
|
+
r"""The symbol of a token in the pool."""
|
|
169
154
|
|
|
170
155
|
tick_spacing: Annotated[
|
|
171
156
|
Optional[int],
|
|
172
157
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
173
158
|
] = 100
|
|
159
|
+
r"""The tick spacing of the pool"""
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .aerodromeposition import AerodromePosition, AerodromePositionTypedDict
|
|
5
|
-
from
|
|
5
|
+
from compassapisdk.types import BaseModel
|
|
6
6
|
from typing import Dict
|
|
7
7
|
from typing_extensions import TypedDict
|
|
8
8
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .chain import Chain
|
|
5
5
|
from .token_enum import TokenEnum
|
|
6
|
-
from
|
|
6
|
+
from compassapisdk.types import BaseModel
|
|
7
7
|
from typing import Union
|
|
8
8
|
from typing_extensions import TypeAliasType, TypedDict
|
|
9
9
|
|
{compass_api_sdk → compassapisdk}/models/aerodromeslipstreamincreaseliquidityprovisionparams.py
RENAMED
|
@@ -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
|
|