compass_api_sdk 0.0.1__py3-none-any.whl → 0.0.3__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.
- compass_api_sdk/_version.py +2 -2
- compass_api_sdk/aave_v3.py +20 -44
- compass_api_sdk/aerodrome_slipstream.py +8 -24
- compass_api_sdk/models/aave_liquidity_changeop.py +5 -6
- compass_api_sdk/models/aave_token_priceop.py +5 -6
- compass_api_sdk/models/aave_user_position_per_tokenop.py +4 -4
- compass_api_sdk/models/aave_user_position_summaryop.py +2 -2
- compass_api_sdk/models/aerodrome_slipstream_liquidity_provision_positionsop.py +2 -2
- compass_api_sdk/models/aerodrome_slipstream_pool_priceop.py +6 -6
- compass_api_sdk/models/generic_allowanceop.py +5 -4
- compass_api_sdk/models/generic_balanceop.py +4 -4
- compass_api_sdk/models/generic_ensop.py +2 -2
- compass_api_sdk/models/generic_portfolioop.py +2 -2
- compass_api_sdk/models/generic_price_usdop.py +5 -6
- compass_api_sdk/models/generic_supported_tokensop.py +3 -4
- compass_api_sdk/models/generic_visualize_portfolioop.py +2 -2
- compass_api_sdk/models/morpho_market_positionop.py +3 -4
- compass_api_sdk/models/morpho_marketsop.py +3 -4
- compass_api_sdk/models/morpho_vault_positionop.py +3 -4
- compass_api_sdk/models/morpho_vaultsop.py +11 -18
- compass_api_sdk/models/morphocheckmarketpositionresponse.py +10 -0
- compass_api_sdk/models/morphomarket.py +2 -2
- compass_api_sdk/models/token_addressop.py +5 -6
- compass_api_sdk/models/uniswap_liquidity_provision_in_rangeop.py +3 -4
- compass_api_sdk/models/uniswap_liquidity_provision_positionsop.py +2 -2
- compass_api_sdk/models/uniswap_pool_priceop.py +3 -4
- compass_api_sdk/models/uniswap_quote_buy_exactlyop.py +8 -8
- compass_api_sdk/models/uniswap_quote_sell_exactlyop.py +8 -8
- compass_api_sdk/morpho.py +15 -31
- compass_api_sdk/token_sdk.py +4 -8
- compass_api_sdk/uniswap_v3.py +30 -66
- compass_api_sdk/universal.py +26 -58
- {compass_api_sdk-0.0.1.dist-info → compass_api_sdk-0.0.3.dist-info}/METADATA +104 -107
- {compass_api_sdk-0.0.1.dist-info → compass_api_sdk-0.0.3.dist-info}/RECORD +35 -35
- {compass_api_sdk-0.0.1.dist-info → compass_api_sdk-0.0.3.dist-info}/WHEEL +0 -0
compass_api_sdk/_version.py
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import importlib.metadata
|
|
4
4
|
|
|
5
5
|
__title__: str = "compass_api_sdk"
|
|
6
|
-
__version__: str = "0.0.
|
|
6
|
+
__version__: str = "0.0.3"
|
|
7
7
|
__openapi_doc_version__: str = "0.0.1"
|
|
8
8
|
__gen_version__: str = "2.595.4"
|
|
9
|
-
__user_agent__: str = "speakeasy-sdk/python 0.0.
|
|
9
|
+
__user_agent__: str = "speakeasy-sdk/python 0.0.3 2.595.4 0.0.1 compass_api_sdk"
|
|
10
10
|
|
|
11
11
|
try:
|
|
12
12
|
if __package__ is not None:
|
compass_api_sdk/aave_v3.py
CHANGED
|
@@ -11,10 +11,8 @@ class AaveV3(BaseSDK):
|
|
|
11
11
|
def token_price(
|
|
12
12
|
self,
|
|
13
13
|
*,
|
|
14
|
-
chain:
|
|
15
|
-
|
|
16
|
-
] = models.AaveTokenPriceChain.ARBITRUM_MAINNET,
|
|
17
|
-
token: Optional[models.AaveTokenPriceToken] = models.AaveTokenPriceToken.USDC,
|
|
14
|
+
chain: models.AaveTokenPriceChain = models.AaveTokenPriceChain.ARBITRUM_MAINNET,
|
|
15
|
+
token: models.AaveTokenPriceToken = models.AaveTokenPriceToken.USDC,
|
|
18
16
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
19
17
|
server_url: Optional[str] = None,
|
|
20
18
|
timeout_ms: Optional[int] = None,
|
|
@@ -120,10 +118,8 @@ class AaveV3(BaseSDK):
|
|
|
120
118
|
async def token_price_async(
|
|
121
119
|
self,
|
|
122
120
|
*,
|
|
123
|
-
chain:
|
|
124
|
-
|
|
125
|
-
] = models.AaveTokenPriceChain.ARBITRUM_MAINNET,
|
|
126
|
-
token: Optional[models.AaveTokenPriceToken] = models.AaveTokenPriceToken.USDC,
|
|
121
|
+
chain: models.AaveTokenPriceChain = models.AaveTokenPriceChain.ARBITRUM_MAINNET,
|
|
122
|
+
token: models.AaveTokenPriceToken = models.AaveTokenPriceToken.USDC,
|
|
127
123
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
128
124
|
server_url: Optional[str] = None,
|
|
129
125
|
timeout_ms: Optional[int] = None,
|
|
@@ -229,14 +225,10 @@ class AaveV3(BaseSDK):
|
|
|
229
225
|
def liquidity_change(
|
|
230
226
|
self,
|
|
231
227
|
*,
|
|
228
|
+
chain: models.AaveLiquidityChangeChain = models.AaveLiquidityChangeChain.ARBITRUM_MAINNET,
|
|
229
|
+
token: models.AaveLiquidityChangeToken = models.AaveLiquidityChangeToken.USDC,
|
|
232
230
|
start_block: int = 0,
|
|
233
231
|
end_block: int = 319407231,
|
|
234
|
-
chain: Optional[
|
|
235
|
-
models.AaveLiquidityChangeChain
|
|
236
|
-
] = models.AaveLiquidityChangeChain.ARBITRUM_MAINNET,
|
|
237
|
-
token: Optional[
|
|
238
|
-
models.AaveLiquidityChangeToken
|
|
239
|
-
] = models.AaveLiquidityChangeToken.USDC,
|
|
240
232
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
241
233
|
server_url: Optional[str] = None,
|
|
242
234
|
timeout_ms: Optional[int] = None,
|
|
@@ -256,10 +248,10 @@ class AaveV3(BaseSDK):
|
|
|
256
248
|
increase, compound on itself and represent large debt. The reverse in both cases is
|
|
257
249
|
true if the liquidity index is negative.
|
|
258
250
|
|
|
259
|
-
:param start_block:
|
|
260
|
-
:param end_block:
|
|
261
251
|
:param chain: The chain to use.
|
|
262
252
|
:param token: A class representing the token. This class is used to represent the token in the system. Notice individual endpoints' documentation where per chain tokens are presented.
|
|
253
|
+
:param start_block:
|
|
254
|
+
:param end_block:
|
|
263
255
|
:param retries: Override the default retry configuration for this method
|
|
264
256
|
:param server_url: Override the default server URL for this method
|
|
265
257
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -351,14 +343,10 @@ class AaveV3(BaseSDK):
|
|
|
351
343
|
async def liquidity_change_async(
|
|
352
344
|
self,
|
|
353
345
|
*,
|
|
346
|
+
chain: models.AaveLiquidityChangeChain = models.AaveLiquidityChangeChain.ARBITRUM_MAINNET,
|
|
347
|
+
token: models.AaveLiquidityChangeToken = models.AaveLiquidityChangeToken.USDC,
|
|
354
348
|
start_block: int = 0,
|
|
355
349
|
end_block: int = 319407231,
|
|
356
|
-
chain: Optional[
|
|
357
|
-
models.AaveLiquidityChangeChain
|
|
358
|
-
] = models.AaveLiquidityChangeChain.ARBITRUM_MAINNET,
|
|
359
|
-
token: Optional[
|
|
360
|
-
models.AaveLiquidityChangeToken
|
|
361
|
-
] = models.AaveLiquidityChangeToken.USDC,
|
|
362
350
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
363
351
|
server_url: Optional[str] = None,
|
|
364
352
|
timeout_ms: Optional[int] = None,
|
|
@@ -378,10 +366,10 @@ class AaveV3(BaseSDK):
|
|
|
378
366
|
increase, compound on itself and represent large debt. The reverse in both cases is
|
|
379
367
|
true if the liquidity index is negative.
|
|
380
368
|
|
|
381
|
-
:param start_block:
|
|
382
|
-
:param end_block:
|
|
383
369
|
:param chain: The chain to use.
|
|
384
370
|
:param token: A class representing the token. This class is used to represent the token in the system. Notice individual endpoints' documentation where per chain tokens are presented.
|
|
371
|
+
:param start_block:
|
|
372
|
+
:param end_block:
|
|
385
373
|
:param retries: Override the default retry configuration for this method
|
|
386
374
|
:param server_url: Override the default server URL for this method
|
|
387
375
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -473,9 +461,7 @@ class AaveV3(BaseSDK):
|
|
|
473
461
|
def user_position_summary(
|
|
474
462
|
self,
|
|
475
463
|
*,
|
|
476
|
-
chain:
|
|
477
|
-
models.AaveUserPositionSummaryChain
|
|
478
|
-
] = models.AaveUserPositionSummaryChain.ARBITRUM_MAINNET,
|
|
464
|
+
chain: models.AaveUserPositionSummaryChain = models.AaveUserPositionSummaryChain.ARBITRUM_MAINNET,
|
|
479
465
|
user: Optional[str] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
480
466
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
481
467
|
server_url: Optional[str] = None,
|
|
@@ -584,9 +570,7 @@ class AaveV3(BaseSDK):
|
|
|
584
570
|
async def user_position_summary_async(
|
|
585
571
|
self,
|
|
586
572
|
*,
|
|
587
|
-
chain:
|
|
588
|
-
models.AaveUserPositionSummaryChain
|
|
589
|
-
] = models.AaveUserPositionSummaryChain.ARBITRUM_MAINNET,
|
|
573
|
+
chain: models.AaveUserPositionSummaryChain = models.AaveUserPositionSummaryChain.ARBITRUM_MAINNET,
|
|
590
574
|
user: Optional[str] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
591
575
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
592
576
|
server_url: Optional[str] = None,
|
|
@@ -695,13 +679,9 @@ class AaveV3(BaseSDK):
|
|
|
695
679
|
def user_position_per_token(
|
|
696
680
|
self,
|
|
697
681
|
*,
|
|
698
|
-
chain:
|
|
699
|
-
|
|
700
|
-
] = models.AaveUserPositionPerTokenChain.ARBITRUM_MAINNET,
|
|
682
|
+
chain: models.AaveUserPositionPerTokenChain = models.AaveUserPositionPerTokenChain.ARBITRUM_MAINNET,
|
|
683
|
+
token: models.AaveUserPositionPerTokenToken = models.AaveUserPositionPerTokenToken.USDC,
|
|
701
684
|
user: Optional[str] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
702
|
-
token: Optional[
|
|
703
|
-
models.AaveUserPositionPerTokenToken
|
|
704
|
-
] = models.AaveUserPositionPerTokenToken.USDC,
|
|
705
685
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
706
686
|
server_url: Optional[str] = None,
|
|
707
687
|
timeout_ms: Optional[int] = None,
|
|
@@ -720,8 +700,8 @@ class AaveV3(BaseSDK):
|
|
|
720
700
|
their financial standing within the AAVE ecosystem.
|
|
721
701
|
|
|
722
702
|
:param chain: The chain to use.
|
|
723
|
-
:param user:
|
|
724
703
|
:param token: A class representing the token. This class is used to represent the token in the system. Notice individual endpoints' documentation where per chain tokens are presented.
|
|
704
|
+
:param user:
|
|
725
705
|
:param retries: Override the default retry configuration for this method
|
|
726
706
|
:param server_url: Override the default server URL for this method
|
|
727
707
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -812,13 +792,9 @@ class AaveV3(BaseSDK):
|
|
|
812
792
|
async def user_position_per_token_async(
|
|
813
793
|
self,
|
|
814
794
|
*,
|
|
815
|
-
chain:
|
|
816
|
-
|
|
817
|
-
] = models.AaveUserPositionPerTokenChain.ARBITRUM_MAINNET,
|
|
795
|
+
chain: models.AaveUserPositionPerTokenChain = models.AaveUserPositionPerTokenChain.ARBITRUM_MAINNET,
|
|
796
|
+
token: models.AaveUserPositionPerTokenToken = models.AaveUserPositionPerTokenToken.USDC,
|
|
818
797
|
user: Optional[str] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
819
|
-
token: Optional[
|
|
820
|
-
models.AaveUserPositionPerTokenToken
|
|
821
|
-
] = models.AaveUserPositionPerTokenToken.USDC,
|
|
822
798
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
823
799
|
server_url: Optional[str] = None,
|
|
824
800
|
timeout_ms: Optional[int] = None,
|
|
@@ -837,8 +813,8 @@ class AaveV3(BaseSDK):
|
|
|
837
813
|
their financial standing within the AAVE ecosystem.
|
|
838
814
|
|
|
839
815
|
:param chain: The chain to use.
|
|
840
|
-
:param user:
|
|
841
816
|
:param token: A class representing the token. This class is used to represent the token in the system. Notice individual endpoints' documentation where per chain tokens are presented.
|
|
817
|
+
:param user:
|
|
842
818
|
:param retries: Override the default retry configuration for this method
|
|
843
819
|
:param server_url: Override the default server URL for this method
|
|
844
820
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -11,9 +11,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
11
11
|
def slipstream_liquidity_provision_positions(
|
|
12
12
|
self,
|
|
13
13
|
*,
|
|
14
|
-
chain:
|
|
15
|
-
models.AerodromeSlipstreamLiquidityProvisionPositionsChain
|
|
16
|
-
] = models.AerodromeSlipstreamLiquidityProvisionPositionsChain.BASE_MAINNET,
|
|
14
|
+
chain: models.AerodromeSlipstreamLiquidityProvisionPositionsChain = models.AerodromeSlipstreamLiquidityProvisionPositionsChain.BASE_MAINNET,
|
|
17
15
|
user: Optional[str] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
18
16
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
19
17
|
server_url: Optional[str] = None,
|
|
@@ -123,9 +121,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
123
121
|
async def slipstream_liquidity_provision_positions_async(
|
|
124
122
|
self,
|
|
125
123
|
*,
|
|
126
|
-
chain:
|
|
127
|
-
models.AerodromeSlipstreamLiquidityProvisionPositionsChain
|
|
128
|
-
] = models.AerodromeSlipstreamLiquidityProvisionPositionsChain.BASE_MAINNET,
|
|
124
|
+
chain: models.AerodromeSlipstreamLiquidityProvisionPositionsChain = models.AerodromeSlipstreamLiquidityProvisionPositionsChain.BASE_MAINNET,
|
|
129
125
|
user: Optional[str] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
130
126
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
131
127
|
server_url: Optional[str] = None,
|
|
@@ -235,15 +231,9 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
235
231
|
def slipstream_pool_price(
|
|
236
232
|
self,
|
|
237
233
|
*,
|
|
238
|
-
chain:
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
token_in: Optional[
|
|
242
|
-
models.AerodromeSlipstreamPoolPriceTokenInToken
|
|
243
|
-
] = models.AerodromeSlipstreamPoolPriceTokenInToken.USDC,
|
|
244
|
-
token_out: Optional[
|
|
245
|
-
models.AerodromeSlipstreamPoolPriceTokenOutToken
|
|
246
|
-
] = models.AerodromeSlipstreamPoolPriceTokenOutToken.WETH,
|
|
234
|
+
chain: models.AerodromeSlipstreamPoolPriceChain = models.AerodromeSlipstreamPoolPriceChain.BASE_MAINNET,
|
|
235
|
+
token_in: models.AerodromeSlipstreamPoolPriceTokenInToken = models.AerodromeSlipstreamPoolPriceTokenInToken.USDC,
|
|
236
|
+
token_out: models.AerodromeSlipstreamPoolPriceTokenOutToken = models.AerodromeSlipstreamPoolPriceTokenOutToken.WETH,
|
|
247
237
|
tick_spacing: Optional[int] = 100,
|
|
248
238
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
249
239
|
server_url: Optional[str] = None,
|
|
@@ -354,15 +344,9 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
354
344
|
async def slipstream_pool_price_async(
|
|
355
345
|
self,
|
|
356
346
|
*,
|
|
357
|
-
chain:
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
token_in: Optional[
|
|
361
|
-
models.AerodromeSlipstreamPoolPriceTokenInToken
|
|
362
|
-
] = models.AerodromeSlipstreamPoolPriceTokenInToken.USDC,
|
|
363
|
-
token_out: Optional[
|
|
364
|
-
models.AerodromeSlipstreamPoolPriceTokenOutToken
|
|
365
|
-
] = models.AerodromeSlipstreamPoolPriceTokenOutToken.WETH,
|
|
347
|
+
chain: models.AerodromeSlipstreamPoolPriceChain = models.AerodromeSlipstreamPoolPriceChain.BASE_MAINNET,
|
|
348
|
+
token_in: models.AerodromeSlipstreamPoolPriceTokenInToken = models.AerodromeSlipstreamPoolPriceTokenInToken.USDC,
|
|
349
|
+
token_out: models.AerodromeSlipstreamPoolPriceTokenOutToken = models.AerodromeSlipstreamPoolPriceTokenOutToken.WETH,
|
|
366
350
|
tick_spacing: Optional[int] = 100,
|
|
367
351
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
368
352
|
server_url: Optional[str] = None,
|
|
@@ -4,8 +4,7 @@ from __future__ import annotations
|
|
|
4
4
|
from compass_api_sdk.types import BaseModel
|
|
5
5
|
from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
|
|
6
6
|
from enum import Enum
|
|
7
|
-
from
|
|
8
|
-
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
7
|
+
from typing_extensions import Annotated, TypedDict
|
|
9
8
|
|
|
10
9
|
|
|
11
10
|
class AaveLiquidityChangeChain(str, Enum):
|
|
@@ -70,9 +69,9 @@ class AaveLiquidityChangeToken(str, Enum):
|
|
|
70
69
|
|
|
71
70
|
|
|
72
71
|
class AaveLiquidityChangeRequestTypedDict(TypedDict):
|
|
73
|
-
chain:
|
|
72
|
+
chain: AaveLiquidityChangeChain
|
|
74
73
|
r"""The chain to use."""
|
|
75
|
-
token:
|
|
74
|
+
token: AaveLiquidityChangeToken
|
|
76
75
|
r"""A class representing the token.
|
|
77
76
|
|
|
78
77
|
This class is used to represent the token in the system. Notice individual
|
|
@@ -84,13 +83,13 @@ class AaveLiquidityChangeRequestTypedDict(TypedDict):
|
|
|
84
83
|
|
|
85
84
|
class AaveLiquidityChangeRequest(BaseModel):
|
|
86
85
|
chain: Annotated[
|
|
87
|
-
|
|
86
|
+
AaveLiquidityChangeChain,
|
|
88
87
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
89
88
|
] = AaveLiquidityChangeChain.ARBITRUM_MAINNET
|
|
90
89
|
r"""The chain to use."""
|
|
91
90
|
|
|
92
91
|
token: Annotated[
|
|
93
|
-
|
|
92
|
+
AaveLiquidityChangeToken,
|
|
94
93
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
95
94
|
] = AaveLiquidityChangeToken.USDC
|
|
96
95
|
r"""A class representing the token.
|
|
@@ -4,8 +4,7 @@ from __future__ import annotations
|
|
|
4
4
|
from compass_api_sdk.types import BaseModel
|
|
5
5
|
from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
|
|
6
6
|
from enum import Enum
|
|
7
|
-
from
|
|
8
|
-
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
7
|
+
from typing_extensions import Annotated, TypedDict
|
|
9
8
|
|
|
10
9
|
|
|
11
10
|
class AaveTokenPriceChain(str, Enum):
|
|
@@ -70,9 +69,9 @@ class AaveTokenPriceToken(str, Enum):
|
|
|
70
69
|
|
|
71
70
|
|
|
72
71
|
class AaveTokenPriceRequestTypedDict(TypedDict):
|
|
73
|
-
chain:
|
|
72
|
+
chain: AaveTokenPriceChain
|
|
74
73
|
r"""The chain to use."""
|
|
75
|
-
token:
|
|
74
|
+
token: AaveTokenPriceToken
|
|
76
75
|
r"""A class representing the token.
|
|
77
76
|
|
|
78
77
|
This class is used to represent the token in the system. Notice individual
|
|
@@ -82,13 +81,13 @@ class AaveTokenPriceRequestTypedDict(TypedDict):
|
|
|
82
81
|
|
|
83
82
|
class AaveTokenPriceRequest(BaseModel):
|
|
84
83
|
chain: Annotated[
|
|
85
|
-
|
|
84
|
+
AaveTokenPriceChain,
|
|
86
85
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
87
86
|
] = AaveTokenPriceChain.ARBITRUM_MAINNET
|
|
88
87
|
r"""The chain to use."""
|
|
89
88
|
|
|
90
89
|
token: Annotated[
|
|
91
|
-
|
|
90
|
+
AaveTokenPriceToken,
|
|
92
91
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
93
92
|
] = AaveTokenPriceToken.USDC
|
|
94
93
|
r"""A class representing the token.
|
|
@@ -70,10 +70,10 @@ class AaveUserPositionPerTokenToken(str, Enum):
|
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
class AaveUserPositionPerTokenRequestTypedDict(TypedDict):
|
|
73
|
-
chain:
|
|
73
|
+
chain: AaveUserPositionPerTokenChain
|
|
74
74
|
r"""The chain to use."""
|
|
75
75
|
user: NotRequired[str]
|
|
76
|
-
token:
|
|
76
|
+
token: AaveUserPositionPerTokenToken
|
|
77
77
|
r"""A class representing the token.
|
|
78
78
|
|
|
79
79
|
This class is used to represent the token in the system. Notice individual
|
|
@@ -83,7 +83,7 @@ class AaveUserPositionPerTokenRequestTypedDict(TypedDict):
|
|
|
83
83
|
|
|
84
84
|
class AaveUserPositionPerTokenRequest(BaseModel):
|
|
85
85
|
chain: Annotated[
|
|
86
|
-
|
|
86
|
+
AaveUserPositionPerTokenChain,
|
|
87
87
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
88
88
|
] = AaveUserPositionPerTokenChain.ARBITRUM_MAINNET
|
|
89
89
|
r"""The chain to use."""
|
|
@@ -94,7 +94,7 @@ class AaveUserPositionPerTokenRequest(BaseModel):
|
|
|
94
94
|
] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"
|
|
95
95
|
|
|
96
96
|
token: Annotated[
|
|
97
|
-
|
|
97
|
+
AaveUserPositionPerTokenToken,
|
|
98
98
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
99
99
|
] = AaveUserPositionPerTokenToken.USDC
|
|
100
100
|
r"""A class representing the token.
|
|
@@ -17,14 +17,14 @@ class AaveUserPositionSummaryChain(str, Enum):
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
class AaveUserPositionSummaryRequestTypedDict(TypedDict):
|
|
20
|
-
chain:
|
|
20
|
+
chain: AaveUserPositionSummaryChain
|
|
21
21
|
r"""The chain to use."""
|
|
22
22
|
user: NotRequired[str]
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
class AaveUserPositionSummaryRequest(BaseModel):
|
|
26
26
|
chain: Annotated[
|
|
27
|
-
|
|
27
|
+
AaveUserPositionSummaryChain,
|
|
28
28
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
29
29
|
] = AaveUserPositionSummaryChain.ARBITRUM_MAINNET
|
|
30
30
|
r"""The chain to use."""
|
|
@@ -17,14 +17,14 @@ class AerodromeSlipstreamLiquidityProvisionPositionsChain(str, Enum):
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
class AerodromeSlipstreamLiquidityProvisionPositionsRequestTypedDict(TypedDict):
|
|
20
|
-
chain:
|
|
20
|
+
chain: AerodromeSlipstreamLiquidityProvisionPositionsChain
|
|
21
21
|
r"""The chain to use."""
|
|
22
22
|
user: NotRequired[str]
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
class AerodromeSlipstreamLiquidityProvisionPositionsRequest(BaseModel):
|
|
26
26
|
chain: Annotated[
|
|
27
|
-
|
|
27
|
+
AerodromeSlipstreamLiquidityProvisionPositionsChain,
|
|
28
28
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
29
29
|
] = AerodromeSlipstreamLiquidityProvisionPositionsChain.BASE_MAINNET
|
|
30
30
|
r"""The chain to use."""
|
|
@@ -123,15 +123,15 @@ class AerodromeSlipstreamPoolPriceTokenOutToken(str, Enum):
|
|
|
123
123
|
|
|
124
124
|
|
|
125
125
|
class AerodromeSlipstreamPoolPriceRequestTypedDict(TypedDict):
|
|
126
|
-
chain:
|
|
126
|
+
chain: AerodromeSlipstreamPoolPriceChain
|
|
127
127
|
r"""The chain to use."""
|
|
128
|
-
token_in:
|
|
128
|
+
token_in: AerodromeSlipstreamPoolPriceTokenInToken
|
|
129
129
|
r"""A class representing the token.
|
|
130
130
|
|
|
131
131
|
This class is used to represent the token in the system. Notice individual
|
|
132
132
|
endpoints' documentation where per chain tokens are presented.
|
|
133
133
|
"""
|
|
134
|
-
token_out:
|
|
134
|
+
token_out: AerodromeSlipstreamPoolPriceTokenOutToken
|
|
135
135
|
r"""A class representing the token.
|
|
136
136
|
|
|
137
137
|
This class is used to represent the token in the system. Notice individual
|
|
@@ -142,13 +142,13 @@ class AerodromeSlipstreamPoolPriceRequestTypedDict(TypedDict):
|
|
|
142
142
|
|
|
143
143
|
class AerodromeSlipstreamPoolPriceRequest(BaseModel):
|
|
144
144
|
chain: Annotated[
|
|
145
|
-
|
|
145
|
+
AerodromeSlipstreamPoolPriceChain,
|
|
146
146
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
147
147
|
] = AerodromeSlipstreamPoolPriceChain.BASE_MAINNET
|
|
148
148
|
r"""The chain to use."""
|
|
149
149
|
|
|
150
150
|
token_in: Annotated[
|
|
151
|
-
|
|
151
|
+
AerodromeSlipstreamPoolPriceTokenInToken,
|
|
152
152
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
153
153
|
] = AerodromeSlipstreamPoolPriceTokenInToken.USDC
|
|
154
154
|
r"""A class representing the token.
|
|
@@ -158,7 +158,7 @@ class AerodromeSlipstreamPoolPriceRequest(BaseModel):
|
|
|
158
158
|
"""
|
|
159
159
|
|
|
160
160
|
token_out: Annotated[
|
|
161
|
-
|
|
161
|
+
AerodromeSlipstreamPoolPriceTokenOutToken,
|
|
162
162
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
163
163
|
] = AerodromeSlipstreamPoolPriceTokenOutToken.WETH
|
|
164
164
|
r"""A class representing the token.
|
|
@@ -78,13 +78,14 @@ class GenericAllowanceContractName(str, Enum):
|
|
|
78
78
|
)
|
|
79
79
|
UNISWAP_V3_ROUTER = "UniswapV3Router"
|
|
80
80
|
UNISWAP_V3_NFT_POSITION_MANAGER = "UniswapV3NFTPositionManager"
|
|
81
|
+
MORPHO = "Morpho"
|
|
81
82
|
|
|
82
83
|
|
|
83
84
|
class GenericAllowanceRequestTypedDict(TypedDict):
|
|
84
|
-
chain:
|
|
85
|
+
chain: GenericAllowanceChain
|
|
85
86
|
r"""The chain to use."""
|
|
86
87
|
user: NotRequired[str]
|
|
87
|
-
token:
|
|
88
|
+
token: GenericAllowanceToken
|
|
88
89
|
r"""A class representing the token.
|
|
89
90
|
|
|
90
91
|
This class is used to represent the token in the system. Notice individual
|
|
@@ -95,7 +96,7 @@ class GenericAllowanceRequestTypedDict(TypedDict):
|
|
|
95
96
|
|
|
96
97
|
class GenericAllowanceRequest(BaseModel):
|
|
97
98
|
chain: Annotated[
|
|
98
|
-
|
|
99
|
+
GenericAllowanceChain,
|
|
99
100
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
100
101
|
] = GenericAllowanceChain.ARBITRUM_MAINNET
|
|
101
102
|
r"""The chain to use."""
|
|
@@ -106,7 +107,7 @@ class GenericAllowanceRequest(BaseModel):
|
|
|
106
107
|
] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"
|
|
107
108
|
|
|
108
109
|
token: Annotated[
|
|
109
|
-
|
|
110
|
+
GenericAllowanceToken,
|
|
110
111
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
111
112
|
] = GenericAllowanceToken.USDC
|
|
112
113
|
r"""A class representing the token.
|
|
@@ -70,10 +70,10 @@ class GenericBalanceToken(str, Enum):
|
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
class GenericBalanceRequestTypedDict(TypedDict):
|
|
73
|
-
chain:
|
|
73
|
+
chain: GenericBalanceChain
|
|
74
74
|
r"""The chain to use."""
|
|
75
75
|
user: NotRequired[str]
|
|
76
|
-
token:
|
|
76
|
+
token: GenericBalanceToken
|
|
77
77
|
r"""A class representing the token.
|
|
78
78
|
|
|
79
79
|
This class is used to represent the token in the system. Notice individual
|
|
@@ -83,7 +83,7 @@ class GenericBalanceRequestTypedDict(TypedDict):
|
|
|
83
83
|
|
|
84
84
|
class GenericBalanceRequest(BaseModel):
|
|
85
85
|
chain: Annotated[
|
|
86
|
-
|
|
86
|
+
GenericBalanceChain,
|
|
87
87
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
88
88
|
] = GenericBalanceChain.ARBITRUM_MAINNET
|
|
89
89
|
r"""The chain to use."""
|
|
@@ -94,7 +94,7 @@ class GenericBalanceRequest(BaseModel):
|
|
|
94
94
|
] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"
|
|
95
95
|
|
|
96
96
|
token: Annotated[
|
|
97
|
-
|
|
97
|
+
GenericBalanceToken,
|
|
98
98
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
99
99
|
] = GenericBalanceToken.USDC
|
|
100
100
|
r"""A class representing the token.
|
|
@@ -17,14 +17,14 @@ class GenericEnsChain(str, Enum):
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
class GenericEnsRequestTypedDict(TypedDict):
|
|
20
|
-
chain:
|
|
20
|
+
chain: GenericEnsChain
|
|
21
21
|
r"""The chain to use."""
|
|
22
22
|
ens_name: NotRequired[str]
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
class GenericEnsRequest(BaseModel):
|
|
26
26
|
chain: Annotated[
|
|
27
|
-
|
|
27
|
+
GenericEnsChain,
|
|
28
28
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
29
29
|
] = GenericEnsChain.ETHEREUM_MAINNET
|
|
30
30
|
r"""The chain to use."""
|
|
@@ -17,14 +17,14 @@ class GenericPortfolioChain(str, Enum):
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
class GenericPortfolioRequestTypedDict(TypedDict):
|
|
20
|
-
chain:
|
|
20
|
+
chain: GenericPortfolioChain
|
|
21
21
|
r"""The chain to use."""
|
|
22
22
|
user: NotRequired[str]
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
class GenericPortfolioRequest(BaseModel):
|
|
26
26
|
chain: Annotated[
|
|
27
|
-
|
|
27
|
+
GenericPortfolioChain,
|
|
28
28
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
29
29
|
] = GenericPortfolioChain.ARBITRUM_MAINNET
|
|
30
30
|
r"""The chain to use."""
|
|
@@ -4,8 +4,7 @@ from __future__ import annotations
|
|
|
4
4
|
from compass_api_sdk.types import BaseModel
|
|
5
5
|
from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
|
|
6
6
|
from enum import Enum
|
|
7
|
-
from
|
|
8
|
-
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
7
|
+
from typing_extensions import Annotated, TypedDict
|
|
9
8
|
|
|
10
9
|
|
|
11
10
|
class GenericPriceUsdChain(str, Enum):
|
|
@@ -70,9 +69,9 @@ class GenericPriceUsdToken(str, Enum):
|
|
|
70
69
|
|
|
71
70
|
|
|
72
71
|
class GenericPriceUsdRequestTypedDict(TypedDict):
|
|
73
|
-
chain:
|
|
72
|
+
chain: GenericPriceUsdChain
|
|
74
73
|
r"""The chain to use."""
|
|
75
|
-
token:
|
|
74
|
+
token: GenericPriceUsdToken
|
|
76
75
|
r"""A class representing the token.
|
|
77
76
|
|
|
78
77
|
This class is used to represent the token in the system. Notice individual
|
|
@@ -82,13 +81,13 @@ class GenericPriceUsdRequestTypedDict(TypedDict):
|
|
|
82
81
|
|
|
83
82
|
class GenericPriceUsdRequest(BaseModel):
|
|
84
83
|
chain: Annotated[
|
|
85
|
-
|
|
84
|
+
GenericPriceUsdChain,
|
|
86
85
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
87
86
|
] = GenericPriceUsdChain.ARBITRUM_MAINNET
|
|
88
87
|
r"""The chain to use."""
|
|
89
88
|
|
|
90
89
|
token: Annotated[
|
|
91
|
-
|
|
90
|
+
GenericPriceUsdToken,
|
|
92
91
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
93
92
|
] = GenericPriceUsdToken.WBTC
|
|
94
93
|
r"""A class representing the token.
|
|
@@ -4,8 +4,7 @@ from __future__ import annotations
|
|
|
4
4
|
from compass_api_sdk.types import BaseModel
|
|
5
5
|
from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
|
|
6
6
|
from enum import Enum
|
|
7
|
-
from
|
|
8
|
-
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
7
|
+
from typing_extensions import Annotated, TypedDict
|
|
9
8
|
|
|
10
9
|
|
|
11
10
|
class GenericSupportedTokensChain(str, Enum):
|
|
@@ -17,13 +16,13 @@ class GenericSupportedTokensChain(str, Enum):
|
|
|
17
16
|
|
|
18
17
|
|
|
19
18
|
class GenericSupportedTokensRequestTypedDict(TypedDict):
|
|
20
|
-
chain:
|
|
19
|
+
chain: GenericSupportedTokensChain
|
|
21
20
|
r"""The chain to use."""
|
|
22
21
|
|
|
23
22
|
|
|
24
23
|
class GenericSupportedTokensRequest(BaseModel):
|
|
25
24
|
chain: Annotated[
|
|
26
|
-
|
|
25
|
+
GenericSupportedTokensChain,
|
|
27
26
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
28
27
|
] = GenericSupportedTokensChain.ARBITRUM_MAINNET
|
|
29
28
|
r"""The chain to use."""
|
|
@@ -17,14 +17,14 @@ class GenericVisualizePortfolioChain(str, Enum):
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
class GenericVisualizePortfolioRequestTypedDict(TypedDict):
|
|
20
|
-
chain:
|
|
20
|
+
chain: GenericVisualizePortfolioChain
|
|
21
21
|
r"""The chain to use."""
|
|
22
22
|
user: NotRequired[str]
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
class GenericVisualizePortfolioRequest(BaseModel):
|
|
26
26
|
chain: Annotated[
|
|
27
|
-
|
|
27
|
+
GenericVisualizePortfolioChain,
|
|
28
28
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
29
29
|
] = GenericVisualizePortfolioChain.ARBITRUM_MAINNET
|
|
30
30
|
r"""The chain to use."""
|
|
@@ -4,8 +4,7 @@ from __future__ import annotations
|
|
|
4
4
|
from compass_api_sdk.types import BaseModel
|
|
5
5
|
from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
|
|
6
6
|
from enum import Enum
|
|
7
|
-
from
|
|
8
|
-
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
7
|
+
from typing_extensions import Annotated, TypedDict
|
|
9
8
|
|
|
10
9
|
|
|
11
10
|
class MorphoMarketPositionChain(str, Enum):
|
|
@@ -17,7 +16,7 @@ class MorphoMarketPositionChain(str, Enum):
|
|
|
17
16
|
|
|
18
17
|
|
|
19
18
|
class MorphoMarketPositionRequestTypedDict(TypedDict):
|
|
20
|
-
chain:
|
|
19
|
+
chain: MorphoMarketPositionChain
|
|
21
20
|
r"""The chain to use."""
|
|
22
21
|
user_address: str
|
|
23
22
|
unique_market_key: str
|
|
@@ -25,7 +24,7 @@ class MorphoMarketPositionRequestTypedDict(TypedDict):
|
|
|
25
24
|
|
|
26
25
|
class MorphoMarketPositionRequest(BaseModel):
|
|
27
26
|
chain: Annotated[
|
|
28
|
-
|
|
27
|
+
MorphoMarketPositionChain,
|
|
29
28
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
30
29
|
] = MorphoMarketPositionChain.ETHEREUM_MAINNET
|
|
31
30
|
r"""The chain to use."""
|