compass_api_sdk 1.1.1rc0__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.1rc0.dist-info → compass_api_sdk-1.1.3rc0.dist-info}/METADATA +5 -7
  73. {compass_api_sdk-1.1.1rc0.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.1rc0.dist-info → compass_api_sdk-1.1.3rc0.dist-info}/WHEEL +0 -0
@@ -13,160 +13,6 @@ class V1UniswapPoolPriceChain(str, Enum):
13
13
  ETHEREUM = "ethereum"
14
14
 
15
15
 
16
- class V1UniswapPoolPriceTokenInToken(str, Enum):
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
- """
22
-
23
- ONE_INCH = "1INCH"
24
- AAVE = "AAVE"
25
- AERO = "AERO"
26
- ARB = "ARB"
27
- BAL = "BAL"
28
- BNKR = "BNKR"
29
- CB_BTC = "cbBTC"
30
- CB_ETH = "cbETH"
31
- CLANKER = "CLANKER"
32
- COPI = "COPI"
33
- CRV = "CRV"
34
- CRV_USD = "crvUSD"
35
- CYBER = "CYBER"
36
- DAI = "DAI"
37
- DOGINME = "DOGINME"
38
- E_BTC = "eBTC"
39
- ENS = "ENS"
40
- ETH = "ETH"
41
- ETHFI = "ETHFI"
42
- ET_HX = "ETHx"
43
- EURC = "EURC"
44
- EUR = "EUR"
45
- EURS = "EURS"
46
- E_US_DE = "eUSDe"
47
- EZ_ETH = "ezETH"
48
- FBTC = "FBTC"
49
- FRAX = "FRAX"
50
- FXS = "FXS"
51
- GHO = "GHO"
52
- KNC = "KNC"
53
- LBTC = "LBTC"
54
- LDO = "LDO"
55
- LINK = "LINK"
56
- LS_ETH = "LsETH"
57
- LUSD = "LUSD"
58
- MAI = "MAI"
59
- MKR = "MKR"
60
- OS_ETH = "osETH"
61
- PT_E_USDE_14_AUG2025 = "PT-eUSDE-14AUG2025"
62
- PT_E_USDE_29_MAY2025 = "PT-eUSDE-29MAY2025"
63
- PT_S_USDE_25_SEP2025 = "PT-sUSDE-25SEP2025"
64
- PT_S_USDE_31_JUL2025 = "PT-sUSDE-31JUL2025"
65
- PT_US_DE_31_JUL2025 = "PT-USDe-31JUL2025"
66
- PYUSD = "PYUSD"
67
- R_ETH = "rETH"
68
- RLUSD = "RLUSD"
69
- RPL = "RPL"
70
- RS_ETH = "rsETH"
71
- S_DAI = "sDAI"
72
- SNX = "SNX"
73
- STG = "STG"
74
- S_US_DE = "sUSDe"
75
- T_BTC = "tBTC"
76
- UNI = "UNI"
77
- US_DB_C = "USDbC"
78
- USD_CE = "USDCe"
79
- USDC = "USDC"
80
- US_DE = "USDe"
81
- USDS = "USDS"
82
- US_DTB = "USDtb"
83
- USDT = "USDT"
84
- VIRTUAL = "VIRTUAL"
85
- WBTC = "WBTC"
86
- WE_ETH = "weETH"
87
- WELL = "WELL"
88
- WETH = "WETH"
89
- WRS_ETH = "wrsETH"
90
- WST_ETH = "wstETH"
91
-
92
-
93
- class V1UniswapPoolPriceTokenOutToken(str, Enum):
94
- r"""A class representing the token.
95
-
96
- This class is used to represent the token in the system. Notice individual
97
- endpoints' documentation where per chain tokens are presented.
98
- """
99
-
100
- ONE_INCH = "1INCH"
101
- AAVE = "AAVE"
102
- AERO = "AERO"
103
- ARB = "ARB"
104
- BAL = "BAL"
105
- BNKR = "BNKR"
106
- CB_BTC = "cbBTC"
107
- CB_ETH = "cbETH"
108
- CLANKER = "CLANKER"
109
- COPI = "COPI"
110
- CRV = "CRV"
111
- CRV_USD = "crvUSD"
112
- CYBER = "CYBER"
113
- DAI = "DAI"
114
- DOGINME = "DOGINME"
115
- E_BTC = "eBTC"
116
- ENS = "ENS"
117
- ETH = "ETH"
118
- ETHFI = "ETHFI"
119
- ET_HX = "ETHx"
120
- EURC = "EURC"
121
- EUR = "EUR"
122
- EURS = "EURS"
123
- E_US_DE = "eUSDe"
124
- EZ_ETH = "ezETH"
125
- FBTC = "FBTC"
126
- FRAX = "FRAX"
127
- FXS = "FXS"
128
- GHO = "GHO"
129
- KNC = "KNC"
130
- LBTC = "LBTC"
131
- LDO = "LDO"
132
- LINK = "LINK"
133
- LS_ETH = "LsETH"
134
- LUSD = "LUSD"
135
- MAI = "MAI"
136
- MKR = "MKR"
137
- OS_ETH = "osETH"
138
- PT_E_USDE_14_AUG2025 = "PT-eUSDE-14AUG2025"
139
- PT_E_USDE_29_MAY2025 = "PT-eUSDE-29MAY2025"
140
- PT_S_USDE_25_SEP2025 = "PT-sUSDE-25SEP2025"
141
- PT_S_USDE_31_JUL2025 = "PT-sUSDE-31JUL2025"
142
- PT_US_DE_31_JUL2025 = "PT-USDe-31JUL2025"
143
- PYUSD = "PYUSD"
144
- R_ETH = "rETH"
145
- RLUSD = "RLUSD"
146
- RPL = "RPL"
147
- RS_ETH = "rsETH"
148
- S_DAI = "sDAI"
149
- SNX = "SNX"
150
- STG = "STG"
151
- S_US_DE = "sUSDe"
152
- T_BTC = "tBTC"
153
- UNI = "UNI"
154
- US_DB_C = "USDbC"
155
- USD_CE = "USDCe"
156
- USDC = "USDC"
157
- US_DE = "USDe"
158
- USDS = "USDS"
159
- US_DTB = "USDtb"
160
- USDT = "USDT"
161
- VIRTUAL = "VIRTUAL"
162
- WBTC = "WBTC"
163
- WE_ETH = "weETH"
164
- WELL = "WELL"
165
- WETH = "WETH"
166
- WRS_ETH = "wrsETH"
167
- WST_ETH = "wstETH"
168
-
169
-
170
16
  class V1UniswapPoolPriceFeeEnum(str, Enum):
171
17
  r"""The transaction fee of a Uniswap pool in bips.
172
18
 
@@ -181,10 +27,10 @@ class V1UniswapPoolPriceFeeEnum(str, Enum):
181
27
 
182
28
  class V1UniswapPoolPriceRequestTypedDict(TypedDict):
183
29
  chain: V1UniswapPoolPriceChain
184
- token_in: V1UniswapPoolPriceTokenInToken
185
- r"""The symbol of a token in the pool"""
186
- token_out: V1UniswapPoolPriceTokenOutToken
187
- r"""The symbol of a token in the pool"""
30
+ token_in: str
31
+ r"""The symbol or address of a token in the pool"""
32
+ token_out: str
33
+ r"""The symbol or address of a token in the pool"""
188
34
  fee: V1UniswapPoolPriceFeeEnum
189
35
  r"""The fee of the pool"""
190
36
 
@@ -196,16 +42,14 @@ class V1UniswapPoolPriceRequest(BaseModel):
196
42
  ] = V1UniswapPoolPriceChain.ARBITRUM
197
43
 
198
44
  token_in: Annotated[
199
- V1UniswapPoolPriceTokenInToken,
200
- FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
201
- ] = V1UniswapPoolPriceTokenInToken.USDC
202
- r"""The symbol of a token in the pool"""
45
+ str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
46
+ ] = "USDC"
47
+ r"""The symbol or address of a token in the pool"""
203
48
 
204
49
  token_out: Annotated[
205
- V1UniswapPoolPriceTokenOutToken,
206
- FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
207
- ] = V1UniswapPoolPriceTokenOutToken.USDT
208
- r"""The symbol of a token in the pool"""
50
+ str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
51
+ ] = "USDT"
52
+ r"""The symbol or address of a token in the pool"""
209
53
 
210
54
  fee: Annotated[
211
55
  V1UniswapPoolPriceFeeEnum,
@@ -14,160 +14,6 @@ class V1UniswapQuoteBuyExactlyChain(str, Enum):
14
14
  ETHEREUM = "ethereum"
15
15
 
16
16
 
17
- class V1UniswapQuoteBuyExactlyTokenInToken(str, Enum):
18
- r"""A class representing the token.
19
-
20
- This class is used to represent the token in the system. Notice individual
21
- endpoints' documentation where per chain tokens are presented.
22
- """
23
-
24
- ONE_INCH = "1INCH"
25
- AAVE = "AAVE"
26
- AERO = "AERO"
27
- ARB = "ARB"
28
- BAL = "BAL"
29
- BNKR = "BNKR"
30
- CB_BTC = "cbBTC"
31
- CB_ETH = "cbETH"
32
- CLANKER = "CLANKER"
33
- COPI = "COPI"
34
- CRV = "CRV"
35
- CRV_USD = "crvUSD"
36
- CYBER = "CYBER"
37
- DAI = "DAI"
38
- DOGINME = "DOGINME"
39
- E_BTC = "eBTC"
40
- ENS = "ENS"
41
- ETH = "ETH"
42
- ETHFI = "ETHFI"
43
- ET_HX = "ETHx"
44
- EURC = "EURC"
45
- EUR = "EUR"
46
- EURS = "EURS"
47
- E_US_DE = "eUSDe"
48
- EZ_ETH = "ezETH"
49
- FBTC = "FBTC"
50
- FRAX = "FRAX"
51
- FXS = "FXS"
52
- GHO = "GHO"
53
- KNC = "KNC"
54
- LBTC = "LBTC"
55
- LDO = "LDO"
56
- LINK = "LINK"
57
- LS_ETH = "LsETH"
58
- LUSD = "LUSD"
59
- MAI = "MAI"
60
- MKR = "MKR"
61
- OS_ETH = "osETH"
62
- PT_E_USDE_14_AUG2025 = "PT-eUSDE-14AUG2025"
63
- PT_E_USDE_29_MAY2025 = "PT-eUSDE-29MAY2025"
64
- PT_S_USDE_25_SEP2025 = "PT-sUSDE-25SEP2025"
65
- PT_S_USDE_31_JUL2025 = "PT-sUSDE-31JUL2025"
66
- PT_US_DE_31_JUL2025 = "PT-USDe-31JUL2025"
67
- PYUSD = "PYUSD"
68
- R_ETH = "rETH"
69
- RLUSD = "RLUSD"
70
- RPL = "RPL"
71
- RS_ETH = "rsETH"
72
- S_DAI = "sDAI"
73
- SNX = "SNX"
74
- STG = "STG"
75
- S_US_DE = "sUSDe"
76
- T_BTC = "tBTC"
77
- UNI = "UNI"
78
- US_DB_C = "USDbC"
79
- USD_CE = "USDCe"
80
- USDC = "USDC"
81
- US_DE = "USDe"
82
- USDS = "USDS"
83
- US_DTB = "USDtb"
84
- USDT = "USDT"
85
- VIRTUAL = "VIRTUAL"
86
- WBTC = "WBTC"
87
- WE_ETH = "weETH"
88
- WELL = "WELL"
89
- WETH = "WETH"
90
- WRS_ETH = "wrsETH"
91
- WST_ETH = "wstETH"
92
-
93
-
94
- class V1UniswapQuoteBuyExactlyTokenOutToken(str, Enum):
95
- r"""A class representing the token.
96
-
97
- This class is used to represent the token in the system. Notice individual
98
- endpoints' documentation where per chain tokens are presented.
99
- """
100
-
101
- ONE_INCH = "1INCH"
102
- AAVE = "AAVE"
103
- AERO = "AERO"
104
- ARB = "ARB"
105
- BAL = "BAL"
106
- BNKR = "BNKR"
107
- CB_BTC = "cbBTC"
108
- CB_ETH = "cbETH"
109
- CLANKER = "CLANKER"
110
- COPI = "COPI"
111
- CRV = "CRV"
112
- CRV_USD = "crvUSD"
113
- CYBER = "CYBER"
114
- DAI = "DAI"
115
- DOGINME = "DOGINME"
116
- E_BTC = "eBTC"
117
- ENS = "ENS"
118
- ETH = "ETH"
119
- ETHFI = "ETHFI"
120
- ET_HX = "ETHx"
121
- EURC = "EURC"
122
- EUR = "EUR"
123
- EURS = "EURS"
124
- E_US_DE = "eUSDe"
125
- EZ_ETH = "ezETH"
126
- FBTC = "FBTC"
127
- FRAX = "FRAX"
128
- FXS = "FXS"
129
- GHO = "GHO"
130
- KNC = "KNC"
131
- LBTC = "LBTC"
132
- LDO = "LDO"
133
- LINK = "LINK"
134
- LS_ETH = "LsETH"
135
- LUSD = "LUSD"
136
- MAI = "MAI"
137
- MKR = "MKR"
138
- OS_ETH = "osETH"
139
- PT_E_USDE_14_AUG2025 = "PT-eUSDE-14AUG2025"
140
- PT_E_USDE_29_MAY2025 = "PT-eUSDE-29MAY2025"
141
- PT_S_USDE_25_SEP2025 = "PT-sUSDE-25SEP2025"
142
- PT_S_USDE_31_JUL2025 = "PT-sUSDE-31JUL2025"
143
- PT_US_DE_31_JUL2025 = "PT-USDe-31JUL2025"
144
- PYUSD = "PYUSD"
145
- R_ETH = "rETH"
146
- RLUSD = "RLUSD"
147
- RPL = "RPL"
148
- RS_ETH = "rsETH"
149
- S_DAI = "sDAI"
150
- SNX = "SNX"
151
- STG = "STG"
152
- S_US_DE = "sUSDe"
153
- T_BTC = "tBTC"
154
- UNI = "UNI"
155
- US_DB_C = "USDbC"
156
- USD_CE = "USDCe"
157
- USDC = "USDC"
158
- US_DE = "USDe"
159
- USDS = "USDS"
160
- US_DTB = "USDtb"
161
- USDT = "USDT"
162
- VIRTUAL = "VIRTUAL"
163
- WBTC = "WBTC"
164
- WE_ETH = "weETH"
165
- WELL = "WELL"
166
- WETH = "WETH"
167
- WRS_ETH = "wrsETH"
168
- WST_ETH = "wstETH"
169
-
170
-
171
17
  class V1UniswapQuoteBuyExactlyFeeEnum(str, Enum):
172
18
  r"""The transaction fee of a Uniswap pool in bips.
173
19
 
@@ -196,10 +42,10 @@ class V1UniswapQuoteBuyExactlyRequestTypedDict(TypedDict):
196
42
  amount_out: V1UniswapQuoteBuyExactlyAmountOutTypedDict
197
43
  r"""The amount of the token to swap to"""
198
44
  chain: V1UniswapQuoteBuyExactlyChain
199
- token_in: V1UniswapQuoteBuyExactlyTokenInToken
200
- r"""The symbol of the token to swap from."""
201
- token_out: V1UniswapQuoteBuyExactlyTokenOutToken
202
- r"""The symbol of the token to swap to."""
45
+ token_in: str
46
+ r"""The symbol or address of the token to swap from."""
47
+ token_out: str
48
+ r"""The symbol or address of the token to swap to."""
203
49
  fee: V1UniswapQuoteBuyExactlyFeeEnum
204
50
  r"""The fee to pay for the swap"""
205
51
 
@@ -217,16 +63,14 @@ class V1UniswapQuoteBuyExactlyRequest(BaseModel):
217
63
  ] = V1UniswapQuoteBuyExactlyChain.ARBITRUM
218
64
 
219
65
  token_in: Annotated[
220
- V1UniswapQuoteBuyExactlyTokenInToken,
221
- FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
222
- ] = V1UniswapQuoteBuyExactlyTokenInToken.USDC
223
- r"""The symbol of the token to swap from."""
66
+ str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
67
+ ] = "USDC"
68
+ r"""The symbol or address of the token to swap from."""
224
69
 
225
70
  token_out: Annotated[
226
- V1UniswapQuoteBuyExactlyTokenOutToken,
227
- FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
228
- ] = V1UniswapQuoteBuyExactlyTokenOutToken.USDT
229
- r"""The symbol of the token to swap to."""
71
+ str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
72
+ ] = "USDT"
73
+ r"""The symbol or address of the token to swap to."""
230
74
 
231
75
  fee: Annotated[
232
76
  V1UniswapQuoteBuyExactlyFeeEnum,
@@ -14,160 +14,6 @@ class V1UniswapQuoteSellExactlyChain(str, Enum):
14
14
  ETHEREUM = "ethereum"
15
15
 
16
16
 
17
- class V1UniswapQuoteSellExactlyTokenInToken(str, Enum):
18
- r"""A class representing the token.
19
-
20
- This class is used to represent the token in the system. Notice individual
21
- endpoints' documentation where per chain tokens are presented.
22
- """
23
-
24
- ONE_INCH = "1INCH"
25
- AAVE = "AAVE"
26
- AERO = "AERO"
27
- ARB = "ARB"
28
- BAL = "BAL"
29
- BNKR = "BNKR"
30
- CB_BTC = "cbBTC"
31
- CB_ETH = "cbETH"
32
- CLANKER = "CLANKER"
33
- COPI = "COPI"
34
- CRV = "CRV"
35
- CRV_USD = "crvUSD"
36
- CYBER = "CYBER"
37
- DAI = "DAI"
38
- DOGINME = "DOGINME"
39
- E_BTC = "eBTC"
40
- ENS = "ENS"
41
- ETH = "ETH"
42
- ETHFI = "ETHFI"
43
- ET_HX = "ETHx"
44
- EURC = "EURC"
45
- EUR = "EUR"
46
- EURS = "EURS"
47
- E_US_DE = "eUSDe"
48
- EZ_ETH = "ezETH"
49
- FBTC = "FBTC"
50
- FRAX = "FRAX"
51
- FXS = "FXS"
52
- GHO = "GHO"
53
- KNC = "KNC"
54
- LBTC = "LBTC"
55
- LDO = "LDO"
56
- LINK = "LINK"
57
- LS_ETH = "LsETH"
58
- LUSD = "LUSD"
59
- MAI = "MAI"
60
- MKR = "MKR"
61
- OS_ETH = "osETH"
62
- PT_E_USDE_14_AUG2025 = "PT-eUSDE-14AUG2025"
63
- PT_E_USDE_29_MAY2025 = "PT-eUSDE-29MAY2025"
64
- PT_S_USDE_25_SEP2025 = "PT-sUSDE-25SEP2025"
65
- PT_S_USDE_31_JUL2025 = "PT-sUSDE-31JUL2025"
66
- PT_US_DE_31_JUL2025 = "PT-USDe-31JUL2025"
67
- PYUSD = "PYUSD"
68
- R_ETH = "rETH"
69
- RLUSD = "RLUSD"
70
- RPL = "RPL"
71
- RS_ETH = "rsETH"
72
- S_DAI = "sDAI"
73
- SNX = "SNX"
74
- STG = "STG"
75
- S_US_DE = "sUSDe"
76
- T_BTC = "tBTC"
77
- UNI = "UNI"
78
- US_DB_C = "USDbC"
79
- USD_CE = "USDCe"
80
- USDC = "USDC"
81
- US_DE = "USDe"
82
- USDS = "USDS"
83
- US_DTB = "USDtb"
84
- USDT = "USDT"
85
- VIRTUAL = "VIRTUAL"
86
- WBTC = "WBTC"
87
- WE_ETH = "weETH"
88
- WELL = "WELL"
89
- WETH = "WETH"
90
- WRS_ETH = "wrsETH"
91
- WST_ETH = "wstETH"
92
-
93
-
94
- class V1UniswapQuoteSellExactlyTokenOutToken(str, Enum):
95
- r"""A class representing the token.
96
-
97
- This class is used to represent the token in the system. Notice individual
98
- endpoints' documentation where per chain tokens are presented.
99
- """
100
-
101
- ONE_INCH = "1INCH"
102
- AAVE = "AAVE"
103
- AERO = "AERO"
104
- ARB = "ARB"
105
- BAL = "BAL"
106
- BNKR = "BNKR"
107
- CB_BTC = "cbBTC"
108
- CB_ETH = "cbETH"
109
- CLANKER = "CLANKER"
110
- COPI = "COPI"
111
- CRV = "CRV"
112
- CRV_USD = "crvUSD"
113
- CYBER = "CYBER"
114
- DAI = "DAI"
115
- DOGINME = "DOGINME"
116
- E_BTC = "eBTC"
117
- ENS = "ENS"
118
- ETH = "ETH"
119
- ETHFI = "ETHFI"
120
- ET_HX = "ETHx"
121
- EURC = "EURC"
122
- EUR = "EUR"
123
- EURS = "EURS"
124
- E_US_DE = "eUSDe"
125
- EZ_ETH = "ezETH"
126
- FBTC = "FBTC"
127
- FRAX = "FRAX"
128
- FXS = "FXS"
129
- GHO = "GHO"
130
- KNC = "KNC"
131
- LBTC = "LBTC"
132
- LDO = "LDO"
133
- LINK = "LINK"
134
- LS_ETH = "LsETH"
135
- LUSD = "LUSD"
136
- MAI = "MAI"
137
- MKR = "MKR"
138
- OS_ETH = "osETH"
139
- PT_E_USDE_14_AUG2025 = "PT-eUSDE-14AUG2025"
140
- PT_E_USDE_29_MAY2025 = "PT-eUSDE-29MAY2025"
141
- PT_S_USDE_25_SEP2025 = "PT-sUSDE-25SEP2025"
142
- PT_S_USDE_31_JUL2025 = "PT-sUSDE-31JUL2025"
143
- PT_US_DE_31_JUL2025 = "PT-USDe-31JUL2025"
144
- PYUSD = "PYUSD"
145
- R_ETH = "rETH"
146
- RLUSD = "RLUSD"
147
- RPL = "RPL"
148
- RS_ETH = "rsETH"
149
- S_DAI = "sDAI"
150
- SNX = "SNX"
151
- STG = "STG"
152
- S_US_DE = "sUSDe"
153
- T_BTC = "tBTC"
154
- UNI = "UNI"
155
- US_DB_C = "USDbC"
156
- USD_CE = "USDCe"
157
- USDC = "USDC"
158
- US_DE = "USDe"
159
- USDS = "USDS"
160
- US_DTB = "USDtb"
161
- USDT = "USDT"
162
- VIRTUAL = "VIRTUAL"
163
- WBTC = "WBTC"
164
- WE_ETH = "weETH"
165
- WELL = "WELL"
166
- WETH = "WETH"
167
- WRS_ETH = "wrsETH"
168
- WST_ETH = "wstETH"
169
-
170
-
171
17
  class V1UniswapQuoteSellExactlyFeeEnum(str, Enum):
172
18
  r"""The transaction fee of a Uniswap pool in bips.
173
19
 
@@ -196,10 +42,10 @@ class V1UniswapQuoteSellExactlyRequestTypedDict(TypedDict):
196
42
  amount_in: V1UniswapQuoteSellExactlyAmountInTypedDict
197
43
  r"""The amount of the token to swap from"""
198
44
  chain: V1UniswapQuoteSellExactlyChain
199
- token_in: V1UniswapQuoteSellExactlyTokenInToken
200
- r"""The symbol of the token to swap from."""
201
- token_out: V1UniswapQuoteSellExactlyTokenOutToken
202
- r"""The symbol of the token to swap to."""
45
+ token_in: str
46
+ r"""The symbol or address of the token to swap from."""
47
+ token_out: str
48
+ r"""The symbol or address of the token to swap to."""
203
49
  fee: V1UniswapQuoteSellExactlyFeeEnum
204
50
  r"""The fee to pay for the swap"""
205
51
 
@@ -217,16 +63,14 @@ class V1UniswapQuoteSellExactlyRequest(BaseModel):
217
63
  ] = V1UniswapQuoteSellExactlyChain.ARBITRUM
218
64
 
219
65
  token_in: Annotated[
220
- V1UniswapQuoteSellExactlyTokenInToken,
221
- FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
222
- ] = V1UniswapQuoteSellExactlyTokenInToken.USDC
223
- r"""The symbol of the token to swap from."""
66
+ str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
67
+ ] = "USDC"
68
+ r"""The symbol or address of the token to swap from."""
224
69
 
225
70
  token_out: Annotated[
226
- V1UniswapQuoteSellExactlyTokenOutToken,
227
- FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
228
- ] = V1UniswapQuoteSellExactlyTokenOutToken.USDT
229
- r"""The symbol of the token to swap to."""
71
+ str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
72
+ ] = "USDT"
73
+ r"""The symbol or address of the token to swap to."""
230
74
 
231
75
  fee: Annotated[
232
76
  V1UniswapQuoteSellExactlyFeeEnum,
compass_api_sdk/morpho.py CHANGED
@@ -13,9 +13,7 @@ class Morpho(BaseSDK):
13
13
  self,
14
14
  *,
15
15
  chain: models.V1MorphoVaultsChain = models.V1MorphoVaultsChain.BASE,
16
- deposit_token: OptionalNullable[
17
- Union[models.DepositToken, models.DepositTokenTypedDict]
18
- ] = UNSET,
16
+ deposit_token: OptionalNullable[str] = UNSET,
19
17
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
20
18
  server_url: Optional[str] = None,
21
19
  timeout_ms: Optional[int] = None,
@@ -30,7 +28,7 @@ class Morpho(BaseSDK):
30
28
  exchange value increasing over time.
31
29
 
32
30
  :param chain:
33
- :param deposit_token: Token address that will filter vaults by this deposit token.
31
+ :param deposit_token: Symbol or address of the deposit token to filter vaults by. Optional parameter.
34
32
  :param retries: Override the default retry configuration for this method
35
33
  :param server_url: Override the default server URL for this method
36
34
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -109,9 +107,7 @@ class Morpho(BaseSDK):
109
107
  self,
110
108
  *,
111
109
  chain: models.V1MorphoVaultsChain = models.V1MorphoVaultsChain.BASE,
112
- deposit_token: OptionalNullable[
113
- Union[models.DepositToken, models.DepositTokenTypedDict]
114
- ] = UNSET,
110
+ deposit_token: OptionalNullable[str] = UNSET,
115
111
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
116
112
  server_url: Optional[str] = None,
117
113
  timeout_ms: Optional[int] = None,
@@ -126,7 +122,7 @@ class Morpho(BaseSDK):
126
122
  exchange value increasing over time.
127
123
 
128
124
  :param chain:
129
- :param deposit_token: Token address that will filter vaults by this deposit token.
125
+ :param deposit_token: Symbol or address of the deposit token to filter vaults by. Optional parameter.
130
126
  :param retries: Override the default retry configuration for this method
131
127
  :param server_url: Override the default server URL for this method
132
128
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -401,12 +397,8 @@ class Morpho(BaseSDK):
401
397
  self,
402
398
  *,
403
399
  chain: models.V1MorphoMarketsChain = models.V1MorphoMarketsChain.BASE,
404
- collateral_token: OptionalNullable[
405
- Union[models.CollateralToken, models.CollateralTokenTypedDict]
406
- ] = UNSET,
407
- loan_token: OptionalNullable[
408
- Union[models.LoanToken, models.LoanTokenTypedDict]
409
- ] = UNSET,
400
+ collateral_token: OptionalNullable[str] = UNSET,
401
+ loan_token: OptionalNullable[str] = UNSET,
410
402
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
411
403
  server_url: Optional[str] = None,
412
404
  timeout_ms: Optional[int] = None,
@@ -420,8 +412,8 @@ class Morpho(BaseSDK):
420
412
  can be used as collateral.
421
413
 
422
414
  :param chain:
423
- :param collateral_token: Collateral token to identify the market.
424
- :param loan_token: Loan token to identify the market.
415
+ :param collateral_token: Symbol or address of the collateral token to filter markets by. Optional parameter.
416
+ :param loan_token: Symbol or address of the loan token to filter markets by. Optional parameter.
425
417
  :param retries: Override the default retry configuration for this method
426
418
  :param server_url: Override the default server URL for this method
427
419
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -501,12 +493,8 @@ class Morpho(BaseSDK):
501
493
  self,
502
494
  *,
503
495
  chain: models.V1MorphoMarketsChain = models.V1MorphoMarketsChain.BASE,
504
- collateral_token: OptionalNullable[
505
- Union[models.CollateralToken, models.CollateralTokenTypedDict]
506
- ] = UNSET,
507
- loan_token: OptionalNullable[
508
- Union[models.LoanToken, models.LoanTokenTypedDict]
509
- ] = UNSET,
496
+ collateral_token: OptionalNullable[str] = UNSET,
497
+ loan_token: OptionalNullable[str] = UNSET,
510
498
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
511
499
  server_url: Optional[str] = None,
512
500
  timeout_ms: Optional[int] = None,
@@ -520,8 +508,8 @@ class Morpho(BaseSDK):
520
508
  can be used as collateral.
521
509
 
522
510
  :param chain:
523
- :param collateral_token: Collateral token to identify the market.
524
- :param loan_token: Loan token to identify the market.
511
+ :param collateral_token: Symbol or address of the collateral token to filter markets by. Optional parameter.
512
+ :param loan_token: Symbol or address of the loan token to filter markets by. Optional parameter.
525
513
  :param retries: Override the default retry configuration for this method
526
514
  :param server_url: Override the default server URL for this method
527
515
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds