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,65 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .borrow import Borrow, BorrowTypedDict
5
+ from .liquidationcall import LiquidationCall, LiquidationCallTypedDict
6
+ from .redeemunderlying import RedeemUnderlying, RedeemUnderlyingTypedDict
7
+ from .repay import Repay, RepayTypedDict
8
+ from .supply import Supply, SupplyTypedDict
9
+ from .swapborrowrate import SwapBorrowRate, SwapBorrowRateTypedDict
10
+ from .usageascollateral import UsageAsCollateral, UsageAsCollateralTypedDict
11
+ from compassapisdk.types import BaseModel
12
+ from compassapisdk.utils import get_discriminator
13
+ from pydantic import Discriminator, Tag
14
+ from typing import List, Union
15
+ from typing_extensions import Annotated, TypeAliasType, TypedDict
16
+
17
+
18
+ TransactionTypedDict = TypeAliasType(
19
+ "TransactionTypedDict",
20
+ Union[
21
+ RedeemUnderlyingTypedDict,
22
+ RepayTypedDict,
23
+ SupplyTypedDict,
24
+ UsageAsCollateralTypedDict,
25
+ BorrowTypedDict,
26
+ SwapBorrowRateTypedDict,
27
+ LiquidationCallTypedDict,
28
+ ],
29
+ )
30
+
31
+
32
+ Transaction = Annotated[
33
+ Union[
34
+ Annotated[Borrow, Tag("Borrow")],
35
+ Annotated[LiquidationCall, Tag("LiquidationCall")],
36
+ Annotated[RedeemUnderlying, Tag("RedeemUnderlying")],
37
+ Annotated[Repay, Tag("Repay")],
38
+ Annotated[Supply, Tag("Supply")],
39
+ Annotated[SwapBorrowRate, Tag("SwapBorrowRate")],
40
+ Annotated[UsageAsCollateral, Tag("UsageAsCollateral")],
41
+ ],
42
+ Discriminator(lambda m: get_discriminator(m, "action", "action")),
43
+ ]
44
+
45
+
46
+ class AaveHistoricalTransactionsResponseTypedDict(TypedDict):
47
+ r"""Response model for getting Aave historical transactions."""
48
+
49
+ offset: int
50
+ r"""Specifies how many transactions to skip before returning results, letting you choose the starting point for the data you want to receive."""
51
+ limit: int
52
+ r"""Sets the maximum number of transactions to include in the response, helping control the size of the returned dataset."""
53
+ transactions: List[TransactionTypedDict]
54
+
55
+
56
+ class AaveHistoricalTransactionsResponse(BaseModel):
57
+ r"""Response model for getting Aave historical transactions."""
58
+
59
+ offset: int
60
+ r"""Specifies how many transactions to skip before returning results, letting you choose the starting point for the data you want to receive."""
61
+
62
+ limit: int
63
+ r"""Sets the maximum number of transactions to include in the response, helping control the size of the returned dataset."""
64
+
65
+ transactions: List[Transaction]
@@ -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 datetime import datetime
6
6
  from typing_extensions import TypedDict
7
7
 
@@ -0,0 +1,87 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .chain import Chain
5
+ from .signedauthorization import SignedAuthorization, SignedAuthorizationTypedDict
6
+ from .token_enum import TokenEnum
7
+ from compassapisdk.types import BaseModel
8
+ from typing import Union
9
+ from typing_extensions import TypeAliasType, TypedDict
10
+
11
+
12
+ CollateralAmountTypedDict = TypeAliasType(
13
+ "CollateralAmountTypedDict", Union[float, str]
14
+ )
15
+ r"""Amount of collateral token to supply to Aave"""
16
+
17
+
18
+ CollateralAmount = TypeAliasType("CollateralAmount", Union[float, str])
19
+ r"""Amount of collateral token to supply to Aave"""
20
+
21
+
22
+ class AaveLoopRequestTypedDict(TypedDict):
23
+ r"""Request model for executing an Aave loop transaction."""
24
+
25
+ chain: Chain
26
+ r"""The chain to use."""
27
+ sender: str
28
+ r"""The address of the transaction sender."""
29
+ signed_authorization: SignedAuthorizationTypedDict
30
+ collateral_token: TokenEnum
31
+ r"""A class representing the token.
32
+
33
+ This class is used to represent the token in the system. Notice individual
34
+ endpoints' documentation where per chain tokens are presented.
35
+ """
36
+ borrow_token: TokenEnum
37
+ r"""A class representing the token.
38
+
39
+ This class is used to represent the token in the system. Notice individual
40
+ endpoints' documentation where per chain tokens are presented.
41
+ """
42
+ collateral_amount: CollateralAmountTypedDict
43
+ r"""Amount of collateral token to supply to Aave"""
44
+ loop_count: int
45
+ r"""Number of times to perform the supply-borrow loop"""
46
+ max_slippage_percent: float
47
+ r"""Maximum allowed slippage for token swaps in percentage"""
48
+ loan_to_value: float
49
+ r"""Loan To Value percentage of the loop"""
50
+
51
+
52
+ class AaveLoopRequest(BaseModel):
53
+ r"""Request model for executing an Aave loop transaction."""
54
+
55
+ chain: Chain
56
+ r"""The chain to use."""
57
+
58
+ sender: str
59
+ r"""The address of the transaction sender."""
60
+
61
+ signed_authorization: SignedAuthorization
62
+
63
+ collateral_token: TokenEnum
64
+ r"""A class representing the token.
65
+
66
+ This class is used to represent the token in the system. Notice individual
67
+ endpoints' documentation where per chain tokens are presented.
68
+ """
69
+
70
+ borrow_token: TokenEnum
71
+ r"""A class representing the token.
72
+
73
+ This class is used to represent the token in the system. Notice individual
74
+ endpoints' documentation where per chain tokens are presented.
75
+ """
76
+
77
+ collateral_amount: CollateralAmount
78
+ r"""Amount of collateral token to supply to Aave"""
79
+
80
+ loop_count: int
81
+ r"""Number of times to perform the supply-borrow loop"""
82
+
83
+ max_slippage_percent: float
84
+ r"""Maximum allowed slippage for token swaps in percentage"""
85
+
86
+ loan_to_value: float
87
+ r"""Loan To Value percentage of the loop"""
@@ -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
 
@@ -3,7 +3,7 @@
3
3
  from __future__ import annotations
4
4
  from .interestratemode import InterestRateMode
5
5
  from .token_enum import TokenEnum
6
- from compass_api_sdk.types import (
6
+ from compassapisdk.types import (
7
7
  BaseModel,
8
8
  Nullable,
9
9
  OptionalNullable,
@@ -4,7 +4,7 @@ from __future__ import annotations
4
4
  from .chain import Chain
5
5
  from .interestratemode import InterestRateMode
6
6
  from .token_enum import TokenEnum
7
- from compass_api_sdk.types import (
7
+ from compassapisdk.types import (
8
8
  BaseModel,
9
9
  Nullable,
10
10
  OptionalNullable,
@@ -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 (
5
+ from compassapisdk.types import (
6
6
  BaseModel,
7
7
  Nullable,
8
8
  OptionalNullable,
@@ -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 (
6
+ from compassapisdk.types import (
7
7
  BaseModel,
8
8
  Nullable,
9
9
  OptionalNullable,
@@ -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_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 import Optional
8
8
  from typing_extensions import Annotated, NotRequired, TypedDict
@@ -20,6 +20,7 @@ class AerodromeSlipstreamLiquidityProvisionPositionsRequestTypedDict(TypedDict):
20
20
  chain: AerodromeSlipstreamLiquidityProvisionPositionsChain
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 AerodromeSlipstreamLiquidityProvisionPositionsRequest(BaseModel):
@@ -33,3 +34,4 @@ class AerodromeSlipstreamLiquidityProvisionPositionsRequest(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 import Optional
8
8
  from typing_extensions import Annotated, NotRequired, TypedDict
@@ -126,18 +126,11 @@ class AerodromeSlipstreamPoolPriceRequestTypedDict(TypedDict):
126
126
  chain: AerodromeSlipstreamPoolPriceChain
127
127
  r"""The chain to use."""
128
128
  token_in: AerodromeSlipstreamPoolPriceTokenInToken
129
- r"""A class representing the token.
130
-
131
- This class is used to represent the token in the system. Notice individual
132
- endpoints' documentation where per chain tokens are presented.
133
- """
129
+ r"""The symbol of a token in the pool."""
134
130
  token_out: AerodromeSlipstreamPoolPriceTokenOutToken
135
- r"""A class representing the token.
136
-
137
- This class is used to represent the token in the system. Notice individual
138
- endpoints' documentation where per chain tokens are presented.
139
- """
131
+ r"""The symbol of a token in the pool."""
140
132
  tick_spacing: NotRequired[int]
133
+ r"""The tick spacing of the pool"""
141
134
 
142
135
 
143
136
  class AerodromeSlipstreamPoolPriceRequest(BaseModel):
@@ -151,23 +144,16 @@ class AerodromeSlipstreamPoolPriceRequest(BaseModel):
151
144
  AerodromeSlipstreamPoolPriceTokenInToken,
152
145
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
153
146
  ] = AerodromeSlipstreamPoolPriceTokenInToken.USDC
154
- r"""A class representing the token.
155
-
156
- This class is used to represent the token in the system. Notice individual
157
- endpoints' documentation where per chain tokens are presented.
158
- """
147
+ r"""The symbol of a token in the pool."""
159
148
 
160
149
  token_out: Annotated[
161
150
  AerodromeSlipstreamPoolPriceTokenOutToken,
162
151
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
163
152
  ] = AerodromeSlipstreamPoolPriceTokenOutToken.WETH
164
- r"""A class representing the token.
165
-
166
- This class is used to represent the token in the system. Notice individual
167
- endpoints' documentation where per chain tokens are presented.
168
- """
153
+ r"""The symbol of a token in the pool."""
169
154
 
170
155
  tick_spacing: Annotated[
171
156
  Optional[int],
172
157
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
173
158
  ] = 100
159
+ r"""The tick spacing of the pool"""
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from .aerodromeposition import AerodromePosition, AerodromePositionTypedDict
5
- from compass_api_sdk.types import BaseModel
5
+ from compassapisdk.types import BaseModel
6
6
  from typing import Dict
7
7
  from typing_extensions import 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_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
 
@@ -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,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
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from .chain import Chain
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 (
5
+ from compassapisdk.types import (
6
6
  BaseModel,
7
7
  Nullable,
8
8
  OptionalNullable,
@@ -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 (
6
+ from compassapisdk.types import (
7
7
  BaseModel,
8
8
  Nullable,
9
9
  OptionalNullable,
@@ -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 Optional, Union
7
7
  from typing_extensions import NotRequired, 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 Optional, Union
8
8
  from typing_extensions import NotRequired, TypeAliasType, TypedDict
9
9
 
@@ -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
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from .chain import Chain
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_extensions import TypedDict
7
7
 
8
8
 
@@ -0,0 +1,67 @@
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
+ from enum import Enum
8
+ import pydantic
9
+ from pydantic.functional_validators import AfterValidator
10
+ from typing import Literal
11
+ from typing_extensions import Annotated, TypedDict
12
+
13
+
14
+ class Borrowratemode(int, Enum):
15
+ r"""The interest rate mode to borrow: 1 represents stable interest rate mode. 2 represents variable interest rate mode"""
16
+
17
+ ONE = 1
18
+ TWO = 2
19
+
20
+
21
+ class BorrowTypedDict(TypedDict):
22
+ id: str
23
+ r"""The id of a historical transaction on aave"""
24
+ timestamp: int
25
+ r"""Timestamp in unix time"""
26
+ tx_hash: str
27
+ r"""Transaction hash. You can paste these into the search bar on etherscan"""
28
+ amount: float
29
+ r"""Quantity of token"""
30
+ borrow_rate_mode: Borrowratemode
31
+ r"""The interest rate mode to borrow: 1 represents stable interest rate mode. 2 represents variable interest rate mode"""
32
+ reserve: ReserveTypedDict
33
+ asset_price_usd: float
34
+ r"""Price of token in USD"""
35
+ block: int
36
+ action: Literal["Borrow"]
37
+ r"""The type of transaction"""
38
+
39
+
40
+ class Borrow(BaseModel):
41
+ id: str
42
+ r"""The id of a historical transaction on aave"""
43
+
44
+ timestamp: int
45
+ r"""Timestamp in unix time"""
46
+
47
+ tx_hash: Annotated[str, pydantic.Field(alias="txHash")]
48
+ r"""Transaction hash. You can paste these into the search bar on etherscan"""
49
+
50
+ amount: float
51
+ r"""Quantity of token"""
52
+
53
+ borrow_rate_mode: Annotated[Borrowratemode, pydantic.Field(alias="borrowRateMode")]
54
+ r"""The interest rate mode to borrow: 1 represents stable interest rate mode. 2 represents variable interest rate mode"""
55
+
56
+ reserve: Reserve
57
+
58
+ asset_price_usd: Annotated[float, pydantic.Field(alias="assetPriceUSD")]
59
+ r"""Price of token in USD"""
60
+
61
+ block: int
62
+
63
+ ACTION: Annotated[
64
+ Annotated[Literal["Borrow"], AfterValidator(validate_const("Borrow"))],
65
+ pydantic.Field(alias="action"),
66
+ ] = "Borrow"
67
+ r"""The type of transaction"""
@@ -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 (
4
+ from compassapisdk.types import (
5
5
  BaseModel,
6
6
  Nullable,
7
7
  OptionalNullable,
@@ -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 .chaininfo import ChainInfo, ChainInfoTypedDict
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
 
@@ -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