compass_api_sdk 1.1.2__py3-none-any.whl → 1.1.3rc0__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 (79) hide show
  1. compass_api_sdk/_version.py +3 -3
  2. compass_api_sdk/aave_v3.py +44 -44
  3. compass_api_sdk/aerodrome_slipstream.py +32 -32
  4. compass_api_sdk/models/__init__.py +0 -254
  5. compass_api_sdk/models/aaveborrowparams.py +4 -13
  6. compass_api_sdk/models/aaveborrowrequest.py +4 -13
  7. compass_api_sdk/models/aavelooprequest.py +8 -25
  8. compass_api_sdk/models/aaverepayparams.py +4 -13
  9. compass_api_sdk/models/aaverepayrequest.py +4 -13
  10. compass_api_sdk/models/aavesupplyparams.py +4 -13
  11. compass_api_sdk/models/aavesupplyrequest.py +4 -13
  12. compass_api_sdk/models/aavewithdrawparams.py +4 -13
  13. compass_api_sdk/models/aavewithdrawrequest.py +4 -13
  14. compass_api_sdk/models/aerodromeposition.py +4 -25
  15. compass_api_sdk/models/aerodromeslipstreambuyexactlyparams.py +8 -25
  16. compass_api_sdk/models/aerodromeslipstreambuyexactlyrequest.py +8 -25
  17. compass_api_sdk/models/aerodromeslipstreammintliquidityprovisionparams.py +8 -25
  18. compass_api_sdk/models/aerodromeslipstreammintliquidityprovisionrequest.py +8 -25
  19. compass_api_sdk/models/aerodromeslipstreampoolpriceresponse.py +8 -25
  20. compass_api_sdk/models/aerodromeslipstreamsellexactlyparams.py +8 -25
  21. compass_api_sdk/models/aerodromeslipstreamsellexactlyrequest.py +8 -25
  22. compass_api_sdk/models/batcheduseroperationsrequest.py +8 -2
  23. compass_api_sdk/models/compass_api_backend_models_generic_read_response_portfolio_tokenbalance.py +4 -13
  24. compass_api_sdk/models/odosswapparams.py +4 -25
  25. compass_api_sdk/models/odosswaprequest.py +4 -27
  26. compass_api_sdk/models/pendlemanageliquidityparams.py +2 -15
  27. compass_api_sdk/models/pendlemanageliquidityrequest.py +2 -15
  28. compass_api_sdk/models/pendletradeptparams.py +2 -15
  29. compass_api_sdk/models/pendletradeptrequest.py +2 -15
  30. compass_api_sdk/models/pendletradeytparams.py +2 -15
  31. compass_api_sdk/models/pendletradeytrequest.py +2 -15
  32. compass_api_sdk/models/reserve.py +6 -15
  33. compass_api_sdk/models/setallowanceparams.py +2 -15
  34. compass_api_sdk/models/setallowancerequest.py +2 -15
  35. compass_api_sdk/models/skysellrequest.py +4 -4
  36. compass_api_sdk/models/tokenbalanceresponse.py +5 -15
  37. compass_api_sdk/models/tokentransferparams.py +2 -15
  38. compass_api_sdk/models/tokentransferrequest.py +2 -15
  39. compass_api_sdk/models/uniswapbuyexactlyparams.py +8 -33
  40. compass_api_sdk/models/uniswapbuyexactlyrequest.py +8 -33
  41. compass_api_sdk/models/uniswapmintliquidityprovisionparams.py +8 -25
  42. compass_api_sdk/models/uniswapmintliquidityprovisionrequest.py +8 -25
  43. compass_api_sdk/models/uniswappoolpriceresponse.py +8 -25
  44. compass_api_sdk/models/uniswapsellexactlyparams.py +4 -29
  45. compass_api_sdk/models/uniswapsellexactlyrequest.py +4 -29
  46. compass_api_sdk/models/v1_aave_avg_rateop.py +5 -83
  47. compass_api_sdk/models/v1_aave_liquidity_changeop.py +5 -83
  48. compass_api_sdk/models/v1_aave_rateop.py +5 -83
  49. compass_api_sdk/models/v1_aave_reserve_overviewop.py +5 -83
  50. compass_api_sdk/models/v1_aave_std_rateop.py +5 -83
  51. compass_api_sdk/models/v1_aave_token_priceop.py +5 -83
  52. compass_api_sdk/models/v1_aave_user_position_per_tokenop.py +5 -83
  53. compass_api_sdk/models/v1_aerodrome_slipstream_pool_priceop.py +10 -166
  54. compass_api_sdk/models/v1_generic_allowanceop.py +7 -21
  55. compass_api_sdk/models/v1_morpho_marketsop.py +9 -29
  56. compass_api_sdk/models/v1_morpho_vaultsop.py +5 -15
  57. compass_api_sdk/models/v1_sky_positionop.py +4 -5
  58. compass_api_sdk/models/v1_token_balanceop.py +10 -23
  59. compass_api_sdk/models/v1_token_priceop.py +7 -8
  60. compass_api_sdk/models/v1_uniswap_pool_priceop.py +10 -166
  61. compass_api_sdk/models/v1_uniswap_quote_buy_exactlyop.py +10 -166
  62. compass_api_sdk/models/v1_uniswap_quote_sell_exactlyop.py +10 -166
  63. compass_api_sdk/morpho.py +12 -24
  64. compass_api_sdk/pendle.py +6 -20
  65. compass_api_sdk/sdk.py +3 -3
  66. compass_api_sdk/sky.py +14 -16
  67. compass_api_sdk/swap.py +4 -12
  68. compass_api_sdk/{token_sdk.py → token.py} +13 -197
  69. compass_api_sdk/transaction_bundler.py +8 -8
  70. compass_api_sdk/uniswap_v3.py +44 -68
  71. compass_api_sdk/universal.py +6 -188
  72. {compass_api_sdk-1.1.2.dist-info → compass_api_sdk-1.1.3rc0.dist-info}/METADATA +5 -7
  73. {compass_api_sdk-1.1.2.dist-info → compass_api_sdk-1.1.3rc0.dist-info}/RECORD +74 -79
  74. compass_api_sdk/models/token_enum.py +0 -81
  75. compass_api_sdk/models/tokenaddressresponse.py +0 -15
  76. compass_api_sdk/models/tokeninfo.py +0 -17
  77. compass_api_sdk/models/v1_generic_supported_tokensop.py +0 -24
  78. compass_api_sdk/models/v1_token_addressop.py +0 -109
  79. {compass_api_sdk-1.1.2.dist-info → compass_api_sdk-1.1.3rc0.dist-info}/WHEEL +0 -0
@@ -1,24 +1,15 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from .token_enum import TokenEnum
5
4
  from compass_api_sdk.types import BaseModel
6
5
  from typing_extensions import TypedDict
7
6
 
8
7
 
9
8
  class AerodromeSlipstreamPoolPriceResponseTypedDict(TypedDict):
10
- token_in: TokenEnum
11
- r"""A class representing the token.
12
-
13
- This class is used to represent the token in the system. Notice individual
14
- endpoints' documentation where per chain tokens are presented.
15
- """
16
- token_out: TokenEnum
17
- r"""A class representing the token.
18
-
19
- This class is used to represent the token in the system. Notice individual
20
- endpoints' documentation where per chain tokens are presented.
21
- """
9
+ token_in: str
10
+ r"""The first token in the pool."""
11
+ token_out: str
12
+ r"""The second token in the pool."""
22
13
  price: str
23
14
  r"""The price of the pool. This is expressed as an instantaneous amount of how
24
15
  many token0 you need to buy 1 token1. In any swap this will not change during the trade; use
@@ -31,19 +22,11 @@ class AerodromeSlipstreamPoolPriceResponseTypedDict(TypedDict):
31
22
 
32
23
 
33
24
  class AerodromeSlipstreamPoolPriceResponse(BaseModel):
34
- token_in: TokenEnum
35
- r"""A class representing the token.
25
+ token_in: str
26
+ r"""The first token in the pool."""
36
27
 
37
- This class is used to represent the token in the system. Notice individual
38
- endpoints' documentation where per chain tokens are presented.
39
- """
40
-
41
- token_out: TokenEnum
42
- r"""A class representing the token.
43
-
44
- This class is used to represent the token in the system. Notice individual
45
- endpoints' documentation where per chain tokens are presented.
46
- """
28
+ token_out: str
29
+ r"""The second token in the pool."""
47
30
 
48
31
  price: str
49
32
  r"""The price of the pool. This is expressed as an instantaneous amount of how
@@ -1,7 +1,6 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from .token_enum import TokenEnum
5
4
  from compass_api_sdk.types import BaseModel
6
5
  from compass_api_sdk.utils import validate_const
7
6
  import pydantic
@@ -37,18 +36,10 @@ r"""The minimum amount of the token to swap to, defaults to 0"""
37
36
  class AerodromeSlipstreamSellExactlyParamsTypedDict(TypedDict):
38
37
  r"""Parameters model for selling exactly an amount of tokens."""
39
38
 
40
- token_in: TokenEnum
41
- r"""A class representing the token.
42
-
43
- This class is used to represent the token in the system. Notice individual
44
- endpoints' documentation where per chain tokens are presented.
45
- """
46
- token_out: TokenEnum
47
- r"""A class representing the token.
48
-
49
- This class is used to represent the token in the system. Notice individual
50
- endpoints' documentation where per chain tokens are presented.
51
- """
39
+ token_in: str
40
+ r"""The symbol or address of the token to swap from."""
41
+ token_out: str
42
+ r"""The symbol or address of the token to swap to."""
52
43
  tick_spacing: int
53
44
  r"""The tick spacing of the pool"""
54
45
  amount_in: AerodromeSlipstreamSellExactlyParamsAmountInTypedDict
@@ -63,19 +54,11 @@ class AerodromeSlipstreamSellExactlyParamsTypedDict(TypedDict):
63
54
  class AerodromeSlipstreamSellExactlyParams(BaseModel):
64
55
  r"""Parameters model for selling exactly an amount of tokens."""
65
56
 
66
- token_in: TokenEnum
67
- r"""A class representing the token.
68
-
69
- This class is used to represent the token in the system. Notice individual
70
- endpoints' documentation where per chain tokens are presented.
71
- """
72
-
73
- token_out: TokenEnum
74
- r"""A class representing the token.
57
+ token_in: str
58
+ r"""The symbol or address of the token to swap from."""
75
59
 
76
- This class is used to represent the token in the system. Notice individual
77
- endpoints' documentation where per chain tokens are presented.
78
- """
60
+ token_out: str
61
+ r"""The symbol or address of the token to swap to."""
79
62
 
80
63
  tick_spacing: int
81
64
  r"""The tick spacing of the pool"""
@@ -1,7 +1,6 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from .token_enum import TokenEnum
5
4
  from compass_api_sdk.types import BaseModel
6
5
  from compass_api_sdk.utils import validate_const
7
6
  from enum import Enum
@@ -42,18 +41,10 @@ class AerodromeSlipstreamSellExactlyRequestChain(str, Enum):
42
41
  class AerodromeSlipstreamSellExactlyRequestTypedDict(TypedDict):
43
42
  r"""Request model for selling exactly an amount of tokens."""
44
43
 
45
- token_in: TokenEnum
46
- r"""A class representing the token.
47
-
48
- This class is used to represent the token in the system. Notice individual
49
- endpoints' documentation where per chain tokens are presented.
50
- """
51
- token_out: TokenEnum
52
- r"""A class representing the token.
53
-
54
- This class is used to represent the token in the system. Notice individual
55
- endpoints' documentation where per chain tokens are presented.
56
- """
44
+ token_in: str
45
+ r"""The symbol or address of the token to swap from."""
46
+ token_out: str
47
+ r"""The symbol or address of the token to swap to."""
57
48
  tick_spacing: int
58
49
  r"""The tick spacing of the pool"""
59
50
  amount_in: AerodromeSlipstreamSellExactlyRequestAmountInTypedDict
@@ -71,19 +62,11 @@ class AerodromeSlipstreamSellExactlyRequestTypedDict(TypedDict):
71
62
  class AerodromeSlipstreamSellExactlyRequest(BaseModel):
72
63
  r"""Request model for selling exactly an amount of tokens."""
73
64
 
74
- token_in: TokenEnum
75
- r"""A class representing the token.
76
-
77
- This class is used to represent the token in the system. Notice individual
78
- endpoints' documentation where per chain tokens are presented.
79
- """
80
-
81
- token_out: TokenEnum
82
- r"""A class representing the token.
65
+ token_in: str
66
+ r"""The symbol or address of the token to swap from."""
83
67
 
84
- This class is used to represent the token in the system. Notice individual
85
- endpoints' documentation where per chain tokens are presented.
86
- """
68
+ token_out: str
69
+ r"""The symbol or address of the token to swap to."""
87
70
 
88
71
  tick_spacing: int
89
72
  r"""The tick spacing of the pool"""
@@ -15,7 +15,10 @@ class BatchedUserOperationsRequestChain(str, Enum):
15
15
 
16
16
 
17
17
  class BatchedUserOperationsRequestTypedDict(TypedDict):
18
- r"""Request model for batching user operations."""
18
+ r"""Request model for batching user operations.
19
+
20
+ Used for smart account batching and 5792 batching.
21
+ """
19
22
 
20
23
  chain: BatchedUserOperationsRequestChain
21
24
  sender: str
@@ -25,7 +28,10 @@ class BatchedUserOperationsRequestTypedDict(TypedDict):
25
28
 
26
29
 
27
30
  class BatchedUserOperationsRequest(BaseModel):
28
- r"""Request model for batching user operations."""
31
+ r"""Request model for batching user operations.
32
+
33
+ Used for smart account batching and 5792 batching.
34
+ """
29
35
 
30
36
  chain: BatchedUserOperationsRequestChain
31
37
 
@@ -1,7 +1,6 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from .token_enum import TokenEnum
5
4
  from compass_api_sdk.types import BaseModel
6
5
  from typing_extensions import TypedDict
7
6
 
@@ -13,12 +12,8 @@ class CompassAPIBackendModelsGenericReadResponsePortfolioTokenBalanceTypedDict(
13
12
  r"""Amount of tokens a particular address holds"""
14
13
  decimals: int
15
14
  r"""Number of decimals of the token"""
16
- token_symbol: TokenEnum
17
- r"""A class representing the token.
18
-
19
- This class is used to represent the token in the system. Notice individual
20
- endpoints' documentation where per chain tokens are presented.
21
- """
15
+ token_symbol: str
16
+ r"""Symbol of the token."""
22
17
  token_address: str
23
18
  r"""Address of the token"""
24
19
  price: str
@@ -34,12 +29,8 @@ class CompassAPIBackendModelsGenericReadResponsePortfolioTokenBalance(BaseModel)
34
29
  decimals: int
35
30
  r"""Number of decimals of the token"""
36
31
 
37
- token_symbol: TokenEnum
38
- r"""A class representing the token.
39
-
40
- This class is used to represent the token in the system. Notice individual
41
- endpoints' documentation where per chain tokens are presented.
42
- """
32
+ token_symbol: str
33
+ r"""Symbol of the token."""
43
34
 
44
35
  token_address: str
45
36
  r"""Address of the token"""
@@ -1,7 +1,6 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from .token_enum import TokenEnum
5
4
  from compass_api_sdk.types import BaseModel
6
5
  from compass_api_sdk.utils import validate_const
7
6
  import pydantic
@@ -10,26 +9,6 @@ from typing import Literal, Optional, Union
10
9
  from typing_extensions import Annotated, TypeAliasType, TypedDict
11
10
 
12
11
 
13
- OdosSwapParamsTokenInTypedDict = TypeAliasType(
14
- "OdosSwapParamsTokenInTypedDict", Union[TokenEnum, str]
15
- )
16
- r"""The symbol or address of the token that is to be sold."""
17
-
18
-
19
- OdosSwapParamsTokenIn = TypeAliasType("OdosSwapParamsTokenIn", Union[TokenEnum, str])
20
- r"""The symbol or address of the token that is to be sold."""
21
-
22
-
23
- OdosSwapParamsTokenOutTypedDict = TypeAliasType(
24
- "OdosSwapParamsTokenOutTypedDict", Union[TokenEnum, str]
25
- )
26
- r"""The symbol or address of the token that is to be bought."""
27
-
28
-
29
- OdosSwapParamsTokenOut = TypeAliasType("OdosSwapParamsTokenOut", Union[TokenEnum, str])
30
- r"""The symbol or address of the token that is to be bought."""
31
-
32
-
33
12
  OdosSwapParamsAmountTypedDict = TypeAliasType(
34
13
  "OdosSwapParamsAmountTypedDict", Union[float, str]
35
14
  )
@@ -41,9 +20,9 @@ r"""The amount of token_in to be sold."""
41
20
 
42
21
 
43
22
  class OdosSwapParamsTypedDict(TypedDict):
44
- token_in: OdosSwapParamsTokenInTypedDict
23
+ token_in: str
45
24
  r"""The symbol or address of the token that is to be sold."""
46
- token_out: OdosSwapParamsTokenOutTypedDict
25
+ token_out: str
47
26
  r"""The symbol or address of the token that is to be bought."""
48
27
  amount: OdosSwapParamsAmountTypedDict
49
28
  r"""The amount of token_in to be sold."""
@@ -53,10 +32,10 @@ class OdosSwapParamsTypedDict(TypedDict):
53
32
 
54
33
 
55
34
  class OdosSwapParams(BaseModel):
56
- token_in: OdosSwapParamsTokenIn
35
+ token_in: str
57
36
  r"""The symbol or address of the token that is to be sold."""
58
37
 
59
- token_out: OdosSwapParamsTokenOut
38
+ token_out: str
60
39
  r"""The symbol or address of the token that is to be bought."""
61
40
 
62
41
  amount: OdosSwapParamsAmount
@@ -1,7 +1,6 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from .token_enum import TokenEnum
5
4
  from compass_api_sdk.types import BaseModel
6
5
  from compass_api_sdk.utils import validate_const
7
6
  from enum import Enum
@@ -11,28 +10,6 @@ from typing import Literal, Optional, Union
11
10
  from typing_extensions import Annotated, TypeAliasType, TypedDict
12
11
 
13
12
 
14
- OdosSwapRequestTokenInTypedDict = TypeAliasType(
15
- "OdosSwapRequestTokenInTypedDict", Union[TokenEnum, str]
16
- )
17
- r"""The symbol or address of the token that is to be sold."""
18
-
19
-
20
- OdosSwapRequestTokenIn = TypeAliasType("OdosSwapRequestTokenIn", Union[TokenEnum, str])
21
- r"""The symbol or address of the token that is to be sold."""
22
-
23
-
24
- OdosSwapRequestTokenOutTypedDict = TypeAliasType(
25
- "OdosSwapRequestTokenOutTypedDict", Union[TokenEnum, str]
26
- )
27
- r"""The symbol or address of the token that is to be bought."""
28
-
29
-
30
- OdosSwapRequestTokenOut = TypeAliasType(
31
- "OdosSwapRequestTokenOut", Union[TokenEnum, str]
32
- )
33
- r"""The symbol or address of the token that is to be bought."""
34
-
35
-
36
13
  OdosSwapRequestAmountTypedDict = TypeAliasType(
37
14
  "OdosSwapRequestAmountTypedDict", Union[float, str]
38
15
  )
@@ -50,9 +27,9 @@ class OdosSwapRequestChain(str, Enum):
50
27
 
51
28
 
52
29
  class OdosSwapRequestTypedDict(TypedDict):
53
- token_in: OdosSwapRequestTokenInTypedDict
30
+ token_in: str
54
31
  r"""The symbol or address of the token that is to be sold."""
55
- token_out: OdosSwapRequestTokenOutTypedDict
32
+ token_out: str
56
33
  r"""The symbol or address of the token that is to be bought."""
57
34
  amount: OdosSwapRequestAmountTypedDict
58
35
  r"""The amount of token_in to be sold."""
@@ -65,10 +42,10 @@ class OdosSwapRequestTypedDict(TypedDict):
65
42
 
66
43
 
67
44
  class OdosSwapRequest(BaseModel):
68
- token_in: OdosSwapRequestTokenIn
45
+ token_in: str
69
46
  r"""The symbol or address of the token that is to be sold."""
70
47
 
71
- token_out: OdosSwapRequestTokenOut
48
+ token_out: str
72
49
  r"""The symbol or address of the token that is to be bought."""
73
50
 
74
51
  amount: OdosSwapRequestAmount
@@ -1,7 +1,6 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from .token_enum import TokenEnum
5
4
  from compass_api_sdk.types import BaseModel
6
5
  from compass_api_sdk.utils import validate_const
7
6
  from enum import Enum
@@ -18,18 +17,6 @@ class PendleManageLiquidityParamsAction(str, Enum):
18
17
  WITHDRAW = "WITHDRAW"
19
18
 
20
19
 
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
20
  PendleManageLiquidityParamsAmountInTypedDict = TypeAliasType(
34
21
  "PendleManageLiquidityParamsAmountInTypedDict", Union[float, str]
35
22
  )
@@ -47,7 +34,7 @@ class PendleManageLiquidityParamsTypedDict(TypedDict):
47
34
  r"""The address identifying which Pendle Market you would like to add liquidity to."""
48
35
  action: PendleManageLiquidityParamsAction
49
36
  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
37
+ token: str
51
38
  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
39
  amount_in: PendleManageLiquidityParamsAmountInTypedDict
53
40
  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`."""
@@ -63,7 +50,7 @@ class PendleManageLiquidityParams(BaseModel):
63
50
  action: PendleManageLiquidityParamsAction
64
51
  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
52
 
66
- token: PendleManageLiquidityParamsToken
53
+ token: str
67
54
  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
55
 
69
56
  amount_in: PendleManageLiquidityParamsAmountIn
@@ -1,7 +1,6 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from .token_enum import TokenEnum
5
4
  from compass_api_sdk.types import BaseModel
6
5
  from compass_api_sdk.utils import validate_const
7
6
  from enum import Enum
@@ -18,18 +17,6 @@ class PendleManageLiquidityRequestAction(str, Enum):
18
17
  WITHDRAW = "WITHDRAW"
19
18
 
20
19
 
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
20
  PendleManageLiquidityRequestAmountInTypedDict = TypeAliasType(
34
21
  "PendleManageLiquidityRequestAmountInTypedDict", Union[float, str]
35
22
  )
@@ -53,7 +40,7 @@ class PendleManageLiquidityRequestTypedDict(TypedDict):
53
40
  r"""The address identifying which Pendle Market you would like to add liquidity to."""
54
41
  action: PendleManageLiquidityRequestAction
55
42
  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
43
+ token: str
57
44
  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
45
  amount_in: PendleManageLiquidityRequestAmountInTypedDict
59
46
  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`."""
@@ -72,7 +59,7 @@ class PendleManageLiquidityRequest(BaseModel):
72
59
  action: PendleManageLiquidityRequestAction
73
60
  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
61
 
75
- token: PendleManageLiquidityRequestToken
62
+ token: str
76
63
  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
64
 
78
65
  amount_in: PendleManageLiquidityRequestAmountIn
@@ -1,7 +1,6 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from .token_enum import TokenEnum
5
4
  from compass_api_sdk.types import BaseModel
6
5
  from compass_api_sdk.utils import validate_const
7
6
  from enum import Enum
@@ -18,18 +17,6 @@ class PendleTradePtParamsAction(str, Enum):
18
17
  SELL = "SELL"
19
18
 
20
19
 
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
20
  PendleTradePtParamsAmountInTypedDict = TypeAliasType(
34
21
  "PendleTradePtParamsAmountInTypedDict", Union[float, str]
35
22
  )
@@ -47,7 +34,7 @@ class PendleTradePtParamsTypedDict(TypedDict):
47
34
  r"""The address of the market identifying which Principal Token (PT) you would like to trade."""
48
35
  action: PendleTradePtParamsAction
49
36
  r"""Specifies the direction of the PT trade. Valid values are `BUY` (to buy PT) or `SELL` (to sell PT)."""
50
- token: PendleTradePtParamsTokenTypedDict
37
+ token: str
51
38
  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
39
  amount_in: PendleTradePtParamsAmountInTypedDict
53
40
  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`."""
@@ -63,7 +50,7 @@ class PendleTradePtParams(BaseModel):
63
50
  action: PendleTradePtParamsAction
64
51
  r"""Specifies the direction of the PT trade. Valid values are `BUY` (to buy PT) or `SELL` (to sell PT)."""
65
52
 
66
- token: PendleTradePtParamsToken
53
+ token: str
67
54
  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
55
 
69
56
  amount_in: PendleTradePtParamsAmountIn
@@ -1,7 +1,6 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from .token_enum import TokenEnum
5
4
  from compass_api_sdk.types import BaseModel
6
5
  from compass_api_sdk.utils import validate_const
7
6
  from enum import Enum
@@ -18,18 +17,6 @@ class PendleTradePtRequestAction(str, Enum):
18
17
  SELL = "SELL"
19
18
 
20
19
 
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
20
  PendleTradePtRequestAmountInTypedDict = TypeAliasType(
34
21
  "PendleTradePtRequestAmountInTypedDict", Union[float, str]
35
22
  )
@@ -53,7 +40,7 @@ class PendleTradePtRequestTypedDict(TypedDict):
53
40
  r"""The address of the market identifying which Principal Token (PT) you would like to trade."""
54
41
  action: PendleTradePtRequestAction
55
42
  r"""Specifies the direction of the PT trade. Valid values are `BUY` (to buy PT) or `SELL` (to sell PT)."""
56
- token: PendleTradePtRequestTokenTypedDict
43
+ token: str
57
44
  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
45
  amount_in: PendleTradePtRequestAmountInTypedDict
59
46
  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`."""
@@ -72,7 +59,7 @@ class PendleTradePtRequest(BaseModel):
72
59
  action: PendleTradePtRequestAction
73
60
  r"""Specifies the direction of the PT trade. Valid values are `BUY` (to buy PT) or `SELL` (to sell PT)."""
74
61
 
75
- token: PendleTradePtRequestToken
62
+ token: str
76
63
  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
64
 
78
65
  amount_in: PendleTradePtRequestAmountIn
@@ -1,7 +1,6 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from .token_enum import TokenEnum
5
4
  from compass_api_sdk.types import BaseModel
6
5
  from compass_api_sdk.utils import validate_const
7
6
  from enum import Enum
@@ -18,18 +17,6 @@ class PendleTradeYtParamsAction(str, Enum):
18
17
  SELL = "SELL"
19
18
 
20
19
 
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
20
  PendleTradeYtParamsAmountInTypedDict = TypeAliasType(
34
21
  "PendleTradeYtParamsAmountInTypedDict", Union[float, str]
35
22
  )
@@ -47,7 +34,7 @@ class PendleTradeYtParamsTypedDict(TypedDict):
47
34
  r"""The address of the market identifying which Yield Token (YT) you would like to trade."""
48
35
  action: PendleTradeYtParamsAction
49
36
  r"""Specifies the direction of the YT trade. Valid values are `BUY` (to buy YT) or `SELL` (to sell YT)."""
50
- token: PendleTradeYtParamsTokenTypedDict
37
+ token: str
51
38
  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
39
  amount_in: PendleTradeYtParamsAmountInTypedDict
53
40
  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`."""
@@ -63,7 +50,7 @@ class PendleTradeYtParams(BaseModel):
63
50
  action: PendleTradeYtParamsAction
64
51
  r"""Specifies the direction of the YT trade. Valid values are `BUY` (to buy YT) or `SELL` (to sell YT)."""
65
52
 
66
- token: PendleTradeYtParamsToken
53
+ token: str
67
54
  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
55
 
69
56
  amount_in: PendleTradeYtParamsAmountIn
@@ -1,7 +1,6 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from .token_enum import TokenEnum
5
4
  from compass_api_sdk.types import BaseModel
6
5
  from compass_api_sdk.utils import validate_const
7
6
  from enum import Enum
@@ -18,18 +17,6 @@ class PendleTradeYtRequestAction(str, Enum):
18
17
  SELL = "SELL"
19
18
 
20
19
 
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
20
  PendleTradeYtRequestAmountInTypedDict = TypeAliasType(
34
21
  "PendleTradeYtRequestAmountInTypedDict", Union[float, str]
35
22
  )
@@ -53,7 +40,7 @@ class PendleTradeYtRequestTypedDict(TypedDict):
53
40
  r"""The address of the market identifying which Yield Token (YT) you would like to trade."""
54
41
  action: PendleTradeYtRequestAction
55
42
  r"""Specifies the direction of the YT trade. Valid values are `BUY` (to buy YT) or `SELL` (to sell YT)."""
56
- token: PendleTradeYtRequestTokenTypedDict
43
+ token: str
57
44
  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
45
  amount_in: PendleTradeYtRequestAmountInTypedDict
59
46
  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`."""
@@ -72,7 +59,7 @@ class PendleTradeYtRequest(BaseModel):
72
59
  action: PendleTradeYtRequestAction
73
60
  r"""Specifies the direction of the YT trade. Valid values are `BUY` (to buy YT) or `SELL` (to sell YT)."""
74
61
 
75
- token: PendleTradeYtRequestToken
62
+ token: str
76
63
  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
64
 
78
65
  amount_in: PendleTradeYtRequestAmountIn