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
@@ -2,28 +2,27 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from compass_api_sdk.types import BaseModel
5
- from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata, validate_const
6
- import pydantic
7
- from pydantic.functional_validators import AfterValidator
8
- from typing import Literal, Optional
9
- from typing_extensions import Annotated, TypedDict
5
+ from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
6
+ from enum import Enum
7
+ from typing import Optional
8
+ from typing_extensions import Annotated, NotRequired, TypedDict
10
9
 
11
10
 
12
- class SkyPositionRequestTypedDict(TypedDict):
13
- chain: Literal["ethereum:mainnet"]
11
+ class V1SkyPositionChain(str, Enum):
12
+ ETHEREUM = "ethereum"
13
+
14
+
15
+ class V1SkyPositionRequestTypedDict(TypedDict):
16
+ chain: NotRequired[V1SkyPositionChain]
14
17
  user_address: str
15
18
  r"""The user address of the desired position."""
16
19
 
17
20
 
18
- class SkyPositionRequest(BaseModel):
19
- CHAIN: Annotated[
20
- Annotated[
21
- Optional[Literal["ethereum:mainnet"]],
22
- AfterValidator(validate_const("ethereum:mainnet")),
23
- ],
24
- pydantic.Field(alias="chain"),
21
+ class V1SkyPositionRequest(BaseModel):
22
+ chain: Annotated[
23
+ Optional[V1SkyPositionChain],
25
24
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
26
- ] = "ethereum:mainnet"
25
+ ] = V1SkyPositionChain.ETHEREUM
27
26
 
28
27
  user_address: Annotated[
29
28
  str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
@@ -7,15 +7,13 @@ from enum import Enum
7
7
  from typing_extensions import Annotated, TypedDict
8
8
 
9
9
 
10
- class TokenAddressChain(str, Enum):
11
- r"""The chain to use."""
10
+ class V1TokenAddressChain(str, Enum):
11
+ ARBITRUM = "arbitrum"
12
+ BASE = "base"
13
+ ETHEREUM = "ethereum"
12
14
 
13
- BASE_MAINNET = "base:mainnet"
14
- ETHEREUM_MAINNET = "ethereum:mainnet"
15
- ARBITRUM_MAINNET = "arbitrum:mainnet"
16
15
 
17
-
18
- class TokenAddressToken(str, Enum):
16
+ class V1TokenAddressToken(str, Enum):
19
17
  r"""A class representing the token.
20
18
 
21
19
  This class is used to represent the token in the system. Notice individual
@@ -63,28 +61,43 @@ class TokenAddressToken(str, Enum):
63
61
  EURS = "EURS"
64
62
  MAI = "MAI"
65
63
  USD_CE = "USDCe"
64
+ ETH = "ETH"
66
65
  AERO = "AERO"
67
66
  EUR = "EUR"
68
67
  VIRTUAL = "VIRTUAL"
69
68
  EZ_ETH = "ezETH"
69
+ CYBER = "CYBER"
70
+ WRS_ETH = "wrsETH"
71
+ E_BTC = "eBTC"
72
+ EURC = "EURC"
73
+ E_US_DE = "eUSDe"
74
+ FBTC = "FBTC"
75
+ LBTC = "LBTC"
76
+ PT_E_USDE_14_AUG2025 = "PT-eUSDE-14AUG2025"
77
+ PT_E_USDE_29_MAY2025 = "PT-eUSDE-29MAY2025"
78
+ PT_S_USDE_25_SEP2025 = "PT-sUSDE-25SEP2025"
79
+ PT_S_USDE_31_JUL2025 = "PT-sUSDE-31JUL2025"
80
+ PT_US_DE_31_JUL2025 = "PT-USDe-31JUL2025"
81
+ RLUSD = "RLUSD"
82
+ USD_0 = "USD₮0"
83
+ US_DB_C = "USDbC"
84
+ US_DTB = "USDtb"
70
85
 
71
86
 
72
- class TokenAddressRequestTypedDict(TypedDict):
73
- chain: TokenAddressChain
74
- r"""The chain to use."""
75
- token: TokenAddressToken
87
+ class V1TokenAddressRequestTypedDict(TypedDict):
88
+ chain: V1TokenAddressChain
89
+ token: V1TokenAddressToken
76
90
  r"""The token symbol to get the address for.."""
77
91
 
78
92
 
79
- class TokenAddressRequest(BaseModel):
93
+ class V1TokenAddressRequest(BaseModel):
80
94
  chain: Annotated[
81
- TokenAddressChain,
95
+ V1TokenAddressChain,
82
96
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
83
- ] = TokenAddressChain.ARBITRUM_MAINNET
84
- r"""The chain to use."""
97
+ ] = V1TokenAddressChain.ARBITRUM
85
98
 
86
99
  token: Annotated[
87
- TokenAddressToken,
100
+ V1TokenAddressToken,
88
101
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
89
- ] = TokenAddressToken.WETH
102
+ ] = V1TokenAddressToken.WETH
90
103
  r"""The token symbol to get the address for.."""
@@ -9,45 +9,41 @@ from typing import Union
9
9
  from typing_extensions import Annotated, TypeAliasType, TypedDict
10
10
 
11
11
 
12
- class TokenBalanceChain(str, Enum):
13
- r"""The chain to use."""
12
+ class V1TokenBalanceChain(str, Enum):
13
+ ARBITRUM = "arbitrum"
14
+ BASE = "base"
15
+ ETHEREUM = "ethereum"
14
16
 
15
- BASE_MAINNET = "base:mainnet"
16
- ETHEREUM_MAINNET = "ethereum:mainnet"
17
- ARBITRUM_MAINNET = "arbitrum:mainnet"
18
17
 
19
-
20
- TokenBalanceTokenTypedDict = TypeAliasType(
21
- "TokenBalanceTokenTypedDict", Union[TokenEnum, str]
18
+ V1TokenBalanceTokenTypedDict = TypeAliasType(
19
+ "V1TokenBalanceTokenTypedDict", Union[TokenEnum, str]
22
20
  )
23
21
  r"""The symbol of the token for which the balance is checked.."""
24
22
 
25
23
 
26
- TokenBalanceToken = TypeAliasType("TokenBalanceToken", Union[TokenEnum, str])
24
+ V1TokenBalanceToken = TypeAliasType("V1TokenBalanceToken", Union[TokenEnum, str])
27
25
  r"""The symbol of the token for which the balance is checked.."""
28
26
 
29
27
 
30
- class TokenBalanceRequestTypedDict(TypedDict):
31
- token: TokenBalanceTokenTypedDict
28
+ class V1TokenBalanceRequestTypedDict(TypedDict):
29
+ token: V1TokenBalanceTokenTypedDict
32
30
  r"""The symbol of the token for which the balance is checked.."""
33
- chain: TokenBalanceChain
34
- r"""The chain to use."""
31
+ chain: V1TokenBalanceChain
35
32
  user: str
36
33
  r"""The user to get the ERC20 balance of."""
37
34
 
38
35
 
39
- class TokenBalanceRequest(BaseModel):
36
+ class V1TokenBalanceRequest(BaseModel):
40
37
  token: Annotated[
41
- TokenBalanceToken,
38
+ V1TokenBalanceToken,
42
39
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
43
40
  ]
44
41
  r"""The symbol of the token for which the balance is checked.."""
45
42
 
46
43
  chain: Annotated[
47
- TokenBalanceChain,
44
+ V1TokenBalanceChain,
48
45
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
49
- ] = TokenBalanceChain.ARBITRUM_MAINNET
50
- r"""The chain to use."""
46
+ ] = V1TokenBalanceChain.ARBITRUM
51
47
 
52
48
  user: Annotated[
53
49
  str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
@@ -16,45 +16,41 @@ from typing import Union
16
16
  from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
17
17
 
18
18
 
19
- class TokenPriceChain(str, Enum):
20
- r"""The chain to use."""
19
+ class V1TokenPriceChain(str, Enum):
20
+ ARBITRUM = "arbitrum"
21
+ BASE = "base"
22
+ ETHEREUM = "ethereum"
21
23
 
22
- BASE_MAINNET = "base:mainnet"
23
- ETHEREUM_MAINNET = "ethereum:mainnet"
24
- ARBITRUM_MAINNET = "arbitrum:mainnet"
25
24
 
26
-
27
- TokenPriceTokenTypedDict = TypeAliasType(
28
- "TokenPriceTokenTypedDict", Union[TokenEnum, str]
25
+ V1TokenPriceTokenTypedDict = TypeAliasType(
26
+ "V1TokenPriceTokenTypedDict", Union[TokenEnum, str]
29
27
  )
30
28
  r"""The symbol or address of the token for which to get the price."""
31
29
 
32
30
 
33
- TokenPriceToken = TypeAliasType("TokenPriceToken", Union[TokenEnum, str])
31
+ V1TokenPriceToken = TypeAliasType("V1TokenPriceToken", Union[TokenEnum, str])
34
32
  r"""The symbol or address of the token for which to get the price."""
35
33
 
36
34
 
37
- class TokenPriceRequestTypedDict(TypedDict):
38
- token: TokenPriceTokenTypedDict
35
+ class V1TokenPriceRequestTypedDict(TypedDict):
36
+ token: V1TokenPriceTokenTypedDict
39
37
  r"""The symbol or address of the token for which to get the price."""
40
- chain: TokenPriceChain
41
- r"""The chain to use."""
38
+ chain: V1TokenPriceChain
42
39
  block: NotRequired[Nullable[int]]
43
40
  r"""Optional block number (defaults to latest)."""
44
41
 
45
42
 
46
- class TokenPriceRequest(BaseModel):
43
+ class V1TokenPriceRequest(BaseModel):
47
44
  token: Annotated[
48
- TokenPriceToken,
45
+ V1TokenPriceToken,
49
46
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
50
47
  ]
51
48
  r"""The symbol or address of the token for which to get the price."""
52
49
 
53
50
  chain: Annotated[
54
- TokenPriceChain,
51
+ V1TokenPriceChain,
55
52
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
56
- ] = TokenPriceChain.ETHEREUM_MAINNET
57
- r"""The chain to use."""
53
+ ] = V1TokenPriceChain.ETHEREUM
58
54
 
59
55
  block: Annotated[
60
56
  OptionalNullable[int],
@@ -0,0 +1,24 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .batcheduseroperationsresponse import (
5
+ BatchedUserOperationsResponse,
6
+ BatchedUserOperationsResponseTypedDict,
7
+ )
8
+ from .transactionresponse import TransactionResponse, TransactionResponseTypedDict
9
+ from typing import Union
10
+ from typing_extensions import TypeAliasType
11
+
12
+
13
+ ResponseV1TransactionBundlerAaveLoopTypedDict = TypeAliasType(
14
+ "ResponseV1TransactionBundlerAaveLoopTypedDict",
15
+ Union[TransactionResponseTypedDict, BatchedUserOperationsResponseTypedDict],
16
+ )
17
+ r"""Successful Response"""
18
+
19
+
20
+ ResponseV1TransactionBundlerAaveLoop = TypeAliasType(
21
+ "ResponseV1TransactionBundlerAaveLoop",
22
+ Union[TransactionResponse, BatchedUserOperationsResponse],
23
+ )
24
+ r"""Successful Response"""
@@ -7,27 +7,23 @@ from enum import Enum
7
7
  from typing_extensions import Annotated, TypedDict
8
8
 
9
9
 
10
- class UniswapLiquidityProvisionInRangeChain(str, Enum):
11
- r"""The chain to use."""
10
+ class V1UniswapLiquidityProvisionInRangeChain(str, Enum):
11
+ ARBITRUM = "arbitrum"
12
+ BASE = "base"
13
+ ETHEREUM = "ethereum"
12
14
 
13
- BASE_MAINNET = "base:mainnet"
14
- ETHEREUM_MAINNET = "ethereum:mainnet"
15
- ARBITRUM_MAINNET = "arbitrum:mainnet"
16
15
 
17
-
18
- class UniswapLiquidityProvisionInRangeRequestTypedDict(TypedDict):
19
- chain: UniswapLiquidityProvisionInRangeChain
20
- r"""The chain to use."""
16
+ class V1UniswapLiquidityProvisionInRangeRequestTypedDict(TypedDict):
17
+ chain: V1UniswapLiquidityProvisionInRangeChain
21
18
  token_id: int
22
19
  r"""Token ID of the NFT representing the liquidity provisioned position."""
23
20
 
24
21
 
25
- class UniswapLiquidityProvisionInRangeRequest(BaseModel):
22
+ class V1UniswapLiquidityProvisionInRangeRequest(BaseModel):
26
23
  chain: Annotated[
27
- UniswapLiquidityProvisionInRangeChain,
24
+ V1UniswapLiquidityProvisionInRangeChain,
28
25
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
29
- ] = UniswapLiquidityProvisionInRangeChain.ARBITRUM_MAINNET
30
- r"""The chain to use."""
26
+ ] = V1UniswapLiquidityProvisionInRangeChain.ARBITRUM
31
27
 
32
28
  token_id: Annotated[
33
29
  int, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
@@ -8,27 +8,23 @@ from typing import Optional
8
8
  from typing_extensions import Annotated, NotRequired, TypedDict
9
9
 
10
10
 
11
- class AerodromeSlipstreamLiquidityProvisionPositionsChain(str, Enum):
12
- r"""The chain to use."""
11
+ class V1UniswapLiquidityProvisionPositionsChain(str, Enum):
12
+ ARBITRUM = "arbitrum"
13
+ BASE = "base"
14
+ ETHEREUM = "ethereum"
13
15
 
14
- BASE_MAINNET = "base:mainnet"
15
- ETHEREUM_MAINNET = "ethereum:mainnet"
16
- ARBITRUM_MAINNET = "arbitrum:mainnet"
17
16
 
18
-
19
- class AerodromeSlipstreamLiquidityProvisionPositionsRequestTypedDict(TypedDict):
20
- chain: AerodromeSlipstreamLiquidityProvisionPositionsChain
21
- r"""The chain to use."""
17
+ class V1UniswapLiquidityProvisionPositionsRequestTypedDict(TypedDict):
18
+ chain: V1UniswapLiquidityProvisionPositionsChain
22
19
  user: NotRequired[str]
23
20
  r"""The user to get positions for."""
24
21
 
25
22
 
26
- class AerodromeSlipstreamLiquidityProvisionPositionsRequest(BaseModel):
23
+ class V1UniswapLiquidityProvisionPositionsRequest(BaseModel):
27
24
  chain: Annotated[
28
- AerodromeSlipstreamLiquidityProvisionPositionsChain,
25
+ V1UniswapLiquidityProvisionPositionsChain,
29
26
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
30
- ] = AerodromeSlipstreamLiquidityProvisionPositionsChain.BASE_MAINNET
31
- r"""The chain to use."""
27
+ ] = V1UniswapLiquidityProvisionPositionsChain.ARBITRUM
32
28
 
33
29
  user: Annotated[
34
30
  Optional[str],
@@ -7,15 +7,13 @@ from enum import Enum
7
7
  from typing_extensions import Annotated, TypedDict
8
8
 
9
9
 
10
- class UniswapPoolPriceChain(str, Enum):
11
- r"""The chain to use."""
10
+ class V1UniswapPoolPriceChain(str, Enum):
11
+ ARBITRUM = "arbitrum"
12
+ BASE = "base"
13
+ ETHEREUM = "ethereum"
12
14
 
13
- BASE_MAINNET = "base:mainnet"
14
- ETHEREUM_MAINNET = "ethereum:mainnet"
15
- ARBITRUM_MAINNET = "arbitrum:mainnet"
16
15
 
17
-
18
- class UniswapPoolPriceTokenInToken(str, Enum):
16
+ class V1UniswapPoolPriceTokenInToken(str, Enum):
19
17
  r"""A class representing the token.
20
18
 
21
19
  This class is used to represent the token in the system. Notice individual
@@ -63,13 +61,30 @@ class UniswapPoolPriceTokenInToken(str, Enum):
63
61
  EURS = "EURS"
64
62
  MAI = "MAI"
65
63
  USD_CE = "USDCe"
64
+ ETH = "ETH"
66
65
  AERO = "AERO"
67
66
  EUR = "EUR"
68
67
  VIRTUAL = "VIRTUAL"
69
68
  EZ_ETH = "ezETH"
70
-
71
-
72
- class UniswapPoolPriceTokenOutToken(str, Enum):
69
+ CYBER = "CYBER"
70
+ WRS_ETH = "wrsETH"
71
+ E_BTC = "eBTC"
72
+ EURC = "EURC"
73
+ E_US_DE = "eUSDe"
74
+ FBTC = "FBTC"
75
+ LBTC = "LBTC"
76
+ PT_E_USDE_14_AUG2025 = "PT-eUSDE-14AUG2025"
77
+ PT_E_USDE_29_MAY2025 = "PT-eUSDE-29MAY2025"
78
+ PT_S_USDE_25_SEP2025 = "PT-sUSDE-25SEP2025"
79
+ PT_S_USDE_31_JUL2025 = "PT-sUSDE-31JUL2025"
80
+ PT_US_DE_31_JUL2025 = "PT-USDe-31JUL2025"
81
+ RLUSD = "RLUSD"
82
+ USD_0 = "USD₮0"
83
+ US_DB_C = "USDbC"
84
+ US_DTB = "USDtb"
85
+
86
+
87
+ class V1UniswapPoolPriceTokenOutToken(str, Enum):
73
88
  r"""A class representing the token.
74
89
 
75
90
  This class is used to represent the token in the system. Notice individual
@@ -117,13 +132,30 @@ class UniswapPoolPriceTokenOutToken(str, Enum):
117
132
  EURS = "EURS"
118
133
  MAI = "MAI"
119
134
  USD_CE = "USDCe"
135
+ ETH = "ETH"
120
136
  AERO = "AERO"
121
137
  EUR = "EUR"
122
138
  VIRTUAL = "VIRTUAL"
123
139
  EZ_ETH = "ezETH"
124
-
125
-
126
- class UniswapPoolPriceFeeEnum(str, Enum):
140
+ CYBER = "CYBER"
141
+ WRS_ETH = "wrsETH"
142
+ E_BTC = "eBTC"
143
+ EURC = "EURC"
144
+ E_US_DE = "eUSDe"
145
+ FBTC = "FBTC"
146
+ LBTC = "LBTC"
147
+ PT_E_USDE_14_AUG2025 = "PT-eUSDE-14AUG2025"
148
+ PT_E_USDE_29_MAY2025 = "PT-eUSDE-29MAY2025"
149
+ PT_S_USDE_25_SEP2025 = "PT-sUSDE-25SEP2025"
150
+ PT_S_USDE_31_JUL2025 = "PT-sUSDE-31JUL2025"
151
+ PT_US_DE_31_JUL2025 = "PT-USDe-31JUL2025"
152
+ RLUSD = "RLUSD"
153
+ USD_0 = "USD₮0"
154
+ US_DB_C = "USDbC"
155
+ US_DTB = "USDtb"
156
+
157
+
158
+ class V1UniswapPoolPriceFeeEnum(str, Enum):
127
159
  r"""The transaction fee of a Uniswap pool in bips.
128
160
 
129
161
  Uniswap supports 4 different fee levels.
@@ -135,38 +167,36 @@ class UniswapPoolPriceFeeEnum(str, Enum):
135
167
  ONE_DOT_0 = "1.0"
136
168
 
137
169
 
138
- class UniswapPoolPriceRequestTypedDict(TypedDict):
139
- chain: UniswapPoolPriceChain
140
- r"""The chain to use."""
141
- token_in: UniswapPoolPriceTokenInToken
170
+ class V1UniswapPoolPriceRequestTypedDict(TypedDict):
171
+ chain: V1UniswapPoolPriceChain
172
+ token_in: V1UniswapPoolPriceTokenInToken
142
173
  r"""The symbol of a token in the pool"""
143
- token_out: UniswapPoolPriceTokenOutToken
174
+ token_out: V1UniswapPoolPriceTokenOutToken
144
175
  r"""The symbol of a token in the pool"""
145
- fee: UniswapPoolPriceFeeEnum
176
+ fee: V1UniswapPoolPriceFeeEnum
146
177
  r"""The fee of the pool"""
147
178
 
148
179
 
149
- class UniswapPoolPriceRequest(BaseModel):
180
+ class V1UniswapPoolPriceRequest(BaseModel):
150
181
  chain: Annotated[
151
- UniswapPoolPriceChain,
182
+ V1UniswapPoolPriceChain,
152
183
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
153
- ] = UniswapPoolPriceChain.ARBITRUM_MAINNET
154
- r"""The chain to use."""
184
+ ] = V1UniswapPoolPriceChain.ARBITRUM
155
185
 
156
186
  token_in: Annotated[
157
- UniswapPoolPriceTokenInToken,
187
+ V1UniswapPoolPriceTokenInToken,
158
188
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
159
- ] = UniswapPoolPriceTokenInToken.USDC
189
+ ] = V1UniswapPoolPriceTokenInToken.USDC
160
190
  r"""The symbol of a token in the pool"""
161
191
 
162
192
  token_out: Annotated[
163
- UniswapPoolPriceTokenOutToken,
193
+ V1UniswapPoolPriceTokenOutToken,
164
194
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
165
- ] = UniswapPoolPriceTokenOutToken.USDT
195
+ ] = V1UniswapPoolPriceTokenOutToken.USDT
166
196
  r"""The symbol of a token in the pool"""
167
197
 
168
198
  fee: Annotated[
169
- UniswapPoolPriceFeeEnum,
199
+ V1UniswapPoolPriceFeeEnum,
170
200
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
171
- ] = UniswapPoolPriceFeeEnum.ZERO_DOT_01
201
+ ] = V1UniswapPoolPriceFeeEnum.ZERO_DOT_01
172
202
  r"""The fee of the pool"""
@@ -8,15 +8,13 @@ from typing import Union
8
8
  from typing_extensions import Annotated, TypeAliasType, TypedDict
9
9
 
10
10
 
11
- class UniswapQuoteBuyExactlyChain(str, Enum):
12
- r"""The chain to use."""
11
+ class V1UniswapQuoteBuyExactlyChain(str, Enum):
12
+ ARBITRUM = "arbitrum"
13
+ BASE = "base"
14
+ ETHEREUM = "ethereum"
13
15
 
14
- BASE_MAINNET = "base:mainnet"
15
- ETHEREUM_MAINNET = "ethereum:mainnet"
16
- ARBITRUM_MAINNET = "arbitrum:mainnet"
17
16
 
18
-
19
- class UniswapQuoteBuyExactlyTokenInToken(str, Enum):
17
+ class V1UniswapQuoteBuyExactlyTokenInToken(str, Enum):
20
18
  r"""A class representing the token.
21
19
 
22
20
  This class is used to represent the token in the system. Notice individual
@@ -64,13 +62,30 @@ class UniswapQuoteBuyExactlyTokenInToken(str, Enum):
64
62
  EURS = "EURS"
65
63
  MAI = "MAI"
66
64
  USD_CE = "USDCe"
65
+ ETH = "ETH"
67
66
  AERO = "AERO"
68
67
  EUR = "EUR"
69
68
  VIRTUAL = "VIRTUAL"
70
69
  EZ_ETH = "ezETH"
71
-
72
-
73
- class UniswapQuoteBuyExactlyTokenOutToken(str, Enum):
70
+ CYBER = "CYBER"
71
+ WRS_ETH = "wrsETH"
72
+ E_BTC = "eBTC"
73
+ EURC = "EURC"
74
+ E_US_DE = "eUSDe"
75
+ FBTC = "FBTC"
76
+ LBTC = "LBTC"
77
+ PT_E_USDE_14_AUG2025 = "PT-eUSDE-14AUG2025"
78
+ PT_E_USDE_29_MAY2025 = "PT-eUSDE-29MAY2025"
79
+ PT_S_USDE_25_SEP2025 = "PT-sUSDE-25SEP2025"
80
+ PT_S_USDE_31_JUL2025 = "PT-sUSDE-31JUL2025"
81
+ PT_US_DE_31_JUL2025 = "PT-USDe-31JUL2025"
82
+ RLUSD = "RLUSD"
83
+ USD_0 = "USD₮0"
84
+ US_DB_C = "USDbC"
85
+ US_DTB = "USDtb"
86
+
87
+
88
+ class V1UniswapQuoteBuyExactlyTokenOutToken(str, Enum):
74
89
  r"""A class representing the token.
75
90
 
76
91
  This class is used to represent the token in the system. Notice individual
@@ -118,13 +133,30 @@ class UniswapQuoteBuyExactlyTokenOutToken(str, Enum):
118
133
  EURS = "EURS"
119
134
  MAI = "MAI"
120
135
  USD_CE = "USDCe"
136
+ ETH = "ETH"
121
137
  AERO = "AERO"
122
138
  EUR = "EUR"
123
139
  VIRTUAL = "VIRTUAL"
124
140
  EZ_ETH = "ezETH"
125
-
126
-
127
- class UniswapQuoteBuyExactlyFeeEnum(str, Enum):
141
+ CYBER = "CYBER"
142
+ WRS_ETH = "wrsETH"
143
+ E_BTC = "eBTC"
144
+ EURC = "EURC"
145
+ E_US_DE = "eUSDe"
146
+ FBTC = "FBTC"
147
+ LBTC = "LBTC"
148
+ PT_E_USDE_14_AUG2025 = "PT-eUSDE-14AUG2025"
149
+ PT_E_USDE_29_MAY2025 = "PT-eUSDE-29MAY2025"
150
+ PT_S_USDE_25_SEP2025 = "PT-sUSDE-25SEP2025"
151
+ PT_S_USDE_31_JUL2025 = "PT-sUSDE-31JUL2025"
152
+ PT_US_DE_31_JUL2025 = "PT-USDe-31JUL2025"
153
+ RLUSD = "RLUSD"
154
+ USD_0 = "USD₮0"
155
+ US_DB_C = "USDbC"
156
+ US_DTB = "USDtb"
157
+
158
+
159
+ class V1UniswapQuoteBuyExactlyFeeEnum(str, Enum):
128
160
  r"""The transaction fee of a Uniswap pool in bips.
129
161
 
130
162
  Uniswap supports 4 different fee levels.
@@ -136,58 +168,56 @@ class UniswapQuoteBuyExactlyFeeEnum(str, Enum):
136
168
  ONE_DOT_0 = "1.0"
137
169
 
138
170
 
139
- UniswapQuoteBuyExactlyAmountOutTypedDict = TypeAliasType(
140
- "UniswapQuoteBuyExactlyAmountOutTypedDict", Union[float, str]
171
+ V1UniswapQuoteBuyExactlyAmountOutTypedDict = TypeAliasType(
172
+ "V1UniswapQuoteBuyExactlyAmountOutTypedDict", Union[float, str]
141
173
  )
142
174
  r"""The amount of the token to swap to"""
143
175
 
144
176
 
145
- UniswapQuoteBuyExactlyAmountOut = TypeAliasType(
146
- "UniswapQuoteBuyExactlyAmountOut", Union[float, str]
177
+ V1UniswapQuoteBuyExactlyAmountOut = TypeAliasType(
178
+ "V1UniswapQuoteBuyExactlyAmountOut", Union[float, str]
147
179
  )
148
180
  r"""The amount of the token to swap to"""
149
181
 
150
182
 
151
- class UniswapQuoteBuyExactlyRequestTypedDict(TypedDict):
152
- amount_out: UniswapQuoteBuyExactlyAmountOutTypedDict
183
+ class V1UniswapQuoteBuyExactlyRequestTypedDict(TypedDict):
184
+ amount_out: V1UniswapQuoteBuyExactlyAmountOutTypedDict
153
185
  r"""The amount of the token to swap to"""
154
- chain: UniswapQuoteBuyExactlyChain
155
- r"""The chain to use."""
156
- token_in: UniswapQuoteBuyExactlyTokenInToken
186
+ chain: V1UniswapQuoteBuyExactlyChain
187
+ token_in: V1UniswapQuoteBuyExactlyTokenInToken
157
188
  r"""The symbol of the token to swap from."""
158
- token_out: UniswapQuoteBuyExactlyTokenOutToken
189
+ token_out: V1UniswapQuoteBuyExactlyTokenOutToken
159
190
  r"""The symbol of the token to swap to."""
160
- fee: UniswapQuoteBuyExactlyFeeEnum
191
+ fee: V1UniswapQuoteBuyExactlyFeeEnum
161
192
  r"""The fee to pay for the swap"""
162
193
 
163
194
 
164
- class UniswapQuoteBuyExactlyRequest(BaseModel):
195
+ class V1UniswapQuoteBuyExactlyRequest(BaseModel):
165
196
  amount_out: Annotated[
166
- UniswapQuoteBuyExactlyAmountOut,
197
+ V1UniswapQuoteBuyExactlyAmountOut,
167
198
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
168
199
  ]
169
200
  r"""The amount of the token to swap to"""
170
201
 
171
202
  chain: Annotated[
172
- UniswapQuoteBuyExactlyChain,
203
+ V1UniswapQuoteBuyExactlyChain,
173
204
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
174
- ] = UniswapQuoteBuyExactlyChain.ARBITRUM_MAINNET
175
- r"""The chain to use."""
205
+ ] = V1UniswapQuoteBuyExactlyChain.ARBITRUM
176
206
 
177
207
  token_in: Annotated[
178
- UniswapQuoteBuyExactlyTokenInToken,
208
+ V1UniswapQuoteBuyExactlyTokenInToken,
179
209
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
180
- ] = UniswapQuoteBuyExactlyTokenInToken.USDC
210
+ ] = V1UniswapQuoteBuyExactlyTokenInToken.USDC
181
211
  r"""The symbol of the token to swap from."""
182
212
 
183
213
  token_out: Annotated[
184
- UniswapQuoteBuyExactlyTokenOutToken,
214
+ V1UniswapQuoteBuyExactlyTokenOutToken,
185
215
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
186
- ] = UniswapQuoteBuyExactlyTokenOutToken.USDT
216
+ ] = V1UniswapQuoteBuyExactlyTokenOutToken.USDT
187
217
  r"""The symbol of the token to swap to."""
188
218
 
189
219
  fee: Annotated[
190
- UniswapQuoteBuyExactlyFeeEnum,
220
+ V1UniswapQuoteBuyExactlyFeeEnum,
191
221
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
192
- ] = UniswapQuoteBuyExactlyFeeEnum.ZERO_DOT_01
222
+ ] = V1UniswapQuoteBuyExactlyFeeEnum.ZERO_DOT_01
193
223
  r"""The fee to pay for the swap"""