compass_api_sdk 0.9.50__py3-none-any.whl → 0.9.52__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 (182) hide show
  1. compass_api_sdk/_version.py +3 -3
  2. compass_api_sdk/aave_v3.py +314 -260
  3. compass_api_sdk/aerodrome_slipstream.py +186 -184
  4. compass_api_sdk/erc_4626_vaults.py +82 -58
  5. compass_api_sdk/errors/__init__.py +3 -2
  6. compass_api_sdk/models/__init__.py +1742 -1516
  7. compass_api_sdk/models/aavereserveoverviewresponse.py +34 -3
  8. compass_api_sdk/models/{chain.py → compass_api_backend_config_chain_chain.py} +4 -4
  9. compass_api_sdk/models/compass_api_backend_models_aave_read_response_historical_transactions_aavehistoricaltransactionsresponse.py +115 -0
  10. compass_api_sdk/models/{borrow.py → compass_api_backend_models_aave_read_response_historical_transactions_borrow.py} +4 -2
  11. compass_api_sdk/models/{liquidationcall.py → compass_api_backend_models_aave_read_response_historical_transactions_liquidationcall.py} +6 -2
  12. compass_api_sdk/models/{redeemunderlying.py → compass_api_backend_models_aave_read_response_historical_transactions_redeemunderlying.py} +6 -2
  13. compass_api_sdk/models/{repay.py → compass_api_backend_models_aave_read_response_historical_transactions_repay.py} +4 -2
  14. compass_api_sdk/models/{supply.py → compass_api_backend_models_aave_read_response_historical_transactions_supply.py} +4 -2
  15. compass_api_sdk/models/{swapborrowrate.py → compass_api_backend_models_aave_read_response_historical_transactions_swapborrowrate.py} +6 -2
  16. compass_api_sdk/models/{usageascollateral.py → compass_api_backend_models_aave_read_response_historical_transactions_usageascollateral.py} +6 -2
  17. compass_api_sdk/models/{aaveborrowrequest.py → compass_api_backend_models_aave_transact_request_borrow_aaveborrowrequest.py} +24 -12
  18. compass_api_sdk/models/{aaverepayrequest.py → compass_api_backend_models_aave_transact_request_repay_aaverepayrequest.py} +24 -12
  19. compass_api_sdk/models/{aavesupplyrequest.py → compass_api_backend_models_aave_transact_request_supply_aavesupplyrequest.py} +24 -12
  20. compass_api_sdk/models/{aavewithdrawrequest.py → compass_api_backend_models_aave_transact_request_withdraw_aavewithdrawrequest.py} +25 -13
  21. compass_api_sdk/models/{aerodromelppositionsresponse.py → compass_api_backend_models_aerodrome_slipstream_read_response_positions_aerodromelppositionsresponse.py} +6 -2
  22. compass_api_sdk/models/compass_api_backend_models_aerodrome_slipstream_transact_request_liquidity_provision_increase_aerodromeslipstreamincreaseliquidityprovisionrequest.py +125 -0
  23. compass_api_sdk/models/{aerodromeslipstreammintliquidityprovisionrequest.py → compass_api_backend_models_aerodrome_slipstream_transact_request_liquidity_provision_mint_aerodromeslipstreammintliquidityprovisionrequest.py} +43 -35
  24. compass_api_sdk/models/compass_api_backend_models_aerodrome_slipstream_transact_request_liquidity_provision_withdraw_aerodromeslipstreamwithdrawliquidityprovisionrequest.py +68 -0
  25. compass_api_sdk/models/compass_api_backend_models_aerodrome_slipstream_transact_request_swap_buy_exactly_aerodromeslipstreambuyexactlyrequest.py +116 -0
  26. compass_api_sdk/models/{aerodromeslipstreamsellexactlyrequest.py → compass_api_backend_models_aerodrome_slipstream_transact_request_swap_sell_exactly_aerodromeslipstreamsellexactlyrequest.py} +31 -19
  27. compass_api_sdk/models/compass_api_backend_models_generic_read_response_chains_supportedchaininfo.py +21 -0
  28. compass_api_sdk/models/{portfolio.py → compass_api_backend_models_generic_read_response_portfolio_portfolio.py} +2 -2
  29. compass_api_sdk/models/compass_api_backend_models_generic_transact_request_allowance_setallowancerequest.py +139 -0
  30. compass_api_sdk/models/compass_api_backend_models_generic_transact_request_unwrap_weth_unwrapwethrequest.py +69 -0
  31. compass_api_sdk/models/compass_api_backend_models_generic_transact_request_wrap_eth_wrapethrequest.py +66 -0
  32. compass_api_sdk/models/{marketposition.py → compass_api_backend_models_morpho_read_response_check_user_position_marketposition.py} +6 -2
  33. compass_api_sdk/models/compass_api_backend_models_morpho_read_response_check_user_position_morphocheckuserpositionresponse.py +48 -0
  34. compass_api_sdk/models/{vault.py → compass_api_backend_models_morpho_read_response_check_user_position_vault.py} +4 -2
  35. compass_api_sdk/models/{vaultposition.py → compass_api_backend_models_morpho_read_response_check_user_position_vaultposition.py} +12 -5
  36. compass_api_sdk/models/{morphogetmarketresponse.py → compass_api_backend_models_morpho_read_response_get_market_morphogetmarketresponse.py} +6 -2
  37. compass_api_sdk/models/compass_api_backend_models_morpho_read_response_get_markets_morphogetmarketsresponse.py +26 -0
  38. compass_api_sdk/models/{morphomarket.py → compass_api_backend_models_morpho_read_response_get_markets_morphomarket.py} +4 -2
  39. compass_api_sdk/models/compass_api_backend_models_morpho_read_response_get_vaults_morphogetvaultsresponse.py +24 -0
  40. compass_api_sdk/models/{morphovault.py → compass_api_backend_models_morpho_read_response_get_vaults_morphovault.py} +2 -2
  41. compass_api_sdk/models/{morphoborrowrequest.py → compass_api_backend_models_morpho_transact_request_borrow_morphoborrowrequest.py} +22 -13
  42. compass_api_sdk/models/{morphodepositrequest.py → compass_api_backend_models_morpho_transact_request_deposit_morphodepositrequest.py} +26 -13
  43. compass_api_sdk/models/{morphorepayrequest.py → compass_api_backend_models_morpho_transact_request_repay_morphorepayrequest.py} +12 -7
  44. compass_api_sdk/models/{morphosupplycollateralrequest.py → compass_api_backend_models_morpho_transact_request_supply_collateral_morphosupplycollateralrequest.py} +22 -13
  45. compass_api_sdk/models/{morphowithdrawcollateralrequest.py → compass_api_backend_models_morpho_transact_request_withdraw_collateral_morphowithdrawcollateralrequest.py} +22 -13
  46. compass_api_sdk/models/{morphowithdrawrequest.py → compass_api_backend_models_morpho_transact_request_withdraw_morphowithdrawrequest.py} +18 -7
  47. compass_api_sdk/models/{multicallauthorizationrequest.py → compass_api_backend_models_multicall_read_request_get_authorization_multicallauthorizationrequest.py} +17 -7
  48. compass_api_sdk/models/{aavelooprequest.py → compass_api_backend_models_multicall_transact_request_aave_loop_request_aavelooprequest.py} +67 -13
  49. compass_api_sdk/models/compass_api_backend_models_multicall_transact_request_multicall_execution_request_multicallexecuterequest.py +92 -0
  50. compass_api_sdk/models/{useroperation.py → compass_api_backend_models_multicall_transact_request_multicall_execution_request_useroperation.py} +40 -42
  51. compass_api_sdk/models/{pendlegetmarketresponse.py → compass_api_backend_models_pendle_read_response_market_pendlegetmarketresponse.py} +4 -2
  52. compass_api_sdk/models/compass_api_backend_models_pendle_read_response_markets_pendlelistmarketsresponse.py +24 -0
  53. compass_api_sdk/models/{pendlemarket.py → compass_api_backend_models_pendle_read_response_markets_pendlemarket.py} +2 -2
  54. compass_api_sdk/models/{openposition.py → compass_api_backend_models_pendle_read_response_positions_openposition.py} +4 -2
  55. compass_api_sdk/models/compass_api_backend_models_pendle_read_response_positions_pendlelistuserpositionsresponse.py +24 -0
  56. compass_api_sdk/models/{position.py → compass_api_backend_models_pendle_read_response_positions_position.py} +18 -7
  57. compass_api_sdk/models/{pendleredeemyieldrequest.py → compass_api_backend_models_pendle_transact_request_redeem_yield_pendleredeemyieldrequest.py} +17 -7
  58. compass_api_sdk/models/{skybuyrequest.py → compass_api_backend_models_sky_transact_request_buy_skybuyrequest.py} +22 -19
  59. compass_api_sdk/models/{skydepositrequest.py → compass_api_backend_models_sky_transact_request_deposit_skydepositrequest.py} +26 -15
  60. compass_api_sdk/models/compass_api_backend_models_sky_transact_request_sell_skysellrequest.py +70 -0
  61. compass_api_sdk/models/{skywithdrawrequest.py → compass_api_backend_models_sky_transact_request_withdraw_skywithdrawrequest.py} +17 -10
  62. compass_api_sdk/models/compass_api_backend_models_smart_account_transact_request_user_operations_batcheduseroperationsrequest.py +49 -0
  63. compass_api_sdk/models/compass_api_backend_models_swap_transact_request_odos_odosswaprequest.py +108 -0
  64. compass_api_sdk/models/compass_api_backend_models_token_transact_request_transfer_tokentransferrequest.py +98 -0
  65. compass_api_sdk/models/compass_api_backend_models_uniswap_transact_liquidity_provision_request_increase_uniswapincreaseliquidityprovisionrequest.py +129 -0
  66. compass_api_sdk/models/{uniswapmintliquidityprovisionrequest.py → compass_api_backend_models_uniswap_transact_liquidity_provision_request_mint_uniswapmintliquidityprovisionrequest.py} +49 -31
  67. compass_api_sdk/models/compass_api_backend_models_uniswap_transact_liquidity_provision_request_withdraw_uniswapwithdrawliquidityprovisionrequest.py +68 -0
  68. compass_api_sdk/models/compass_api_backend_models_uniswap_transact_swap_request_buy_exactly_uniswapbuyexactlyrequest.py +123 -0
  69. compass_api_sdk/models/compass_api_backend_models_uniswap_transact_swap_request_sell_exactly_uniswapsellexactlyrequest.py +123 -0
  70. compass_api_sdk/models/{vaultgetvaultresponse.py → compass_api_backend_models_vaults_read_response_vault_vaultgetvaultresponse.py} +4 -2
  71. compass_api_sdk/models/compass_api_backend_models_vaults_transact_request_deposit_vaultdepositrequest.py +110 -0
  72. compass_api_sdk/models/compass_api_backend_models_vaults_transact_request_withdraw_vaultwithdrawrequest.py +96 -0
  73. compass_api_sdk/models/details.py +44 -7
  74. compass_api_sdk/models/movement10percent.py +65 -10
  75. compass_api_sdk/models/pendlemanageliquidityparams.py +81 -0
  76. compass_api_sdk/models/pendlemanageliquidityrequest.py +95 -0
  77. compass_api_sdk/models/pendletradeptparams.py +81 -0
  78. compass_api_sdk/models/pendletradeptrequest.py +95 -0
  79. compass_api_sdk/models/pendletradeytparams.py +81 -0
  80. compass_api_sdk/models/pendletradeytrequest.py +95 -0
  81. compass_api_sdk/models/pendletxresponse.py +45 -0
  82. compass_api_sdk/models/token_enum.py +17 -0
  83. compass_api_sdk/models/{tokentransferrequest.py → tokentransferparams.py} +16 -27
  84. compass_api_sdk/models/transactionresponse.py +40 -0
  85. compass_api_sdk/models/uniswapbuyexactlyparams.py +19 -24
  86. compass_api_sdk/models/uniswapbuyexactlytransactionresponse.py +45 -0
  87. compass_api_sdk/models/uniswapsellexactlyparams.py +43 -40
  88. compass_api_sdk/models/uniswapsellexactlytransactionresponse.py +45 -0
  89. compass_api_sdk/models/userstate.py +3 -3
  90. compass_api_sdk/models/{aave_aave_supported_tokensop.py → v1_aave_aave_supported_tokensop.py} +9 -13
  91. compass_api_sdk/models/{aave_avg_rateop.py → v1_aave_avg_rateop.py} +32 -19
  92. compass_api_sdk/models/{aave_historical_transactionsop.py → v1_aave_historical_transactionsop.py} +9 -13
  93. compass_api_sdk/models/{aave_liquidity_changeop.py → v1_aave_liquidity_changeop.py} +30 -17
  94. compass_api_sdk/models/{aave_rateop.py → v1_aave_rateop.py} +32 -19
  95. compass_api_sdk/models/{aave_reserve_overviewop.py → v1_aave_reserve_overviewop.py} +32 -19
  96. compass_api_sdk/models/{aave_std_rateop.py → v1_aave_std_rateop.py} +32 -19
  97. compass_api_sdk/models/{aave_token_priceop.py → v1_aave_token_priceop.py} +32 -19
  98. compass_api_sdk/models/{aave_user_position_per_tokenop.py → v1_aave_user_position_per_tokenop.py} +32 -19
  99. compass_api_sdk/models/{aave_user_position_summaryop.py → v1_aave_user_position_summaryop.py} +9 -13
  100. compass_api_sdk/models/{uniswap_liquidity_provision_positionsop.py → v1_aerodrome_slipstream_liquidity_provision_positionsop.py} +7 -13
  101. compass_api_sdk/models/{aerodrome_slipstream_pool_priceop.py → v1_aerodrome_slipstream_pool_priceop.py} +53 -25
  102. compass_api_sdk/models/{generic_allowanceop.py → v1_generic_allowanceop.py} +24 -25
  103. compass_api_sdk/models/{generic_ensop.py → v1_generic_ensop.py} +7 -13
  104. compass_api_sdk/models/{generic_portfolioop.py → v1_generic_portfolioop.py} +9 -13
  105. compass_api_sdk/models/{generic_supported_chainsop.py → v1_generic_supported_chainsop.py} +2 -2
  106. compass_api_sdk/models/v1_generic_supported_tokensop.py +24 -0
  107. compass_api_sdk/models/{morpho_market_positionop.py → v1_morpho_market_positionop.py} +9 -8
  108. compass_api_sdk/models/{morpho_marketop.py → v1_morpho_marketop.py} +9 -8
  109. compass_api_sdk/models/{morpho_marketsop.py → v1_morpho_marketsop.py} +34 -13
  110. compass_api_sdk/models/{morpho_user_positionop.py → v1_morpho_user_positionop.py} +9 -8
  111. compass_api_sdk/models/{morpho_vaultop.py → v1_morpho_vaultop.py} +9 -13
  112. compass_api_sdk/models/{morpho_vaultsop.py → v1_morpho_vaultsop.py} +22 -11
  113. compass_api_sdk/models/{pendle_marketop.py → v1_pendle_marketop.py} +9 -13
  114. compass_api_sdk/models/v1_pendle_marketsop.py +24 -0
  115. compass_api_sdk/models/{pendle_positionsop.py → v1_pendle_positionsop.py} +10 -14
  116. compass_api_sdk/models/{sky_positionop.py → v1_sky_positionop.py} +14 -15
  117. compass_api_sdk/models/{token_addressop.py → v1_token_addressop.py} +30 -17
  118. compass_api_sdk/models/{token_balanceop.py → v1_token_balanceop.py} +14 -18
  119. compass_api_sdk/models/{token_priceop.py → v1_token_priceop.py} +14 -18
  120. compass_api_sdk/models/v1_transaction_bundler_aave_loopop.py +24 -0
  121. compass_api_sdk/models/{uniswap_liquidity_provision_in_rangeop.py → v1_uniswap_liquidity_provision_in_rangeop.py} +9 -13
  122. compass_api_sdk/models/{aerodrome_slipstream_liquidity_provision_positionsop.py → v1_uniswap_liquidity_provision_positionsop.py} +9 -13
  123. compass_api_sdk/models/{uniswap_pool_priceop.py → v1_uniswap_pool_priceop.py} +59 -29
  124. compass_api_sdk/models/{uniswap_quote_buy_exactlyop.py → v1_uniswap_quote_buy_exactlyop.py} +65 -35
  125. compass_api_sdk/models/{uniswap_quote_sell_exactlyop.py → v1_uniswap_quote_sell_exactlyop.py} +65 -35
  126. compass_api_sdk/models/{vaults_vaultop.py → v1_vaults_vaultop.py} +9 -13
  127. compass_api_sdk/models/{vaultdepositrequest.py → vaultdepositparams.py} +7 -20
  128. compass_api_sdk/models/{vaultwithdrawrequest.py → vaultwithdrawparams.py} +2 -13
  129. compass_api_sdk/morpho.py +328 -228
  130. compass_api_sdk/pendle.py +307 -1081
  131. compass_api_sdk/sky.py +186 -94
  132. compass_api_sdk/smart_account.py +46 -18
  133. compass_api_sdk/swap.py +40 -26
  134. compass_api_sdk/token_sdk.py +76 -66
  135. compass_api_sdk/transaction_bundler.py +126 -76
  136. compass_api_sdk/uniswap_v3.py +302 -278
  137. compass_api_sdk/universal.py +189 -329
  138. compass_api_sdk/utils/__init__.py +3 -2
  139. {compass_api_sdk-0.9.50.dist-info → compass_api_sdk-0.9.52.dist-info}/METADATA +83 -88
  140. compass_api_sdk-0.9.52.dist-info/RECORD +263 -0
  141. compass_api_sdk/models/aavehistoricaltransactionsresponse.py +0 -65
  142. compass_api_sdk/models/aerodromeslipstreambuyexactlyrequest.py +0 -104
  143. compass_api_sdk/models/aerodromeslipstreamincreaseliquidityprovisionrequest.py +0 -123
  144. compass_api_sdk/models/aerodromeslipstreamwithdrawliquidityprovisionrequest.py +0 -64
  145. compass_api_sdk/models/batcheduseroperationsrequest.py +0 -32
  146. compass_api_sdk/models/generic_supported_tokensop.py +0 -28
  147. compass_api_sdk/models/generic_visualize_portfolioop.py +0 -37
  148. compass_api_sdk/models/image.py +0 -15
  149. compass_api_sdk/models/morphocheckuserpositionresponse.py +0 -32
  150. compass_api_sdk/models/morphogetmarketsresponse.py +0 -17
  151. compass_api_sdk/models/morphogetvaultsresponse.py +0 -17
  152. compass_api_sdk/models/multicallexecuterequest.py +0 -36
  153. compass_api_sdk/models/odosswaprequest.py +0 -86
  154. compass_api_sdk/models/pendle_marketsop.py +0 -28
  155. compass_api_sdk/models/pendle_quoteop.py +0 -128
  156. compass_api_sdk/models/pendleaddliquidityparams.py +0 -50
  157. compass_api_sdk/models/pendleaddliquidityrequest.py +0 -61
  158. compass_api_sdk/models/pendlebuyptparams.py +0 -48
  159. compass_api_sdk/models/pendlebuyptrequest.py +0 -59
  160. compass_api_sdk/models/pendlebuyytparams.py +0 -48
  161. compass_api_sdk/models/pendlebuyytrequest.py +0 -59
  162. compass_api_sdk/models/pendlegetquoteresponse.py +0 -15
  163. compass_api_sdk/models/pendlelistmarketsresponse.py +0 -17
  164. compass_api_sdk/models/pendlelistuserpositionsresponse.py +0 -17
  165. compass_api_sdk/models/pendleremoveliquidityparams.py +0 -50
  166. compass_api_sdk/models/pendleremoveliquidityrequest.py +0 -61
  167. compass_api_sdk/models/pendlesellptparams.py +0 -48
  168. compass_api_sdk/models/pendlesellptrequest.py +0 -61
  169. compass_api_sdk/models/pendlesellytparams.py +0 -48
  170. compass_api_sdk/models/pendlesellytrequest.py +0 -61
  171. compass_api_sdk/models/setallowancerequest.py +0 -109
  172. compass_api_sdk/models/skysellrequest.py +0 -64
  173. compass_api_sdk/models/supportedchaininfo.py +0 -19
  174. compass_api_sdk/models/txresponse.py +0 -27
  175. compass_api_sdk/models/uniswapbuyexactlyrequest.py +0 -112
  176. compass_api_sdk/models/uniswapincreaseliquidityprovisionrequest.py +0 -111
  177. compass_api_sdk/models/uniswapsellexactlyrequest.py +0 -104
  178. compass_api_sdk/models/uniswapwithdrawliquidityprovisionrequest.py +0 -63
  179. compass_api_sdk/models/unwrapwethrequest.py +0 -53
  180. compass_api_sdk/models/wrapethrequest.py +0 -52
  181. compass_api_sdk-0.9.50.dist-info/RECORD +0 -266
  182. {compass_api_sdk-0.9.50.dist-info → compass_api_sdk-0.9.52.dist-info}/WHEEL +0 -0
@@ -0,0 +1,81 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .token_enum import TokenEnum
5
+ from compass_api_sdk.types import BaseModel
6
+ from compass_api_sdk.utils import validate_const
7
+ from enum import Enum
8
+ import pydantic
9
+ from pydantic.functional_validators import AfterValidator
10
+ from typing import Literal, Optional, Union
11
+ from typing_extensions import Annotated, TypeAliasType, TypedDict
12
+
13
+
14
+ class PendleManageLiquidityParamsAction(str, Enum):
15
+ r"""Specifies the direction of the liquidity operation for the Pendle market. Valid values are `SUPPLY` (to add liquidity) or `WITHDRAW` (to remove liquidity)."""
16
+
17
+ SUPPLY = "SUPPLY"
18
+ WITHDRAW = "WITHDRAW"
19
+
20
+
21
+ PendleManageLiquidityParamsTokenTypedDict = TypeAliasType(
22
+ "PendleManageLiquidityParamsTokenTypedDict", Union[TokenEnum, str]
23
+ )
24
+ r"""The symbol or address of the token to manage liquidity with. For `action` set to `SUPPLY`, this is the token to add as liquidity. For `action` set to `WITHDRAW`, this is the token to remove from liquidity."""
25
+
26
+
27
+ PendleManageLiquidityParamsToken = TypeAliasType(
28
+ "PendleManageLiquidityParamsToken", Union[TokenEnum, str]
29
+ )
30
+ r"""The symbol or address of the token to manage liquidity with. For `action` set to `SUPPLY`, this is the token to add as liquidity. For `action` set to `WITHDRAW`, this is the token to remove from liquidity."""
31
+
32
+
33
+ PendleManageLiquidityParamsAmountInTypedDict = TypeAliasType(
34
+ "PendleManageLiquidityParamsAmountInTypedDict", Union[float, str]
35
+ )
36
+ r"""For `action` set to `SUPPLY`, this is the amount in of `token` to add as liquidity in exchange for Liquidity Provider (LP) tokens. For `action` set to `WITHDRAW`, this is the amount in of LP tokens to redeem for `token`."""
37
+
38
+
39
+ PendleManageLiquidityParamsAmountIn = TypeAliasType(
40
+ "PendleManageLiquidityParamsAmountIn", Union[float, str]
41
+ )
42
+ r"""For `action` set to `SUPPLY`, this is the amount in of `token` to add as liquidity in exchange for Liquidity Provider (LP) tokens. For `action` set to `WITHDRAW`, this is the amount in of LP tokens to redeem for `token`."""
43
+
44
+
45
+ class PendleManageLiquidityParamsTypedDict(TypedDict):
46
+ market_address: str
47
+ r"""The address identifying which Pendle Market you would like to add liquidity to."""
48
+ action: PendleManageLiquidityParamsAction
49
+ r"""Specifies the direction of the liquidity operation for the Pendle market. Valid values are `SUPPLY` (to add liquidity) or `WITHDRAW` (to remove liquidity)."""
50
+ token: PendleManageLiquidityParamsTokenTypedDict
51
+ r"""The symbol or address of the token to manage liquidity with. For `action` set to `SUPPLY`, this is the token to add as liquidity. For `action` set to `WITHDRAW`, this is the token to remove from liquidity."""
52
+ amount_in: PendleManageLiquidityParamsAmountInTypedDict
53
+ r"""For `action` set to `SUPPLY`, this is the amount in of `token` to add as liquidity in exchange for Liquidity Provider (LP) tokens. For `action` set to `WITHDRAW`, this is the amount in of LP tokens to redeem for `token`."""
54
+ max_slippage_percent: float
55
+ r"""The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed."""
56
+ action_type: Literal["PENDLE_MANAGE_LIQUIDITY"]
57
+
58
+
59
+ class PendleManageLiquidityParams(BaseModel):
60
+ market_address: str
61
+ r"""The address identifying which Pendle Market you would like to add liquidity to."""
62
+
63
+ action: PendleManageLiquidityParamsAction
64
+ r"""Specifies the direction of the liquidity operation for the Pendle market. Valid values are `SUPPLY` (to add liquidity) or `WITHDRAW` (to remove liquidity)."""
65
+
66
+ token: PendleManageLiquidityParamsToken
67
+ r"""The symbol or address of the token to manage liquidity with. For `action` set to `SUPPLY`, this is the token to add as liquidity. For `action` set to `WITHDRAW`, this is the token to remove from liquidity."""
68
+
69
+ amount_in: PendleManageLiquidityParamsAmountIn
70
+ r"""For `action` set to `SUPPLY`, this is the amount in of `token` to add as liquidity in exchange for Liquidity Provider (LP) tokens. For `action` set to `WITHDRAW`, this is the amount in of LP tokens to redeem for `token`."""
71
+
72
+ max_slippage_percent: float
73
+ r"""The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed."""
74
+
75
+ ACTION_TYPE: Annotated[
76
+ Annotated[
77
+ Optional[Literal["PENDLE_MANAGE_LIQUIDITY"]],
78
+ AfterValidator(validate_const("PENDLE_MANAGE_LIQUIDITY")),
79
+ ],
80
+ pydantic.Field(alias="action_type"),
81
+ ] = "PENDLE_MANAGE_LIQUIDITY"
@@ -0,0 +1,95 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .token_enum import TokenEnum
5
+ from compass_api_sdk.types import BaseModel
6
+ from compass_api_sdk.utils import validate_const
7
+ from enum import Enum
8
+ import pydantic
9
+ from pydantic.functional_validators import AfterValidator
10
+ from typing import Literal, Optional, Union
11
+ from typing_extensions import Annotated, TypeAliasType, TypedDict
12
+
13
+
14
+ class PendleManageLiquidityRequestAction(str, Enum):
15
+ r"""Specifies the direction of the liquidity operation for the Pendle market. Valid values are `SUPPLY` (to add liquidity) or `WITHDRAW` (to remove liquidity)."""
16
+
17
+ SUPPLY = "SUPPLY"
18
+ WITHDRAW = "WITHDRAW"
19
+
20
+
21
+ PendleManageLiquidityRequestTokenTypedDict = TypeAliasType(
22
+ "PendleManageLiquidityRequestTokenTypedDict", Union[TokenEnum, str]
23
+ )
24
+ r"""The symbol or address of the token to manage liquidity with. For `action` set to `SUPPLY`, this is the token to add as liquidity. For `action` set to `WITHDRAW`, this is the token to remove from liquidity."""
25
+
26
+
27
+ PendleManageLiquidityRequestToken = TypeAliasType(
28
+ "PendleManageLiquidityRequestToken", Union[TokenEnum, str]
29
+ )
30
+ r"""The symbol or address of the token to manage liquidity with. For `action` set to `SUPPLY`, this is the token to add as liquidity. For `action` set to `WITHDRAW`, this is the token to remove from liquidity."""
31
+
32
+
33
+ PendleManageLiquidityRequestAmountInTypedDict = TypeAliasType(
34
+ "PendleManageLiquidityRequestAmountInTypedDict", Union[float, str]
35
+ )
36
+ r"""For `action` set to `SUPPLY`, this is the amount in of `token` to add as liquidity in exchange for Liquidity Provider (LP) tokens. For `action` set to `WITHDRAW`, this is the amount in of LP tokens to redeem for `token`."""
37
+
38
+
39
+ PendleManageLiquidityRequestAmountIn = TypeAliasType(
40
+ "PendleManageLiquidityRequestAmountIn", Union[float, str]
41
+ )
42
+ r"""For `action` set to `SUPPLY`, this is the amount in of `token` to add as liquidity in exchange for Liquidity Provider (LP) tokens. For `action` set to `WITHDRAW`, this is the amount in of LP tokens to redeem for `token`."""
43
+
44
+
45
+ class PendleManageLiquidityRequestChain(str, Enum):
46
+ ARBITRUM = "arbitrum"
47
+ BASE = "base"
48
+ ETHEREUM = "ethereum"
49
+
50
+
51
+ class PendleManageLiquidityRequestTypedDict(TypedDict):
52
+ market_address: str
53
+ r"""The address identifying which Pendle Market you would like to add liquidity to."""
54
+ action: PendleManageLiquidityRequestAction
55
+ r"""Specifies the direction of the liquidity operation for the Pendle market. Valid values are `SUPPLY` (to add liquidity) or `WITHDRAW` (to remove liquidity)."""
56
+ token: PendleManageLiquidityRequestTokenTypedDict
57
+ r"""The symbol or address of the token to manage liquidity with. For `action` set to `SUPPLY`, this is the token to add as liquidity. For `action` set to `WITHDRAW`, this is the token to remove from liquidity."""
58
+ amount_in: PendleManageLiquidityRequestAmountInTypedDict
59
+ r"""For `action` set to `SUPPLY`, this is the amount in of `token` to add as liquidity in exchange for Liquidity Provider (LP) tokens. For `action` set to `WITHDRAW`, this is the amount in of LP tokens to redeem for `token`."""
60
+ max_slippage_percent: float
61
+ r"""The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed."""
62
+ chain: PendleManageLiquidityRequestChain
63
+ sender: str
64
+ r"""The address of the transaction sender."""
65
+ action_type: Literal["PENDLE_MANAGE_LIQUIDITY"]
66
+
67
+
68
+ class PendleManageLiquidityRequest(BaseModel):
69
+ market_address: str
70
+ r"""The address identifying which Pendle Market you would like to add liquidity to."""
71
+
72
+ action: PendleManageLiquidityRequestAction
73
+ r"""Specifies the direction of the liquidity operation for the Pendle market. Valid values are `SUPPLY` (to add liquidity) or `WITHDRAW` (to remove liquidity)."""
74
+
75
+ token: PendleManageLiquidityRequestToken
76
+ r"""The symbol or address of the token to manage liquidity with. For `action` set to `SUPPLY`, this is the token to add as liquidity. For `action` set to `WITHDRAW`, this is the token to remove from liquidity."""
77
+
78
+ amount_in: PendleManageLiquidityRequestAmountIn
79
+ r"""For `action` set to `SUPPLY`, this is the amount in of `token` to add as liquidity in exchange for Liquidity Provider (LP) tokens. For `action` set to `WITHDRAW`, this is the amount in of LP tokens to redeem for `token`."""
80
+
81
+ max_slippage_percent: float
82
+ r"""The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed."""
83
+
84
+ chain: PendleManageLiquidityRequestChain
85
+
86
+ sender: str
87
+ r"""The address of the transaction sender."""
88
+
89
+ ACTION_TYPE: Annotated[
90
+ Annotated[
91
+ Optional[Literal["PENDLE_MANAGE_LIQUIDITY"]],
92
+ AfterValidator(validate_const("PENDLE_MANAGE_LIQUIDITY")),
93
+ ],
94
+ pydantic.Field(alias="action_type"),
95
+ ] = "PENDLE_MANAGE_LIQUIDITY"
@@ -0,0 +1,81 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .token_enum import TokenEnum
5
+ from compass_api_sdk.types import BaseModel
6
+ from compass_api_sdk.utils import validate_const
7
+ from enum import Enum
8
+ import pydantic
9
+ from pydantic.functional_validators import AfterValidator
10
+ from typing import Literal, Optional, Union
11
+ from typing_extensions import Annotated, TypeAliasType, TypedDict
12
+
13
+
14
+ class PendleTradePtParamsAction(str, Enum):
15
+ r"""Specifies the direction of the PT trade. Valid values are `BUY` (to buy PT) or `SELL` (to sell PT)."""
16
+
17
+ BUY = "BUY"
18
+ SELL = "SELL"
19
+
20
+
21
+ PendleTradePtParamsTokenTypedDict = TypeAliasType(
22
+ "PendleTradePtParamsTokenTypedDict", Union[TokenEnum, str]
23
+ )
24
+ r"""TThe symbol or address of the token to trade PT with. For `action` set to `BUY`, this is the token to buy PT with. For `action` set to `SELL`, this is the token to sell PT for."""
25
+
26
+
27
+ PendleTradePtParamsToken = TypeAliasType(
28
+ "PendleTradePtParamsToken", Union[TokenEnum, str]
29
+ )
30
+ r"""TThe symbol or address of the token to trade PT with. For `action` set to `BUY`, this is the token to buy PT with. For `action` set to `SELL`, this is the token to sell PT for."""
31
+
32
+
33
+ PendleTradePtParamsAmountInTypedDict = TypeAliasType(
34
+ "PendleTradePtParamsAmountInTypedDict", Union[float, str]
35
+ )
36
+ r"""For `action` set to `BUY`, this is the amount in of `token` to buy PT with. For `action` set to `SELL`, this is the amount in of PT to sell for `token`."""
37
+
38
+
39
+ PendleTradePtParamsAmountIn = TypeAliasType(
40
+ "PendleTradePtParamsAmountIn", Union[float, str]
41
+ )
42
+ r"""For `action` set to `BUY`, this is the amount in of `token` to buy PT with. For `action` set to `SELL`, this is the amount in of PT to sell for `token`."""
43
+
44
+
45
+ class PendleTradePtParamsTypedDict(TypedDict):
46
+ market_address: str
47
+ r"""The address of the market identifying which Principal Token (PT) you would like to trade."""
48
+ action: PendleTradePtParamsAction
49
+ r"""Specifies the direction of the PT trade. Valid values are `BUY` (to buy PT) or `SELL` (to sell PT)."""
50
+ token: PendleTradePtParamsTokenTypedDict
51
+ r"""TThe symbol or address of the token to trade PT with. For `action` set to `BUY`, this is the token to buy PT with. For `action` set to `SELL`, this is the token to sell PT for."""
52
+ amount_in: PendleTradePtParamsAmountInTypedDict
53
+ r"""For `action` set to `BUY`, this is the amount in of `token` to buy PT with. For `action` set to `SELL`, this is the amount in of PT to sell for `token`."""
54
+ max_slippage_percent: float
55
+ r"""The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed."""
56
+ action_type: Literal["PENDLE_TRADE_PT"]
57
+
58
+
59
+ class PendleTradePtParams(BaseModel):
60
+ market_address: str
61
+ r"""The address of the market identifying which Principal Token (PT) you would like to trade."""
62
+
63
+ action: PendleTradePtParamsAction
64
+ r"""Specifies the direction of the PT trade. Valid values are `BUY` (to buy PT) or `SELL` (to sell PT)."""
65
+
66
+ token: PendleTradePtParamsToken
67
+ r"""TThe symbol or address of the token to trade PT with. For `action` set to `BUY`, this is the token to buy PT with. For `action` set to `SELL`, this is the token to sell PT for."""
68
+
69
+ amount_in: PendleTradePtParamsAmountIn
70
+ r"""For `action` set to `BUY`, this is the amount in of `token` to buy PT with. For `action` set to `SELL`, this is the amount in of PT to sell for `token`."""
71
+
72
+ max_slippage_percent: float
73
+ r"""The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed."""
74
+
75
+ ACTION_TYPE: Annotated[
76
+ Annotated[
77
+ Optional[Literal["PENDLE_TRADE_PT"]],
78
+ AfterValidator(validate_const("PENDLE_TRADE_PT")),
79
+ ],
80
+ pydantic.Field(alias="action_type"),
81
+ ] = "PENDLE_TRADE_PT"
@@ -0,0 +1,95 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .token_enum import TokenEnum
5
+ from compass_api_sdk.types import BaseModel
6
+ from compass_api_sdk.utils import validate_const
7
+ from enum import Enum
8
+ import pydantic
9
+ from pydantic.functional_validators import AfterValidator
10
+ from typing import Literal, Optional, Union
11
+ from typing_extensions import Annotated, TypeAliasType, TypedDict
12
+
13
+
14
+ class PendleTradePtRequestAction(str, Enum):
15
+ r"""Specifies the direction of the PT trade. Valid values are `BUY` (to buy PT) or `SELL` (to sell PT)."""
16
+
17
+ BUY = "BUY"
18
+ SELL = "SELL"
19
+
20
+
21
+ PendleTradePtRequestTokenTypedDict = TypeAliasType(
22
+ "PendleTradePtRequestTokenTypedDict", Union[TokenEnum, str]
23
+ )
24
+ r"""TThe symbol or address of the token to trade PT with. For `action` set to `BUY`, this is the token to buy PT with. For `action` set to `SELL`, this is the token to sell PT for."""
25
+
26
+
27
+ PendleTradePtRequestToken = TypeAliasType(
28
+ "PendleTradePtRequestToken", Union[TokenEnum, str]
29
+ )
30
+ r"""TThe symbol or address of the token to trade PT with. For `action` set to `BUY`, this is the token to buy PT with. For `action` set to `SELL`, this is the token to sell PT for."""
31
+
32
+
33
+ PendleTradePtRequestAmountInTypedDict = TypeAliasType(
34
+ "PendleTradePtRequestAmountInTypedDict", Union[float, str]
35
+ )
36
+ r"""For `action` set to `BUY`, this is the amount in of `token` to buy PT with. For `action` set to `SELL`, this is the amount in of PT to sell for `token`."""
37
+
38
+
39
+ PendleTradePtRequestAmountIn = TypeAliasType(
40
+ "PendleTradePtRequestAmountIn", Union[float, str]
41
+ )
42
+ r"""For `action` set to `BUY`, this is the amount in of `token` to buy PT with. For `action` set to `SELL`, this is the amount in of PT to sell for `token`."""
43
+
44
+
45
+ class PendleTradePtRequestChain(str, Enum):
46
+ ARBITRUM = "arbitrum"
47
+ BASE = "base"
48
+ ETHEREUM = "ethereum"
49
+
50
+
51
+ class PendleTradePtRequestTypedDict(TypedDict):
52
+ market_address: str
53
+ r"""The address of the market identifying which Principal Token (PT) you would like to trade."""
54
+ action: PendleTradePtRequestAction
55
+ r"""Specifies the direction of the PT trade. Valid values are `BUY` (to buy PT) or `SELL` (to sell PT)."""
56
+ token: PendleTradePtRequestTokenTypedDict
57
+ r"""TThe symbol or address of the token to trade PT with. For `action` set to `BUY`, this is the token to buy PT with. For `action` set to `SELL`, this is the token to sell PT for."""
58
+ amount_in: PendleTradePtRequestAmountInTypedDict
59
+ r"""For `action` set to `BUY`, this is the amount in of `token` to buy PT with. For `action` set to `SELL`, this is the amount in of PT to sell for `token`."""
60
+ max_slippage_percent: float
61
+ r"""The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed."""
62
+ chain: PendleTradePtRequestChain
63
+ sender: str
64
+ r"""The address of the transaction sender."""
65
+ action_type: Literal["PENDLE_TRADE_PT"]
66
+
67
+
68
+ class PendleTradePtRequest(BaseModel):
69
+ market_address: str
70
+ r"""The address of the market identifying which Principal Token (PT) you would like to trade."""
71
+
72
+ action: PendleTradePtRequestAction
73
+ r"""Specifies the direction of the PT trade. Valid values are `BUY` (to buy PT) or `SELL` (to sell PT)."""
74
+
75
+ token: PendleTradePtRequestToken
76
+ r"""TThe symbol or address of the token to trade PT with. For `action` set to `BUY`, this is the token to buy PT with. For `action` set to `SELL`, this is the token to sell PT for."""
77
+
78
+ amount_in: PendleTradePtRequestAmountIn
79
+ r"""For `action` set to `BUY`, this is the amount in of `token` to buy PT with. For `action` set to `SELL`, this is the amount in of PT to sell for `token`."""
80
+
81
+ max_slippage_percent: float
82
+ r"""The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed."""
83
+
84
+ chain: PendleTradePtRequestChain
85
+
86
+ sender: str
87
+ r"""The address of the transaction sender."""
88
+
89
+ ACTION_TYPE: Annotated[
90
+ Annotated[
91
+ Optional[Literal["PENDLE_TRADE_PT"]],
92
+ AfterValidator(validate_const("PENDLE_TRADE_PT")),
93
+ ],
94
+ pydantic.Field(alias="action_type"),
95
+ ] = "PENDLE_TRADE_PT"
@@ -0,0 +1,81 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .token_enum import TokenEnum
5
+ from compass_api_sdk.types import BaseModel
6
+ from compass_api_sdk.utils import validate_const
7
+ from enum import Enum
8
+ import pydantic
9
+ from pydantic.functional_validators import AfterValidator
10
+ from typing import Literal, Optional, Union
11
+ from typing_extensions import Annotated, TypeAliasType, TypedDict
12
+
13
+
14
+ class PendleTradeYtParamsAction(str, Enum):
15
+ r"""Specifies the direction of the YT trade. Valid values are `BUY` (to buy YT) or `SELL` (to sell YT)."""
16
+
17
+ BUY = "BUY"
18
+ SELL = "SELL"
19
+
20
+
21
+ PendleTradeYtParamsTokenTypedDict = TypeAliasType(
22
+ "PendleTradeYtParamsTokenTypedDict", Union[TokenEnum, str]
23
+ )
24
+ r"""TThe symbol or address of the token to trade YT with. For `action` set to `BUY`, this is the token to buy YT with. For `action` set to `SELL`, this is the token to sell YT for."""
25
+
26
+
27
+ PendleTradeYtParamsToken = TypeAliasType(
28
+ "PendleTradeYtParamsToken", Union[TokenEnum, str]
29
+ )
30
+ r"""TThe symbol or address of the token to trade YT with. For `action` set to `BUY`, this is the token to buy YT with. For `action` set to `SELL`, this is the token to sell YT for."""
31
+
32
+
33
+ PendleTradeYtParamsAmountInTypedDict = TypeAliasType(
34
+ "PendleTradeYtParamsAmountInTypedDict", Union[float, str]
35
+ )
36
+ r"""For `action` set to `BUY`, this is the amount in of `token` to buy YT with. For `action` set to `SELL`, this is the amount in of YT to sell for `token`."""
37
+
38
+
39
+ PendleTradeYtParamsAmountIn = TypeAliasType(
40
+ "PendleTradeYtParamsAmountIn", Union[float, str]
41
+ )
42
+ r"""For `action` set to `BUY`, this is the amount in of `token` to buy YT with. For `action` set to `SELL`, this is the amount in of YT to sell for `token`."""
43
+
44
+
45
+ class PendleTradeYtParamsTypedDict(TypedDict):
46
+ market_address: str
47
+ r"""The address of the market identifying which Yield Token (YT) you would like to trade."""
48
+ action: PendleTradeYtParamsAction
49
+ r"""Specifies the direction of the YT trade. Valid values are `BUY` (to buy YT) or `SELL` (to sell YT)."""
50
+ token: PendleTradeYtParamsTokenTypedDict
51
+ r"""TThe symbol or address of the token to trade YT with. For `action` set to `BUY`, this is the token to buy YT with. For `action` set to `SELL`, this is the token to sell YT for."""
52
+ amount_in: PendleTradeYtParamsAmountInTypedDict
53
+ r"""For `action` set to `BUY`, this is the amount in of `token` to buy YT with. For `action` set to `SELL`, this is the amount in of YT to sell for `token`."""
54
+ max_slippage_percent: float
55
+ r"""The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed."""
56
+ action_type: Literal["PENDLE_TRADE_YT"]
57
+
58
+
59
+ class PendleTradeYtParams(BaseModel):
60
+ market_address: str
61
+ r"""The address of the market identifying which Yield Token (YT) you would like to trade."""
62
+
63
+ action: PendleTradeYtParamsAction
64
+ r"""Specifies the direction of the YT trade. Valid values are `BUY` (to buy YT) or `SELL` (to sell YT)."""
65
+
66
+ token: PendleTradeYtParamsToken
67
+ r"""TThe symbol or address of the token to trade YT with. For `action` set to `BUY`, this is the token to buy YT with. For `action` set to `SELL`, this is the token to sell YT for."""
68
+
69
+ amount_in: PendleTradeYtParamsAmountIn
70
+ r"""For `action` set to `BUY`, this is the amount in of `token` to buy YT with. For `action` set to `SELL`, this is the amount in of YT to sell for `token`."""
71
+
72
+ max_slippage_percent: float
73
+ r"""The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed."""
74
+
75
+ ACTION_TYPE: Annotated[
76
+ Annotated[
77
+ Optional[Literal["PENDLE_TRADE_YT"]],
78
+ AfterValidator(validate_const("PENDLE_TRADE_YT")),
79
+ ],
80
+ pydantic.Field(alias="action_type"),
81
+ ] = "PENDLE_TRADE_YT"
@@ -0,0 +1,95 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .token_enum import TokenEnum
5
+ from compass_api_sdk.types import BaseModel
6
+ from compass_api_sdk.utils import validate_const
7
+ from enum import Enum
8
+ import pydantic
9
+ from pydantic.functional_validators import AfterValidator
10
+ from typing import Literal, Optional, Union
11
+ from typing_extensions import Annotated, TypeAliasType, TypedDict
12
+
13
+
14
+ class PendleTradeYtRequestAction(str, Enum):
15
+ r"""Specifies the direction of the YT trade. Valid values are `BUY` (to buy YT) or `SELL` (to sell YT)."""
16
+
17
+ BUY = "BUY"
18
+ SELL = "SELL"
19
+
20
+
21
+ PendleTradeYtRequestTokenTypedDict = TypeAliasType(
22
+ "PendleTradeYtRequestTokenTypedDict", Union[TokenEnum, str]
23
+ )
24
+ r"""TThe symbol or address of the token to trade YT with. For `action` set to `BUY`, this is the token to buy YT with. For `action` set to `SELL`, this is the token to sell YT for."""
25
+
26
+
27
+ PendleTradeYtRequestToken = TypeAliasType(
28
+ "PendleTradeYtRequestToken", Union[TokenEnum, str]
29
+ )
30
+ r"""TThe symbol or address of the token to trade YT with. For `action` set to `BUY`, this is the token to buy YT with. For `action` set to `SELL`, this is the token to sell YT for."""
31
+
32
+
33
+ PendleTradeYtRequestAmountInTypedDict = TypeAliasType(
34
+ "PendleTradeYtRequestAmountInTypedDict", Union[float, str]
35
+ )
36
+ r"""For `action` set to `BUY`, this is the amount in of `token` to buy YT with. For `action` set to `SELL`, this is the amount in of YT to sell for `token`."""
37
+
38
+
39
+ PendleTradeYtRequestAmountIn = TypeAliasType(
40
+ "PendleTradeYtRequestAmountIn", Union[float, str]
41
+ )
42
+ r"""For `action` set to `BUY`, this is the amount in of `token` to buy YT with. For `action` set to `SELL`, this is the amount in of YT to sell for `token`."""
43
+
44
+
45
+ class PendleTradeYtRequestChain(str, Enum):
46
+ ARBITRUM = "arbitrum"
47
+ BASE = "base"
48
+ ETHEREUM = "ethereum"
49
+
50
+
51
+ class PendleTradeYtRequestTypedDict(TypedDict):
52
+ market_address: str
53
+ r"""The address of the market identifying which Yield Token (YT) you would like to trade."""
54
+ action: PendleTradeYtRequestAction
55
+ r"""Specifies the direction of the YT trade. Valid values are `BUY` (to buy YT) or `SELL` (to sell YT)."""
56
+ token: PendleTradeYtRequestTokenTypedDict
57
+ r"""TThe symbol or address of the token to trade YT with. For `action` set to `BUY`, this is the token to buy YT with. For `action` set to `SELL`, this is the token to sell YT for."""
58
+ amount_in: PendleTradeYtRequestAmountInTypedDict
59
+ r"""For `action` set to `BUY`, this is the amount in of `token` to buy YT with. For `action` set to `SELL`, this is the amount in of YT to sell for `token`."""
60
+ max_slippage_percent: float
61
+ r"""The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed."""
62
+ chain: PendleTradeYtRequestChain
63
+ sender: str
64
+ r"""The address of the transaction sender."""
65
+ action_type: Literal["PENDLE_TRADE_YT"]
66
+
67
+
68
+ class PendleTradeYtRequest(BaseModel):
69
+ market_address: str
70
+ r"""The address of the market identifying which Yield Token (YT) you would like to trade."""
71
+
72
+ action: PendleTradeYtRequestAction
73
+ r"""Specifies the direction of the YT trade. Valid values are `BUY` (to buy YT) or `SELL` (to sell YT)."""
74
+
75
+ token: PendleTradeYtRequestToken
76
+ r"""TThe symbol or address of the token to trade YT with. For `action` set to `BUY`, this is the token to buy YT with. For `action` set to `SELL`, this is the token to sell YT for."""
77
+
78
+ amount_in: PendleTradeYtRequestAmountIn
79
+ r"""For `action` set to `BUY`, this is the amount in of `token` to buy YT with. For `action` set to `SELL`, this is the amount in of YT to sell for `token`."""
80
+
81
+ max_slippage_percent: float
82
+ r"""The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed."""
83
+
84
+ chain: PendleTradeYtRequestChain
85
+
86
+ sender: str
87
+ r"""The address of the transaction sender."""
88
+
89
+ ACTION_TYPE: Annotated[
90
+ Annotated[
91
+ Optional[Literal["PENDLE_TRADE_YT"]],
92
+ AfterValidator(validate_const("PENDLE_TRADE_YT")),
93
+ ],
94
+ pydantic.Field(alias="action_type"),
95
+ ] = "PENDLE_TRADE_YT"
@@ -0,0 +1,45 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .unsignedmulticalltransaction import (
5
+ UnsignedMulticallTransaction,
6
+ UnsignedMulticallTransactionTypedDict,
7
+ )
8
+ from .unsignedtransaction import UnsignedTransaction, UnsignedTransactionTypedDict
9
+ from .useroperationresponse import UserOperationResponse, UserOperationResponseTypedDict
10
+ from compass_api_sdk.types import BaseModel
11
+ from typing import Union
12
+ from typing_extensions import TypeAliasType, TypedDict
13
+
14
+
15
+ PendleTxResponseTransactionTypedDict = TypeAliasType(
16
+ "PendleTxResponseTransactionTypedDict",
17
+ Union[
18
+ UserOperationResponseTypedDict,
19
+ UnsignedTransactionTypedDict,
20
+ UnsignedMulticallTransactionTypedDict,
21
+ ],
22
+ )
23
+ r"""The unsigned transaction data. User must sign and broadcast to network."""
24
+
25
+
26
+ PendleTxResponseTransaction = TypeAliasType(
27
+ "PendleTxResponseTransaction",
28
+ Union[UserOperationResponse, UnsignedTransaction, UnsignedMulticallTransaction],
29
+ )
30
+ r"""The unsigned transaction data. User must sign and broadcast to network."""
31
+
32
+
33
+ class PendleTxResponseTypedDict(TypedDict):
34
+ transaction: PendleTxResponseTransactionTypedDict
35
+ r"""The unsigned transaction data. User must sign and broadcast to network."""
36
+ amount_out_quote: str
37
+ r"""The estimated amount out for the transaction. The actual output amount for this transaction is guaranteed be within the acceptable threshold, defined by the `max_slippage_percent`, relative to this quote."""
38
+
39
+
40
+ class PendleTxResponse(BaseModel):
41
+ transaction: PendleTxResponseTransaction
42
+ r"""The unsigned transaction data. User must sign and broadcast to network."""
43
+
44
+ amount_out_quote: str
45
+ r"""The estimated amount out for the transaction. The actual output amount for this transaction is guaranteed be within the acceptable threshold, defined by the `max_slippage_percent`, relative to this quote."""
@@ -52,7 +52,24 @@ class TokenEnum(str, Enum):
52
52
  EURS = "EURS"
53
53
  MAI = "MAI"
54
54
  USD_CE = "USDCe"
55
+ ETH = "ETH"
55
56
  AERO = "AERO"
56
57
  EUR = "EUR"
57
58
  VIRTUAL = "VIRTUAL"
58
59
  EZ_ETH = "ezETH"
60
+ CYBER = "CYBER"
61
+ WRS_ETH = "wrsETH"
62
+ E_BTC = "eBTC"
63
+ EURC = "EURC"
64
+ E_US_DE = "eUSDe"
65
+ FBTC = "FBTC"
66
+ LBTC = "LBTC"
67
+ PT_E_USDE_14_AUG2025 = "PT-eUSDE-14AUG2025"
68
+ PT_E_USDE_29_MAY2025 = "PT-eUSDE-29MAY2025"
69
+ PT_S_USDE_25_SEP2025 = "PT-sUSDE-25SEP2025"
70
+ PT_S_USDE_31_JUL2025 = "PT-sUSDE-31JUL2025"
71
+ PT_US_DE_31_JUL2025 = "PT-USDe-31JUL2025"
72
+ RLUSD = "RLUSD"
73
+ USD_0 = "USD₮0"
74
+ US_DB_C = "USDbC"
75
+ US_DTB = "USDtb"