compass_api_sdk 0.9.8__py3-none-any.whl → 0.9.10__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 +2 -14
- compass_api_sdk/aerodrome_slipstream.py +0 -12
- compass_api_sdk/models/__init__.py +80 -6
- compass_api_sdk/models/aave_avg_rateop.py +1 -1
- compass_api_sdk/models/aave_historical_transactionsop.py +1 -46
- compass_api_sdk/models/aave_liquidity_changeop.py +2 -47
- compass_api_sdk/models/aavelooprequest.py +39 -13
- compass_api_sdk/models/aerodrome_slipstream_liquidity_provision_positionsop.py +1 -46
- compass_api_sdk/models/aerodrome_slipstream_pool_priceop.py +1 -46
- compass_api_sdk/models/generic_allowanceop.py +1 -46
- compass_api_sdk/models/generic_ensop.py +1 -46
- compass_api_sdk/models/generic_portfolioop.py +1 -46
- compass_api_sdk/models/generic_supported_tokensop.py +2 -47
- compass_api_sdk/models/generic_visualize_portfolioop.py +1 -46
- compass_api_sdk/models/morpho_market_positionop.py +2 -47
- compass_api_sdk/models/morpho_marketop.py +2 -47
- compass_api_sdk/models/morpho_marketsop.py +2 -10
- compass_api_sdk/models/morpho_user_positionop.py +2 -47
- compass_api_sdk/models/morpho_vault_positionop.py +2 -47
- compass_api_sdk/models/morpho_vaultop.py +2 -47
- compass_api_sdk/models/morpho_vaultsop.py +2 -10
- compass_api_sdk/models/pendle_marketop.py +2 -47
- compass_api_sdk/models/pendle_marketsop.py +2 -47
- compass_api_sdk/models/pendle_positionop.py +2 -47
- compass_api_sdk/models/pendle_positionsop.py +2 -47
- compass_api_sdk/models/pendleaddliquidityparams.py +45 -0
- compass_api_sdk/models/pendleaddliquidityrequest.py +56 -0
- compass_api_sdk/models/pendlegetmarketresponse.py +5 -0
- compass_api_sdk/models/pendlegetuserpositionresponse.py +5 -0
- compass_api_sdk/models/pendleremoveliquidityparams.py +45 -0
- compass_api_sdk/models/pendleremoveliquidityrequest.py +56 -0
- compass_api_sdk/models/sky_positionop.py +2 -47
- compass_api_sdk/models/token_addressop.py +2 -47
- compass_api_sdk/models/token_balanceop.py +2 -47
- compass_api_sdk/models/uniswap_liquidity_provision_in_rangeop.py +2 -47
- compass_api_sdk/models/uniswap_liquidity_provision_positionsop.py +1 -46
- compass_api_sdk/models/uniswap_pool_priceop.py +2 -47
- compass_api_sdk/models/uniswap_quote_buy_exactlyop.py +2 -47
- compass_api_sdk/models/uniswap_quote_sell_exactlyop.py +2 -47
- compass_api_sdk/models/useroperation.py +25 -13
- compass_api_sdk/morpho.py +0 -42
- compass_api_sdk/pendle.py +508 -66
- compass_api_sdk/sky.py +0 -6
- compass_api_sdk/token_sdk.py +0 -12
- compass_api_sdk/transaction_batching.py +22 -18
- compass_api_sdk/uniswap_v3.py +0 -30
- compass_api_sdk/universal.py +6 -34
- {compass_api_sdk-0.9.8.dist-info → compass_api_sdk-0.9.10.dist-info}/METADATA +5 -3
- {compass_api_sdk-0.9.8.dist-info → compass_api_sdk-0.9.10.dist-info}/RECORD +51 -47
- {compass_api_sdk-0.9.8.dist-info → compass_api_sdk-0.9.10.dist-info}/WHEEL +0 -0
compass_api_sdk/_version.py
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import importlib.metadata
|
|
4
4
|
|
|
5
5
|
__title__: str = "compass_api_sdk"
|
|
6
|
-
__version__: str = "0.9.
|
|
6
|
+
__version__: str = "0.9.10"
|
|
7
7
|
__openapi_doc_version__: str = "0.0.1"
|
|
8
|
-
__gen_version__: str = "2.
|
|
9
|
-
__user_agent__: str = "speakeasy-sdk/python 0.9.
|
|
8
|
+
__gen_version__: str = "2.623.0"
|
|
9
|
+
__user_agent__: str = "speakeasy-sdk/python 0.9.10 2.623.0 0.0.1 compass_api_sdk"
|
|
10
10
|
|
|
11
11
|
try:
|
|
12
12
|
if __package__ is not None:
|
compass_api_sdk/aave_v3.py
CHANGED
|
@@ -247,7 +247,7 @@ class AaveV3(BaseSDK):
|
|
|
247
247
|
*,
|
|
248
248
|
chain: models.AaveAvgRateChain = models.AaveAvgRateChain.ETHEREUM_MAINNET,
|
|
249
249
|
token: models.AaveAvgRateToken = models.AaveAvgRateToken.USDC,
|
|
250
|
-
days: int =
|
|
250
|
+
days: int = 2,
|
|
251
251
|
block: OptionalNullable[int] = UNSET,
|
|
252
252
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
253
253
|
server_url: Optional[str] = None,
|
|
@@ -354,7 +354,7 @@ class AaveV3(BaseSDK):
|
|
|
354
354
|
*,
|
|
355
355
|
chain: models.AaveAvgRateChain = models.AaveAvgRateChain.ETHEREUM_MAINNET,
|
|
356
356
|
token: models.AaveAvgRateToken = models.AaveAvgRateToken.USDC,
|
|
357
|
-
days: int =
|
|
357
|
+
days: int = 2,
|
|
358
358
|
block: OptionalNullable[int] = UNSET,
|
|
359
359
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
360
360
|
server_url: Optional[str] = None,
|
|
@@ -1123,7 +1123,6 @@ class AaveV3(BaseSDK):
|
|
|
1123
1123
|
token: models.AaveLiquidityChangeToken = models.AaveLiquidityChangeToken.USDC,
|
|
1124
1124
|
start_block: int = 0,
|
|
1125
1125
|
end_block: int = 319407231,
|
|
1126
|
-
block: OptionalNullable[int] = UNSET,
|
|
1127
1126
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
1128
1127
|
server_url: Optional[str] = None,
|
|
1129
1128
|
timeout_ms: Optional[int] = None,
|
|
@@ -1147,7 +1146,6 @@ class AaveV3(BaseSDK):
|
|
|
1147
1146
|
:param token: The symbol of the asset to get liquidity change for..
|
|
1148
1147
|
:param start_block: The start block to calculate liquidity change from.
|
|
1149
1148
|
:param end_block: The end block to calculate liquidity change to.
|
|
1150
|
-
:param block: Optional block number (defaults to latest).
|
|
1151
1149
|
:param retries: Override the default retry configuration for this method
|
|
1152
1150
|
:param server_url: Override the default server URL for this method
|
|
1153
1151
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -1165,7 +1163,6 @@ class AaveV3(BaseSDK):
|
|
|
1165
1163
|
|
|
1166
1164
|
request = models.AaveLiquidityChangeRequest(
|
|
1167
1165
|
chain=chain,
|
|
1168
|
-
block=block,
|
|
1169
1166
|
token=token,
|
|
1170
1167
|
start_block=start_block,
|
|
1171
1168
|
end_block=end_block,
|
|
@@ -1245,7 +1242,6 @@ class AaveV3(BaseSDK):
|
|
|
1245
1242
|
token: models.AaveLiquidityChangeToken = models.AaveLiquidityChangeToken.USDC,
|
|
1246
1243
|
start_block: int = 0,
|
|
1247
1244
|
end_block: int = 319407231,
|
|
1248
|
-
block: OptionalNullable[int] = UNSET,
|
|
1249
1245
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
1250
1246
|
server_url: Optional[str] = None,
|
|
1251
1247
|
timeout_ms: Optional[int] = None,
|
|
@@ -1269,7 +1265,6 @@ class AaveV3(BaseSDK):
|
|
|
1269
1265
|
:param token: The symbol of the asset to get liquidity change for..
|
|
1270
1266
|
:param start_block: The start block to calculate liquidity change from.
|
|
1271
1267
|
:param end_block: The end block to calculate liquidity change to.
|
|
1272
|
-
:param block: Optional block number (defaults to latest).
|
|
1273
1268
|
:param retries: Override the default retry configuration for this method
|
|
1274
1269
|
:param server_url: Override the default server URL for this method
|
|
1275
1270
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -1287,7 +1282,6 @@ class AaveV3(BaseSDK):
|
|
|
1287
1282
|
|
|
1288
1283
|
request = models.AaveLiquidityChangeRequest(
|
|
1289
1284
|
chain=chain,
|
|
1290
|
-
block=block,
|
|
1291
1285
|
token=token,
|
|
1292
1286
|
start_block=start_block,
|
|
1293
1287
|
end_block=end_block,
|
|
@@ -1827,7 +1821,6 @@ class AaveV3(BaseSDK):
|
|
|
1827
1821
|
user_address: str = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
1828
1822
|
offset: Optional[int] = 0,
|
|
1829
1823
|
limit: Optional[int] = 100,
|
|
1830
|
-
block: OptionalNullable[int] = UNSET,
|
|
1831
1824
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
1832
1825
|
server_url: Optional[str] = None,
|
|
1833
1826
|
timeout_ms: Optional[int] = None,
|
|
@@ -1846,7 +1839,6 @@ class AaveV3(BaseSDK):
|
|
|
1846
1839
|
:param user_address: The address of the user to get historical transactions for.
|
|
1847
1840
|
:param offset: The offset of the first item to return.
|
|
1848
1841
|
:param limit: The number of items to return.
|
|
1849
|
-
:param block: Optional block number (defaults to latest).
|
|
1850
1842
|
:param retries: Override the default retry configuration for this method
|
|
1851
1843
|
:param server_url: Override the default server URL for this method
|
|
1852
1844
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -1866,7 +1858,6 @@ class AaveV3(BaseSDK):
|
|
|
1866
1858
|
offset=offset,
|
|
1867
1859
|
limit=limit,
|
|
1868
1860
|
chain=chain,
|
|
1869
|
-
block=block,
|
|
1870
1861
|
user_address=user_address,
|
|
1871
1862
|
)
|
|
1872
1863
|
|
|
@@ -1944,7 +1935,6 @@ class AaveV3(BaseSDK):
|
|
|
1944
1935
|
user_address: str = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
1945
1936
|
offset: Optional[int] = 0,
|
|
1946
1937
|
limit: Optional[int] = 100,
|
|
1947
|
-
block: OptionalNullable[int] = UNSET,
|
|
1948
1938
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
1949
1939
|
server_url: Optional[str] = None,
|
|
1950
1940
|
timeout_ms: Optional[int] = None,
|
|
@@ -1963,7 +1953,6 @@ class AaveV3(BaseSDK):
|
|
|
1963
1953
|
:param user_address: The address of the user to get historical transactions for.
|
|
1964
1954
|
:param offset: The offset of the first item to return.
|
|
1965
1955
|
:param limit: The number of items to return.
|
|
1966
|
-
:param block: Optional block number (defaults to latest).
|
|
1967
1956
|
:param retries: Override the default retry configuration for this method
|
|
1968
1957
|
:param server_url: Override the default server URL for this method
|
|
1969
1958
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -1983,7 +1972,6 @@ class AaveV3(BaseSDK):
|
|
|
1983
1972
|
offset=offset,
|
|
1984
1973
|
limit=limit,
|
|
1985
1974
|
chain=chain,
|
|
1986
|
-
block=block,
|
|
1987
1975
|
user_address=user_address,
|
|
1988
1976
|
)
|
|
1989
1977
|
|
|
@@ -12,7 +12,6 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
12
12
|
self,
|
|
13
13
|
*,
|
|
14
14
|
chain: models.AerodromeSlipstreamLiquidityProvisionPositionsChain = models.AerodromeSlipstreamLiquidityProvisionPositionsChain.BASE_MAINNET,
|
|
15
|
-
block: OptionalNullable[int] = UNSET,
|
|
16
15
|
user: Optional[str] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
17
16
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
18
17
|
server_url: Optional[str] = None,
|
|
@@ -32,7 +31,6 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
32
31
|
decisions based on their current positions.
|
|
33
32
|
|
|
34
33
|
:param chain: The chain to use.
|
|
35
|
-
:param block: Optional block number (defaults to latest).
|
|
36
34
|
:param user: The user to get positions for.
|
|
37
35
|
:param retries: Override the default retry configuration for this method
|
|
38
36
|
:param server_url: Override the default server URL for this method
|
|
@@ -51,7 +49,6 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
51
49
|
|
|
52
50
|
request = models.AerodromeSlipstreamLiquidityProvisionPositionsRequest(
|
|
53
51
|
chain=chain,
|
|
54
|
-
block=block,
|
|
55
52
|
user=user,
|
|
56
53
|
)
|
|
57
54
|
|
|
@@ -126,7 +123,6 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
126
123
|
self,
|
|
127
124
|
*,
|
|
128
125
|
chain: models.AerodromeSlipstreamLiquidityProvisionPositionsChain = models.AerodromeSlipstreamLiquidityProvisionPositionsChain.BASE_MAINNET,
|
|
129
|
-
block: OptionalNullable[int] = UNSET,
|
|
130
126
|
user: Optional[str] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
131
127
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
132
128
|
server_url: Optional[str] = None,
|
|
@@ -146,7 +142,6 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
146
142
|
decisions based on their current positions.
|
|
147
143
|
|
|
148
144
|
:param chain: The chain to use.
|
|
149
|
-
:param block: Optional block number (defaults to latest).
|
|
150
145
|
:param user: The user to get positions for.
|
|
151
146
|
:param retries: Override the default retry configuration for this method
|
|
152
147
|
:param server_url: Override the default server URL for this method
|
|
@@ -165,7 +160,6 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
165
160
|
|
|
166
161
|
request = models.AerodromeSlipstreamLiquidityProvisionPositionsRequest(
|
|
167
162
|
chain=chain,
|
|
168
|
-
block=block,
|
|
169
163
|
user=user,
|
|
170
164
|
)
|
|
171
165
|
|
|
@@ -242,7 +236,6 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
242
236
|
chain: models.AerodromeSlipstreamPoolPriceChain = models.AerodromeSlipstreamPoolPriceChain.BASE_MAINNET,
|
|
243
237
|
token_in: models.AerodromeSlipstreamPoolPriceTokenInToken = models.AerodromeSlipstreamPoolPriceTokenInToken.USDC,
|
|
244
238
|
token_out: models.AerodromeSlipstreamPoolPriceTokenOutToken = models.AerodromeSlipstreamPoolPriceTokenOutToken.WETH,
|
|
245
|
-
block: OptionalNullable[int] = UNSET,
|
|
246
239
|
tick_spacing: Optional[int] = 100,
|
|
247
240
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
248
241
|
server_url: Optional[str] = None,
|
|
@@ -261,7 +254,6 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
261
254
|
:param chain: The chain to use.
|
|
262
255
|
:param token_in: The symbol of a token in the pool.
|
|
263
256
|
:param token_out: The symbol of a token in the pool.
|
|
264
|
-
:param block: Optional block number (defaults to latest).
|
|
265
257
|
:param tick_spacing: The tick spacing of the pool
|
|
266
258
|
:param retries: Override the default retry configuration for this method
|
|
267
259
|
:param server_url: Override the default server URL for this method
|
|
@@ -280,7 +272,6 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
280
272
|
|
|
281
273
|
request = models.AerodromeSlipstreamPoolPriceRequest(
|
|
282
274
|
chain=chain,
|
|
283
|
-
block=block,
|
|
284
275
|
token_in=token_in,
|
|
285
276
|
token_out=token_out,
|
|
286
277
|
tick_spacing=tick_spacing,
|
|
@@ -359,7 +350,6 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
359
350
|
chain: models.AerodromeSlipstreamPoolPriceChain = models.AerodromeSlipstreamPoolPriceChain.BASE_MAINNET,
|
|
360
351
|
token_in: models.AerodromeSlipstreamPoolPriceTokenInToken = models.AerodromeSlipstreamPoolPriceTokenInToken.USDC,
|
|
361
352
|
token_out: models.AerodromeSlipstreamPoolPriceTokenOutToken = models.AerodromeSlipstreamPoolPriceTokenOutToken.WETH,
|
|
362
|
-
block: OptionalNullable[int] = UNSET,
|
|
363
353
|
tick_spacing: Optional[int] = 100,
|
|
364
354
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
365
355
|
server_url: Optional[str] = None,
|
|
@@ -378,7 +368,6 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
378
368
|
:param chain: The chain to use.
|
|
379
369
|
:param token_in: The symbol of a token in the pool.
|
|
380
370
|
:param token_out: The symbol of a token in the pool.
|
|
381
|
-
:param block: Optional block number (defaults to latest).
|
|
382
371
|
:param tick_spacing: The tick spacing of the pool
|
|
383
372
|
:param retries: Override the default retry configuration for this method
|
|
384
373
|
:param server_url: Override the default server URL for this method
|
|
@@ -397,7 +386,6 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
397
386
|
|
|
398
387
|
request = models.AerodromeSlipstreamPoolPriceRequest(
|
|
399
388
|
chain=chain,
|
|
400
|
-
block=block,
|
|
401
389
|
token_in=token_in,
|
|
402
390
|
token_out=token_out,
|
|
403
391
|
tick_spacing=tick_spacing,
|
|
@@ -82,8 +82,14 @@ if TYPE_CHECKING:
|
|
|
82
82
|
from .aavelooprequest import (
|
|
83
83
|
AaveLoopRequest,
|
|
84
84
|
AaveLoopRequestTypedDict,
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
InitialCollateralAmount,
|
|
86
|
+
InitialCollateralAmountTypedDict,
|
|
87
|
+
LoanToValue,
|
|
88
|
+
LoanToValueTypedDict,
|
|
89
|
+
MaxSlippagePercent,
|
|
90
|
+
MaxSlippagePercentTypedDict,
|
|
91
|
+
Multiplier,
|
|
92
|
+
MultiplierTypedDict,
|
|
87
93
|
)
|
|
88
94
|
from .aaverateresponse import AaveRateResponse, AaveRateResponseTypedDict
|
|
89
95
|
from .aaverepayparams import (
|
|
@@ -564,6 +570,18 @@ if TYPE_CHECKING:
|
|
|
564
570
|
PendlePositionsRequest,
|
|
565
571
|
PendlePositionsRequestTypedDict,
|
|
566
572
|
)
|
|
573
|
+
from .pendleaddliquidityparams import (
|
|
574
|
+
PendleAddLiquidityParams,
|
|
575
|
+
PendleAddLiquidityParamsAmount,
|
|
576
|
+
PendleAddLiquidityParamsAmountTypedDict,
|
|
577
|
+
PendleAddLiquidityParamsTypedDict,
|
|
578
|
+
)
|
|
579
|
+
from .pendleaddliquidityrequest import (
|
|
580
|
+
PendleAddLiquidityRequest,
|
|
581
|
+
PendleAddLiquidityRequestAmount,
|
|
582
|
+
PendleAddLiquidityRequestAmountTypedDict,
|
|
583
|
+
PendleAddLiquidityRequestTypedDict,
|
|
584
|
+
)
|
|
567
585
|
from .pendlebuyptparams import (
|
|
568
586
|
PendleBuyPtParams,
|
|
569
587
|
PendleBuyPtParamsAmount,
|
|
@@ -613,6 +631,18 @@ if TYPE_CHECKING:
|
|
|
613
631
|
PendleRedeemYieldRequest,
|
|
614
632
|
PendleRedeemYieldRequestTypedDict,
|
|
615
633
|
)
|
|
634
|
+
from .pendleremoveliquidityparams import (
|
|
635
|
+
PendleRemoveLiquidityParams,
|
|
636
|
+
PendleRemoveLiquidityParamsAmount,
|
|
637
|
+
PendleRemoveLiquidityParamsAmountTypedDict,
|
|
638
|
+
PendleRemoveLiquidityParamsTypedDict,
|
|
639
|
+
)
|
|
640
|
+
from .pendleremoveliquidityrequest import (
|
|
641
|
+
PendleRemoveLiquidityRequest,
|
|
642
|
+
PendleRemoveLiquidityRequestAmount,
|
|
643
|
+
PendleRemoveLiquidityRequestAmountTypedDict,
|
|
644
|
+
PendleRemoveLiquidityRequestTypedDict,
|
|
645
|
+
)
|
|
616
646
|
from .pendlesellptparams import (
|
|
617
647
|
PendleSellPtParams,
|
|
618
648
|
PendleSellPtParamsAmount,
|
|
@@ -1133,8 +1163,6 @@ __all__ = [
|
|
|
1133
1163
|
"Chain",
|
|
1134
1164
|
"ChainInfo",
|
|
1135
1165
|
"ChainInfoTypedDict",
|
|
1136
|
-
"CollateralAmount",
|
|
1137
|
-
"CollateralAmountTypedDict",
|
|
1138
1166
|
"CompassAPIBackendModelsGenericReadResponsePortfolioTokenBalance",
|
|
1139
1167
|
"CompassAPIBackendModelsGenericReadResponsePortfolioTokenBalanceTypedDict",
|
|
1140
1168
|
"CompassAPIBackendModelsMorphoReadResponseCheckUserPositionApyData",
|
|
@@ -1207,11 +1235,15 @@ __all__ = [
|
|
|
1207
1235
|
"IncreaseAllowanceRequestToken",
|
|
1208
1236
|
"IncreaseAllowanceRequestTokenTypedDict",
|
|
1209
1237
|
"IncreaseAllowanceRequestTypedDict",
|
|
1238
|
+
"InitialCollateralAmount",
|
|
1239
|
+
"InitialCollateralAmountTypedDict",
|
|
1210
1240
|
"InterestRateMode",
|
|
1211
1241
|
"LiquidationCall",
|
|
1212
1242
|
"LiquidationCallTypedDict",
|
|
1213
1243
|
"Liquidity",
|
|
1214
1244
|
"LiquidityTypedDict",
|
|
1245
|
+
"LoanToValue",
|
|
1246
|
+
"LoanToValueTypedDict",
|
|
1215
1247
|
"Loc",
|
|
1216
1248
|
"LocTypedDict",
|
|
1217
1249
|
"LpBalance",
|
|
@@ -1220,6 +1252,8 @@ __all__ = [
|
|
|
1220
1252
|
"MarketPosition",
|
|
1221
1253
|
"MarketPositionTypedDict",
|
|
1222
1254
|
"MarketTypedDict",
|
|
1255
|
+
"MaxSlippagePercent",
|
|
1256
|
+
"MaxSlippagePercentTypedDict",
|
|
1223
1257
|
"Metadata",
|
|
1224
1258
|
"MetadataTypedDict",
|
|
1225
1259
|
"MorphoBorrowParams",
|
|
@@ -1324,8 +1358,18 @@ __all__ = [
|
|
|
1324
1358
|
"MulticallAuthorizationResponseTypedDict",
|
|
1325
1359
|
"MulticallExecuteRequest",
|
|
1326
1360
|
"MulticallExecuteRequestTypedDict",
|
|
1361
|
+
"Multiplier",
|
|
1362
|
+
"MultiplierTypedDict",
|
|
1327
1363
|
"OpenPosition",
|
|
1328
1364
|
"OpenPositionTypedDict",
|
|
1365
|
+
"PendleAddLiquidityParams",
|
|
1366
|
+
"PendleAddLiquidityParamsAmount",
|
|
1367
|
+
"PendleAddLiquidityParamsAmountTypedDict",
|
|
1368
|
+
"PendleAddLiquidityParamsTypedDict",
|
|
1369
|
+
"PendleAddLiquidityRequest",
|
|
1370
|
+
"PendleAddLiquidityRequestAmount",
|
|
1371
|
+
"PendleAddLiquidityRequestAmountTypedDict",
|
|
1372
|
+
"PendleAddLiquidityRequestTypedDict",
|
|
1329
1373
|
"PendleBuyPtParams",
|
|
1330
1374
|
"PendleBuyPtParamsAmount",
|
|
1331
1375
|
"PendleBuyPtParamsAmountTypedDict",
|
|
@@ -1368,6 +1412,14 @@ __all__ = [
|
|
|
1368
1412
|
"PendleRedeemYieldParamsTypedDict",
|
|
1369
1413
|
"PendleRedeemYieldRequest",
|
|
1370
1414
|
"PendleRedeemYieldRequestTypedDict",
|
|
1415
|
+
"PendleRemoveLiquidityParams",
|
|
1416
|
+
"PendleRemoveLiquidityParamsAmount",
|
|
1417
|
+
"PendleRemoveLiquidityParamsAmountTypedDict",
|
|
1418
|
+
"PendleRemoveLiquidityParamsTypedDict",
|
|
1419
|
+
"PendleRemoveLiquidityRequest",
|
|
1420
|
+
"PendleRemoveLiquidityRequestAmount",
|
|
1421
|
+
"PendleRemoveLiquidityRequestAmountTypedDict",
|
|
1422
|
+
"PendleRemoveLiquidityRequestTypedDict",
|
|
1371
1423
|
"PendleSellPtParams",
|
|
1372
1424
|
"PendleSellPtParamsAmount",
|
|
1373
1425
|
"PendleSellPtParamsAmountTypedDict",
|
|
@@ -1679,8 +1731,14 @@ _dynamic_imports: dict[str, str] = {
|
|
|
1679
1731
|
"AaveLiquidityChangeResponseTypedDict": ".aaveliquiditychangeresponse",
|
|
1680
1732
|
"AaveLoopRequest": ".aavelooprequest",
|
|
1681
1733
|
"AaveLoopRequestTypedDict": ".aavelooprequest",
|
|
1682
|
-
"
|
|
1683
|
-
"
|
|
1734
|
+
"InitialCollateralAmount": ".aavelooprequest",
|
|
1735
|
+
"InitialCollateralAmountTypedDict": ".aavelooprequest",
|
|
1736
|
+
"LoanToValue": ".aavelooprequest",
|
|
1737
|
+
"LoanToValueTypedDict": ".aavelooprequest",
|
|
1738
|
+
"MaxSlippagePercent": ".aavelooprequest",
|
|
1739
|
+
"MaxSlippagePercentTypedDict": ".aavelooprequest",
|
|
1740
|
+
"Multiplier": ".aavelooprequest",
|
|
1741
|
+
"MultiplierTypedDict": ".aavelooprequest",
|
|
1684
1742
|
"AaveRateResponse": ".aaverateresponse",
|
|
1685
1743
|
"AaveRateResponseTypedDict": ".aaverateresponse",
|
|
1686
1744
|
"AaveRepayParams": ".aaverepayparams",
|
|
@@ -2016,6 +2074,14 @@ _dynamic_imports: dict[str, str] = {
|
|
|
2016
2074
|
"PendlePositionsChain": ".pendle_positionsop",
|
|
2017
2075
|
"PendlePositionsRequest": ".pendle_positionsop",
|
|
2018
2076
|
"PendlePositionsRequestTypedDict": ".pendle_positionsop",
|
|
2077
|
+
"PendleAddLiquidityParams": ".pendleaddliquidityparams",
|
|
2078
|
+
"PendleAddLiquidityParamsAmount": ".pendleaddliquidityparams",
|
|
2079
|
+
"PendleAddLiquidityParamsAmountTypedDict": ".pendleaddliquidityparams",
|
|
2080
|
+
"PendleAddLiquidityParamsTypedDict": ".pendleaddliquidityparams",
|
|
2081
|
+
"PendleAddLiquidityRequest": ".pendleaddliquidityrequest",
|
|
2082
|
+
"PendleAddLiquidityRequestAmount": ".pendleaddliquidityrequest",
|
|
2083
|
+
"PendleAddLiquidityRequestAmountTypedDict": ".pendleaddliquidityrequest",
|
|
2084
|
+
"PendleAddLiquidityRequestTypedDict": ".pendleaddliquidityrequest",
|
|
2019
2085
|
"PendleBuyPtParams": ".pendlebuyptparams",
|
|
2020
2086
|
"PendleBuyPtParamsAmount": ".pendlebuyptparams",
|
|
2021
2087
|
"PendleBuyPtParamsAmountTypedDict": ".pendlebuyptparams",
|
|
@@ -2046,6 +2112,14 @@ _dynamic_imports: dict[str, str] = {
|
|
|
2046
2112
|
"PendleRedeemYieldParamsTypedDict": ".pendleredeemyieldparams",
|
|
2047
2113
|
"PendleRedeemYieldRequest": ".pendleredeemyieldrequest",
|
|
2048
2114
|
"PendleRedeemYieldRequestTypedDict": ".pendleredeemyieldrequest",
|
|
2115
|
+
"PendleRemoveLiquidityParams": ".pendleremoveliquidityparams",
|
|
2116
|
+
"PendleRemoveLiquidityParamsAmount": ".pendleremoveliquidityparams",
|
|
2117
|
+
"PendleRemoveLiquidityParamsAmountTypedDict": ".pendleremoveliquidityparams",
|
|
2118
|
+
"PendleRemoveLiquidityParamsTypedDict": ".pendleremoveliquidityparams",
|
|
2119
|
+
"PendleRemoveLiquidityRequest": ".pendleremoveliquidityrequest",
|
|
2120
|
+
"PendleRemoveLiquidityRequestAmount": ".pendleremoveliquidityrequest",
|
|
2121
|
+
"PendleRemoveLiquidityRequestAmountTypedDict": ".pendleremoveliquidityrequest",
|
|
2122
|
+
"PendleRemoveLiquidityRequestTypedDict": ".pendleremoveliquidityrequest",
|
|
2049
2123
|
"PendleSellPtParams": ".pendlesellptparams",
|
|
2050
2124
|
"PendleSellPtParamsAmount": ".pendlesellptparams",
|
|
2051
2125
|
"PendleSellPtParamsAmountTypedDict": ".pendlesellptparams",
|
|
@@ -107,7 +107,7 @@ class AaveAvgRateRequest(BaseModel):
|
|
|
107
107
|
|
|
108
108
|
days: Annotated[
|
|
109
109
|
int, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
110
|
-
] =
|
|
110
|
+
] = 2
|
|
111
111
|
r"""The number of days for which the average shall be calculated."""
|
|
112
112
|
|
|
113
113
|
@model_serializer(mode="wrap")
|
|
@@ -1,16 +1,9 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from compass_api_sdk.types import
|
|
5
|
-
BaseModel,
|
|
6
|
-
Nullable,
|
|
7
|
-
OptionalNullable,
|
|
8
|
-
UNSET,
|
|
9
|
-
UNSET_SENTINEL,
|
|
10
|
-
)
|
|
4
|
+
from compass_api_sdk.types import BaseModel
|
|
11
5
|
from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
|
|
12
6
|
from enum import Enum
|
|
13
|
-
from pydantic import model_serializer
|
|
14
7
|
from typing import Optional
|
|
15
8
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
16
9
|
|
|
@@ -30,8 +23,6 @@ class AaveHistoricalTransactionsRequestTypedDict(TypedDict):
|
|
|
30
23
|
r"""The number of items to return."""
|
|
31
24
|
chain: AaveHistoricalTransactionsChain
|
|
32
25
|
r"""The chain to use."""
|
|
33
|
-
block: NotRequired[Nullable[int]]
|
|
34
|
-
r"""Optional block number (defaults to latest)."""
|
|
35
26
|
user_address: str
|
|
36
27
|
r"""The address of the user to get historical transactions for."""
|
|
37
28
|
|
|
@@ -55,43 +46,7 @@ class AaveHistoricalTransactionsRequest(BaseModel):
|
|
|
55
46
|
] = AaveHistoricalTransactionsChain.ARBITRUM_MAINNET
|
|
56
47
|
r"""The chain to use."""
|
|
57
48
|
|
|
58
|
-
block: Annotated[
|
|
59
|
-
OptionalNullable[int],
|
|
60
|
-
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
61
|
-
] = UNSET
|
|
62
|
-
r"""Optional block number (defaults to latest)."""
|
|
63
|
-
|
|
64
49
|
user_address: Annotated[
|
|
65
50
|
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
66
51
|
] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"
|
|
67
52
|
r"""The address of the user to get historical transactions for."""
|
|
68
|
-
|
|
69
|
-
@model_serializer(mode="wrap")
|
|
70
|
-
def serialize_model(self, handler):
|
|
71
|
-
optional_fields = ["offset", "limit", "block"]
|
|
72
|
-
nullable_fields = ["block"]
|
|
73
|
-
null_default_fields = []
|
|
74
|
-
|
|
75
|
-
serialized = handler(self)
|
|
76
|
-
|
|
77
|
-
m = {}
|
|
78
|
-
|
|
79
|
-
for n, f in type(self).model_fields.items():
|
|
80
|
-
k = f.alias or n
|
|
81
|
-
val = serialized.get(k)
|
|
82
|
-
serialized.pop(k, None)
|
|
83
|
-
|
|
84
|
-
optional_nullable = k in optional_fields and k in nullable_fields
|
|
85
|
-
is_set = (
|
|
86
|
-
self.__pydantic_fields_set__.intersection({n})
|
|
87
|
-
or k in null_default_fields
|
|
88
|
-
) # pylint: disable=no-member
|
|
89
|
-
|
|
90
|
-
if val is not None and val != UNSET_SENTINEL:
|
|
91
|
-
m[k] = val
|
|
92
|
-
elif val != UNSET_SENTINEL and (
|
|
93
|
-
not k in optional_fields or (optional_nullable and is_set)
|
|
94
|
-
):
|
|
95
|
-
m[k] = val
|
|
96
|
-
|
|
97
|
-
return m
|
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from compass_api_sdk.types import
|
|
5
|
-
BaseModel,
|
|
6
|
-
Nullable,
|
|
7
|
-
OptionalNullable,
|
|
8
|
-
UNSET,
|
|
9
|
-
UNSET_SENTINEL,
|
|
10
|
-
)
|
|
4
|
+
from compass_api_sdk.types import BaseModel
|
|
11
5
|
from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
|
|
12
6
|
from enum import Enum
|
|
13
|
-
from
|
|
14
|
-
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
7
|
+
from typing_extensions import Annotated, TypedDict
|
|
15
8
|
|
|
16
9
|
|
|
17
10
|
class AaveLiquidityChangeChain(str, Enum):
|
|
@@ -78,8 +71,6 @@ class AaveLiquidityChangeToken(str, Enum):
|
|
|
78
71
|
class AaveLiquidityChangeRequestTypedDict(TypedDict):
|
|
79
72
|
chain: AaveLiquidityChangeChain
|
|
80
73
|
r"""The chain to use."""
|
|
81
|
-
block: NotRequired[Nullable[int]]
|
|
82
|
-
r"""Optional block number (defaults to latest)."""
|
|
83
74
|
token: AaveLiquidityChangeToken
|
|
84
75
|
r"""The symbol of the asset to get liquidity change for.."""
|
|
85
76
|
start_block: int
|
|
@@ -95,12 +86,6 @@ class AaveLiquidityChangeRequest(BaseModel):
|
|
|
95
86
|
] = AaveLiquidityChangeChain.ARBITRUM_MAINNET
|
|
96
87
|
r"""The chain to use."""
|
|
97
88
|
|
|
98
|
-
block: Annotated[
|
|
99
|
-
OptionalNullable[int],
|
|
100
|
-
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
101
|
-
] = UNSET
|
|
102
|
-
r"""Optional block number (defaults to latest)."""
|
|
103
|
-
|
|
104
89
|
token: Annotated[
|
|
105
90
|
AaveLiquidityChangeToken,
|
|
106
91
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
@@ -116,33 +101,3 @@ class AaveLiquidityChangeRequest(BaseModel):
|
|
|
116
101
|
int, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
117
102
|
] = 319407231
|
|
118
103
|
r"""The end block to calculate liquidity change to."""
|
|
119
|
-
|
|
120
|
-
@model_serializer(mode="wrap")
|
|
121
|
-
def serialize_model(self, handler):
|
|
122
|
-
optional_fields = ["block"]
|
|
123
|
-
nullable_fields = ["block"]
|
|
124
|
-
null_default_fields = []
|
|
125
|
-
|
|
126
|
-
serialized = handler(self)
|
|
127
|
-
|
|
128
|
-
m = {}
|
|
129
|
-
|
|
130
|
-
for n, f in type(self).model_fields.items():
|
|
131
|
-
k = f.alias or n
|
|
132
|
-
val = serialized.get(k)
|
|
133
|
-
serialized.pop(k, None)
|
|
134
|
-
|
|
135
|
-
optional_nullable = k in optional_fields and k in nullable_fields
|
|
136
|
-
is_set = (
|
|
137
|
-
self.__pydantic_fields_set__.intersection({n})
|
|
138
|
-
or k in null_default_fields
|
|
139
|
-
) # pylint: disable=no-member
|
|
140
|
-
|
|
141
|
-
if val is not None and val != UNSET_SENTINEL:
|
|
142
|
-
m[k] = val
|
|
143
|
-
elif val != UNSET_SENTINEL and (
|
|
144
|
-
not k in optional_fields or (optional_nullable and is_set)
|
|
145
|
-
):
|
|
146
|
-
m[k] = val
|
|
147
|
-
|
|
148
|
-
return m
|
|
@@ -9,16 +9,42 @@ from typing import Union
|
|
|
9
9
|
from typing_extensions import TypeAliasType, TypedDict
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
"
|
|
12
|
+
InitialCollateralAmountTypedDict = TypeAliasType(
|
|
13
|
+
"InitialCollateralAmountTypedDict", Union[float, str]
|
|
14
14
|
)
|
|
15
15
|
r"""Amount of collateral token to supply to Aave"""
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
InitialCollateralAmount = TypeAliasType("InitialCollateralAmount", Union[float, str])
|
|
19
19
|
r"""Amount of collateral token to supply to Aave"""
|
|
20
20
|
|
|
21
21
|
|
|
22
|
+
MultiplierTypedDict = TypeAliasType("MultiplierTypedDict", Union[float, str])
|
|
23
|
+
r"""Total loop collateral will be calculated as `multiplier` x `initial_collateral_amount`"""
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
Multiplier = TypeAliasType("Multiplier", Union[float, str])
|
|
27
|
+
r"""Total loop collateral will be calculated as `multiplier` x `initial_collateral_amount`"""
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
MaxSlippagePercentTypedDict = TypeAliasType(
|
|
31
|
+
"MaxSlippagePercentTypedDict", Union[float, str]
|
|
32
|
+
)
|
|
33
|
+
r"""Maximum allowed slippage for token swaps in percentage"""
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
MaxSlippagePercent = TypeAliasType("MaxSlippagePercent", Union[float, str])
|
|
37
|
+
r"""Maximum allowed slippage for token swaps in percentage"""
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
LoanToValueTypedDict = TypeAliasType("LoanToValueTypedDict", Union[float, str])
|
|
41
|
+
r"""Loan To Value percentage of the loop"""
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
LoanToValue = TypeAliasType("LoanToValue", Union[float, str])
|
|
45
|
+
r"""Loan To Value percentage of the loop"""
|
|
46
|
+
|
|
47
|
+
|
|
22
48
|
class AaveLoopRequestTypedDict(TypedDict):
|
|
23
49
|
r"""Request model for executing an Aave loop strategy."""
|
|
24
50
|
|
|
@@ -39,13 +65,13 @@ class AaveLoopRequestTypedDict(TypedDict):
|
|
|
39
65
|
This class is used to represent the token in the system. Notice individual
|
|
40
66
|
endpoints' documentation where per chain tokens are presented.
|
|
41
67
|
"""
|
|
42
|
-
|
|
68
|
+
initial_collateral_amount: InitialCollateralAmountTypedDict
|
|
43
69
|
r"""Amount of collateral token to supply to Aave"""
|
|
44
|
-
|
|
45
|
-
r"""
|
|
46
|
-
max_slippage_percent:
|
|
70
|
+
multiplier: MultiplierTypedDict
|
|
71
|
+
r"""Total loop collateral will be calculated as `multiplier` x `initial_collateral_amount`"""
|
|
72
|
+
max_slippage_percent: MaxSlippagePercentTypedDict
|
|
47
73
|
r"""Maximum allowed slippage for token swaps in percentage"""
|
|
48
|
-
loan_to_value:
|
|
74
|
+
loan_to_value: LoanToValueTypedDict
|
|
49
75
|
r"""Loan To Value percentage of the loop"""
|
|
50
76
|
|
|
51
77
|
|
|
@@ -74,14 +100,14 @@ class AaveLoopRequest(BaseModel):
|
|
|
74
100
|
endpoints' documentation where per chain tokens are presented.
|
|
75
101
|
"""
|
|
76
102
|
|
|
77
|
-
|
|
103
|
+
initial_collateral_amount: InitialCollateralAmount
|
|
78
104
|
r"""Amount of collateral token to supply to Aave"""
|
|
79
105
|
|
|
80
|
-
|
|
81
|
-
r"""
|
|
106
|
+
multiplier: Multiplier
|
|
107
|
+
r"""Total loop collateral will be calculated as `multiplier` x `initial_collateral_amount`"""
|
|
82
108
|
|
|
83
|
-
max_slippage_percent:
|
|
109
|
+
max_slippage_percent: MaxSlippagePercent
|
|
84
110
|
r"""Maximum allowed slippage for token swaps in percentage"""
|
|
85
111
|
|
|
86
|
-
loan_to_value:
|
|
112
|
+
loan_to_value: LoanToValue
|
|
87
113
|
r"""Loan To Value percentage of the loop"""
|