compass_api_sdk 0.2.0__py3-none-any.whl → 0.3.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 (195) hide show
  1. {compass_api_sdk-0.2.0.dist-info → compass_api_sdk-0.3.0.dist-info}/METADATA +34 -33
  2. compass_api_sdk-0.3.0.dist-info/RECORD +180 -0
  3. {compass_api_sdk → compassapisdk}/_hooks/sdkhooks.py +1 -1
  4. {compass_api_sdk → compassapisdk}/_hooks/types.py +1 -1
  5. {compass_api_sdk → compassapisdk}/_version.py +3 -3
  6. {compass_api_sdk → compassapisdk}/aave_v3.py +27 -27
  7. {compass_api_sdk → compassapisdk}/aerodrome_slipstream.py +11 -11
  8. {compass_api_sdk → compassapisdk}/basesdk.py +3 -3
  9. {compass_api_sdk → compassapisdk}/errors/httpvalidationerror.py +3 -3
  10. {compass_api_sdk → compassapisdk}/httpclient.py +7 -37
  11. {compass_api_sdk → compassapisdk}/models/__init__.py +46 -25
  12. {compass_api_sdk → compassapisdk}/models/aave_historical_transactionsop.py +8 -2
  13. {compass_api_sdk → compassapisdk}/models/aave_liquidity_changeop.py +8 -12
  14. {compass_api_sdk → compassapisdk}/models/aave_rateop.py +4 -12
  15. {compass_api_sdk → compassapisdk}/models/aave_reserve_overviewop.py +4 -12
  16. {compass_api_sdk → compassapisdk}/models/aave_token_priceop.py +4 -12
  17. {compass_api_sdk → compassapisdk}/models/aave_user_position_per_tokenop.py +6 -12
  18. {compass_api_sdk → compassapisdk}/models/aave_user_position_summaryop.py +4 -2
  19. {compass_api_sdk → compassapisdk}/models/aaveborrowparams.py +1 -1
  20. {compass_api_sdk → compassapisdk}/models/aaveborrowrequest.py +1 -1
  21. compassapisdk/models/aavehistoricaltransactionsresponse.py +65 -0
  22. {compass_api_sdk → compassapisdk}/models/aaveliquiditychangeresponse.py +1 -1
  23. compassapisdk/models/aavelooprequest.py +87 -0
  24. {compass_api_sdk → compassapisdk}/models/aaverateresponse.py +1 -1
  25. {compass_api_sdk → compassapisdk}/models/aaverepayparams.py +1 -1
  26. {compass_api_sdk → compassapisdk}/models/aaverepayrequest.py +1 -1
  27. {compass_api_sdk → compassapisdk}/models/aavereserveoverviewresponse.py +1 -1
  28. {compass_api_sdk → compassapisdk}/models/aavesupplyparams.py +1 -1
  29. {compass_api_sdk → compassapisdk}/models/aavesupplyrequest.py +1 -1
  30. {compass_api_sdk → compassapisdk}/models/aavetokenpriceresponse.py +1 -1
  31. {compass_api_sdk → compassapisdk}/models/aaveuserpositionpertokenresponse.py +1 -1
  32. {compass_api_sdk → compassapisdk}/models/aaveuserpositionsummaryresponse.py +1 -1
  33. {compass_api_sdk → compassapisdk}/models/aavewithdrawparams.py +1 -1
  34. {compass_api_sdk → compassapisdk}/models/aavewithdrawrequest.py +1 -1
  35. {compass_api_sdk → compassapisdk}/models/aerodrome_slipstream_liquidity_provision_positionsop.py +4 -2
  36. {compass_api_sdk → compassapisdk}/models/aerodrome_slipstream_pool_priceop.py +8 -22
  37. {compass_api_sdk → compassapisdk}/models/aerodromelppositionsresponse.py +1 -1
  38. {compass_api_sdk → compassapisdk}/models/aerodromeposition.py +1 -1
  39. {compass_api_sdk → compassapisdk}/models/aerodromeslipstreambuyexactlyparams.py +1 -1
  40. {compass_api_sdk → compassapisdk}/models/aerodromeslipstreambuyexactlyrequest.py +1 -1
  41. {compass_api_sdk → compassapisdk}/models/aerodromeslipstreamincreaseliquidityprovisionparams.py +1 -1
  42. {compass_api_sdk → compassapisdk}/models/aerodromeslipstreamincreaseliquidityprovisionrequest.py +1 -1
  43. {compass_api_sdk → compassapisdk}/models/aerodromeslipstreammintliquidityprovisionparams.py +1 -1
  44. {compass_api_sdk → compassapisdk}/models/aerodromeslipstreammintliquidityprovisionrequest.py +1 -1
  45. {compass_api_sdk → compassapisdk}/models/aerodromeslipstreampoolpriceresponse.py +1 -1
  46. {compass_api_sdk → compassapisdk}/models/aerodromeslipstreamsellexactlyparams.py +1 -1
  47. {compass_api_sdk → compassapisdk}/models/aerodromeslipstreamsellexactlyrequest.py +1 -1
  48. {compass_api_sdk → compassapisdk}/models/aerodromeslipstreamwithdrawliquidityprovisionparams.py +1 -1
  49. {compass_api_sdk → compassapisdk}/models/aerodromeslipstreamwithdrawliquidityprovisionrequest.py +1 -1
  50. {compass_api_sdk → compassapisdk}/models/allowanceinforesponse.py +1 -1
  51. compassapisdk/models/borrow.py +67 -0
  52. {compass_api_sdk → compassapisdk}/models/chaininfo.py +1 -1
  53. {compass_api_sdk → compassapisdk}/models/compass_api_backend_models_morpho_read_response_get_markets_asset.py +1 -1
  54. {compass_api_sdk → compassapisdk}/models/compass_api_backend_models_morpho_read_response_get_vaults_asset.py +1 -1
  55. {compass_api_sdk → compassapisdk}/models/ensnameinforesponse.py +1 -1
  56. {compass_api_sdk → compassapisdk}/models/generic_allowanceop.py +10 -12
  57. {compass_api_sdk → compassapisdk}/models/generic_ensop.py +4 -2
  58. {compass_api_sdk → compassapisdk}/models/generic_portfolioop.py +4 -2
  59. {compass_api_sdk → compassapisdk}/models/generic_supported_tokensop.py +2 -2
  60. {compass_api_sdk → compassapisdk}/models/generic_visualize_portfolioop.py +4 -2
  61. {compass_api_sdk → compassapisdk}/models/image.py +1 -1
  62. {compass_api_sdk → compassapisdk}/models/increaseallowanceanyparams.py +1 -1
  63. {compass_api_sdk → compassapisdk}/models/increaseallowanceparams.py +1 -1
  64. {compass_api_sdk → compassapisdk}/models/increaseallowancerequest.py +1 -1
  65. compassapisdk/models/liquidationcall.py +64 -0
  66. {compass_api_sdk → compassapisdk}/models/marketstate.py +1 -1
  67. {compass_api_sdk → compassapisdk}/models/morpho_market_positionop.py +11 -11
  68. {compass_api_sdk → compassapisdk}/models/morpho_marketsop.py +11 -11
  69. {compass_api_sdk → compassapisdk}/models/morpho_vault_positionop.py +11 -11
  70. {compass_api_sdk → compassapisdk}/models/morpho_vaultsop.py +22 -18
  71. {compass_api_sdk → compassapisdk}/models/morphoborrowrequest.py +9 -6
  72. {compass_api_sdk → compassapisdk}/models/morphocheckmarketpositionresponse.py +1 -1
  73. {compass_api_sdk → compassapisdk}/models/morphocheckvaultpositionresponse.py +1 -1
  74. {compass_api_sdk → compassapisdk}/models/morphodepositrequest.py +9 -6
  75. {compass_api_sdk → compassapisdk}/models/morphogetmarketsresponse.py +1 -1
  76. {compass_api_sdk → compassapisdk}/models/morphogetvaultsresponse.py +1 -1
  77. {compass_api_sdk → compassapisdk}/models/morphomarket.py +1 -1
  78. {compass_api_sdk → compassapisdk}/models/morphorepayrequest.py +9 -6
  79. {compass_api_sdk → compassapisdk}/models/morphosetvaultallowancerequest.py +9 -6
  80. {compass_api_sdk → compassapisdk}/models/morphosupplycollateralrequest.py +9 -6
  81. {compass_api_sdk → compassapisdk}/models/morphovault.py +1 -1
  82. {compass_api_sdk → compassapisdk}/models/morphowithdrawcollateralrequest.py +9 -6
  83. {compass_api_sdk → compassapisdk}/models/morphowithdrawrequest.py +9 -6
  84. {compass_api_sdk → compassapisdk}/models/multicallaction.py +1 -1
  85. {compass_api_sdk → compassapisdk}/models/multicallauthorizationrequest.py +1 -1
  86. {compass_api_sdk → compassapisdk}/models/multicallauthorizationresponse.py +1 -1
  87. {compass_api_sdk → compassapisdk}/models/multicallexecuterequest.py +1 -1
  88. {compass_api_sdk → compassapisdk}/models/portfolio.py +1 -1
  89. compassapisdk/models/redeemunderlying.py +48 -0
  90. compassapisdk/models/repay.py +52 -0
  91. compassapisdk/models/reserve.py +77 -0
  92. {compass_api_sdk → compassapisdk}/models/security.py +2 -2
  93. {compass_api_sdk → compassapisdk}/models/signedauthorization.py +1 -1
  94. {compass_api_sdk → compassapisdk}/models/sky_positionop.py +4 -2
  95. {compass_api_sdk → compassapisdk}/models/skybuyrequest.py +2 -2
  96. {compass_api_sdk → compassapisdk}/models/skycheckpositionresponse.py +1 -1
  97. {compass_api_sdk → compassapisdk}/models/skydepositrequest.py +2 -2
  98. {compass_api_sdk → compassapisdk}/models/skysellrequest.py +2 -2
  99. {compass_api_sdk → compassapisdk}/models/skywithdrawrequest.py +2 -2
  100. compassapisdk/models/supply.py +54 -0
  101. compassapisdk/models/swapborrowrate.py +56 -0
  102. {compass_api_sdk → compassapisdk}/models/token_addressop.py +4 -12
  103. {compass_api_sdk → compassapisdk}/models/token_balanceop.py +8 -2
  104. {compass_api_sdk → compassapisdk}/models/token_priceop.py +4 -12
  105. {compass_api_sdk → compassapisdk}/models/tokenaddressresponse.py +1 -1
  106. {compass_api_sdk → compassapisdk}/models/tokenbalance.py +1 -1
  107. {compass_api_sdk → compassapisdk}/models/tokenbalanceresponse.py +1 -1
  108. {compass_api_sdk → compassapisdk}/models/tokeninfo.py +1 -1
  109. {compass_api_sdk → compassapisdk}/models/tokenpriceresponse.py +1 -1
  110. {compass_api_sdk → compassapisdk}/models/tokentransfererc20params.py +1 -1
  111. {compass_api_sdk → compassapisdk}/models/tokentransferrequest.py +1 -1
  112. {compass_api_sdk → compassapisdk}/models/uniswap_liquidity_provision_in_rangeop.py +4 -2
  113. {compass_api_sdk → compassapisdk}/models/uniswap_liquidity_provision_positionsop.py +4 -2
  114. {compass_api_sdk → compassapisdk}/models/uniswap_pool_priceop.py +8 -30
  115. {compass_api_sdk → compassapisdk}/models/uniswap_quote_buy_exactlyop.py +12 -30
  116. {compass_api_sdk → compassapisdk}/models/uniswap_quote_sell_exactlyop.py +12 -30
  117. {compass_api_sdk → compassapisdk}/models/uniswapbuyexactlyparams.py +7 -7
  118. {compass_api_sdk → compassapisdk}/models/uniswapbuyexactlyrequest.py +7 -7
  119. {compass_api_sdk → compassapisdk}/models/uniswapbuyquoteinforesponse.py +1 -1
  120. {compass_api_sdk → compassapisdk}/models/uniswapcheckinrangeresponse.py +1 -1
  121. {compass_api_sdk → compassapisdk}/models/uniswapincreaseliquidityprovisionparams.py +1 -1
  122. {compass_api_sdk → compassapisdk}/models/uniswapincreaseliquidityprovisionrequest.py +1 -1
  123. {compass_api_sdk → compassapisdk}/models/uniswaplppositionsinforesponse.py +1 -1
  124. {compass_api_sdk → compassapisdk}/models/uniswapmintliquidityprovisionparams.py +1 -1
  125. {compass_api_sdk → compassapisdk}/models/uniswapmintliquidityprovisionrequest.py +1 -1
  126. {compass_api_sdk → compassapisdk}/models/uniswappoolpriceresponse.py +1 -1
  127. {compass_api_sdk → compassapisdk}/models/uniswappositionssolidityresponse.py +1 -1
  128. {compass_api_sdk → compassapisdk}/models/uniswapsellexactlyparams.py +1 -1
  129. {compass_api_sdk → compassapisdk}/models/uniswapsellexactlyrequest.py +1 -1
  130. {compass_api_sdk → compassapisdk}/models/uniswapsellquoteinforesponse.py +1 -1
  131. {compass_api_sdk → compassapisdk}/models/uniswapwithdrawliquidityprovisionparams.py +1 -1
  132. {compass_api_sdk → compassapisdk}/models/uniswapwithdrawliquidityprovisionrequest.py +1 -1
  133. {compass_api_sdk → compassapisdk}/models/unsignedmulticalltransaction.py +1 -1
  134. {compass_api_sdk → compassapisdk}/models/unsignedtransaction.py +1 -1
  135. {compass_api_sdk → compassapisdk}/models/unwrapwethparams.py +1 -1
  136. {compass_api_sdk → compassapisdk}/models/unwrapwethrequest.py +1 -1
  137. compassapisdk/models/usageascollateral.py +53 -0
  138. {compass_api_sdk → compassapisdk}/models/validationerror.py +1 -1
  139. {compass_api_sdk → compassapisdk}/models/vaultstate.py +1 -1
  140. {compass_api_sdk → compassapisdk}/models/weeklyapys.py +1 -1
  141. {compass_api_sdk → compassapisdk}/models/wrapethparams.py +1 -1
  142. {compass_api_sdk → compassapisdk}/models/wrapethrequest.py +1 -1
  143. {compass_api_sdk → compassapisdk}/morpho.py +79 -63
  144. {compass_api_sdk → compassapisdk}/sdk.py +11 -11
  145. {compass_api_sdk → compassapisdk}/sdkconfiguration.py +2 -2
  146. {compass_api_sdk → compassapisdk}/sky.py +5 -5
  147. {compass_api_sdk → compassapisdk}/token_sdk.py +11 -11
  148. {compass_api_sdk → compassapisdk}/transaction_batching.py +287 -3
  149. {compass_api_sdk → compassapisdk}/uniswap_v3.py +39 -39
  150. {compass_api_sdk → compassapisdk}/universal.py +15 -15
  151. compass_api_sdk/_hooks/registration.py +0 -13
  152. compass_api_sdk/models/aavehistoricaltransactionbase.py +0 -113
  153. compass_api_sdk/models/aavehistoricaltransactionsresponse.py +0 -31
  154. compass_api_sdk/models/action.py +0 -14
  155. compass_api_sdk/models/borrow.py +0 -33
  156. compass_api_sdk/models/collateralreserve.py +0 -16
  157. compass_api_sdk/models/liquidationcall.py +0 -37
  158. compass_api_sdk/models/principalreserve.py +0 -16
  159. compass_api_sdk/models/redeemunderlying.py +0 -21
  160. compass_api_sdk/models/repay.py +0 -21
  161. compass_api_sdk/models/reserve.py +0 -16
  162. compass_api_sdk/models/supply.py +0 -21
  163. compass_api_sdk/models/swapborrowrate.py +0 -27
  164. compass_api_sdk/models/usageascollateral.py +0 -21
  165. compass_api_sdk-0.2.0.dist-info/RECORD +0 -184
  166. {compass_api_sdk-0.2.0.dist-info → compass_api_sdk-0.3.0.dist-info}/WHEEL +0 -0
  167. {compass_api_sdk → compassapisdk}/__init__.py +0 -0
  168. {compass_api_sdk → compassapisdk}/_hooks/__init__.py +0 -0
  169. {compass_api_sdk → compassapisdk}/errors/__init__.py +0 -0
  170. {compass_api_sdk → compassapisdk}/errors/apierror.py +0 -0
  171. {compass_api_sdk → compassapisdk}/models/chain.py +0 -0
  172. {compass_api_sdk → compassapisdk}/models/contractname.py +0 -0
  173. {compass_api_sdk → compassapisdk}/models/feeenum.py +0 -0
  174. {compass_api_sdk → compassapisdk}/models/interestratemode.py +0 -0
  175. {compass_api_sdk → compassapisdk}/models/multicallactiontype.py +0 -0
  176. {compass_api_sdk → compassapisdk}/models/token_enum.py +0 -0
  177. {compass_api_sdk → compassapisdk}/py.typed +0 -0
  178. {compass_api_sdk → compassapisdk}/types/__init__.py +0 -0
  179. {compass_api_sdk → compassapisdk}/types/basemodel.py +0 -0
  180. {compass_api_sdk → compassapisdk}/utils/__init__.py +0 -0
  181. {compass_api_sdk → compassapisdk}/utils/annotations.py +0 -0
  182. {compass_api_sdk → compassapisdk}/utils/datetimes.py +0 -0
  183. {compass_api_sdk → compassapisdk}/utils/enums.py +0 -0
  184. {compass_api_sdk → compassapisdk}/utils/eventstreaming.py +0 -0
  185. {compass_api_sdk → compassapisdk}/utils/forms.py +0 -0
  186. {compass_api_sdk → compassapisdk}/utils/headers.py +0 -0
  187. {compass_api_sdk → compassapisdk}/utils/logger.py +0 -0
  188. {compass_api_sdk → compassapisdk}/utils/metadata.py +0 -0
  189. {compass_api_sdk → compassapisdk}/utils/queryparams.py +0 -0
  190. {compass_api_sdk → compassapisdk}/utils/requestbodies.py +0 -0
  191. {compass_api_sdk → compassapisdk}/utils/retries.py +0 -0
  192. {compass_api_sdk → compassapisdk}/utils/security.py +0 -0
  193. {compass_api_sdk → compassapisdk}/utils/serializers.py +0 -0
  194. {compass_api_sdk → compassapisdk}/utils/url.py +0 -0
  195. {compass_api_sdk → compassapisdk}/utils/values.py +0 -0
@@ -0,0 +1,56 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .reserve import Reserve, ReserveTypedDict
5
+ from compassapisdk.types import BaseModel
6
+ from compassapisdk.utils import validate_const
7
+ import pydantic
8
+ from pydantic.functional_validators import AfterValidator
9
+ from typing import Literal
10
+ from typing_extensions import Annotated, TypedDict
11
+
12
+
13
+ class SwapBorrowRateTypedDict(TypedDict):
14
+ id: str
15
+ r"""The id of a historical transaction on aave"""
16
+ timestamp: int
17
+ r"""Timestamp in unix time"""
18
+ tx_hash: str
19
+ r"""Transaction hash. You can paste these into the search bar on etherscan"""
20
+ borrow_rate_mode_from: int
21
+ borrow_rate_mode_to: int
22
+ variable_borrow_rate: int
23
+ stable_borrow_rate: int
24
+ reserve: ReserveTypedDict
25
+ block: int
26
+ action: Literal["SwapBorrowRate"]
27
+
28
+
29
+ class SwapBorrowRate(BaseModel):
30
+ id: str
31
+ r"""The id of a historical transaction on aave"""
32
+
33
+ timestamp: int
34
+ r"""Timestamp in unix time"""
35
+
36
+ tx_hash: Annotated[str, pydantic.Field(alias="txHash")]
37
+ r"""Transaction hash. You can paste these into the search bar on etherscan"""
38
+
39
+ borrow_rate_mode_from: Annotated[int, pydantic.Field(alias="borrowRateModeFrom")]
40
+
41
+ borrow_rate_mode_to: Annotated[int, pydantic.Field(alias="borrowRateModeTo")]
42
+
43
+ variable_borrow_rate: Annotated[int, pydantic.Field(alias="variableBorrowRate")]
44
+
45
+ stable_borrow_rate: Annotated[int, pydantic.Field(alias="stableBorrowRate")]
46
+
47
+ reserve: Reserve
48
+
49
+ block: int
50
+
51
+ ACTION: Annotated[
52
+ Annotated[
53
+ Literal["SwapBorrowRate"], AfterValidator(validate_const("SwapBorrowRate"))
54
+ ],
55
+ pydantic.Field(alias="action"),
56
+ ] = "SwapBorrowRate"
@@ -1,8 +1,8 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from compass_api_sdk.types import BaseModel
5
- from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
4
+ from compassapisdk.types import BaseModel
5
+ from compassapisdk.utils import FieldMetadata, QueryParamMetadata
6
6
  from enum import Enum
7
7
  from typing_extensions import Annotated, TypedDict
8
8
 
@@ -72,11 +72,7 @@ class TokenAddressRequestTypedDict(TypedDict):
72
72
  chain: TokenAddressChain
73
73
  r"""The chain to use."""
74
74
  token: TokenAddressToken
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
- """
75
+ r"""The token symbol to get the address for.."""
80
76
 
81
77
 
82
78
  class TokenAddressRequest(BaseModel):
@@ -90,8 +86,4 @@ class TokenAddressRequest(BaseModel):
90
86
  TokenAddressToken,
91
87
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
92
88
  ] = TokenAddressToken.WETH
93
- r"""A class representing the token.
94
-
95
- This class is used to represent the token in the system. Notice individual
96
- endpoints' documentation where per chain tokens are presented.
97
- """
89
+ r"""The token symbol to get the address for.."""
@@ -2,8 +2,8 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from .token_enum import TokenEnum
5
- from compass_api_sdk.types import BaseModel
6
- from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
5
+ from compassapisdk.types import BaseModel
6
+ from compassapisdk.utils import FieldMetadata, QueryParamMetadata
7
7
  from enum import Enum
8
8
  from typing import Union
9
9
  from typing_extensions import Annotated, TypeAliasType, TypedDict
@@ -20,16 +20,20 @@ class TokenBalanceChain(str, Enum):
20
20
  TokenBalanceTokenTypedDict = TypeAliasType(
21
21
  "TokenBalanceTokenTypedDict", Union[TokenEnum, str]
22
22
  )
23
+ r"""The symbol of the token for which the balance is checked.."""
23
24
 
24
25
 
25
26
  TokenBalanceToken = TypeAliasType("TokenBalanceToken", Union[TokenEnum, str])
27
+ r"""The symbol of the token for which the balance is checked.."""
26
28
 
27
29
 
28
30
  class TokenBalanceRequestTypedDict(TypedDict):
29
31
  token: TokenBalanceTokenTypedDict
32
+ r"""The symbol of the token for which the balance is checked.."""
30
33
  chain: TokenBalanceChain
31
34
  r"""The chain to use."""
32
35
  user: str
36
+ r"""The user to get the ERC20 balance of."""
33
37
 
34
38
 
35
39
  class TokenBalanceRequest(BaseModel):
@@ -37,6 +41,7 @@ class TokenBalanceRequest(BaseModel):
37
41
  TokenBalanceToken,
38
42
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
39
43
  ]
44
+ r"""The symbol of the token for which the balance is checked.."""
40
45
 
41
46
  chain: Annotated[
42
47
  TokenBalanceChain,
@@ -47,3 +52,4 @@ class TokenBalanceRequest(BaseModel):
47
52
  user: Annotated[
48
53
  str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
49
54
  ] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"
55
+ r"""The user to get the ERC20 balance of."""
@@ -1,8 +1,8 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from compass_api_sdk.types import BaseModel
5
- from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
4
+ from compassapisdk.types import BaseModel
5
+ from compassapisdk.utils import FieldMetadata, QueryParamMetadata
6
6
  from enum import Enum
7
7
  from typing_extensions import Annotated, TypedDict
8
8
 
@@ -72,11 +72,7 @@ class TokenPriceRequestTypedDict(TypedDict):
72
72
  chain: TokenPriceChain
73
73
  r"""The chain to use."""
74
74
  token: TokenPriceToken
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
- """
75
+ r"""The symbol of the token for which to get the price."""
80
76
 
81
77
 
82
78
  class TokenPriceRequest(BaseModel):
@@ -90,8 +86,4 @@ class TokenPriceRequest(BaseModel):
90
86
  TokenPriceToken,
91
87
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
92
88
  ] = TokenPriceToken.WBTC
93
- r"""A class representing the token.
94
-
95
- This class is used to represent the token in the system. Notice individual
96
- endpoints' documentation where per chain tokens are presented.
97
- """
89
+ r"""The symbol of the token for which to get the price."""
@@ -1,7 +1,7 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from compass_api_sdk.types import BaseModel
4
+ from compassapisdk.types import BaseModel
5
5
  from typing_extensions import TypedDict
6
6
 
7
7
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from .token_enum import TokenEnum
5
- from compass_api_sdk.types import BaseModel
5
+ from compassapisdk.types import BaseModel
6
6
  from typing_extensions import TypedDict
7
7
 
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from .token_enum import TokenEnum
5
- from compass_api_sdk.types import BaseModel
5
+ from compassapisdk.types import BaseModel
6
6
  from typing import Union
7
7
  from typing_extensions import TypeAliasType, TypedDict
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from .token_enum import TokenEnum
5
- from compass_api_sdk.types import BaseModel
5
+ from compassapisdk.types import BaseModel
6
6
  from typing import List
7
7
  from typing_extensions import TypedDict
8
8
 
@@ -1,7 +1,7 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from compass_api_sdk.types import BaseModel
4
+ from compassapisdk.types import BaseModel
5
5
  from typing_extensions import TypedDict
6
6
 
7
7
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from .token_enum import TokenEnum
5
- from compass_api_sdk.types import BaseModel
5
+ from compassapisdk.types import BaseModel
6
6
  from typing import Union
7
7
  from typing_extensions import TypeAliasType, TypedDict
8
8
 
@@ -3,7 +3,7 @@
3
3
  from __future__ import annotations
4
4
  from .chain import Chain
5
5
  from .token_enum import TokenEnum
6
- from compass_api_sdk.types import BaseModel
6
+ from compassapisdk.types import BaseModel
7
7
  from typing import Union
8
8
  from typing_extensions import TypeAliasType, TypedDict
9
9
 
@@ -1,8 +1,8 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from compass_api_sdk.types import BaseModel
5
- from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
4
+ from compassapisdk.types import BaseModel
5
+ from compassapisdk.utils import FieldMetadata, QueryParamMetadata
6
6
  from enum import Enum
7
7
  from typing_extensions import Annotated, TypedDict
8
8
 
@@ -19,6 +19,7 @@ class UniswapLiquidityProvisionInRangeRequestTypedDict(TypedDict):
19
19
  chain: UniswapLiquidityProvisionInRangeChain
20
20
  r"""The chain to use."""
21
21
  token_id: int
22
+ r"""Token ID of the NFT representing the liquidity provisioned position."""
22
23
 
23
24
 
24
25
  class UniswapLiquidityProvisionInRangeRequest(BaseModel):
@@ -31,3 +32,4 @@ class UniswapLiquidityProvisionInRangeRequest(BaseModel):
31
32
  token_id: Annotated[
32
33
  int, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
33
34
  ] = 4318185
35
+ r"""Token ID of the NFT representing the liquidity provisioned position."""
@@ -1,8 +1,8 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from compass_api_sdk.types import BaseModel
5
- from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
4
+ from compassapisdk.types import BaseModel
5
+ from compassapisdk.utils import FieldMetadata, QueryParamMetadata
6
6
  from enum import Enum
7
7
  from typing import Optional
8
8
  from typing_extensions import Annotated, NotRequired, TypedDict
@@ -20,6 +20,7 @@ class UniswapLiquidityProvisionPositionsRequestTypedDict(TypedDict):
20
20
  chain: UniswapLiquidityProvisionPositionsChain
21
21
  r"""The chain to use."""
22
22
  user: NotRequired[str]
23
+ r"""The user to get positions for."""
23
24
 
24
25
 
25
26
  class UniswapLiquidityProvisionPositionsRequest(BaseModel):
@@ -33,3 +34,4 @@ class UniswapLiquidityProvisionPositionsRequest(BaseModel):
33
34
  Optional[str],
34
35
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
35
36
  ] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"
37
+ r"""The user to get positions for."""
@@ -1,8 +1,8 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from compass_api_sdk.types import BaseModel
5
- from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
4
+ from compassapisdk.types import BaseModel
5
+ from compassapisdk.utils import FieldMetadata, QueryParamMetadata
6
6
  from enum import Enum
7
7
  from typing_extensions import Annotated, TypedDict
8
8
 
@@ -137,22 +137,11 @@ class UniswapPoolPriceRequestTypedDict(TypedDict):
137
137
  chain: UniswapPoolPriceChain
138
138
  r"""The chain to use."""
139
139
  token_in: UniswapPoolPriceTokenInToken
140
- r"""A class representing the token.
141
-
142
- This class is used to represent the token in the system. Notice individual
143
- endpoints' documentation where per chain tokens are presented.
144
- """
140
+ r"""The symbol of a token in the pool"""
145
141
  token_out: UniswapPoolPriceTokenOutToken
146
- r"""A class representing the token.
147
-
148
- This class is used to represent the token in the system. Notice individual
149
- endpoints' documentation where per chain tokens are presented.
150
- """
142
+ r"""The symbol of a token in the pool"""
151
143
  fee: UniswapPoolPriceFeeEnum
152
- r"""The transaction fee of a Uniswap pool in bips.
153
-
154
- Uniswap supports 4 different fee levels.
155
- """
144
+ r"""The fee of the pool"""
156
145
 
157
146
 
158
147
  class UniswapPoolPriceRequest(BaseModel):
@@ -166,27 +155,16 @@ class UniswapPoolPriceRequest(BaseModel):
166
155
  UniswapPoolPriceTokenInToken,
167
156
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
168
157
  ] = UniswapPoolPriceTokenInToken.USDC
169
- r"""A class representing the token.
170
-
171
- This class is used to represent the token in the system. Notice individual
172
- endpoints' documentation where per chain tokens are presented.
173
- """
158
+ r"""The symbol of a token in the pool"""
174
159
 
175
160
  token_out: Annotated[
176
161
  UniswapPoolPriceTokenOutToken,
177
162
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
178
163
  ] = UniswapPoolPriceTokenOutToken.USDT
179
- r"""A class representing the token.
180
-
181
- This class is used to represent the token in the system. Notice individual
182
- endpoints' documentation where per chain tokens are presented.
183
- """
164
+ r"""The symbol of a token in the pool"""
184
165
 
185
166
  fee: Annotated[
186
167
  UniswapPoolPriceFeeEnum,
187
168
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
188
169
  ] = UniswapPoolPriceFeeEnum.ZERO_DOT_01
189
- r"""The transaction fee of a Uniswap pool in bips.
190
-
191
- Uniswap supports 4 different fee levels.
192
- """
170
+ r"""The fee of the pool"""
@@ -1,8 +1,8 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from compass_api_sdk.types import BaseModel
5
- from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
4
+ from compassapisdk.types import BaseModel
5
+ from compassapisdk.utils import FieldMetadata, QueryParamMetadata
6
6
  from enum import Enum
7
7
  from typing import Union
8
8
  from typing_extensions import Annotated, TypeAliasType, TypedDict
@@ -137,34 +137,26 @@ class UniswapQuoteBuyExactlyFeeEnum(str, Enum):
137
137
  UniswapQuoteBuyExactlyAmountOutTypedDict = TypeAliasType(
138
138
  "UniswapQuoteBuyExactlyAmountOutTypedDict", Union[float, str]
139
139
  )
140
+ r"""The amount of the token to swap to"""
140
141
 
141
142
 
142
143
  UniswapQuoteBuyExactlyAmountOut = TypeAliasType(
143
144
  "UniswapQuoteBuyExactlyAmountOut", Union[float, str]
144
145
  )
146
+ r"""The amount of the token to swap to"""
145
147
 
146
148
 
147
149
  class UniswapQuoteBuyExactlyRequestTypedDict(TypedDict):
148
150
  amount_out: UniswapQuoteBuyExactlyAmountOutTypedDict
151
+ r"""The amount of the token to swap to"""
149
152
  chain: UniswapQuoteBuyExactlyChain
150
153
  r"""The chain to use."""
151
154
  token_in: 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
- """
155
+ r"""The symbol of the token to swap from."""
157
156
  token_out: 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
- """
157
+ r"""The symbol of the token to swap to."""
163
158
  fee: UniswapQuoteBuyExactlyFeeEnum
164
- r"""The transaction fee of a Uniswap pool in bips.
165
-
166
- Uniswap supports 4 different fee levels.
167
- """
159
+ r"""The fee to pay for the swap"""
168
160
 
169
161
 
170
162
  class UniswapQuoteBuyExactlyRequest(BaseModel):
@@ -172,6 +164,7 @@ class UniswapQuoteBuyExactlyRequest(BaseModel):
172
164
  UniswapQuoteBuyExactlyAmountOut,
173
165
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
174
166
  ]
167
+ r"""The amount of the token to swap to"""
175
168
 
176
169
  chain: Annotated[
177
170
  UniswapQuoteBuyExactlyChain,
@@ -183,27 +176,16 @@ class UniswapQuoteBuyExactlyRequest(BaseModel):
183
176
  UniswapQuoteBuyExactlyTokenInToken,
184
177
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
185
178
  ] = 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
- """
179
+ r"""The symbol of the token to swap from."""
191
180
 
192
181
  token_out: Annotated[
193
182
  UniswapQuoteBuyExactlyTokenOutToken,
194
183
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
195
184
  ] = 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
- """
185
+ r"""The symbol of the token to swap to."""
201
186
 
202
187
  fee: Annotated[
203
188
  UniswapQuoteBuyExactlyFeeEnum,
204
189
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
205
190
  ] = UniswapQuoteBuyExactlyFeeEnum.ZERO_DOT_01
206
- r"""The transaction fee of a Uniswap pool in bips.
207
-
208
- Uniswap supports 4 different fee levels.
209
- """
191
+ r"""The fee to pay for the swap"""
@@ -1,8 +1,8 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from compass_api_sdk.types import BaseModel
5
- from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
4
+ from compassapisdk.types import BaseModel
5
+ from compassapisdk.utils import FieldMetadata, QueryParamMetadata
6
6
  from enum import Enum
7
7
  from typing import Union
8
8
  from typing_extensions import Annotated, TypeAliasType, TypedDict
@@ -137,34 +137,26 @@ class UniswapQuoteSellExactlyFeeEnum(str, Enum):
137
137
  UniswapQuoteSellExactlyAmountInTypedDict = TypeAliasType(
138
138
  "UniswapQuoteSellExactlyAmountInTypedDict", Union[float, str]
139
139
  )
140
+ r"""The amount of the token to swap from"""
140
141
 
141
142
 
142
143
  UniswapQuoteSellExactlyAmountIn = TypeAliasType(
143
144
  "UniswapQuoteSellExactlyAmountIn", Union[float, str]
144
145
  )
146
+ r"""The amount of the token to swap from"""
145
147
 
146
148
 
147
149
  class UniswapQuoteSellExactlyRequestTypedDict(TypedDict):
148
150
  amount_in: UniswapQuoteSellExactlyAmountInTypedDict
151
+ r"""The amount of the token to swap from"""
149
152
  chain: UniswapQuoteSellExactlyChain
150
153
  r"""The chain to use."""
151
154
  token_in: 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
- """
155
+ r"""The symbol of the token to swap from."""
157
156
  token_out: 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
- """
157
+ r"""The symbol of the token to swap to."""
163
158
  fee: UniswapQuoteSellExactlyFeeEnum
164
- r"""The transaction fee of a Uniswap pool in bips.
165
-
166
- Uniswap supports 4 different fee levels.
167
- """
159
+ r"""The fee to pay for the swap"""
168
160
 
169
161
 
170
162
  class UniswapQuoteSellExactlyRequest(BaseModel):
@@ -172,6 +164,7 @@ class UniswapQuoteSellExactlyRequest(BaseModel):
172
164
  UniswapQuoteSellExactlyAmountIn,
173
165
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
174
166
  ]
167
+ r"""The amount of the token to swap from"""
175
168
 
176
169
  chain: Annotated[
177
170
  UniswapQuoteSellExactlyChain,
@@ -183,27 +176,16 @@ class UniswapQuoteSellExactlyRequest(BaseModel):
183
176
  UniswapQuoteSellExactlyTokenInToken,
184
177
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
185
178
  ] = 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
- """
179
+ r"""The symbol of the token to swap from."""
191
180
 
192
181
  token_out: Annotated[
193
182
  UniswapQuoteSellExactlyTokenOutToken,
194
183
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
195
184
  ] = 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
- """
185
+ r"""The symbol of the token to swap to."""
201
186
 
202
187
  fee: Annotated[
203
188
  UniswapQuoteSellExactlyFeeEnum,
204
189
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
205
190
  ] = UniswapQuoteSellExactlyFeeEnum.ZERO_DOT_01
206
- r"""The transaction fee of a Uniswap pool in bips.
207
-
208
- Uniswap supports 4 different fee levels.
209
- """
191
+ r"""The fee to pay for the swap"""
@@ -3,19 +3,19 @@
3
3
  from __future__ import annotations
4
4
  from .feeenum import FeeEnum
5
5
  from .token_enum import TokenEnum
6
- from compass_api_sdk.types import BaseModel
6
+ from compassapisdk.types import BaseModel
7
7
  from typing import Optional, Union
8
8
  from typing_extensions import NotRequired, TypeAliasType, TypedDict
9
9
 
10
10
 
11
- UniswapBuyExactlyParamsAmountOutTypedDict = TypeAliasType(
12
- "UniswapBuyExactlyParamsAmountOutTypedDict", Union[float, str]
11
+ UniswapBuyExactlyParamsAmountTypedDict = TypeAliasType(
12
+ "UniswapBuyExactlyParamsAmountTypedDict", Union[float, str]
13
13
  )
14
14
  r"""The amount of the token to swap to"""
15
15
 
16
16
 
17
- UniswapBuyExactlyParamsAmountOut = TypeAliasType(
18
- "UniswapBuyExactlyParamsAmountOut", Union[float, str]
17
+ UniswapBuyExactlyParamsAmount = TypeAliasType(
18
+ "UniswapBuyExactlyParamsAmount", Union[float, str]
19
19
  )
20
20
  r"""The amount of the token to swap to"""
21
21
 
@@ -38,7 +38,7 @@ class UniswapBuyExactlyParamsTypedDict(TypedDict):
38
38
 
39
39
  Uniswap supports 4 different fee levels.
40
40
  """
41
- amount_out: UniswapBuyExactlyParamsAmountOutTypedDict
41
+ amount: UniswapBuyExactlyParamsAmountTypedDict
42
42
  r"""The amount of the token to swap to"""
43
43
  max_slippage_percent: float
44
44
  r"""The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed."""
@@ -67,7 +67,7 @@ class UniswapBuyExactlyParams(BaseModel):
67
67
  Uniswap supports 4 different fee levels.
68
68
  """
69
69
 
70
- amount_out: UniswapBuyExactlyParamsAmountOut
70
+ amount: UniswapBuyExactlyParamsAmount
71
71
  r"""The amount of the token to swap to"""
72
72
 
73
73
  max_slippage_percent: float
@@ -4,19 +4,19 @@ from __future__ import annotations
4
4
  from .chain import Chain
5
5
  from .feeenum import FeeEnum
6
6
  from .token_enum import TokenEnum
7
- from compass_api_sdk.types import BaseModel
7
+ from compassapisdk.types import BaseModel
8
8
  from typing import Optional, Union
9
9
  from typing_extensions import NotRequired, TypeAliasType, TypedDict
10
10
 
11
11
 
12
- UniswapBuyExactlyRequestAmountOutTypedDict = TypeAliasType(
13
- "UniswapBuyExactlyRequestAmountOutTypedDict", Union[float, str]
12
+ UniswapBuyExactlyRequestAmountTypedDict = TypeAliasType(
13
+ "UniswapBuyExactlyRequestAmountTypedDict", Union[float, str]
14
14
  )
15
15
  r"""The amount of the token to swap to"""
16
16
 
17
17
 
18
- UniswapBuyExactlyRequestAmountOut = TypeAliasType(
19
- "UniswapBuyExactlyRequestAmountOut", Union[float, str]
18
+ UniswapBuyExactlyRequestAmount = TypeAliasType(
19
+ "UniswapBuyExactlyRequestAmount", Union[float, str]
20
20
  )
21
21
  r"""The amount of the token to swap to"""
22
22
 
@@ -41,7 +41,7 @@ class UniswapBuyExactlyRequestTypedDict(TypedDict):
41
41
 
42
42
  Uniswap supports 4 different fee levels.
43
43
  """
44
- amount_out: UniswapBuyExactlyRequestAmountOutTypedDict
44
+ amount: UniswapBuyExactlyRequestAmountTypedDict
45
45
  r"""The amount of the token to swap to"""
46
46
  max_slippage_percent: float
47
47
  r"""The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed."""
@@ -76,7 +76,7 @@ class UniswapBuyExactlyRequest(BaseModel):
76
76
  Uniswap supports 4 different fee levels.
77
77
  """
78
78
 
79
- amount_out: UniswapBuyExactlyRequestAmountOut
79
+ amount: UniswapBuyExactlyRequestAmount
80
80
  r"""The amount of the token to swap to"""
81
81
 
82
82
  max_slippage_percent: float
@@ -1,7 +1,7 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from compass_api_sdk.types import BaseModel
4
+ from compassapisdk.types import BaseModel
5
5
  from typing_extensions import TypedDict
6
6
 
7
7
 
@@ -1,7 +1,7 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from compass_api_sdk.types import BaseModel
4
+ from compassapisdk.types import BaseModel
5
5
  from typing_extensions import TypedDict
6
6
 
7
7
 
@@ -1,7 +1,7 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from compass_api_sdk.types import BaseModel
4
+ from compassapisdk.types import BaseModel
5
5
  from typing import Union
6
6
  from typing_extensions import TypeAliasType, TypedDict
7
7