compass_api_sdk 0.0.1__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 (137) hide show
  1. compass_api_sdk/__init__.py +17 -0
  2. compass_api_sdk/_hooks/__init__.py +5 -0
  3. compass_api_sdk/_hooks/registration.py +13 -0
  4. compass_api_sdk/_hooks/sdkhooks.py +76 -0
  5. compass_api_sdk/_hooks/types.py +106 -0
  6. compass_api_sdk/_version.py +15 -0
  7. compass_api_sdk/aave_v3.py +1903 -0
  8. compass_api_sdk/aerodrome_slipstream.py +1875 -0
  9. compass_api_sdk/basesdk.py +362 -0
  10. compass_api_sdk/errors/__init__.py +7 -0
  11. compass_api_sdk/errors/apierror.py +22 -0
  12. compass_api_sdk/errors/httpvalidationerror.py +21 -0
  13. compass_api_sdk/httpclient.py +136 -0
  14. compass_api_sdk/models/__init__.py +777 -0
  15. compass_api_sdk/models/aave_liquidity_changeop.py +108 -0
  16. compass_api_sdk/models/aave_token_priceop.py +98 -0
  17. compass_api_sdk/models/aave_user_position_per_tokenop.py +104 -0
  18. compass_api_sdk/models/aave_user_position_summaryop.py +35 -0
  19. compass_api_sdk/models/aaveborrowrequest.py +105 -0
  20. compass_api_sdk/models/aaveliquiditychangeresponse.py +26 -0
  21. compass_api_sdk/models/aaverepayrequest.py +105 -0
  22. compass_api_sdk/models/aavesupplyrequest.py +93 -0
  23. compass_api_sdk/models/aavetokenpriceresponse.py +15 -0
  24. compass_api_sdk/models/aaveuserpositionpertokenresponse.py +73 -0
  25. compass_api_sdk/models/aaveuserpositionsummaryresponse.py +50 -0
  26. compass_api_sdk/models/aavewithdrawrequest.py +58 -0
  27. compass_api_sdk/models/aerodrome_slipstream_liquidity_provision_positionsop.py +35 -0
  28. compass_api_sdk/models/aerodrome_slipstream_pool_priceop.py +173 -0
  29. compass_api_sdk/models/aerodromelppositionsresponse.py +21 -0
  30. compass_api_sdk/models/aerodromeposition.py +70 -0
  31. compass_api_sdk/models/aerodromeslipstreambuyexactlyrequest.py +92 -0
  32. compass_api_sdk/models/aerodromeslipstreamincreaseliquidityprovisionrequest.py +109 -0
  33. compass_api_sdk/models/aerodromeslipstreammintliquidityprovisionrequest.py +186 -0
  34. compass_api_sdk/models/aerodromeslipstreampoolpriceresponse.py +57 -0
  35. compass_api_sdk/models/aerodromeslipstreamsellexactlyrequest.py +96 -0
  36. compass_api_sdk/models/aerodromeslipstreamwithdrawliquidityprovisionrequest.py +50 -0
  37. compass_api_sdk/models/allowanceinforesponse.py +48 -0
  38. compass_api_sdk/models/balanceinforesponse.py +43 -0
  39. compass_api_sdk/models/chain.py +12 -0
  40. compass_api_sdk/models/chaininfo.py +53 -0
  41. compass_api_sdk/models/compass_api_backend_models_morpho_read_response_get_markets_asset.py +22 -0
  42. compass_api_sdk/models/compass_api_backend_models_morpho_read_response_get_vaults_asset.py +23 -0
  43. compass_api_sdk/models/ensnameinforesponse.py +24 -0
  44. compass_api_sdk/models/feeenum.py +16 -0
  45. compass_api_sdk/models/generic_allowanceop.py +121 -0
  46. compass_api_sdk/models/generic_balanceop.py +104 -0
  47. compass_api_sdk/models/generic_ensop.py +35 -0
  48. compass_api_sdk/models/generic_portfolioop.py +35 -0
  49. compass_api_sdk/models/generic_price_usdop.py +98 -0
  50. compass_api_sdk/models/generic_supported_tokensop.py +29 -0
  51. compass_api_sdk/models/generic_visualize_portfolioop.py +35 -0
  52. compass_api_sdk/models/image.py +15 -0
  53. compass_api_sdk/models/increaseallowancerequest.py +77 -0
  54. compass_api_sdk/models/interestratemode.py +14 -0
  55. compass_api_sdk/models/marketstate.py +35 -0
  56. compass_api_sdk/models/morpho_market_positionop.py +39 -0
  57. compass_api_sdk/models/morpho_marketsop.py +78 -0
  58. compass_api_sdk/models/morpho_vault_positionop.py +39 -0
  59. compass_api_sdk/models/morpho_vaultsop.py +72 -0
  60. compass_api_sdk/models/morphoborrowrequest.py +91 -0
  61. compass_api_sdk/models/morphocheckmarketpositionresponse.py +23 -0
  62. compass_api_sdk/models/morphocheckvaultpositionresponse.py +20 -0
  63. compass_api_sdk/models/morphodepositrequest.py +86 -0
  64. compass_api_sdk/models/morphogetmarketsresponse.py +17 -0
  65. compass_api_sdk/models/morphogetvaultsresponse.py +17 -0
  66. compass_api_sdk/models/morphomarket.py +80 -0
  67. compass_api_sdk/models/morphorepayrequest.py +79 -0
  68. compass_api_sdk/models/morphosetvaultallowancerequest.py +44 -0
  69. compass_api_sdk/models/morphosupplycollateralrequest.py +91 -0
  70. compass_api_sdk/models/morphovault.py +47 -0
  71. compass_api_sdk/models/morphowithdrawcollateralrequest.py +91 -0
  72. compass_api_sdk/models/morphowithdrawrequest.py +74 -0
  73. compass_api_sdk/models/portfolio.py +22 -0
  74. compass_api_sdk/models/priceresponse.py +15 -0
  75. compass_api_sdk/models/security.py +24 -0
  76. compass_api_sdk/models/token_addressop.py +98 -0
  77. compass_api_sdk/models/token_balanceop.py +49 -0
  78. compass_api_sdk/models/token_enum.py +57 -0
  79. compass_api_sdk/models/token_priceop.py +97 -0
  80. compass_api_sdk/models/tokenaddressresponse.py +15 -0
  81. compass_api_sdk/models/tokenbalance.py +49 -0
  82. compass_api_sdk/models/tokenbalanceresponse.py +44 -0
  83. compass_api_sdk/models/tokeninfo.py +17 -0
  84. compass_api_sdk/models/tokenpriceresponse.py +15 -0
  85. compass_api_sdk/models/tokentransferrequest.py +66 -0
  86. compass_api_sdk/models/transfererc20request.py +62 -0
  87. compass_api_sdk/models/transferethrequest.py +46 -0
  88. compass_api_sdk/models/uniswap_liquidity_provision_in_rangeop.py +34 -0
  89. compass_api_sdk/models/uniswap_liquidity_provision_positionsop.py +35 -0
  90. compass_api_sdk/models/uniswap_pool_priceop.py +193 -0
  91. compass_api_sdk/models/uniswap_quote_buy_exactlyop.py +209 -0
  92. compass_api_sdk/models/uniswap_quote_sell_exactlyop.py +209 -0
  93. compass_api_sdk/models/uniswapbuyexactlyrequest.py +104 -0
  94. compass_api_sdk/models/uniswapbuyquoteinforesponse.py +20 -0
  95. compass_api_sdk/models/uniswapcheckinrangeresponse.py +15 -0
  96. compass_api_sdk/models/uniswapincreaseliquidityprovisionrequest.py +99 -0
  97. compass_api_sdk/models/uniswaplppositionsinforesponse.py +24 -0
  98. compass_api_sdk/models/uniswapmintliquidityprovisionrequest.py +185 -0
  99. compass_api_sdk/models/uniswappoolpriceresponse.py +47 -0
  100. compass_api_sdk/models/uniswappositionssolidityresponse.py +46 -0
  101. compass_api_sdk/models/uniswapsellexactlyrequest.py +104 -0
  102. compass_api_sdk/models/uniswapsellquoteinforesponse.py +20 -0
  103. compass_api_sdk/models/uniswapwithdrawliquidityprovisionrequest.py +51 -0
  104. compass_api_sdk/models/unsignedtransaction.py +58 -0
  105. compass_api_sdk/models/unwrapwethrequest.py +41 -0
  106. compass_api_sdk/models/validationerror.py +26 -0
  107. compass_api_sdk/models/vaultstate.py +32 -0
  108. compass_api_sdk/models/weeklyapys.py +23 -0
  109. compass_api_sdk/models/wrapethrequest.py +41 -0
  110. compass_api_sdk/morpho.py +2577 -0
  111. compass_api_sdk/py.typed +1 -0
  112. compass_api_sdk/sdk.py +155 -0
  113. compass_api_sdk/sdkconfiguration.py +56 -0
  114. compass_api_sdk/token_sdk.py +861 -0
  115. compass_api_sdk/types/__init__.py +21 -0
  116. compass_api_sdk/types/basemodel.py +39 -0
  117. compass_api_sdk/uniswap_v3.py +2551 -0
  118. compass_api_sdk/universal.py +2625 -0
  119. compass_api_sdk/utils/__init__.py +100 -0
  120. compass_api_sdk/utils/annotations.py +55 -0
  121. compass_api_sdk/utils/datetimes.py +23 -0
  122. compass_api_sdk/utils/enums.py +74 -0
  123. compass_api_sdk/utils/eventstreaming.py +238 -0
  124. compass_api_sdk/utils/forms.py +202 -0
  125. compass_api_sdk/utils/headers.py +136 -0
  126. compass_api_sdk/utils/logger.py +22 -0
  127. compass_api_sdk/utils/metadata.py +118 -0
  128. compass_api_sdk/utils/queryparams.py +205 -0
  129. compass_api_sdk/utils/requestbodies.py +66 -0
  130. compass_api_sdk/utils/retries.py +217 -0
  131. compass_api_sdk/utils/security.py +174 -0
  132. compass_api_sdk/utils/serializers.py +248 -0
  133. compass_api_sdk/utils/url.py +155 -0
  134. compass_api_sdk/utils/values.py +137 -0
  135. compass_api_sdk-0.0.1.dist-info/METADATA +534 -0
  136. compass_api_sdk-0.0.1.dist-info/RECORD +137 -0
  137. compass_api_sdk-0.0.1.dist-info/WHEEL +4 -0
@@ -0,0 +1,209 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from compass_api_sdk.types import BaseModel
5
+ from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
6
+ from enum import Enum
7
+ from typing import Optional, Union
8
+ from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
9
+
10
+
11
+ class UniswapQuoteBuyExactlyChain(str, Enum):
12
+ r"""The chain to use."""
13
+
14
+ BASE_MAINNET = "base:mainnet"
15
+ ETHEREUM_MAINNET = "ethereum:mainnet"
16
+ ARBITRUM_MAINNET = "arbitrum:mainnet"
17
+
18
+
19
+ class UniswapQuoteBuyExactlyTokenInToken(str, Enum):
20
+ r"""A class representing the token.
21
+
22
+ This class is used to represent the token in the system. Notice individual
23
+ endpoints' documentation where per chain tokens are presented.
24
+ """
25
+
26
+ ONE_INCH = "1INCH"
27
+ AAVE = "AAVE"
28
+ BAL = "BAL"
29
+ CB_BTC = "cbBTC"
30
+ CB_ETH = "cbETH"
31
+ CRV = "CRV"
32
+ CRV_USD = "crvUSD"
33
+ DAI = "DAI"
34
+ ENS = "ENS"
35
+ ET_HX = "ETHx"
36
+ FRAX = "FRAX"
37
+ FXS = "FXS"
38
+ GHO = "GHO"
39
+ KNC = "KNC"
40
+ LDO = "LDO"
41
+ LINK = "LINK"
42
+ LUSD = "LUSD"
43
+ MKR = "MKR"
44
+ OS_ETH = "osETH"
45
+ PYUSD = "PYUSD"
46
+ R_ETH = "rETH"
47
+ RPL = "RPL"
48
+ RS_ETH = "rsETH"
49
+ S_DAI = "sDAI"
50
+ SNX = "SNX"
51
+ STG = "STG"
52
+ S_US_DE = "sUSDe"
53
+ T_BTC = "tBTC"
54
+ UNI = "UNI"
55
+ USDC = "USDC"
56
+ US_DE = "USDe"
57
+ USDS = "USDS"
58
+ USDT = "USDT"
59
+ WBTC = "WBTC"
60
+ WE_ETH = "weETH"
61
+ WETH = "WETH"
62
+ WST_ETH = "wstETH"
63
+ ARB = "ARB"
64
+ EURS = "EURS"
65
+ MAI = "MAI"
66
+ USD_CE = "USDCe"
67
+ AERO = "AERO"
68
+ EUR = "EUR"
69
+ VIRTUAL = "VIRTUAL"
70
+
71
+
72
+ class UniswapQuoteBuyExactlyTokenOutToken(str, Enum):
73
+ r"""A class representing the token.
74
+
75
+ This class is used to represent the token in the system. Notice individual
76
+ endpoints' documentation where per chain tokens are presented.
77
+ """
78
+
79
+ ONE_INCH = "1INCH"
80
+ AAVE = "AAVE"
81
+ BAL = "BAL"
82
+ CB_BTC = "cbBTC"
83
+ CB_ETH = "cbETH"
84
+ CRV = "CRV"
85
+ CRV_USD = "crvUSD"
86
+ DAI = "DAI"
87
+ ENS = "ENS"
88
+ ET_HX = "ETHx"
89
+ FRAX = "FRAX"
90
+ FXS = "FXS"
91
+ GHO = "GHO"
92
+ KNC = "KNC"
93
+ LDO = "LDO"
94
+ LINK = "LINK"
95
+ LUSD = "LUSD"
96
+ MKR = "MKR"
97
+ OS_ETH = "osETH"
98
+ PYUSD = "PYUSD"
99
+ R_ETH = "rETH"
100
+ RPL = "RPL"
101
+ RS_ETH = "rsETH"
102
+ S_DAI = "sDAI"
103
+ SNX = "SNX"
104
+ STG = "STG"
105
+ S_US_DE = "sUSDe"
106
+ T_BTC = "tBTC"
107
+ UNI = "UNI"
108
+ USDC = "USDC"
109
+ US_DE = "USDe"
110
+ USDS = "USDS"
111
+ USDT = "USDT"
112
+ WBTC = "WBTC"
113
+ WE_ETH = "weETH"
114
+ WETH = "WETH"
115
+ WST_ETH = "wstETH"
116
+ ARB = "ARB"
117
+ EURS = "EURS"
118
+ MAI = "MAI"
119
+ USD_CE = "USDCe"
120
+ AERO = "AERO"
121
+ EUR = "EUR"
122
+ VIRTUAL = "VIRTUAL"
123
+
124
+
125
+ class UniswapQuoteBuyExactlyFeeEnum(str, Enum):
126
+ r"""The transaction fee of a Uniswap pool in bips.
127
+
128
+ Uniswap supports 4 different fee levels.
129
+ """
130
+
131
+ ZERO_DOT_01 = "0.01"
132
+ ZERO_DOT_05 = "0.05"
133
+ ZERO_DOT_3 = "0.3"
134
+ ONE_DOT_0 = "1.0"
135
+
136
+
137
+ UniswapQuoteBuyExactlyAmountOutTypedDict = TypeAliasType(
138
+ "UniswapQuoteBuyExactlyAmountOutTypedDict", Union[float, str]
139
+ )
140
+
141
+
142
+ UniswapQuoteBuyExactlyAmountOut = TypeAliasType(
143
+ "UniswapQuoteBuyExactlyAmountOut", Union[float, str]
144
+ )
145
+
146
+
147
+ class UniswapQuoteBuyExactlyRequestTypedDict(TypedDict):
148
+ amount_out: UniswapQuoteBuyExactlyAmountOutTypedDict
149
+ chain: NotRequired[UniswapQuoteBuyExactlyChain]
150
+ r"""The chain to use."""
151
+ token_in: NotRequired[UniswapQuoteBuyExactlyTokenInToken]
152
+ r"""A class representing the token.
153
+
154
+ This class is used to represent the token in the system. Notice individual
155
+ endpoints' documentation where per chain tokens are presented.
156
+ """
157
+ token_out: NotRequired[UniswapQuoteBuyExactlyTokenOutToken]
158
+ r"""A class representing the token.
159
+
160
+ This class is used to represent the token in the system. Notice individual
161
+ endpoints' documentation where per chain tokens are presented.
162
+ """
163
+ fee: UniswapQuoteBuyExactlyFeeEnum
164
+ r"""The transaction fee of a Uniswap pool in bips.
165
+
166
+ Uniswap supports 4 different fee levels.
167
+ """
168
+
169
+
170
+ class UniswapQuoteBuyExactlyRequest(BaseModel):
171
+ amount_out: Annotated[
172
+ UniswapQuoteBuyExactlyAmountOut,
173
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
174
+ ]
175
+
176
+ chain: Annotated[
177
+ Optional[UniswapQuoteBuyExactlyChain],
178
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
179
+ ] = UniswapQuoteBuyExactlyChain.ARBITRUM_MAINNET
180
+ r"""The chain to use."""
181
+
182
+ token_in: Annotated[
183
+ Optional[UniswapQuoteBuyExactlyTokenInToken],
184
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
185
+ ] = UniswapQuoteBuyExactlyTokenInToken.USDC
186
+ r"""A class representing the token.
187
+
188
+ This class is used to represent the token in the system. Notice individual
189
+ endpoints' documentation where per chain tokens are presented.
190
+ """
191
+
192
+ token_out: Annotated[
193
+ Optional[UniswapQuoteBuyExactlyTokenOutToken],
194
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
195
+ ] = UniswapQuoteBuyExactlyTokenOutToken.USDT
196
+ r"""A class representing the token.
197
+
198
+ This class is used to represent the token in the system. Notice individual
199
+ endpoints' documentation where per chain tokens are presented.
200
+ """
201
+
202
+ fee: Annotated[
203
+ UniswapQuoteBuyExactlyFeeEnum,
204
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
205
+ ] = UniswapQuoteBuyExactlyFeeEnum.ZERO_DOT_01
206
+ r"""The transaction fee of a Uniswap pool in bips.
207
+
208
+ Uniswap supports 4 different fee levels.
209
+ """
@@ -0,0 +1,209 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from compass_api_sdk.types import BaseModel
5
+ from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
6
+ from enum import Enum
7
+ from typing import Optional, Union
8
+ from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
9
+
10
+
11
+ class UniswapQuoteSellExactlyChain(str, Enum):
12
+ r"""The chain to use."""
13
+
14
+ BASE_MAINNET = "base:mainnet"
15
+ ETHEREUM_MAINNET = "ethereum:mainnet"
16
+ ARBITRUM_MAINNET = "arbitrum:mainnet"
17
+
18
+
19
+ class UniswapQuoteSellExactlyTokenInToken(str, Enum):
20
+ r"""A class representing the token.
21
+
22
+ This class is used to represent the token in the system. Notice individual
23
+ endpoints' documentation where per chain tokens are presented.
24
+ """
25
+
26
+ ONE_INCH = "1INCH"
27
+ AAVE = "AAVE"
28
+ BAL = "BAL"
29
+ CB_BTC = "cbBTC"
30
+ CB_ETH = "cbETH"
31
+ CRV = "CRV"
32
+ CRV_USD = "crvUSD"
33
+ DAI = "DAI"
34
+ ENS = "ENS"
35
+ ET_HX = "ETHx"
36
+ FRAX = "FRAX"
37
+ FXS = "FXS"
38
+ GHO = "GHO"
39
+ KNC = "KNC"
40
+ LDO = "LDO"
41
+ LINK = "LINK"
42
+ LUSD = "LUSD"
43
+ MKR = "MKR"
44
+ OS_ETH = "osETH"
45
+ PYUSD = "PYUSD"
46
+ R_ETH = "rETH"
47
+ RPL = "RPL"
48
+ RS_ETH = "rsETH"
49
+ S_DAI = "sDAI"
50
+ SNX = "SNX"
51
+ STG = "STG"
52
+ S_US_DE = "sUSDe"
53
+ T_BTC = "tBTC"
54
+ UNI = "UNI"
55
+ USDC = "USDC"
56
+ US_DE = "USDe"
57
+ USDS = "USDS"
58
+ USDT = "USDT"
59
+ WBTC = "WBTC"
60
+ WE_ETH = "weETH"
61
+ WETH = "WETH"
62
+ WST_ETH = "wstETH"
63
+ ARB = "ARB"
64
+ EURS = "EURS"
65
+ MAI = "MAI"
66
+ USD_CE = "USDCe"
67
+ AERO = "AERO"
68
+ EUR = "EUR"
69
+ VIRTUAL = "VIRTUAL"
70
+
71
+
72
+ class UniswapQuoteSellExactlyTokenOutToken(str, Enum):
73
+ r"""A class representing the token.
74
+
75
+ This class is used to represent the token in the system. Notice individual
76
+ endpoints' documentation where per chain tokens are presented.
77
+ """
78
+
79
+ ONE_INCH = "1INCH"
80
+ AAVE = "AAVE"
81
+ BAL = "BAL"
82
+ CB_BTC = "cbBTC"
83
+ CB_ETH = "cbETH"
84
+ CRV = "CRV"
85
+ CRV_USD = "crvUSD"
86
+ DAI = "DAI"
87
+ ENS = "ENS"
88
+ ET_HX = "ETHx"
89
+ FRAX = "FRAX"
90
+ FXS = "FXS"
91
+ GHO = "GHO"
92
+ KNC = "KNC"
93
+ LDO = "LDO"
94
+ LINK = "LINK"
95
+ LUSD = "LUSD"
96
+ MKR = "MKR"
97
+ OS_ETH = "osETH"
98
+ PYUSD = "PYUSD"
99
+ R_ETH = "rETH"
100
+ RPL = "RPL"
101
+ RS_ETH = "rsETH"
102
+ S_DAI = "sDAI"
103
+ SNX = "SNX"
104
+ STG = "STG"
105
+ S_US_DE = "sUSDe"
106
+ T_BTC = "tBTC"
107
+ UNI = "UNI"
108
+ USDC = "USDC"
109
+ US_DE = "USDe"
110
+ USDS = "USDS"
111
+ USDT = "USDT"
112
+ WBTC = "WBTC"
113
+ WE_ETH = "weETH"
114
+ WETH = "WETH"
115
+ WST_ETH = "wstETH"
116
+ ARB = "ARB"
117
+ EURS = "EURS"
118
+ MAI = "MAI"
119
+ USD_CE = "USDCe"
120
+ AERO = "AERO"
121
+ EUR = "EUR"
122
+ VIRTUAL = "VIRTUAL"
123
+
124
+
125
+ class UniswapQuoteSellExactlyFeeEnum(str, Enum):
126
+ r"""The transaction fee of a Uniswap pool in bips.
127
+
128
+ Uniswap supports 4 different fee levels.
129
+ """
130
+
131
+ ZERO_DOT_01 = "0.01"
132
+ ZERO_DOT_05 = "0.05"
133
+ ZERO_DOT_3 = "0.3"
134
+ ONE_DOT_0 = "1.0"
135
+
136
+
137
+ UniswapQuoteSellExactlyAmountInTypedDict = TypeAliasType(
138
+ "UniswapQuoteSellExactlyAmountInTypedDict", Union[float, str]
139
+ )
140
+
141
+
142
+ UniswapQuoteSellExactlyAmountIn = TypeAliasType(
143
+ "UniswapQuoteSellExactlyAmountIn", Union[float, str]
144
+ )
145
+
146
+
147
+ class UniswapQuoteSellExactlyRequestTypedDict(TypedDict):
148
+ amount_in: UniswapQuoteSellExactlyAmountInTypedDict
149
+ chain: NotRequired[UniswapQuoteSellExactlyChain]
150
+ r"""The chain to use."""
151
+ token_in: NotRequired[UniswapQuoteSellExactlyTokenInToken]
152
+ r"""A class representing the token.
153
+
154
+ This class is used to represent the token in the system. Notice individual
155
+ endpoints' documentation where per chain tokens are presented.
156
+ """
157
+ token_out: NotRequired[UniswapQuoteSellExactlyTokenOutToken]
158
+ r"""A class representing the token.
159
+
160
+ This class is used to represent the token in the system. Notice individual
161
+ endpoints' documentation where per chain tokens are presented.
162
+ """
163
+ fee: UniswapQuoteSellExactlyFeeEnum
164
+ r"""The transaction fee of a Uniswap pool in bips.
165
+
166
+ Uniswap supports 4 different fee levels.
167
+ """
168
+
169
+
170
+ class UniswapQuoteSellExactlyRequest(BaseModel):
171
+ amount_in: Annotated[
172
+ UniswapQuoteSellExactlyAmountIn,
173
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
174
+ ]
175
+
176
+ chain: Annotated[
177
+ Optional[UniswapQuoteSellExactlyChain],
178
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
179
+ ] = UniswapQuoteSellExactlyChain.ARBITRUM_MAINNET
180
+ r"""The chain to use."""
181
+
182
+ token_in: Annotated[
183
+ Optional[UniswapQuoteSellExactlyTokenInToken],
184
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
185
+ ] = UniswapQuoteSellExactlyTokenInToken.USDC
186
+ r"""A class representing the token.
187
+
188
+ This class is used to represent the token in the system. Notice individual
189
+ endpoints' documentation where per chain tokens are presented.
190
+ """
191
+
192
+ token_out: Annotated[
193
+ Optional[UniswapQuoteSellExactlyTokenOutToken],
194
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
195
+ ] = UniswapQuoteSellExactlyTokenOutToken.USDT
196
+ r"""A class representing the token.
197
+
198
+ This class is used to represent the token in the system. Notice individual
199
+ endpoints' documentation where per chain tokens are presented.
200
+ """
201
+
202
+ fee: Annotated[
203
+ UniswapQuoteSellExactlyFeeEnum,
204
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
205
+ ] = UniswapQuoteSellExactlyFeeEnum.ZERO_DOT_01
206
+ r"""The transaction fee of a Uniswap pool in bips.
207
+
208
+ Uniswap supports 4 different fee levels.
209
+ """
@@ -0,0 +1,104 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .chain import Chain
5
+ from .feeenum import FeeEnum
6
+ from .token_enum import TokenEnum
7
+ from compass_api_sdk.types import BaseModel
8
+ from typing import Optional, Union
9
+ from typing_extensions import NotRequired, TypeAliasType, TypedDict
10
+
11
+
12
+ UniswapBuyExactlyRequestAmountOutTypedDict = TypeAliasType(
13
+ "UniswapBuyExactlyRequestAmountOutTypedDict", Union[float, str]
14
+ )
15
+ r"""The amount of the token to swap to"""
16
+
17
+
18
+ UniswapBuyExactlyRequestAmountOut = TypeAliasType(
19
+ "UniswapBuyExactlyRequestAmountOut", Union[float, str]
20
+ )
21
+ r"""The amount of the token to swap to"""
22
+
23
+
24
+ UniswapBuyExactlyRequestAmountInMaximumTypedDict = TypeAliasType(
25
+ "UniswapBuyExactlyRequestAmountInMaximumTypedDict", Union[float, str]
26
+ )
27
+ r"""The maximum amount of the token to swap from"""
28
+
29
+
30
+ UniswapBuyExactlyRequestAmountInMaximum = TypeAliasType(
31
+ "UniswapBuyExactlyRequestAmountInMaximum", Union[float, str]
32
+ )
33
+ r"""The maximum amount of the token to swap from"""
34
+
35
+
36
+ class UniswapBuyExactlyRequestTypedDict(TypedDict):
37
+ r"""Request model for buying exactly an amount of tokens."""
38
+
39
+ token_in: TokenEnum
40
+ r"""A class representing the token.
41
+
42
+ This class is used to represent the token in the system. Notice individual
43
+ endpoints' documentation where per chain tokens are presented.
44
+ """
45
+ token_out: 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
+ fee: FeeEnum
52
+ r"""The transaction fee of a Uniswap pool in bips.
53
+
54
+ Uniswap supports 4 different fee levels.
55
+ """
56
+ amount_out: UniswapBuyExactlyRequestAmountOutTypedDict
57
+ r"""The amount of the token to swap to"""
58
+ amount_in_maximum: UniswapBuyExactlyRequestAmountInMaximumTypedDict
59
+ r"""The maximum amount of the token to swap from"""
60
+ chain: Chain
61
+ r"""The chain to use."""
62
+ sender: str
63
+ r"""The address of the transaction sender."""
64
+ wrap_eth: NotRequired[bool]
65
+ r"""Whether to wrap ETH to WETH, only use when swapping WETH into something"""
66
+
67
+
68
+ class UniswapBuyExactlyRequest(BaseModel):
69
+ r"""Request model for buying exactly an amount of tokens."""
70
+
71
+ token_in: TokenEnum
72
+ r"""A class representing the token.
73
+
74
+ This class is used to represent the token in the system. Notice individual
75
+ endpoints' documentation where per chain tokens are presented.
76
+ """
77
+
78
+ token_out: TokenEnum
79
+ r"""A class representing the token.
80
+
81
+ This class is used to represent the token in the system. Notice individual
82
+ endpoints' documentation where per chain tokens are presented.
83
+ """
84
+
85
+ fee: FeeEnum
86
+ r"""The transaction fee of a Uniswap pool in bips.
87
+
88
+ Uniswap supports 4 different fee levels.
89
+ """
90
+
91
+ amount_out: UniswapBuyExactlyRequestAmountOut
92
+ r"""The amount of the token to swap to"""
93
+
94
+ amount_in_maximum: UniswapBuyExactlyRequestAmountInMaximum
95
+ r"""The maximum amount of the token to swap from"""
96
+
97
+ chain: Chain
98
+ r"""The chain to use."""
99
+
100
+ sender: str
101
+ r"""The address of the transaction sender."""
102
+
103
+ wrap_eth: Optional[bool] = False
104
+ r"""Whether to wrap ETH to WETH, only use when swapping WETH into something"""
@@ -0,0 +1,20 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from compass_api_sdk.types import BaseModel
5
+ from typing_extensions import TypedDict
6
+
7
+
8
+ class UniswapBuyQuoteInfoResponseTypedDict(TypedDict):
9
+ amount_in: str
10
+ r"""The amount of token_in you would need to give to the pool."""
11
+ price_after: str
12
+ r"""The price of the pool after this trade would happen. (How much token0 you need to buy 1 token1.)"""
13
+
14
+
15
+ class UniswapBuyQuoteInfoResponse(BaseModel):
16
+ amount_in: str
17
+ r"""The amount of token_in you would need to give to the pool."""
18
+
19
+ price_after: str
20
+ r"""The price of the pool after this trade would happen. (How much token0 you need to buy 1 token1.)"""
@@ -0,0 +1,15 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from compass_api_sdk.types import BaseModel
5
+ from typing_extensions import TypedDict
6
+
7
+
8
+ class UniswapCheckInRangeResponseTypedDict(TypedDict):
9
+ in_range: bool
10
+ r"""Whether the position is in active tick range or not. If not in range, the position is not earning trading fees."""
11
+
12
+
13
+ class UniswapCheckInRangeResponse(BaseModel):
14
+ in_range: bool
15
+ r"""Whether the position is in active tick range or not. If not in range, the position is not earning trading fees."""
@@ -0,0 +1,99 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .chain import Chain
5
+ from compass_api_sdk.types import BaseModel
6
+ from typing import Union
7
+ from typing_extensions import TypeAliasType, TypedDict
8
+
9
+
10
+ UniswapIncreaseLiquidityProvisionRequestAmount0DesiredTypedDict = TypeAliasType(
11
+ "UniswapIncreaseLiquidityProvisionRequestAmount0DesiredTypedDict", Union[float, str]
12
+ )
13
+ r"""The desired amount of the first token to deposit"""
14
+
15
+
16
+ UniswapIncreaseLiquidityProvisionRequestAmount0Desired = TypeAliasType(
17
+ "UniswapIncreaseLiquidityProvisionRequestAmount0Desired", Union[float, str]
18
+ )
19
+ r"""The desired amount of the first token to deposit"""
20
+
21
+
22
+ UniswapIncreaseLiquidityProvisionRequestAmount1DesiredTypedDict = TypeAliasType(
23
+ "UniswapIncreaseLiquidityProvisionRequestAmount1DesiredTypedDict", Union[float, str]
24
+ )
25
+ r"""The desired amount of the second token to deposit"""
26
+
27
+
28
+ UniswapIncreaseLiquidityProvisionRequestAmount1Desired = TypeAliasType(
29
+ "UniswapIncreaseLiquidityProvisionRequestAmount1Desired", Union[float, str]
30
+ )
31
+ r"""The desired amount of the second token to deposit"""
32
+
33
+
34
+ UniswapIncreaseLiquidityProvisionRequestAmount0MinTypedDict = TypeAliasType(
35
+ "UniswapIncreaseLiquidityProvisionRequestAmount0MinTypedDict", Union[float, str]
36
+ )
37
+ r"""The minimum amount of the first token to deposit"""
38
+
39
+
40
+ UniswapIncreaseLiquidityProvisionRequestAmount0Min = TypeAliasType(
41
+ "UniswapIncreaseLiquidityProvisionRequestAmount0Min", Union[float, str]
42
+ )
43
+ r"""The minimum amount of the first token to deposit"""
44
+
45
+
46
+ UniswapIncreaseLiquidityProvisionRequestAmount1MinTypedDict = TypeAliasType(
47
+ "UniswapIncreaseLiquidityProvisionRequestAmount1MinTypedDict", Union[float, str]
48
+ )
49
+ r"""The minimum amount of the second token to deposit"""
50
+
51
+
52
+ UniswapIncreaseLiquidityProvisionRequestAmount1Min = TypeAliasType(
53
+ "UniswapIncreaseLiquidityProvisionRequestAmount1Min", Union[float, str]
54
+ )
55
+ r"""The minimum amount of the second token to deposit"""
56
+
57
+
58
+ class UniswapIncreaseLiquidityProvisionRequestTypedDict(TypedDict):
59
+ r"""Request model for increasing liquidity provision in Uniswap V3."""
60
+
61
+ token_id: int
62
+ r"""Token ID of the NFT representing the liquidity provisioned position."""
63
+ amount0_desired: UniswapIncreaseLiquidityProvisionRequestAmount0DesiredTypedDict
64
+ r"""The desired amount of the first token to deposit"""
65
+ amount1_desired: UniswapIncreaseLiquidityProvisionRequestAmount1DesiredTypedDict
66
+ r"""The desired amount of the second token to deposit"""
67
+ amount0_min: UniswapIncreaseLiquidityProvisionRequestAmount0MinTypedDict
68
+ r"""The minimum amount of the first token to deposit"""
69
+ amount1_min: UniswapIncreaseLiquidityProvisionRequestAmount1MinTypedDict
70
+ r"""The minimum amount of the second token to deposit"""
71
+ chain: Chain
72
+ r"""The chain to use."""
73
+ sender: str
74
+ r"""The address of the transaction sender."""
75
+
76
+
77
+ class UniswapIncreaseLiquidityProvisionRequest(BaseModel):
78
+ r"""Request model for increasing liquidity provision in Uniswap V3."""
79
+
80
+ token_id: int
81
+ r"""Token ID of the NFT representing the liquidity provisioned position."""
82
+
83
+ amount0_desired: UniswapIncreaseLiquidityProvisionRequestAmount0Desired
84
+ r"""The desired amount of the first token to deposit"""
85
+
86
+ amount1_desired: UniswapIncreaseLiquidityProvisionRequestAmount1Desired
87
+ r"""The desired amount of the second token to deposit"""
88
+
89
+ amount0_min: UniswapIncreaseLiquidityProvisionRequestAmount0Min
90
+ r"""The minimum amount of the first token to deposit"""
91
+
92
+ amount1_min: UniswapIncreaseLiquidityProvisionRequestAmount1Min
93
+ r"""The minimum amount of the second token to deposit"""
94
+
95
+ chain: Chain
96
+ r"""The chain to use."""
97
+
98
+ sender: str
99
+ r"""The address of the transaction sender."""
@@ -0,0 +1,24 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .uniswappositionssolidityresponse import (
5
+ UniswapPositionsSolidityResponse,
6
+ UniswapPositionsSolidityResponseTypedDict,
7
+ )
8
+ from compass_api_sdk.types import BaseModel
9
+ from typing import Dict
10
+ from typing_extensions import TypedDict
11
+
12
+
13
+ class UniswapLPPositionsInfoResponseTypedDict(TypedDict):
14
+ positions: Dict[str, UniswapPositionsSolidityResponseTypedDict]
15
+ r"""Liquidity provision positions belonging to a particular user keyed by the
16
+ token of owner index of the position.
17
+ """
18
+
19
+
20
+ class UniswapLPPositionsInfoResponse(BaseModel):
21
+ positions: Dict[str, UniswapPositionsSolidityResponse]
22
+ r"""Liquidity provision positions belonging to a particular user keyed by the
23
+ token of owner index of the position.
24
+ """