compass_api_sdk 0.9.51__py3-none-any.whl → 1.0.0__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.

Files changed (133) hide show
  1. compass_api_sdk/_version.py +3 -3
  2. compass_api_sdk/aave_v3.py +198 -198
  3. compass_api_sdk/aerodrome_slipstream.py +108 -108
  4. compass_api_sdk/erc_4626_vaults.py +44 -44
  5. compass_api_sdk/errors/__init__.py +3 -2
  6. compass_api_sdk/models/__init__.py +900 -746
  7. compass_api_sdk/models/aaveborrowrequest.py +9 -5
  8. compass_api_sdk/models/aavehistoricaltransactionsresponse.py +5 -5
  9. compass_api_sdk/models/aavelooprequest.py +59 -11
  10. compass_api_sdk/models/aaverepayrequest.py +9 -5
  11. compass_api_sdk/models/aavereserveoverviewresponse.py +34 -3
  12. compass_api_sdk/models/aavesupplyrequest.py +9 -5
  13. compass_api_sdk/models/aavewithdrawrequest.py +9 -5
  14. compass_api_sdk/models/aerodromeslipstreambuyexactlyrequest.py +7 -5
  15. compass_api_sdk/models/aerodromeslipstreamincreaseliquidityprovisionrequest.py +7 -5
  16. compass_api_sdk/models/aerodromeslipstreammintliquidityprovisionrequest.py +7 -5
  17. compass_api_sdk/models/aerodromeslipstreamsellexactlyrequest.py +7 -5
  18. compass_api_sdk/models/aerodromeslipstreamwithdrawliquidityprovisionrequest.py +7 -5
  19. compass_api_sdk/models/batcheduseroperationsrequest.py +9 -5
  20. compass_api_sdk/models/chain.py +3 -3
  21. compass_api_sdk/models/details.py +44 -7
  22. compass_api_sdk/models/morphoborrowrequest.py +3 -2
  23. compass_api_sdk/models/morphodepositrequest.py +3 -2
  24. compass_api_sdk/models/morphorepayrequest.py +3 -2
  25. compass_api_sdk/models/morphosupplycollateralrequest.py +3 -2
  26. compass_api_sdk/models/morphowithdrawcollateralrequest.py +3 -2
  27. compass_api_sdk/models/morphowithdrawrequest.py +3 -2
  28. compass_api_sdk/models/movement10percent.py +65 -10
  29. compass_api_sdk/models/multicallauthorizationrequest.py +9 -5
  30. compass_api_sdk/models/multicallexecuterequest.py +53 -10
  31. compass_api_sdk/models/odosswaprequest.py +9 -5
  32. compass_api_sdk/models/pendlemanageliquidityparams.py +81 -0
  33. compass_api_sdk/models/pendlemanageliquidityrequest.py +95 -0
  34. compass_api_sdk/models/pendleredeemyieldrequest.py +9 -5
  35. compass_api_sdk/models/pendletradeptparams.py +81 -0
  36. compass_api_sdk/models/pendletradeptrequest.py +95 -0
  37. compass_api_sdk/models/pendletradeytparams.py +81 -0
  38. compass_api_sdk/models/pendletradeytrequest.py +95 -0
  39. compass_api_sdk/models/pendletxresponse.py +45 -0
  40. compass_api_sdk/models/setallowancerequest.py +8 -5
  41. compass_api_sdk/models/skybuyrequest.py +7 -9
  42. compass_api_sdk/models/skydepositrequest.py +7 -8
  43. compass_api_sdk/models/skysellrequest.py +7 -9
  44. compass_api_sdk/models/skywithdrawrequest.py +7 -8
  45. compass_api_sdk/models/token_enum.py +17 -0
  46. compass_api_sdk/models/tokentransferparams.py +67 -0
  47. compass_api_sdk/models/tokentransferrequest.py +9 -5
  48. compass_api_sdk/models/transactionresponse.py +40 -0
  49. compass_api_sdk/models/uniswapbuyexactlyparams.py +19 -24
  50. compass_api_sdk/models/uniswapbuyexactlyrequest.py +28 -29
  51. compass_api_sdk/models/uniswapbuyexactlytransactionresponse.py +45 -0
  52. compass_api_sdk/models/uniswapincreaseliquidityprovisionrequest.py +9 -5
  53. compass_api_sdk/models/uniswapmintliquidityprovisionrequest.py +9 -5
  54. compass_api_sdk/models/uniswapsellexactlyparams.py +43 -40
  55. compass_api_sdk/models/uniswapsellexactlyrequest.py +52 -45
  56. compass_api_sdk/models/uniswapsellexactlytransactionresponse.py +45 -0
  57. compass_api_sdk/models/uniswapwithdrawliquidityprovisionrequest.py +9 -5
  58. compass_api_sdk/models/unwrapwethrequest.py +9 -5
  59. compass_api_sdk/models/useroperation.py +34 -40
  60. compass_api_sdk/models/{aave_aave_supported_tokensop.py → v1_aave_aave_supported_tokensop.py} +9 -13
  61. compass_api_sdk/models/{aave_avg_rateop.py → v1_aave_avg_rateop.py} +32 -19
  62. compass_api_sdk/models/{aave_historical_transactionsop.py → v1_aave_historical_transactionsop.py} +9 -13
  63. compass_api_sdk/models/{aave_liquidity_changeop.py → v1_aave_liquidity_changeop.py} +30 -17
  64. compass_api_sdk/models/{aave_rateop.py → v1_aave_rateop.py} +32 -19
  65. compass_api_sdk/models/{aave_reserve_overviewop.py → v1_aave_reserve_overviewop.py} +32 -19
  66. compass_api_sdk/models/{aave_std_rateop.py → v1_aave_std_rateop.py} +32 -19
  67. compass_api_sdk/models/{aave_token_priceop.py → v1_aave_token_priceop.py} +32 -19
  68. compass_api_sdk/models/{aave_user_position_per_tokenop.py → v1_aave_user_position_per_tokenop.py} +32 -19
  69. compass_api_sdk/models/{aave_user_position_summaryop.py → v1_aave_user_position_summaryop.py} +9 -13
  70. compass_api_sdk/models/{uniswap_liquidity_provision_positionsop.py → v1_aerodrome_slipstream_liquidity_provision_positionsop.py} +7 -13
  71. compass_api_sdk/models/{aerodrome_slipstream_pool_priceop.py → v1_aerodrome_slipstream_pool_priceop.py} +53 -25
  72. compass_api_sdk/models/{generic_allowanceop.py → v1_generic_allowanceop.py} +24 -25
  73. compass_api_sdk/models/{generic_ensop.py → v1_generic_ensop.py} +7 -13
  74. compass_api_sdk/models/{generic_portfolioop.py → v1_generic_portfolioop.py} +9 -13
  75. compass_api_sdk/models/{generic_supported_chainsop.py → v1_generic_supported_chainsop.py} +2 -2
  76. compass_api_sdk/models/v1_generic_supported_tokensop.py +24 -0
  77. compass_api_sdk/models/{morpho_market_positionop.py → v1_morpho_market_positionop.py} +9 -8
  78. compass_api_sdk/models/{morpho_marketop.py → v1_morpho_marketop.py} +9 -8
  79. compass_api_sdk/models/{morpho_marketsop.py → v1_morpho_marketsop.py} +9 -8
  80. compass_api_sdk/models/{morpho_user_positionop.py → v1_morpho_user_positionop.py} +9 -8
  81. compass_api_sdk/models/{morpho_vaultop.py → v1_morpho_vaultop.py} +9 -13
  82. compass_api_sdk/models/{morpho_vaultsop.py → v1_morpho_vaultsop.py} +9 -8
  83. compass_api_sdk/models/{pendle_marketop.py → v1_pendle_marketop.py} +9 -13
  84. compass_api_sdk/models/v1_pendle_marketsop.py +24 -0
  85. compass_api_sdk/models/{pendle_positionsop.py → v1_pendle_positionsop.py} +10 -14
  86. compass_api_sdk/models/{sky_positionop.py → v1_sky_positionop.py} +14 -15
  87. compass_api_sdk/models/{token_addressop.py → v1_token_addressop.py} +30 -17
  88. compass_api_sdk/models/{token_balanceop.py → v1_token_balanceop.py} +14 -18
  89. compass_api_sdk/models/{token_priceop.py → v1_token_priceop.py} +14 -18
  90. compass_api_sdk/models/v1_transaction_bundler_aave_loopop.py +24 -0
  91. compass_api_sdk/models/{uniswap_liquidity_provision_in_rangeop.py → v1_uniswap_liquidity_provision_in_rangeop.py} +9 -13
  92. compass_api_sdk/models/{aerodrome_slipstream_liquidity_provision_positionsop.py → v1_uniswap_liquidity_provision_positionsop.py} +9 -13
  93. compass_api_sdk/models/{uniswap_pool_priceop.py → v1_uniswap_pool_priceop.py} +59 -29
  94. compass_api_sdk/models/{uniswap_quote_buy_exactlyop.py → v1_uniswap_quote_buy_exactlyop.py} +65 -35
  95. compass_api_sdk/models/{uniswap_quote_sell_exactlyop.py → v1_uniswap_quote_sell_exactlyop.py} +65 -35
  96. compass_api_sdk/models/{vaults_vaultop.py → v1_vaults_vaultop.py} +9 -13
  97. compass_api_sdk/models/vaultdepositparams.py +85 -0
  98. compass_api_sdk/models/vaultdepositrequest.py +9 -5
  99. compass_api_sdk/models/vaultwithdrawparams.py +75 -0
  100. compass_api_sdk/models/vaultwithdrawrequest.py +9 -5
  101. compass_api_sdk/models/wrapethrequest.py +9 -5
  102. compass_api_sdk/morpho.py +140 -140
  103. compass_api_sdk/pendle.py +254 -1066
  104. compass_api_sdk/sky.py +98 -56
  105. compass_api_sdk/smart_account.py +10 -10
  106. compass_api_sdk/swap.py +16 -16
  107. compass_api_sdk/token_sdk.py +56 -56
  108. compass_api_sdk/transaction_bundler.py +64 -62
  109. compass_api_sdk/uniswap_v3.py +222 -214
  110. compass_api_sdk/universal.py +104 -292
  111. compass_api_sdk/utils/__init__.py +3 -2
  112. {compass_api_sdk-0.9.51.dist-info → compass_api_sdk-1.0.0.dist-info}/METADATA +83 -88
  113. {compass_api_sdk-0.9.51.dist-info → compass_api_sdk-1.0.0.dist-info}/RECORD +114 -117
  114. compass_api_sdk/models/generic_supported_tokensop.py +0 -28
  115. compass_api_sdk/models/generic_visualize_portfolioop.py +0 -37
  116. compass_api_sdk/models/image.py +0 -15
  117. compass_api_sdk/models/pendle_marketsop.py +0 -28
  118. compass_api_sdk/models/pendle_quoteop.py +0 -128
  119. compass_api_sdk/models/pendleaddliquidityparams.py +0 -50
  120. compass_api_sdk/models/pendleaddliquidityrequest.py +0 -61
  121. compass_api_sdk/models/pendlebuyptparams.py +0 -48
  122. compass_api_sdk/models/pendlebuyptrequest.py +0 -59
  123. compass_api_sdk/models/pendlebuyytparams.py +0 -48
  124. compass_api_sdk/models/pendlebuyytrequest.py +0 -59
  125. compass_api_sdk/models/pendlegetquoteresponse.py +0 -15
  126. compass_api_sdk/models/pendleremoveliquidityparams.py +0 -50
  127. compass_api_sdk/models/pendleremoveliquidityrequest.py +0 -61
  128. compass_api_sdk/models/pendlesellptparams.py +0 -48
  129. compass_api_sdk/models/pendlesellptrequest.py +0 -61
  130. compass_api_sdk/models/pendlesellytparams.py +0 -48
  131. compass_api_sdk/models/pendlesellytrequest.py +0 -61
  132. compass_api_sdk/models/txresponse.py +0 -27
  133. {compass_api_sdk-0.9.51.dist-info → compass_api_sdk-1.0.0.dist-info}/WHEEL +0 -0
@@ -1,50 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from compass_api_sdk.types import BaseModel
5
- from compass_api_sdk.utils import validate_const
6
- import pydantic
7
- from pydantic.functional_validators import AfterValidator
8
- from typing import Literal, Optional, Union
9
- from typing_extensions import Annotated, TypeAliasType, TypedDict
10
-
11
-
12
- PendleAddLiquidityParamsAmountTypedDict = TypeAliasType(
13
- "PendleAddLiquidityParamsAmountTypedDict", Union[float, str]
14
- )
15
- r"""The amount of liquidity you would like to add to the market denominated in the market's Underlying Token."""
16
-
17
-
18
- PendleAddLiquidityParamsAmount = TypeAliasType(
19
- "PendleAddLiquidityParamsAmount", Union[float, str]
20
- )
21
- r"""The amount of liquidity you would like to add to the market denominated in the market's Underlying Token."""
22
-
23
-
24
- class PendleAddLiquidityParamsTypedDict(TypedDict):
25
- market_address: str
26
- r"""The address identifying which Pendle Market you would like to add liquidity to."""
27
- amount: PendleAddLiquidityParamsAmountTypedDict
28
- r"""The amount of liquidity you would like to add to the market denominated in the market's Underlying Token."""
29
- max_slippage_percent: float
30
- r"""The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed."""
31
- action_type: Literal["PENDLE_ADD_LIQUIDITY"]
32
-
33
-
34
- class PendleAddLiquidityParams(BaseModel):
35
- market_address: str
36
- r"""The address identifying which Pendle Market you would like to add liquidity to."""
37
-
38
- amount: PendleAddLiquidityParamsAmount
39
- r"""The amount of liquidity you would like to add to the market denominated in the market's Underlying Token."""
40
-
41
- max_slippage_percent: float
42
- r"""The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed."""
43
-
44
- ACTION_TYPE: Annotated[
45
- Annotated[
46
- Optional[Literal["PENDLE_ADD_LIQUIDITY"]],
47
- AfterValidator(validate_const("PENDLE_ADD_LIQUIDITY")),
48
- ],
49
- pydantic.Field(alias="action_type"),
50
- ] = "PENDLE_ADD_LIQUIDITY"
@@ -1,61 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from .chain import Chain
5
- from compass_api_sdk.types import BaseModel
6
- from compass_api_sdk.utils import validate_const
7
- import pydantic
8
- from pydantic.functional_validators import AfterValidator
9
- from typing import Literal, Optional, Union
10
- from typing_extensions import Annotated, TypeAliasType, TypedDict
11
-
12
-
13
- PendleAddLiquidityRequestAmountTypedDict = TypeAliasType(
14
- "PendleAddLiquidityRequestAmountTypedDict", Union[float, str]
15
- )
16
- r"""The amount of liquidity you would like to add to the market denominated in the market's Underlying Token."""
17
-
18
-
19
- PendleAddLiquidityRequestAmount = TypeAliasType(
20
- "PendleAddLiquidityRequestAmount", Union[float, str]
21
- )
22
- r"""The amount of liquidity you would like to add to the market denominated in the market's Underlying Token."""
23
-
24
-
25
- class PendleAddLiquidityRequestTypedDict(TypedDict):
26
- market_address: str
27
- r"""The address identifying which Pendle Market you would like to add liquidity to."""
28
- amount: PendleAddLiquidityRequestAmountTypedDict
29
- r"""The amount of liquidity you would like to add to the market denominated in the market's Underlying Token."""
30
- max_slippage_percent: float
31
- r"""The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed."""
32
- chain: Chain
33
- r"""The chain to use."""
34
- sender: str
35
- r"""The address of the transaction sender."""
36
- action_type: Literal["PENDLE_ADD_LIQUIDITY"]
37
-
38
-
39
- class PendleAddLiquidityRequest(BaseModel):
40
- market_address: str
41
- r"""The address identifying which Pendle Market you would like to add liquidity to."""
42
-
43
- amount: PendleAddLiquidityRequestAmount
44
- r"""The amount of liquidity you would like to add to the market denominated in the market's Underlying Token."""
45
-
46
- max_slippage_percent: float
47
- r"""The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed."""
48
-
49
- chain: Chain
50
- r"""The chain to use."""
51
-
52
- sender: str
53
- r"""The address of the transaction sender."""
54
-
55
- ACTION_TYPE: Annotated[
56
- Annotated[
57
- Optional[Literal["PENDLE_ADD_LIQUIDITY"]],
58
- AfterValidator(validate_const("PENDLE_ADD_LIQUIDITY")),
59
- ],
60
- pydantic.Field(alias="action_type"),
61
- ] = "PENDLE_ADD_LIQUIDITY"
@@ -1,48 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from compass_api_sdk.types import BaseModel
5
- from compass_api_sdk.utils import validate_const
6
- import pydantic
7
- from pydantic.functional_validators import AfterValidator
8
- from typing import Literal, Optional, Union
9
- from typing_extensions import Annotated, TypeAliasType, TypedDict
10
-
11
-
12
- PendleBuyPtParamsAmountTypedDict = TypeAliasType(
13
- "PendleBuyPtParamsAmountTypedDict", Union[float, str]
14
- )
15
- r"""The amount of market's Underlying Token you would like to sell for market's Principal Token (PT)."""
16
-
17
-
18
- PendleBuyPtParamsAmount = TypeAliasType("PendleBuyPtParamsAmount", Union[float, str])
19
- r"""The amount of market's Underlying Token you would like to sell for market's Principal Token (PT)."""
20
-
21
-
22
- class PendleBuyPtParamsTypedDict(TypedDict):
23
- market_address: str
24
- r"""The address of the market identifying which Principal Token (PT) you would like to buy."""
25
- amount: PendleBuyPtParamsAmountTypedDict
26
- r"""The amount of market's Underlying Token you would like to sell for market's Principal Token (PT)."""
27
- max_slippage_percent: float
28
- r"""The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed."""
29
- action_type: Literal["PENDLE_BUY_PT"]
30
-
31
-
32
- class PendleBuyPtParams(BaseModel):
33
- market_address: str
34
- r"""The address of the market identifying which Principal Token (PT) you would like to buy."""
35
-
36
- amount: PendleBuyPtParamsAmount
37
- r"""The amount of market's Underlying Token you would like to sell for market's Principal Token (PT)."""
38
-
39
- max_slippage_percent: float
40
- r"""The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed."""
41
-
42
- ACTION_TYPE: Annotated[
43
- Annotated[
44
- Optional[Literal["PENDLE_BUY_PT"]],
45
- AfterValidator(validate_const("PENDLE_BUY_PT")),
46
- ],
47
- pydantic.Field(alias="action_type"),
48
- ] = "PENDLE_BUY_PT"
@@ -1,59 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from .chain import Chain
5
- from compass_api_sdk.types import BaseModel
6
- from compass_api_sdk.utils import validate_const
7
- import pydantic
8
- from pydantic.functional_validators import AfterValidator
9
- from typing import Literal, Optional, Union
10
- from typing_extensions import Annotated, TypeAliasType, TypedDict
11
-
12
-
13
- PendleBuyPtRequestAmountTypedDict = TypeAliasType(
14
- "PendleBuyPtRequestAmountTypedDict", Union[float, str]
15
- )
16
- r"""The amount of market's Underlying Token you would like to sell for market's Principal Token (PT)."""
17
-
18
-
19
- PendleBuyPtRequestAmount = TypeAliasType("PendleBuyPtRequestAmount", Union[float, str])
20
- r"""The amount of market's Underlying Token you would like to sell for market's Principal Token (PT)."""
21
-
22
-
23
- class PendleBuyPtRequestTypedDict(TypedDict):
24
- market_address: str
25
- r"""The address of the market identifying which Principal Token (PT) you would like to buy."""
26
- amount: PendleBuyPtRequestAmountTypedDict
27
- r"""The amount of market's Underlying Token you would like to sell for market's Principal Token (PT)."""
28
- max_slippage_percent: float
29
- r"""The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed."""
30
- chain: Chain
31
- r"""The chain to use."""
32
- sender: str
33
- r"""The address of the transaction sender."""
34
- action_type: Literal["PENDLE_BUY_PT"]
35
-
36
-
37
- class PendleBuyPtRequest(BaseModel):
38
- market_address: str
39
- r"""The address of the market identifying which Principal Token (PT) you would like to buy."""
40
-
41
- amount: PendleBuyPtRequestAmount
42
- r"""The amount of market's Underlying Token you would like to sell for market's Principal Token (PT)."""
43
-
44
- max_slippage_percent: float
45
- r"""The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed."""
46
-
47
- chain: Chain
48
- r"""The chain to use."""
49
-
50
- sender: str
51
- r"""The address of the transaction sender."""
52
-
53
- ACTION_TYPE: Annotated[
54
- Annotated[
55
- Optional[Literal["PENDLE_BUY_PT"]],
56
- AfterValidator(validate_const("PENDLE_BUY_PT")),
57
- ],
58
- pydantic.Field(alias="action_type"),
59
- ] = "PENDLE_BUY_PT"
@@ -1,48 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from compass_api_sdk.types import BaseModel
5
- from compass_api_sdk.utils import validate_const
6
- import pydantic
7
- from pydantic.functional_validators import AfterValidator
8
- from typing import Literal, Optional, Union
9
- from typing_extensions import Annotated, TypeAliasType, TypedDict
10
-
11
-
12
- PendleBuyYtParamsAmountTypedDict = TypeAliasType(
13
- "PendleBuyYtParamsAmountTypedDict", Union[float, str]
14
- )
15
- r"""The amount of market's Underlying Token you would like to sell for market's Yield Token (YT)."""
16
-
17
-
18
- PendleBuyYtParamsAmount = TypeAliasType("PendleBuyYtParamsAmount", Union[float, str])
19
- r"""The amount of market's Underlying Token you would like to sell for market's Yield Token (YT)."""
20
-
21
-
22
- class PendleBuyYtParamsTypedDict(TypedDict):
23
- market_address: str
24
- r"""The address of the market identifying which Yield Token (YT) you would like to buy."""
25
- amount: PendleBuyYtParamsAmountTypedDict
26
- r"""The amount of market's Underlying Token you would like to sell for market's Yield Token (YT)."""
27
- max_slippage_percent: float
28
- r"""The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed."""
29
- action_type: Literal["PENDLE_BUY_YT"]
30
-
31
-
32
- class PendleBuyYtParams(BaseModel):
33
- market_address: str
34
- r"""The address of the market identifying which Yield Token (YT) you would like to buy."""
35
-
36
- amount: PendleBuyYtParamsAmount
37
- r"""The amount of market's Underlying Token you would like to sell for market's Yield Token (YT)."""
38
-
39
- max_slippage_percent: float
40
- r"""The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed."""
41
-
42
- ACTION_TYPE: Annotated[
43
- Annotated[
44
- Optional[Literal["PENDLE_BUY_YT"]],
45
- AfterValidator(validate_const("PENDLE_BUY_YT")),
46
- ],
47
- pydantic.Field(alias="action_type"),
48
- ] = "PENDLE_BUY_YT"
@@ -1,59 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from .chain import Chain
5
- from compass_api_sdk.types import BaseModel
6
- from compass_api_sdk.utils import validate_const
7
- import pydantic
8
- from pydantic.functional_validators import AfterValidator
9
- from typing import Literal, Optional, Union
10
- from typing_extensions import Annotated, TypeAliasType, TypedDict
11
-
12
-
13
- PendleBuyYtRequestAmountTypedDict = TypeAliasType(
14
- "PendleBuyYtRequestAmountTypedDict", Union[float, str]
15
- )
16
- r"""The amount of market's Underlying Token you would like to sell for market's Yield Token (YT)."""
17
-
18
-
19
- PendleBuyYtRequestAmount = TypeAliasType("PendleBuyYtRequestAmount", Union[float, str])
20
- r"""The amount of market's Underlying Token you would like to sell for market's Yield Token (YT)."""
21
-
22
-
23
- class PendleBuyYtRequestTypedDict(TypedDict):
24
- market_address: str
25
- r"""The address of the market identifying which Yield Token (YT) you would like to buy."""
26
- amount: PendleBuyYtRequestAmountTypedDict
27
- r"""The amount of market's Underlying Token you would like to sell for market's Yield Token (YT)."""
28
- max_slippage_percent: float
29
- r"""The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed."""
30
- chain: Chain
31
- r"""The chain to use."""
32
- sender: str
33
- r"""The address of the transaction sender."""
34
- action_type: Literal["PENDLE_BUY_YT"]
35
-
36
-
37
- class PendleBuyYtRequest(BaseModel):
38
- market_address: str
39
- r"""The address of the market identifying which Yield Token (YT) you would like to buy."""
40
-
41
- amount: PendleBuyYtRequestAmount
42
- r"""The amount of market's Underlying Token you would like to sell for market's Yield Token (YT)."""
43
-
44
- max_slippage_percent: float
45
- r"""The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed."""
46
-
47
- chain: Chain
48
- r"""The chain to use."""
49
-
50
- sender: str
51
- r"""The address of the transaction sender."""
52
-
53
- ACTION_TYPE: Annotated[
54
- Annotated[
55
- Optional[Literal["PENDLE_BUY_YT"]],
56
- AfterValidator(validate_const("PENDLE_BUY_YT")),
57
- ],
58
- pydantic.Field(alias="action_type"),
59
- ] = "PENDLE_BUY_YT"
@@ -1,15 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from compass_api_sdk.types import BaseModel
5
- from typing_extensions import TypedDict
6
-
7
-
8
- class PendleGetQuoteResponseTypedDict(TypedDict):
9
- quote: str
10
- r"""A quote for the specified trade, detailing the expected amount of tokens received based on the `trade_type` and `token_type`."""
11
-
12
-
13
- class PendleGetQuoteResponse(BaseModel):
14
- quote: str
15
- r"""A quote for the specified trade, detailing the expected amount of tokens received based on the `trade_type` and `token_type`."""
@@ -1,50 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from compass_api_sdk.types import BaseModel
5
- from compass_api_sdk.utils import validate_const
6
- import pydantic
7
- from pydantic.functional_validators import AfterValidator
8
- from typing import Literal, Optional, Union
9
- from typing_extensions import Annotated, TypeAliasType, TypedDict
10
-
11
-
12
- PendleRemoveLiquidityParamsAmountTypedDict = TypeAliasType(
13
- "PendleRemoveLiquidityParamsAmountTypedDict", Union[float, str]
14
- )
15
- r"""The amount of liquidity you would like to remove from the market denominated in the market's Liquidity Provider Token (LP)."""
16
-
17
-
18
- PendleRemoveLiquidityParamsAmount = TypeAliasType(
19
- "PendleRemoveLiquidityParamsAmount", Union[float, str]
20
- )
21
- r"""The amount of liquidity you would like to remove from the market denominated in the market's Liquidity Provider Token (LP)."""
22
-
23
-
24
- class PendleRemoveLiquidityParamsTypedDict(TypedDict):
25
- market_address: str
26
- r"""The address identifying which Pendle Market you would like to remove liquidity from."""
27
- amount: PendleRemoveLiquidityParamsAmountTypedDict
28
- r"""The amount of liquidity you would like to remove from the market denominated in the market's Liquidity Provider Token (LP)."""
29
- max_slippage_percent: float
30
- r"""The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed."""
31
- action_type: Literal["PENDLE_REMOVE_LIQUIDITY"]
32
-
33
-
34
- class PendleRemoveLiquidityParams(BaseModel):
35
- market_address: str
36
- r"""The address identifying which Pendle Market you would like to remove liquidity from."""
37
-
38
- amount: PendleRemoveLiquidityParamsAmount
39
- r"""The amount of liquidity you would like to remove from the market denominated in the market's Liquidity Provider Token (LP)."""
40
-
41
- max_slippage_percent: float
42
- r"""The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed."""
43
-
44
- ACTION_TYPE: Annotated[
45
- Annotated[
46
- Optional[Literal["PENDLE_REMOVE_LIQUIDITY"]],
47
- AfterValidator(validate_const("PENDLE_REMOVE_LIQUIDITY")),
48
- ],
49
- pydantic.Field(alias="action_type"),
50
- ] = "PENDLE_REMOVE_LIQUIDITY"
@@ -1,61 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from .chain import Chain
5
- from compass_api_sdk.types import BaseModel
6
- from compass_api_sdk.utils import validate_const
7
- import pydantic
8
- from pydantic.functional_validators import AfterValidator
9
- from typing import Literal, Optional, Union
10
- from typing_extensions import Annotated, TypeAliasType, TypedDict
11
-
12
-
13
- PendleRemoveLiquidityRequestAmountTypedDict = TypeAliasType(
14
- "PendleRemoveLiquidityRequestAmountTypedDict", Union[float, str]
15
- )
16
- r"""The amount of liquidity you would like to remove from the market denominated in the market's Liquidity Provider Token (LP)."""
17
-
18
-
19
- PendleRemoveLiquidityRequestAmount = TypeAliasType(
20
- "PendleRemoveLiquidityRequestAmount", Union[float, str]
21
- )
22
- r"""The amount of liquidity you would like to remove from the market denominated in the market's Liquidity Provider Token (LP)."""
23
-
24
-
25
- class PendleRemoveLiquidityRequestTypedDict(TypedDict):
26
- market_address: str
27
- r"""The address identifying which Pendle Market you would like to remove liquidity from."""
28
- amount: PendleRemoveLiquidityRequestAmountTypedDict
29
- r"""The amount of liquidity you would like to remove from the market denominated in the market's Liquidity Provider Token (LP)."""
30
- max_slippage_percent: float
31
- r"""The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed."""
32
- chain: Chain
33
- r"""The chain to use."""
34
- sender: str
35
- r"""The address of the transaction sender."""
36
- action_type: Literal["PENDLE_REMOVE_LIQUIDITY"]
37
-
38
-
39
- class PendleRemoveLiquidityRequest(BaseModel):
40
- market_address: str
41
- r"""The address identifying which Pendle Market you would like to remove liquidity from."""
42
-
43
- amount: PendleRemoveLiquidityRequestAmount
44
- r"""The amount of liquidity you would like to remove from the market denominated in the market's Liquidity Provider Token (LP)."""
45
-
46
- max_slippage_percent: float
47
- r"""The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed."""
48
-
49
- chain: Chain
50
- r"""The chain to use."""
51
-
52
- sender: str
53
- r"""The address of the transaction sender."""
54
-
55
- ACTION_TYPE: Annotated[
56
- Annotated[
57
- Optional[Literal["PENDLE_REMOVE_LIQUIDITY"]],
58
- AfterValidator(validate_const("PENDLE_REMOVE_LIQUIDITY")),
59
- ],
60
- pydantic.Field(alias="action_type"),
61
- ] = "PENDLE_REMOVE_LIQUIDITY"
@@ -1,48 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from compass_api_sdk.types import BaseModel
5
- from compass_api_sdk.utils import validate_const
6
- import pydantic
7
- from pydantic.functional_validators import AfterValidator
8
- from typing import Literal, Optional, Union
9
- from typing_extensions import Annotated, TypeAliasType, TypedDict
10
-
11
-
12
- PendleSellPtParamsAmountTypedDict = TypeAliasType(
13
- "PendleSellPtParamsAmountTypedDict", Union[float, str]
14
- )
15
- r"""The amount of market's Principal Token (PT) you would like to sell for market's Underlying Token."""
16
-
17
-
18
- PendleSellPtParamsAmount = TypeAliasType("PendleSellPtParamsAmount", Union[float, str])
19
- r"""The amount of market's Principal Token (PT) you would like to sell for market's Underlying Token."""
20
-
21
-
22
- class PendleSellPtParamsTypedDict(TypedDict):
23
- market_address: str
24
- r"""The address of the market identifying which Principal Token (PT) you would like to sell."""
25
- amount: PendleSellPtParamsAmountTypedDict
26
- r"""The amount of market's Principal Token (PT) you would like to sell for market's Underlying Token."""
27
- max_slippage_percent: float
28
- r"""The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed."""
29
- action_type: Literal["PENDLE_SELL_PT"]
30
-
31
-
32
- class PendleSellPtParams(BaseModel):
33
- market_address: str
34
- r"""The address of the market identifying which Principal Token (PT) you would like to sell."""
35
-
36
- amount: PendleSellPtParamsAmount
37
- r"""The amount of market's Principal Token (PT) you would like to sell for market's Underlying Token."""
38
-
39
- max_slippage_percent: float
40
- r"""The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed."""
41
-
42
- ACTION_TYPE: Annotated[
43
- Annotated[
44
- Optional[Literal["PENDLE_SELL_PT"]],
45
- AfterValidator(validate_const("PENDLE_SELL_PT")),
46
- ],
47
- pydantic.Field(alias="action_type"),
48
- ] = "PENDLE_SELL_PT"
@@ -1,61 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from .chain import Chain
5
- from compass_api_sdk.types import BaseModel
6
- from compass_api_sdk.utils import validate_const
7
- import pydantic
8
- from pydantic.functional_validators import AfterValidator
9
- from typing import Literal, Optional, Union
10
- from typing_extensions import Annotated, TypeAliasType, TypedDict
11
-
12
-
13
- PendleSellPtRequestAmountTypedDict = TypeAliasType(
14
- "PendleSellPtRequestAmountTypedDict", Union[float, str]
15
- )
16
- r"""The amount of market's Principal Token (PT) you would like to sell for market's Underlying Token."""
17
-
18
-
19
- PendleSellPtRequestAmount = TypeAliasType(
20
- "PendleSellPtRequestAmount", Union[float, str]
21
- )
22
- r"""The amount of market's Principal Token (PT) you would like to sell for market's Underlying Token."""
23
-
24
-
25
- class PendleSellPtRequestTypedDict(TypedDict):
26
- market_address: str
27
- r"""The address of the market identifying which Principal Token (PT) you would like to sell."""
28
- amount: PendleSellPtRequestAmountTypedDict
29
- r"""The amount of market's Principal Token (PT) you would like to sell for market's Underlying Token."""
30
- max_slippage_percent: float
31
- r"""The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed."""
32
- chain: Chain
33
- r"""The chain to use."""
34
- sender: str
35
- r"""The address of the transaction sender."""
36
- action_type: Literal["PENDLE_SELL_PT"]
37
-
38
-
39
- class PendleSellPtRequest(BaseModel):
40
- market_address: str
41
- r"""The address of the market identifying which Principal Token (PT) you would like to sell."""
42
-
43
- amount: PendleSellPtRequestAmount
44
- r"""The amount of market's Principal Token (PT) you would like to sell for market's Underlying Token."""
45
-
46
- max_slippage_percent: float
47
- r"""The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed."""
48
-
49
- chain: Chain
50
- r"""The chain to use."""
51
-
52
- sender: str
53
- r"""The address of the transaction sender."""
54
-
55
- ACTION_TYPE: Annotated[
56
- Annotated[
57
- Optional[Literal["PENDLE_SELL_PT"]],
58
- AfterValidator(validate_const("PENDLE_SELL_PT")),
59
- ],
60
- pydantic.Field(alias="action_type"),
61
- ] = "PENDLE_SELL_PT"
@@ -1,48 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from compass_api_sdk.types import BaseModel
5
- from compass_api_sdk.utils import validate_const
6
- import pydantic
7
- from pydantic.functional_validators import AfterValidator
8
- from typing import Literal, Optional, Union
9
- from typing_extensions import Annotated, TypeAliasType, TypedDict
10
-
11
-
12
- PendleSellYtParamsAmountTypedDict = TypeAliasType(
13
- "PendleSellYtParamsAmountTypedDict", Union[float, str]
14
- )
15
- r"""The amount of market's Yield Token (YT) you would like to sell for market's Underlying Token."""
16
-
17
-
18
- PendleSellYtParamsAmount = TypeAliasType("PendleSellYtParamsAmount", Union[float, str])
19
- r"""The amount of market's Yield Token (YT) you would like to sell for market's Underlying Token."""
20
-
21
-
22
- class PendleSellYtParamsTypedDict(TypedDict):
23
- market_address: str
24
- r"""The address of the market identifying which Yield Token (YT) you would like to sell."""
25
- amount: PendleSellYtParamsAmountTypedDict
26
- r"""The amount of market's Yield Token (YT) you would like to sell for market's Underlying Token."""
27
- max_slippage_percent: float
28
- r"""The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed."""
29
- action_type: Literal["PENDLE_SELL_YT"]
30
-
31
-
32
- class PendleSellYtParams(BaseModel):
33
- market_address: str
34
- r"""The address of the market identifying which Yield Token (YT) you would like to sell."""
35
-
36
- amount: PendleSellYtParamsAmount
37
- r"""The amount of market's Yield Token (YT) you would like to sell for market's Underlying Token."""
38
-
39
- max_slippage_percent: float
40
- r"""The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed."""
41
-
42
- ACTION_TYPE: Annotated[
43
- Annotated[
44
- Optional[Literal["PENDLE_SELL_YT"]],
45
- AfterValidator(validate_const("PENDLE_SELL_YT")),
46
- ],
47
- pydantic.Field(alias="action_type"),
48
- ] = "PENDLE_SELL_YT"