compass_api_sdk 0.5.2__py3-none-any.whl → 0.5.4__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.
- compass_api_sdk/_version.py +2 -2
- compass_api_sdk/aave_v3.py +120 -0
- compass_api_sdk/aerodrome_slipstream.py +32 -0
- compass_api_sdk/models/__init__.py +208 -1
- compass_api_sdk/models/aave_avg_rateop.py +18 -1
- compass_api_sdk/models/aave_historical_transactionsop.py +22 -2
- compass_api_sdk/models/aave_liquidity_changeop.py +20 -1
- compass_api_sdk/models/aave_rateop.py +18 -1
- compass_api_sdk/models/aave_reserve_overviewop.py +20 -1
- compass_api_sdk/models/aave_std_rateop.py +18 -1
- compass_api_sdk/models/aave_token_priceop.py +20 -1
- compass_api_sdk/models/aave_user_position_per_tokenop.py +22 -1
- compass_api_sdk/models/aave_user_position_summaryop.py +22 -1
- compass_api_sdk/models/aerodrome_slipstream_liquidity_provision_positionsop.py +22 -2
- compass_api_sdk/models/aerodrome_slipstream_pool_priceop.py +22 -2
- compass_api_sdk/models/generic_allowanceop.py +20 -2
- compass_api_sdk/models/generic_ensop.py +18 -2
- compass_api_sdk/models/generic_portfolioop.py +20 -2
- compass_api_sdk/models/generic_supported_tokensop.py +22 -1
- compass_api_sdk/models/generic_visualize_portfolioop.py +22 -2
- compass_api_sdk/models/morpho_market_positionop.py +20 -1
- compass_api_sdk/models/morpho_marketop.py +20 -1
- compass_api_sdk/models/morpho_marketsop.py +21 -2
- compass_api_sdk/models/morpho_user_positionop.py +20 -1
- compass_api_sdk/models/morpho_vault_positionop.py +20 -1
- compass_api_sdk/models/morpho_vaultop.py +18 -1
- compass_api_sdk/models/morpho_vaultsop.py +21 -2
- compass_api_sdk/models/multicallauthorizationrequest.py +15 -1
- compass_api_sdk/models/pendle_marketop.py +20 -1
- compass_api_sdk/models/pendle_positionop.py +20 -1
- compass_api_sdk/models/sky_positionop.py +18 -2
- compass_api_sdk/models/token_addressop.py +20 -1
- compass_api_sdk/models/token_balanceop.py +20 -2
- compass_api_sdk/models/uniswap_liquidity_provision_in_rangeop.py +22 -1
- compass_api_sdk/models/uniswap_liquidity_provision_positionsop.py +22 -2
- compass_api_sdk/models/uniswap_pool_priceop.py +20 -1
- compass_api_sdk/models/uniswap_quote_buy_exactlyop.py +22 -2
- compass_api_sdk/models/uniswap_quote_sell_exactlyop.py +22 -2
- compass_api_sdk/morpho.py +86 -0
- compass_api_sdk/pendle.py +25 -5
- compass_api_sdk/sky.py +10 -0
- compass_api_sdk/token_sdk.py +20 -0
- compass_api_sdk/transaction_batching.py +6 -0
- compass_api_sdk/uniswap_v3.py +74 -0
- compass_api_sdk/universal.py +62 -0
- {compass_api_sdk-0.5.2.dist-info → compass_api_sdk-0.5.4.dist-info}/METADATA +1 -1
- {compass_api_sdk-0.5.2.dist-info → compass_api_sdk-0.5.4.dist-info}/RECORD +48 -48
- {compass_api_sdk-0.5.2.dist-info → compass_api_sdk-0.5.4.dist-info}/WHEEL +0 -0
|
@@ -4,7 +4,8 @@ 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
|
|
7
|
+
from typing import Optional, Union
|
|
8
|
+
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
class AaveAvgRateChain(str, Enum):
|
|
@@ -15,6 +16,14 @@ class AaveAvgRateChain(str, Enum):
|
|
|
15
16
|
ARBITRUM_MAINNET = "arbitrum:mainnet"
|
|
16
17
|
|
|
17
18
|
|
|
19
|
+
AaveAvgRateBlockTypedDict = TypeAliasType("AaveAvgRateBlockTypedDict", Union[int, str])
|
|
20
|
+
r"""The block number you want to get this data at."""
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
AaveAvgRateBlock = TypeAliasType("AaveAvgRateBlock", Union[int, str])
|
|
24
|
+
r"""The block number you want to get this data at."""
|
|
25
|
+
|
|
26
|
+
|
|
18
27
|
class AaveAvgRateToken(str, Enum):
|
|
19
28
|
r"""A class representing the token.
|
|
20
29
|
|
|
@@ -71,6 +80,8 @@ class AaveAvgRateToken(str, Enum):
|
|
|
71
80
|
class AaveAvgRateRequestTypedDict(TypedDict):
|
|
72
81
|
chain: AaveAvgRateChain
|
|
73
82
|
r"""The chain to use."""
|
|
83
|
+
block: NotRequired[AaveAvgRateBlockTypedDict]
|
|
84
|
+
r"""The block number you want to get this data at."""
|
|
74
85
|
token: AaveAvgRateToken
|
|
75
86
|
r"""The symbol of the token.."""
|
|
76
87
|
days: int
|
|
@@ -84,6 +95,12 @@ class AaveAvgRateRequest(BaseModel):
|
|
|
84
95
|
] = AaveAvgRateChain.ETHEREUM_MAINNET
|
|
85
96
|
r"""The chain to use."""
|
|
86
97
|
|
|
98
|
+
block: Annotated[
|
|
99
|
+
Optional[AaveAvgRateBlock],
|
|
100
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
101
|
+
] = None
|
|
102
|
+
r"""The block number you want to get this data at."""
|
|
103
|
+
|
|
87
104
|
token: Annotated[
|
|
88
105
|
AaveAvgRateToken,
|
|
89
106
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
@@ -4,8 +4,8 @@ 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 typing import Optional
|
|
8
|
-
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
7
|
+
from typing import Optional, Union
|
|
8
|
+
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class AaveHistoricalTransactionsChain(str, Enum):
|
|
@@ -16,6 +16,18 @@ class AaveHistoricalTransactionsChain(str, Enum):
|
|
|
16
16
|
ARBITRUM_MAINNET = "arbitrum:mainnet"
|
|
17
17
|
|
|
18
18
|
|
|
19
|
+
AaveHistoricalTransactionsBlockTypedDict = TypeAliasType(
|
|
20
|
+
"AaveHistoricalTransactionsBlockTypedDict", Union[int, str]
|
|
21
|
+
)
|
|
22
|
+
r"""The block number you want to get this data at."""
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
AaveHistoricalTransactionsBlock = TypeAliasType(
|
|
26
|
+
"AaveHistoricalTransactionsBlock", Union[int, str]
|
|
27
|
+
)
|
|
28
|
+
r"""The block number you want to get this data at."""
|
|
29
|
+
|
|
30
|
+
|
|
19
31
|
class AaveHistoricalTransactionsRequestTypedDict(TypedDict):
|
|
20
32
|
offset: NotRequired[int]
|
|
21
33
|
r"""The offset of the first item to return."""
|
|
@@ -23,6 +35,8 @@ class AaveHistoricalTransactionsRequestTypedDict(TypedDict):
|
|
|
23
35
|
r"""The number of items to return."""
|
|
24
36
|
chain: AaveHistoricalTransactionsChain
|
|
25
37
|
r"""The chain to use."""
|
|
38
|
+
block: NotRequired[AaveHistoricalTransactionsBlockTypedDict]
|
|
39
|
+
r"""The block number you want to get this data at."""
|
|
26
40
|
user_address: str
|
|
27
41
|
r"""The address of the user to get historical transactions for."""
|
|
28
42
|
|
|
@@ -46,6 +60,12 @@ class AaveHistoricalTransactionsRequest(BaseModel):
|
|
|
46
60
|
] = AaveHistoricalTransactionsChain.ARBITRUM_MAINNET
|
|
47
61
|
r"""The chain to use."""
|
|
48
62
|
|
|
63
|
+
block: Annotated[
|
|
64
|
+
Optional[AaveHistoricalTransactionsBlock],
|
|
65
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
66
|
+
] = None
|
|
67
|
+
r"""The block number you want to get this data at."""
|
|
68
|
+
|
|
49
69
|
user_address: Annotated[
|
|
50
70
|
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
51
71
|
] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"
|
|
@@ -4,7 +4,8 @@ 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
|
|
7
|
+
from typing import Optional, Union
|
|
8
|
+
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
class AaveLiquidityChangeChain(str, Enum):
|
|
@@ -15,6 +16,16 @@ class AaveLiquidityChangeChain(str, Enum):
|
|
|
15
16
|
ARBITRUM_MAINNET = "arbitrum:mainnet"
|
|
16
17
|
|
|
17
18
|
|
|
19
|
+
AaveLiquidityChangeBlockTypedDict = TypeAliasType(
|
|
20
|
+
"AaveLiquidityChangeBlockTypedDict", Union[int, str]
|
|
21
|
+
)
|
|
22
|
+
r"""The block number you want to get this data at."""
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
AaveLiquidityChangeBlock = TypeAliasType("AaveLiquidityChangeBlock", Union[int, str])
|
|
26
|
+
r"""The block number you want to get this data at."""
|
|
27
|
+
|
|
28
|
+
|
|
18
29
|
class AaveLiquidityChangeToken(str, Enum):
|
|
19
30
|
r"""A class representing the token.
|
|
20
31
|
|
|
@@ -71,6 +82,8 @@ class AaveLiquidityChangeToken(str, Enum):
|
|
|
71
82
|
class AaveLiquidityChangeRequestTypedDict(TypedDict):
|
|
72
83
|
chain: AaveLiquidityChangeChain
|
|
73
84
|
r"""The chain to use."""
|
|
85
|
+
block: NotRequired[AaveLiquidityChangeBlockTypedDict]
|
|
86
|
+
r"""The block number you want to get this data at."""
|
|
74
87
|
token: AaveLiquidityChangeToken
|
|
75
88
|
r"""The symbol of the asset to get liquidity change for.."""
|
|
76
89
|
start_block: int
|
|
@@ -86,6 +99,12 @@ class AaveLiquidityChangeRequest(BaseModel):
|
|
|
86
99
|
] = AaveLiquidityChangeChain.ARBITRUM_MAINNET
|
|
87
100
|
r"""The chain to use."""
|
|
88
101
|
|
|
102
|
+
block: Annotated[
|
|
103
|
+
Optional[AaveLiquidityChangeBlock],
|
|
104
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
105
|
+
] = None
|
|
106
|
+
r"""The block number you want to get this data at."""
|
|
107
|
+
|
|
89
108
|
token: Annotated[
|
|
90
109
|
AaveLiquidityChangeToken,
|
|
91
110
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
@@ -4,7 +4,8 @@ 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
|
|
7
|
+
from typing import Optional, Union
|
|
8
|
+
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
class AaveRateChain(str, Enum):
|
|
@@ -15,6 +16,14 @@ class AaveRateChain(str, Enum):
|
|
|
15
16
|
ARBITRUM_MAINNET = "arbitrum:mainnet"
|
|
16
17
|
|
|
17
18
|
|
|
19
|
+
AaveRateBlockTypedDict = TypeAliasType("AaveRateBlockTypedDict", Union[int, str])
|
|
20
|
+
r"""The block number you want to get this data at."""
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
AaveRateBlock = TypeAliasType("AaveRateBlock", Union[int, str])
|
|
24
|
+
r"""The block number you want to get this data at."""
|
|
25
|
+
|
|
26
|
+
|
|
18
27
|
class AaveRateToken(str, Enum):
|
|
19
28
|
r"""A class representing the token.
|
|
20
29
|
|
|
@@ -71,6 +80,8 @@ class AaveRateToken(str, Enum):
|
|
|
71
80
|
class AaveRateRequestTypedDict(TypedDict):
|
|
72
81
|
chain: AaveRateChain
|
|
73
82
|
r"""The chain to use."""
|
|
83
|
+
block: NotRequired[AaveRateBlockTypedDict]
|
|
84
|
+
r"""The block number you want to get this data at."""
|
|
74
85
|
token: AaveRateToken
|
|
75
86
|
r"""The symbol of the asset to fetch the users' position on.."""
|
|
76
87
|
|
|
@@ -82,6 +93,12 @@ class AaveRateRequest(BaseModel):
|
|
|
82
93
|
] = AaveRateChain.ARBITRUM_MAINNET
|
|
83
94
|
r"""The chain to use."""
|
|
84
95
|
|
|
96
|
+
block: Annotated[
|
|
97
|
+
Optional[AaveRateBlock],
|
|
98
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
99
|
+
] = None
|
|
100
|
+
r"""The block number you want to get this data at."""
|
|
101
|
+
|
|
85
102
|
token: Annotated[
|
|
86
103
|
AaveRateToken,
|
|
87
104
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
@@ -4,7 +4,8 @@ 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
|
|
7
|
+
from typing import Optional, Union
|
|
8
|
+
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
class AaveReserveOverviewChain(str, Enum):
|
|
@@ -15,6 +16,16 @@ class AaveReserveOverviewChain(str, Enum):
|
|
|
15
16
|
ARBITRUM_MAINNET = "arbitrum:mainnet"
|
|
16
17
|
|
|
17
18
|
|
|
19
|
+
AaveReserveOverviewBlockTypedDict = TypeAliasType(
|
|
20
|
+
"AaveReserveOverviewBlockTypedDict", Union[int, str]
|
|
21
|
+
)
|
|
22
|
+
r"""The block number you want to get this data at."""
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
AaveReserveOverviewBlock = TypeAliasType("AaveReserveOverviewBlock", Union[int, str])
|
|
26
|
+
r"""The block number you want to get this data at."""
|
|
27
|
+
|
|
28
|
+
|
|
18
29
|
class AaveReserveOverviewToken(str, Enum):
|
|
19
30
|
r"""A class representing the token.
|
|
20
31
|
|
|
@@ -71,6 +82,8 @@ class AaveReserveOverviewToken(str, Enum):
|
|
|
71
82
|
class AaveReserveOverviewRequestTypedDict(TypedDict):
|
|
72
83
|
chain: AaveReserveOverviewChain
|
|
73
84
|
r"""The chain to use."""
|
|
85
|
+
block: NotRequired[AaveReserveOverviewBlockTypedDict]
|
|
86
|
+
r"""The block number you want to get this data at."""
|
|
74
87
|
token: AaveReserveOverviewToken
|
|
75
88
|
r"""The symbol of the asset.."""
|
|
76
89
|
|
|
@@ -82,6 +95,12 @@ class AaveReserveOverviewRequest(BaseModel):
|
|
|
82
95
|
] = AaveReserveOverviewChain.ARBITRUM_MAINNET
|
|
83
96
|
r"""The chain to use."""
|
|
84
97
|
|
|
98
|
+
block: Annotated[
|
|
99
|
+
Optional[AaveReserveOverviewBlock],
|
|
100
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
101
|
+
] = None
|
|
102
|
+
r"""The block number you want to get this data at."""
|
|
103
|
+
|
|
85
104
|
token: Annotated[
|
|
86
105
|
AaveReserveOverviewToken,
|
|
87
106
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
@@ -4,7 +4,8 @@ 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
|
|
7
|
+
from typing import Optional, Union
|
|
8
|
+
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
class AaveStdRateChain(str, Enum):
|
|
@@ -15,6 +16,14 @@ class AaveStdRateChain(str, Enum):
|
|
|
15
16
|
ARBITRUM_MAINNET = "arbitrum:mainnet"
|
|
16
17
|
|
|
17
18
|
|
|
19
|
+
AaveStdRateBlockTypedDict = TypeAliasType("AaveStdRateBlockTypedDict", Union[int, str])
|
|
20
|
+
r"""The block number you want to get this data at."""
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
AaveStdRateBlock = TypeAliasType("AaveStdRateBlock", Union[int, str])
|
|
24
|
+
r"""The block number you want to get this data at."""
|
|
25
|
+
|
|
26
|
+
|
|
18
27
|
class AaveStdRateToken(str, Enum):
|
|
19
28
|
r"""A class representing the token.
|
|
20
29
|
|
|
@@ -71,6 +80,8 @@ class AaveStdRateToken(str, Enum):
|
|
|
71
80
|
class AaveStdRateRequestTypedDict(TypedDict):
|
|
72
81
|
chain: AaveStdRateChain
|
|
73
82
|
r"""The chain to use."""
|
|
83
|
+
block: NotRequired[AaveStdRateBlockTypedDict]
|
|
84
|
+
r"""The block number you want to get this data at."""
|
|
74
85
|
token: AaveStdRateToken
|
|
75
86
|
r"""The symbol of the tokenn.."""
|
|
76
87
|
days: int
|
|
@@ -84,6 +95,12 @@ class AaveStdRateRequest(BaseModel):
|
|
|
84
95
|
] = AaveStdRateChain.ETHEREUM_MAINNET
|
|
85
96
|
r"""The chain to use."""
|
|
86
97
|
|
|
98
|
+
block: Annotated[
|
|
99
|
+
Optional[AaveStdRateBlock],
|
|
100
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
101
|
+
] = None
|
|
102
|
+
r"""The block number you want to get this data at."""
|
|
103
|
+
|
|
87
104
|
token: Annotated[
|
|
88
105
|
AaveStdRateToken,
|
|
89
106
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
@@ -4,7 +4,8 @@ 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
|
|
7
|
+
from typing import Optional, Union
|
|
8
|
+
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
class AaveTokenPriceChain(str, Enum):
|
|
@@ -15,6 +16,16 @@ class AaveTokenPriceChain(str, Enum):
|
|
|
15
16
|
ARBITRUM_MAINNET = "arbitrum:mainnet"
|
|
16
17
|
|
|
17
18
|
|
|
19
|
+
AaveTokenPriceBlockTypedDict = TypeAliasType(
|
|
20
|
+
"AaveTokenPriceBlockTypedDict", Union[int, str]
|
|
21
|
+
)
|
|
22
|
+
r"""The block number you want to get this data at."""
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
AaveTokenPriceBlock = TypeAliasType("AaveTokenPriceBlock", Union[int, str])
|
|
26
|
+
r"""The block number you want to get this data at."""
|
|
27
|
+
|
|
28
|
+
|
|
18
29
|
class AaveTokenPriceToken(str, Enum):
|
|
19
30
|
r"""A class representing the token.
|
|
20
31
|
|
|
@@ -71,6 +82,8 @@ class AaveTokenPriceToken(str, Enum):
|
|
|
71
82
|
class AaveTokenPriceRequestTypedDict(TypedDict):
|
|
72
83
|
chain: AaveTokenPriceChain
|
|
73
84
|
r"""The chain to use."""
|
|
85
|
+
block: NotRequired[AaveTokenPriceBlockTypedDict]
|
|
86
|
+
r"""The block number you want to get this data at."""
|
|
74
87
|
token: AaveTokenPriceToken
|
|
75
88
|
r"""The symbol of the asset whose price you want.."""
|
|
76
89
|
|
|
@@ -82,6 +95,12 @@ class AaveTokenPriceRequest(BaseModel):
|
|
|
82
95
|
] = AaveTokenPriceChain.ARBITRUM_MAINNET
|
|
83
96
|
r"""The chain to use."""
|
|
84
97
|
|
|
98
|
+
block: Annotated[
|
|
99
|
+
Optional[AaveTokenPriceBlock],
|
|
100
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
101
|
+
] = None
|
|
102
|
+
r"""The block number you want to get this data at."""
|
|
103
|
+
|
|
85
104
|
token: Annotated[
|
|
86
105
|
AaveTokenPriceToken,
|
|
87
106
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
@@ -4,7 +4,8 @@ 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
|
|
7
|
+
from typing import Optional, Union
|
|
8
|
+
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
class AaveUserPositionPerTokenChain(str, Enum):
|
|
@@ -15,6 +16,18 @@ class AaveUserPositionPerTokenChain(str, Enum):
|
|
|
15
16
|
ARBITRUM_MAINNET = "arbitrum:mainnet"
|
|
16
17
|
|
|
17
18
|
|
|
19
|
+
AaveUserPositionPerTokenBlockTypedDict = TypeAliasType(
|
|
20
|
+
"AaveUserPositionPerTokenBlockTypedDict", Union[int, str]
|
|
21
|
+
)
|
|
22
|
+
r"""The block number you want to get this data at."""
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
AaveUserPositionPerTokenBlock = TypeAliasType(
|
|
26
|
+
"AaveUserPositionPerTokenBlock", Union[int, str]
|
|
27
|
+
)
|
|
28
|
+
r"""The block number you want to get this data at."""
|
|
29
|
+
|
|
30
|
+
|
|
18
31
|
class AaveUserPositionPerTokenToken(str, Enum):
|
|
19
32
|
r"""A class representing the token.
|
|
20
33
|
|
|
@@ -71,6 +84,8 @@ class AaveUserPositionPerTokenToken(str, Enum):
|
|
|
71
84
|
class AaveUserPositionPerTokenRequestTypedDict(TypedDict):
|
|
72
85
|
chain: AaveUserPositionPerTokenChain
|
|
73
86
|
r"""The chain to use."""
|
|
87
|
+
block: NotRequired[AaveUserPositionPerTokenBlockTypedDict]
|
|
88
|
+
r"""The block number you want to get this data at."""
|
|
74
89
|
user: str
|
|
75
90
|
r"""The user to fetch the token-specific position of."""
|
|
76
91
|
token: AaveUserPositionPerTokenToken
|
|
@@ -84,6 +99,12 @@ class AaveUserPositionPerTokenRequest(BaseModel):
|
|
|
84
99
|
] = AaveUserPositionPerTokenChain.ARBITRUM_MAINNET
|
|
85
100
|
r"""The chain to use."""
|
|
86
101
|
|
|
102
|
+
block: Annotated[
|
|
103
|
+
Optional[AaveUserPositionPerTokenBlock],
|
|
104
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
105
|
+
] = None
|
|
106
|
+
r"""The block number you want to get this data at."""
|
|
107
|
+
|
|
87
108
|
user: Annotated[
|
|
88
109
|
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
89
110
|
] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"
|
|
@@ -4,7 +4,8 @@ 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
|
|
7
|
+
from typing import Optional, Union
|
|
8
|
+
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
class AaveUserPositionSummaryChain(str, Enum):
|
|
@@ -15,9 +16,23 @@ class AaveUserPositionSummaryChain(str, Enum):
|
|
|
15
16
|
ARBITRUM_MAINNET = "arbitrum:mainnet"
|
|
16
17
|
|
|
17
18
|
|
|
19
|
+
AaveUserPositionSummaryBlockTypedDict = TypeAliasType(
|
|
20
|
+
"AaveUserPositionSummaryBlockTypedDict", Union[int, str]
|
|
21
|
+
)
|
|
22
|
+
r"""The block number you want to get this data at."""
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
AaveUserPositionSummaryBlock = TypeAliasType(
|
|
26
|
+
"AaveUserPositionSummaryBlock", Union[int, str]
|
|
27
|
+
)
|
|
28
|
+
r"""The block number you want to get this data at."""
|
|
29
|
+
|
|
30
|
+
|
|
18
31
|
class AaveUserPositionSummaryRequestTypedDict(TypedDict):
|
|
19
32
|
chain: AaveUserPositionSummaryChain
|
|
20
33
|
r"""The chain to use."""
|
|
34
|
+
block: NotRequired[AaveUserPositionSummaryBlockTypedDict]
|
|
35
|
+
r"""The block number you want to get this data at."""
|
|
21
36
|
user: str
|
|
22
37
|
r"""The user to get position summary for."""
|
|
23
38
|
|
|
@@ -29,6 +44,12 @@ class AaveUserPositionSummaryRequest(BaseModel):
|
|
|
29
44
|
] = AaveUserPositionSummaryChain.ARBITRUM_MAINNET
|
|
30
45
|
r"""The chain to use."""
|
|
31
46
|
|
|
47
|
+
block: Annotated[
|
|
48
|
+
Optional[AaveUserPositionSummaryBlock],
|
|
49
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
50
|
+
] = None
|
|
51
|
+
r"""The block number you want to get this data at."""
|
|
52
|
+
|
|
32
53
|
user: Annotated[
|
|
33
54
|
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
34
55
|
] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"
|
|
@@ -4,8 +4,8 @@ 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 typing import Optional
|
|
8
|
-
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
7
|
+
from typing import Optional, Union
|
|
8
|
+
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class AerodromeSlipstreamLiquidityProvisionPositionsChain(str, Enum):
|
|
@@ -16,9 +16,23 @@ class AerodromeSlipstreamLiquidityProvisionPositionsChain(str, Enum):
|
|
|
16
16
|
ARBITRUM_MAINNET = "arbitrum:mainnet"
|
|
17
17
|
|
|
18
18
|
|
|
19
|
+
AerodromeSlipstreamLiquidityProvisionPositionsBlockTypedDict = TypeAliasType(
|
|
20
|
+
"AerodromeSlipstreamLiquidityProvisionPositionsBlockTypedDict", Union[int, str]
|
|
21
|
+
)
|
|
22
|
+
r"""The block number you want to get this data at."""
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
AerodromeSlipstreamLiquidityProvisionPositionsBlock = TypeAliasType(
|
|
26
|
+
"AerodromeSlipstreamLiquidityProvisionPositionsBlock", Union[int, str]
|
|
27
|
+
)
|
|
28
|
+
r"""The block number you want to get this data at."""
|
|
29
|
+
|
|
30
|
+
|
|
19
31
|
class AerodromeSlipstreamLiquidityProvisionPositionsRequestTypedDict(TypedDict):
|
|
20
32
|
chain: AerodromeSlipstreamLiquidityProvisionPositionsChain
|
|
21
33
|
r"""The chain to use."""
|
|
34
|
+
block: NotRequired[AerodromeSlipstreamLiquidityProvisionPositionsBlockTypedDict]
|
|
35
|
+
r"""The block number you want to get this data at."""
|
|
22
36
|
user: NotRequired[str]
|
|
23
37
|
r"""The user to get positions for."""
|
|
24
38
|
|
|
@@ -30,6 +44,12 @@ class AerodromeSlipstreamLiquidityProvisionPositionsRequest(BaseModel):
|
|
|
30
44
|
] = AerodromeSlipstreamLiquidityProvisionPositionsChain.BASE_MAINNET
|
|
31
45
|
r"""The chain to use."""
|
|
32
46
|
|
|
47
|
+
block: Annotated[
|
|
48
|
+
Optional[AerodromeSlipstreamLiquidityProvisionPositionsBlock],
|
|
49
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
50
|
+
] = None
|
|
51
|
+
r"""The block number you want to get this data at."""
|
|
52
|
+
|
|
33
53
|
user: Annotated[
|
|
34
54
|
Optional[str],
|
|
35
55
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
@@ -4,8 +4,8 @@ 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 typing import Optional
|
|
8
|
-
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
7
|
+
from typing import Optional, Union
|
|
8
|
+
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class AerodromeSlipstreamPoolPriceChain(str, Enum):
|
|
@@ -16,6 +16,18 @@ class AerodromeSlipstreamPoolPriceChain(str, Enum):
|
|
|
16
16
|
ARBITRUM_MAINNET = "arbitrum:mainnet"
|
|
17
17
|
|
|
18
18
|
|
|
19
|
+
AerodromeSlipstreamPoolPriceBlockTypedDict = TypeAliasType(
|
|
20
|
+
"AerodromeSlipstreamPoolPriceBlockTypedDict", Union[int, str]
|
|
21
|
+
)
|
|
22
|
+
r"""The block number you want to get this data at."""
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
AerodromeSlipstreamPoolPriceBlock = TypeAliasType(
|
|
26
|
+
"AerodromeSlipstreamPoolPriceBlock", Union[int, str]
|
|
27
|
+
)
|
|
28
|
+
r"""The block number you want to get this data at."""
|
|
29
|
+
|
|
30
|
+
|
|
19
31
|
class AerodromeSlipstreamPoolPriceTokenInToken(str, Enum):
|
|
20
32
|
r"""A class representing the token.
|
|
21
33
|
|
|
@@ -125,6 +137,8 @@ class AerodromeSlipstreamPoolPriceTokenOutToken(str, Enum):
|
|
|
125
137
|
class AerodromeSlipstreamPoolPriceRequestTypedDict(TypedDict):
|
|
126
138
|
chain: AerodromeSlipstreamPoolPriceChain
|
|
127
139
|
r"""The chain to use."""
|
|
140
|
+
block: NotRequired[AerodromeSlipstreamPoolPriceBlockTypedDict]
|
|
141
|
+
r"""The block number you want to get this data at."""
|
|
128
142
|
token_in: AerodromeSlipstreamPoolPriceTokenInToken
|
|
129
143
|
r"""The symbol of a token in the pool."""
|
|
130
144
|
token_out: AerodromeSlipstreamPoolPriceTokenOutToken
|
|
@@ -140,6 +154,12 @@ class AerodromeSlipstreamPoolPriceRequest(BaseModel):
|
|
|
140
154
|
] = AerodromeSlipstreamPoolPriceChain.BASE_MAINNET
|
|
141
155
|
r"""The chain to use."""
|
|
142
156
|
|
|
157
|
+
block: Annotated[
|
|
158
|
+
Optional[AerodromeSlipstreamPoolPriceBlock],
|
|
159
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
160
|
+
] = None
|
|
161
|
+
r"""The block number you want to get this data at."""
|
|
162
|
+
|
|
143
163
|
token_in: Annotated[
|
|
144
164
|
AerodromeSlipstreamPoolPriceTokenInToken,
|
|
145
165
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
@@ -4,8 +4,8 @@ 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 typing import Optional
|
|
8
|
-
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
7
|
+
from typing import Optional, Union
|
|
8
|
+
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class GenericAllowanceChain(str, Enum):
|
|
@@ -16,6 +16,16 @@ class GenericAllowanceChain(str, Enum):
|
|
|
16
16
|
ARBITRUM_MAINNET = "arbitrum:mainnet"
|
|
17
17
|
|
|
18
18
|
|
|
19
|
+
GenericAllowanceBlockTypedDict = TypeAliasType(
|
|
20
|
+
"GenericAllowanceBlockTypedDict", Union[int, str]
|
|
21
|
+
)
|
|
22
|
+
r"""The block number you want to get this data at."""
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
GenericAllowanceBlock = TypeAliasType("GenericAllowanceBlock", Union[int, str])
|
|
26
|
+
r"""The block number you want to get this data at."""
|
|
27
|
+
|
|
28
|
+
|
|
19
29
|
class GenericAllowanceToken(str, Enum):
|
|
20
30
|
r"""A class representing the token.
|
|
21
31
|
|
|
@@ -90,6 +100,8 @@ class GenericAllowanceContractName(str, Enum):
|
|
|
90
100
|
class GenericAllowanceRequestTypedDict(TypedDict):
|
|
91
101
|
chain: GenericAllowanceChain
|
|
92
102
|
r"""The chain to use."""
|
|
103
|
+
block: NotRequired[GenericAllowanceBlockTypedDict]
|
|
104
|
+
r"""The block number you want to get this data at."""
|
|
93
105
|
user: NotRequired[str]
|
|
94
106
|
r"""The user to get the ERC20 allowance of."""
|
|
95
107
|
token: GenericAllowanceToken
|
|
@@ -105,6 +117,12 @@ class GenericAllowanceRequest(BaseModel):
|
|
|
105
117
|
] = GenericAllowanceChain.ARBITRUM_MAINNET
|
|
106
118
|
r"""The chain to use."""
|
|
107
119
|
|
|
120
|
+
block: Annotated[
|
|
121
|
+
Optional[GenericAllowanceBlock],
|
|
122
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
123
|
+
] = None
|
|
124
|
+
r"""The block number you want to get this data at."""
|
|
125
|
+
|
|
108
126
|
user: Annotated[
|
|
109
127
|
Optional[str],
|
|
110
128
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
@@ -4,8 +4,8 @@ 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 typing import Optional
|
|
8
|
-
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
7
|
+
from typing import Optional, Union
|
|
8
|
+
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class GenericEnsChain(str, Enum):
|
|
@@ -16,9 +16,19 @@ class GenericEnsChain(str, Enum):
|
|
|
16
16
|
ARBITRUM_MAINNET = "arbitrum:mainnet"
|
|
17
17
|
|
|
18
18
|
|
|
19
|
+
GenericEnsBlockTypedDict = TypeAliasType("GenericEnsBlockTypedDict", Union[int, str])
|
|
20
|
+
r"""The block number you want to get this data at."""
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
GenericEnsBlock = TypeAliasType("GenericEnsBlock", Union[int, str])
|
|
24
|
+
r"""The block number you want to get this data at."""
|
|
25
|
+
|
|
26
|
+
|
|
19
27
|
class GenericEnsRequestTypedDict(TypedDict):
|
|
20
28
|
chain: GenericEnsChain
|
|
21
29
|
r"""The chain to use."""
|
|
30
|
+
block: NotRequired[GenericEnsBlockTypedDict]
|
|
31
|
+
r"""The block number you want to get this data at."""
|
|
22
32
|
ens_name: NotRequired[str]
|
|
23
33
|
r"""The ENS name to resolve."""
|
|
24
34
|
|
|
@@ -30,6 +40,12 @@ class GenericEnsRequest(BaseModel):
|
|
|
30
40
|
] = GenericEnsChain.ETHEREUM_MAINNET
|
|
31
41
|
r"""The chain to use."""
|
|
32
42
|
|
|
43
|
+
block: Annotated[
|
|
44
|
+
Optional[GenericEnsBlock],
|
|
45
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
46
|
+
] = None
|
|
47
|
+
r"""The block number you want to get this data at."""
|
|
48
|
+
|
|
33
49
|
ens_name: Annotated[
|
|
34
50
|
Optional[str],
|
|
35
51
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
@@ -4,8 +4,8 @@ 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 typing import Optional
|
|
8
|
-
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
7
|
+
from typing import Optional, Union
|
|
8
|
+
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class GenericPortfolioChain(str, Enum):
|
|
@@ -16,9 +16,21 @@ class GenericPortfolioChain(str, Enum):
|
|
|
16
16
|
ARBITRUM_MAINNET = "arbitrum:mainnet"
|
|
17
17
|
|
|
18
18
|
|
|
19
|
+
GenericPortfolioBlockTypedDict = TypeAliasType(
|
|
20
|
+
"GenericPortfolioBlockTypedDict", Union[int, str]
|
|
21
|
+
)
|
|
22
|
+
r"""The block number you want to get this data at."""
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
GenericPortfolioBlock = TypeAliasType("GenericPortfolioBlock", Union[int, str])
|
|
26
|
+
r"""The block number you want to get this data at."""
|
|
27
|
+
|
|
28
|
+
|
|
19
29
|
class GenericPortfolioRequestTypedDict(TypedDict):
|
|
20
30
|
chain: GenericPortfolioChain
|
|
21
31
|
r"""The chain to use."""
|
|
32
|
+
block: NotRequired[GenericPortfolioBlockTypedDict]
|
|
33
|
+
r"""The block number you want to get this data at."""
|
|
22
34
|
user: NotRequired[str]
|
|
23
35
|
r"""The user to get portfolio for."""
|
|
24
36
|
|
|
@@ -30,6 +42,12 @@ class GenericPortfolioRequest(BaseModel):
|
|
|
30
42
|
] = GenericPortfolioChain.ARBITRUM_MAINNET
|
|
31
43
|
r"""The chain to use."""
|
|
32
44
|
|
|
45
|
+
block: Annotated[
|
|
46
|
+
Optional[GenericPortfolioBlock],
|
|
47
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
48
|
+
] = None
|
|
49
|
+
r"""The block number you want to get this data at."""
|
|
50
|
+
|
|
33
51
|
user: Annotated[
|
|
34
52
|
Optional[str],
|
|
35
53
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|