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 UniswapLiquidityProvisionInRangeChain(str, Enum):
|
|
@@ -15,9 +16,23 @@ class UniswapLiquidityProvisionInRangeChain(str, Enum):
|
|
|
15
16
|
ARBITRUM_MAINNET = "arbitrum:mainnet"
|
|
16
17
|
|
|
17
18
|
|
|
19
|
+
UniswapLiquidityProvisionInRangeBlockTypedDict = TypeAliasType(
|
|
20
|
+
"UniswapLiquidityProvisionInRangeBlockTypedDict", Union[int, str]
|
|
21
|
+
)
|
|
22
|
+
r"""The block number you want to get this data at."""
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
UniswapLiquidityProvisionInRangeBlock = TypeAliasType(
|
|
26
|
+
"UniswapLiquidityProvisionInRangeBlock", Union[int, str]
|
|
27
|
+
)
|
|
28
|
+
r"""The block number you want to get this data at."""
|
|
29
|
+
|
|
30
|
+
|
|
18
31
|
class UniswapLiquidityProvisionInRangeRequestTypedDict(TypedDict):
|
|
19
32
|
chain: UniswapLiquidityProvisionInRangeChain
|
|
20
33
|
r"""The chain to use."""
|
|
34
|
+
block: NotRequired[UniswapLiquidityProvisionInRangeBlockTypedDict]
|
|
35
|
+
r"""The block number you want to get this data at."""
|
|
21
36
|
token_id: int
|
|
22
37
|
r"""Token ID of the NFT representing the liquidity provisioned position."""
|
|
23
38
|
|
|
@@ -29,6 +44,12 @@ class UniswapLiquidityProvisionInRangeRequest(BaseModel):
|
|
|
29
44
|
] = UniswapLiquidityProvisionInRangeChain.ARBITRUM_MAINNET
|
|
30
45
|
r"""The chain to use."""
|
|
31
46
|
|
|
47
|
+
block: Annotated[
|
|
48
|
+
Optional[UniswapLiquidityProvisionInRangeBlock],
|
|
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
|
token_id: Annotated[
|
|
33
54
|
int, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
34
55
|
] = 4318185
|
|
@@ -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 UniswapLiquidityProvisionPositionsChain(str, Enum):
|
|
@@ -16,9 +16,23 @@ class UniswapLiquidityProvisionPositionsChain(str, Enum):
|
|
|
16
16
|
ARBITRUM_MAINNET = "arbitrum:mainnet"
|
|
17
17
|
|
|
18
18
|
|
|
19
|
+
UniswapLiquidityProvisionPositionsBlockTypedDict = TypeAliasType(
|
|
20
|
+
"UniswapLiquidityProvisionPositionsBlockTypedDict", Union[int, str]
|
|
21
|
+
)
|
|
22
|
+
r"""The block number you want to get this data at."""
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
UniswapLiquidityProvisionPositionsBlock = TypeAliasType(
|
|
26
|
+
"UniswapLiquidityProvisionPositionsBlock", Union[int, str]
|
|
27
|
+
)
|
|
28
|
+
r"""The block number you want to get this data at."""
|
|
29
|
+
|
|
30
|
+
|
|
19
31
|
class UniswapLiquidityProvisionPositionsRequestTypedDict(TypedDict):
|
|
20
32
|
chain: UniswapLiquidityProvisionPositionsChain
|
|
21
33
|
r"""The chain to use."""
|
|
34
|
+
block: NotRequired[UniswapLiquidityProvisionPositionsBlockTypedDict]
|
|
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 UniswapLiquidityProvisionPositionsRequest(BaseModel):
|
|
|
30
44
|
] = UniswapLiquidityProvisionPositionsChain.ARBITRUM_MAINNET
|
|
31
45
|
r"""The chain to use."""
|
|
32
46
|
|
|
47
|
+
block: Annotated[
|
|
48
|
+
Optional[UniswapLiquidityProvisionPositionsBlock],
|
|
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,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 UniswapPoolPriceChain(str, Enum):
|
|
@@ -15,6 +16,16 @@ class UniswapPoolPriceChain(str, Enum):
|
|
|
15
16
|
ARBITRUM_MAINNET = "arbitrum:mainnet"
|
|
16
17
|
|
|
17
18
|
|
|
19
|
+
UniswapPoolPriceBlockTypedDict = TypeAliasType(
|
|
20
|
+
"UniswapPoolPriceBlockTypedDict", Union[int, str]
|
|
21
|
+
)
|
|
22
|
+
r"""The block number you want to get this data at."""
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
UniswapPoolPriceBlock = TypeAliasType("UniswapPoolPriceBlock", Union[int, str])
|
|
26
|
+
r"""The block number you want to get this data at."""
|
|
27
|
+
|
|
28
|
+
|
|
18
29
|
class UniswapPoolPriceTokenInToken(str, Enum):
|
|
19
30
|
r"""A class representing the token.
|
|
20
31
|
|
|
@@ -136,6 +147,8 @@ class UniswapPoolPriceFeeEnum(str, Enum):
|
|
|
136
147
|
class UniswapPoolPriceRequestTypedDict(TypedDict):
|
|
137
148
|
chain: UniswapPoolPriceChain
|
|
138
149
|
r"""The chain to use."""
|
|
150
|
+
block: NotRequired[UniswapPoolPriceBlockTypedDict]
|
|
151
|
+
r"""The block number you want to get this data at."""
|
|
139
152
|
token_in: UniswapPoolPriceTokenInToken
|
|
140
153
|
r"""The symbol of a token in the pool"""
|
|
141
154
|
token_out: UniswapPoolPriceTokenOutToken
|
|
@@ -151,6 +164,12 @@ class UniswapPoolPriceRequest(BaseModel):
|
|
|
151
164
|
] = UniswapPoolPriceChain.ARBITRUM_MAINNET
|
|
152
165
|
r"""The chain to use."""
|
|
153
166
|
|
|
167
|
+
block: Annotated[
|
|
168
|
+
Optional[UniswapPoolPriceBlock],
|
|
169
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
170
|
+
] = None
|
|
171
|
+
r"""The block number you want to get this data at."""
|
|
172
|
+
|
|
154
173
|
token_in: Annotated[
|
|
155
174
|
UniswapPoolPriceTokenInToken,
|
|
156
175
|
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 Union
|
|
8
|
-
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
7
|
+
from typing import Optional, Union
|
|
8
|
+
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class UniswapQuoteBuyExactlyChain(str, Enum):
|
|
@@ -16,6 +16,18 @@ class UniswapQuoteBuyExactlyChain(str, Enum):
|
|
|
16
16
|
ARBITRUM_MAINNET = "arbitrum:mainnet"
|
|
17
17
|
|
|
18
18
|
|
|
19
|
+
UniswapQuoteBuyExactlyBlockTypedDict = TypeAliasType(
|
|
20
|
+
"UniswapQuoteBuyExactlyBlockTypedDict", Union[int, str]
|
|
21
|
+
)
|
|
22
|
+
r"""The block number you want to get this data at."""
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
UniswapQuoteBuyExactlyBlock = TypeAliasType(
|
|
26
|
+
"UniswapQuoteBuyExactlyBlock", Union[int, str]
|
|
27
|
+
)
|
|
28
|
+
r"""The block number you want to get this data at."""
|
|
29
|
+
|
|
30
|
+
|
|
19
31
|
class UniswapQuoteBuyExactlyTokenInToken(str, Enum):
|
|
20
32
|
r"""A class representing the token.
|
|
21
33
|
|
|
@@ -151,6 +163,8 @@ class UniswapQuoteBuyExactlyRequestTypedDict(TypedDict):
|
|
|
151
163
|
r"""The amount of the token to swap to"""
|
|
152
164
|
chain: UniswapQuoteBuyExactlyChain
|
|
153
165
|
r"""The chain to use."""
|
|
166
|
+
block: NotRequired[UniswapQuoteBuyExactlyBlockTypedDict]
|
|
167
|
+
r"""The block number you want to get this data at."""
|
|
154
168
|
token_in: UniswapQuoteBuyExactlyTokenInToken
|
|
155
169
|
r"""The symbol of the token to swap from."""
|
|
156
170
|
token_out: UniswapQuoteBuyExactlyTokenOutToken
|
|
@@ -172,6 +186,12 @@ class UniswapQuoteBuyExactlyRequest(BaseModel):
|
|
|
172
186
|
] = UniswapQuoteBuyExactlyChain.ARBITRUM_MAINNET
|
|
173
187
|
r"""The chain to use."""
|
|
174
188
|
|
|
189
|
+
block: Annotated[
|
|
190
|
+
Optional[UniswapQuoteBuyExactlyBlock],
|
|
191
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
192
|
+
] = None
|
|
193
|
+
r"""The block number you want to get this data at."""
|
|
194
|
+
|
|
175
195
|
token_in: Annotated[
|
|
176
196
|
UniswapQuoteBuyExactlyTokenInToken,
|
|
177
197
|
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 Union
|
|
8
|
-
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
7
|
+
from typing import Optional, Union
|
|
8
|
+
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class UniswapQuoteSellExactlyChain(str, Enum):
|
|
@@ -16,6 +16,18 @@ class UniswapQuoteSellExactlyChain(str, Enum):
|
|
|
16
16
|
ARBITRUM_MAINNET = "arbitrum:mainnet"
|
|
17
17
|
|
|
18
18
|
|
|
19
|
+
UniswapQuoteSellExactlyBlockTypedDict = TypeAliasType(
|
|
20
|
+
"UniswapQuoteSellExactlyBlockTypedDict", Union[int, str]
|
|
21
|
+
)
|
|
22
|
+
r"""The block number you want to get this data at."""
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
UniswapQuoteSellExactlyBlock = TypeAliasType(
|
|
26
|
+
"UniswapQuoteSellExactlyBlock", Union[int, str]
|
|
27
|
+
)
|
|
28
|
+
r"""The block number you want to get this data at."""
|
|
29
|
+
|
|
30
|
+
|
|
19
31
|
class UniswapQuoteSellExactlyTokenInToken(str, Enum):
|
|
20
32
|
r"""A class representing the token.
|
|
21
33
|
|
|
@@ -151,6 +163,8 @@ class UniswapQuoteSellExactlyRequestTypedDict(TypedDict):
|
|
|
151
163
|
r"""The amount of the token to swap from"""
|
|
152
164
|
chain: UniswapQuoteSellExactlyChain
|
|
153
165
|
r"""The chain to use."""
|
|
166
|
+
block: NotRequired[UniswapQuoteSellExactlyBlockTypedDict]
|
|
167
|
+
r"""The block number you want to get this data at."""
|
|
154
168
|
token_in: UniswapQuoteSellExactlyTokenInToken
|
|
155
169
|
r"""The symbol of the token to swap from."""
|
|
156
170
|
token_out: UniswapQuoteSellExactlyTokenOutToken
|
|
@@ -172,6 +186,12 @@ class UniswapQuoteSellExactlyRequest(BaseModel):
|
|
|
172
186
|
] = UniswapQuoteSellExactlyChain.ARBITRUM_MAINNET
|
|
173
187
|
r"""The chain to use."""
|
|
174
188
|
|
|
189
|
+
block: Annotated[
|
|
190
|
+
Optional[UniswapQuoteSellExactlyBlock],
|
|
191
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
192
|
+
] = None
|
|
193
|
+
r"""The block number you want to get this data at."""
|
|
194
|
+
|
|
175
195
|
token_in: Annotated[
|
|
176
196
|
UniswapQuoteSellExactlyTokenInToken,
|
|
177
197
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
compass_api_sdk/morpho.py
CHANGED
|
@@ -12,6 +12,9 @@ class Morpho(BaseSDK):
|
|
|
12
12
|
self,
|
|
13
13
|
*,
|
|
14
14
|
chain: models.MorphoVaultsChain = models.MorphoVaultsChain.ETHEREUM_MAINNET,
|
|
15
|
+
block: Optional[
|
|
16
|
+
Union[models.MorphoVaultsBlock, models.MorphoVaultsBlockTypedDict]
|
|
17
|
+
] = None,
|
|
15
18
|
deposit_token: OptionalNullable[str] = UNSET,
|
|
16
19
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
17
20
|
server_url: Optional[str] = None,
|
|
@@ -27,6 +30,7 @@ class Morpho(BaseSDK):
|
|
|
27
30
|
exchange value increasing over time.
|
|
28
31
|
|
|
29
32
|
:param chain:
|
|
33
|
+
:param block: The block number you want to get this data at.
|
|
30
34
|
:param deposit_token: Token address that will filter vaults by this deposit token.
|
|
31
35
|
:param retries: Override the default retry configuration for this method
|
|
32
36
|
:param server_url: Override the default server URL for this method
|
|
@@ -45,6 +49,7 @@ class Morpho(BaseSDK):
|
|
|
45
49
|
|
|
46
50
|
request = models.MorphoVaultsRequest(
|
|
47
51
|
chain=chain,
|
|
52
|
+
block=block,
|
|
48
53
|
deposit_token=deposit_token,
|
|
49
54
|
)
|
|
50
55
|
|
|
@@ -116,6 +121,9 @@ class Morpho(BaseSDK):
|
|
|
116
121
|
self,
|
|
117
122
|
*,
|
|
118
123
|
chain: models.MorphoVaultsChain = models.MorphoVaultsChain.ETHEREUM_MAINNET,
|
|
124
|
+
block: Optional[
|
|
125
|
+
Union[models.MorphoVaultsBlock, models.MorphoVaultsBlockTypedDict]
|
|
126
|
+
] = None,
|
|
119
127
|
deposit_token: OptionalNullable[str] = UNSET,
|
|
120
128
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
121
129
|
server_url: Optional[str] = None,
|
|
@@ -131,6 +139,7 @@ class Morpho(BaseSDK):
|
|
|
131
139
|
exchange value increasing over time.
|
|
132
140
|
|
|
133
141
|
:param chain:
|
|
142
|
+
:param block: The block number you want to get this data at.
|
|
134
143
|
:param deposit_token: Token address that will filter vaults by this deposit token.
|
|
135
144
|
:param retries: Override the default retry configuration for this method
|
|
136
145
|
:param server_url: Override the default server URL for this method
|
|
@@ -149,6 +158,7 @@ class Morpho(BaseSDK):
|
|
|
149
158
|
|
|
150
159
|
request = models.MorphoVaultsRequest(
|
|
151
160
|
chain=chain,
|
|
161
|
+
block=block,
|
|
152
162
|
deposit_token=deposit_token,
|
|
153
163
|
)
|
|
154
164
|
|
|
@@ -221,6 +231,9 @@ class Morpho(BaseSDK):
|
|
|
221
231
|
*,
|
|
222
232
|
chain: models.MorphoVaultChain = models.MorphoVaultChain.ETHEREUM_MAINNET,
|
|
223
233
|
vault_address: str = "0xbEef047a543E45807105E51A8BBEFCc5950fcfBa",
|
|
234
|
+
block: Optional[
|
|
235
|
+
Union[models.MorphoVaultBlock, models.MorphoVaultBlockTypedDict]
|
|
236
|
+
] = None,
|
|
224
237
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
225
238
|
server_url: Optional[str] = None,
|
|
226
239
|
timeout_ms: Optional[int] = None,
|
|
@@ -239,6 +252,7 @@ class Morpho(BaseSDK):
|
|
|
239
252
|
|
|
240
253
|
:param chain:
|
|
241
254
|
:param vault_address: The vault address of the desired vault data & metrics.
|
|
255
|
+
:param block: The block number you want to get this data at.
|
|
242
256
|
:param retries: Override the default retry configuration for this method
|
|
243
257
|
:param server_url: Override the default server URL for this method
|
|
244
258
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -256,6 +270,7 @@ class Morpho(BaseSDK):
|
|
|
256
270
|
|
|
257
271
|
request = models.MorphoVaultRequest(
|
|
258
272
|
chain=chain,
|
|
273
|
+
block=block,
|
|
259
274
|
vault_address=vault_address,
|
|
260
275
|
)
|
|
261
276
|
|
|
@@ -328,6 +343,9 @@ class Morpho(BaseSDK):
|
|
|
328
343
|
*,
|
|
329
344
|
chain: models.MorphoVaultChain = models.MorphoVaultChain.ETHEREUM_MAINNET,
|
|
330
345
|
vault_address: str = "0xbEef047a543E45807105E51A8BBEFCc5950fcfBa",
|
|
346
|
+
block: Optional[
|
|
347
|
+
Union[models.MorphoVaultBlock, models.MorphoVaultBlockTypedDict]
|
|
348
|
+
] = None,
|
|
331
349
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
332
350
|
server_url: Optional[str] = None,
|
|
333
351
|
timeout_ms: Optional[int] = None,
|
|
@@ -346,6 +364,7 @@ class Morpho(BaseSDK):
|
|
|
346
364
|
|
|
347
365
|
:param chain:
|
|
348
366
|
:param vault_address: The vault address of the desired vault data & metrics.
|
|
367
|
+
:param block: The block number you want to get this data at.
|
|
349
368
|
:param retries: Override the default retry configuration for this method
|
|
350
369
|
:param server_url: Override the default server URL for this method
|
|
351
370
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -363,6 +382,7 @@ class Morpho(BaseSDK):
|
|
|
363
382
|
|
|
364
383
|
request = models.MorphoVaultRequest(
|
|
365
384
|
chain=chain,
|
|
385
|
+
block=block,
|
|
366
386
|
vault_address=vault_address,
|
|
367
387
|
)
|
|
368
388
|
|
|
@@ -436,6 +456,12 @@ class Morpho(BaseSDK):
|
|
|
436
456
|
chain: models.MorphoVaultPositionChain = models.MorphoVaultPositionChain.ETHEREUM_MAINNET,
|
|
437
457
|
user_address: str = "0xa829B388A3DF7f581cE957a95edbe419dd146d1B",
|
|
438
458
|
vault_address: str = "0xbEef047a543E45807105E51A8BBEFCc5950fcfBa",
|
|
459
|
+
block: Optional[
|
|
460
|
+
Union[
|
|
461
|
+
models.MorphoVaultPositionBlock,
|
|
462
|
+
models.MorphoVaultPositionBlockTypedDict,
|
|
463
|
+
]
|
|
464
|
+
] = None,
|
|
439
465
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
440
466
|
server_url: Optional[str] = None,
|
|
441
467
|
timeout_ms: Optional[int] = None,
|
|
@@ -449,6 +475,7 @@ class Morpho(BaseSDK):
|
|
|
449
475
|
:param chain:
|
|
450
476
|
:param user_address: The user address of the desired vault position.
|
|
451
477
|
:param vault_address: The vault address of the desired vault position.
|
|
478
|
+
:param block: The block number you want to get this data at.
|
|
452
479
|
:param retries: Override the default retry configuration for this method
|
|
453
480
|
:param server_url: Override the default server URL for this method
|
|
454
481
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -466,6 +493,7 @@ class Morpho(BaseSDK):
|
|
|
466
493
|
|
|
467
494
|
request = models.MorphoVaultPositionRequest(
|
|
468
495
|
chain=chain,
|
|
496
|
+
block=block,
|
|
469
497
|
user_address=user_address,
|
|
470
498
|
vault_address=vault_address,
|
|
471
499
|
)
|
|
@@ -542,6 +570,12 @@ class Morpho(BaseSDK):
|
|
|
542
570
|
chain: models.MorphoVaultPositionChain = models.MorphoVaultPositionChain.ETHEREUM_MAINNET,
|
|
543
571
|
user_address: str = "0xa829B388A3DF7f581cE957a95edbe419dd146d1B",
|
|
544
572
|
vault_address: str = "0xbEef047a543E45807105E51A8BBEFCc5950fcfBa",
|
|
573
|
+
block: Optional[
|
|
574
|
+
Union[
|
|
575
|
+
models.MorphoVaultPositionBlock,
|
|
576
|
+
models.MorphoVaultPositionBlockTypedDict,
|
|
577
|
+
]
|
|
578
|
+
] = None,
|
|
545
579
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
546
580
|
server_url: Optional[str] = None,
|
|
547
581
|
timeout_ms: Optional[int] = None,
|
|
@@ -555,6 +589,7 @@ class Morpho(BaseSDK):
|
|
|
555
589
|
:param chain:
|
|
556
590
|
:param user_address: The user address of the desired vault position.
|
|
557
591
|
:param vault_address: The vault address of the desired vault position.
|
|
592
|
+
:param block: The block number you want to get this data at.
|
|
558
593
|
:param retries: Override the default retry configuration for this method
|
|
559
594
|
:param server_url: Override the default server URL for this method
|
|
560
595
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -572,6 +607,7 @@ class Morpho(BaseSDK):
|
|
|
572
607
|
|
|
573
608
|
request = models.MorphoVaultPositionRequest(
|
|
574
609
|
chain=chain,
|
|
610
|
+
block=block,
|
|
575
611
|
user_address=user_address,
|
|
576
612
|
vault_address=vault_address,
|
|
577
613
|
)
|
|
@@ -646,6 +682,9 @@ class Morpho(BaseSDK):
|
|
|
646
682
|
self,
|
|
647
683
|
*,
|
|
648
684
|
chain: models.MorphoMarketsChain = models.MorphoMarketsChain.ETHEREUM_MAINNET,
|
|
685
|
+
block: Optional[
|
|
686
|
+
Union[models.MorphoMarketsBlock, models.MorphoMarketsBlockTypedDict]
|
|
687
|
+
] = None,
|
|
649
688
|
collateral_token: OptionalNullable[str] = UNSET,
|
|
650
689
|
loan_token: OptionalNullable[str] = UNSET,
|
|
651
690
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
@@ -661,6 +700,7 @@ class Morpho(BaseSDK):
|
|
|
661
700
|
can be used as collateral.
|
|
662
701
|
|
|
663
702
|
:param chain:
|
|
703
|
+
:param block: The block number you want to get this data at
|
|
664
704
|
:param collateral_token: Collateral token to identify the market.
|
|
665
705
|
:param loan_token: Loan token to identify the market.
|
|
666
706
|
:param retries: Override the default retry configuration for this method
|
|
@@ -680,6 +720,7 @@ class Morpho(BaseSDK):
|
|
|
680
720
|
|
|
681
721
|
request = models.MorphoMarketsRequest(
|
|
682
722
|
chain=chain,
|
|
723
|
+
block=block,
|
|
683
724
|
collateral_token=collateral_token,
|
|
684
725
|
loan_token=loan_token,
|
|
685
726
|
)
|
|
@@ -752,6 +793,9 @@ class Morpho(BaseSDK):
|
|
|
752
793
|
self,
|
|
753
794
|
*,
|
|
754
795
|
chain: models.MorphoMarketsChain = models.MorphoMarketsChain.ETHEREUM_MAINNET,
|
|
796
|
+
block: Optional[
|
|
797
|
+
Union[models.MorphoMarketsBlock, models.MorphoMarketsBlockTypedDict]
|
|
798
|
+
] = None,
|
|
755
799
|
collateral_token: OptionalNullable[str] = UNSET,
|
|
756
800
|
loan_token: OptionalNullable[str] = UNSET,
|
|
757
801
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
@@ -767,6 +811,7 @@ class Morpho(BaseSDK):
|
|
|
767
811
|
can be used as collateral.
|
|
768
812
|
|
|
769
813
|
:param chain:
|
|
814
|
+
:param block: The block number you want to get this data at
|
|
770
815
|
:param collateral_token: Collateral token to identify the market.
|
|
771
816
|
:param loan_token: Loan token to identify the market.
|
|
772
817
|
:param retries: Override the default retry configuration for this method
|
|
@@ -786,6 +831,7 @@ class Morpho(BaseSDK):
|
|
|
786
831
|
|
|
787
832
|
request = models.MorphoMarketsRequest(
|
|
788
833
|
chain=chain,
|
|
834
|
+
block=block,
|
|
789
835
|
collateral_token=collateral_token,
|
|
790
836
|
loan_token=loan_token,
|
|
791
837
|
)
|
|
@@ -859,6 +905,9 @@ class Morpho(BaseSDK):
|
|
|
859
905
|
*,
|
|
860
906
|
chain: models.MorphoMarketChain = models.MorphoMarketChain.ETHEREUM_MAINNET,
|
|
861
907
|
unique_market_key: str = "0x83b7ad16905809ea36482f4fbf6cfee9c9f316d128de9a5da1952607d5e4df5e",
|
|
908
|
+
block: Optional[
|
|
909
|
+
Union[models.MorphoMarketBlock, models.MorphoMarketBlockTypedDict]
|
|
910
|
+
] = None,
|
|
862
911
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
863
912
|
server_url: Optional[str] = None,
|
|
864
913
|
timeout_ms: Optional[int] = None,
|
|
@@ -879,6 +928,7 @@ class Morpho(BaseSDK):
|
|
|
879
928
|
|
|
880
929
|
:param chain:
|
|
881
930
|
:param unique_market_key: The key that uniquely identifies the market. This can be found using the 'Get Markets' endpoint.
|
|
931
|
+
:param block: The block number you want to get this data at.
|
|
882
932
|
:param retries: Override the default retry configuration for this method
|
|
883
933
|
:param server_url: Override the default server URL for this method
|
|
884
934
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -896,6 +946,7 @@ class Morpho(BaseSDK):
|
|
|
896
946
|
|
|
897
947
|
request = models.MorphoMarketRequest(
|
|
898
948
|
chain=chain,
|
|
949
|
+
block=block,
|
|
899
950
|
unique_market_key=unique_market_key,
|
|
900
951
|
)
|
|
901
952
|
|
|
@@ -968,6 +1019,9 @@ class Morpho(BaseSDK):
|
|
|
968
1019
|
*,
|
|
969
1020
|
chain: models.MorphoMarketChain = models.MorphoMarketChain.ETHEREUM_MAINNET,
|
|
970
1021
|
unique_market_key: str = "0x83b7ad16905809ea36482f4fbf6cfee9c9f316d128de9a5da1952607d5e4df5e",
|
|
1022
|
+
block: Optional[
|
|
1023
|
+
Union[models.MorphoMarketBlock, models.MorphoMarketBlockTypedDict]
|
|
1024
|
+
] = None,
|
|
971
1025
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
972
1026
|
server_url: Optional[str] = None,
|
|
973
1027
|
timeout_ms: Optional[int] = None,
|
|
@@ -988,6 +1042,7 @@ class Morpho(BaseSDK):
|
|
|
988
1042
|
|
|
989
1043
|
:param chain:
|
|
990
1044
|
:param unique_market_key: The key that uniquely identifies the market. This can be found using the 'Get Markets' endpoint.
|
|
1045
|
+
:param block: The block number you want to get this data at.
|
|
991
1046
|
:param retries: Override the default retry configuration for this method
|
|
992
1047
|
:param server_url: Override the default server URL for this method
|
|
993
1048
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -1005,6 +1060,7 @@ class Morpho(BaseSDK):
|
|
|
1005
1060
|
|
|
1006
1061
|
request = models.MorphoMarketRequest(
|
|
1007
1062
|
chain=chain,
|
|
1063
|
+
block=block,
|
|
1008
1064
|
unique_market_key=unique_market_key,
|
|
1009
1065
|
)
|
|
1010
1066
|
|
|
@@ -1078,6 +1134,12 @@ class Morpho(BaseSDK):
|
|
|
1078
1134
|
chain: models.MorphoMarketPositionChain = models.MorphoMarketPositionChain.ETHEREUM_MAINNET,
|
|
1079
1135
|
user_address: str = "0xa829B388A3DF7f581cE957a95edbe419dd146d1B",
|
|
1080
1136
|
unique_market_key: str = "0xe7399fdebc318d76dfec7356caafcf8cd4b91287e139a3ec423f09aeeb656fc4",
|
|
1137
|
+
block: Optional[
|
|
1138
|
+
Union[
|
|
1139
|
+
models.MorphoMarketPositionBlock,
|
|
1140
|
+
models.MorphoMarketPositionBlockTypedDict,
|
|
1141
|
+
]
|
|
1142
|
+
] = None,
|
|
1081
1143
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
1082
1144
|
server_url: Optional[str] = None,
|
|
1083
1145
|
timeout_ms: Optional[int] = None,
|
|
@@ -1091,6 +1153,7 @@ class Morpho(BaseSDK):
|
|
|
1091
1153
|
:param chain:
|
|
1092
1154
|
:param user_address: The user address of the desired market position.
|
|
1093
1155
|
:param unique_market_key: The key that uniquely identifies the market. This can be found using the 'Get Markets' endpoint.
|
|
1156
|
+
:param block: The block number you want to get this data at.
|
|
1094
1157
|
:param retries: Override the default retry configuration for this method
|
|
1095
1158
|
:param server_url: Override the default server URL for this method
|
|
1096
1159
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -1108,6 +1171,7 @@ class Morpho(BaseSDK):
|
|
|
1108
1171
|
|
|
1109
1172
|
request = models.MorphoMarketPositionRequest(
|
|
1110
1173
|
chain=chain,
|
|
1174
|
+
block=block,
|
|
1111
1175
|
user_address=user_address,
|
|
1112
1176
|
unique_market_key=unique_market_key,
|
|
1113
1177
|
)
|
|
@@ -1184,6 +1248,12 @@ class Morpho(BaseSDK):
|
|
|
1184
1248
|
chain: models.MorphoMarketPositionChain = models.MorphoMarketPositionChain.ETHEREUM_MAINNET,
|
|
1185
1249
|
user_address: str = "0xa829B388A3DF7f581cE957a95edbe419dd146d1B",
|
|
1186
1250
|
unique_market_key: str = "0xe7399fdebc318d76dfec7356caafcf8cd4b91287e139a3ec423f09aeeb656fc4",
|
|
1251
|
+
block: Optional[
|
|
1252
|
+
Union[
|
|
1253
|
+
models.MorphoMarketPositionBlock,
|
|
1254
|
+
models.MorphoMarketPositionBlockTypedDict,
|
|
1255
|
+
]
|
|
1256
|
+
] = None,
|
|
1187
1257
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
1188
1258
|
server_url: Optional[str] = None,
|
|
1189
1259
|
timeout_ms: Optional[int] = None,
|
|
@@ -1197,6 +1267,7 @@ class Morpho(BaseSDK):
|
|
|
1197
1267
|
:param chain:
|
|
1198
1268
|
:param user_address: The user address of the desired market position.
|
|
1199
1269
|
:param unique_market_key: The key that uniquely identifies the market. This can be found using the 'Get Markets' endpoint.
|
|
1270
|
+
:param block: The block number you want to get this data at.
|
|
1200
1271
|
:param retries: Override the default retry configuration for this method
|
|
1201
1272
|
:param server_url: Override the default server URL for this method
|
|
1202
1273
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -1214,6 +1285,7 @@ class Morpho(BaseSDK):
|
|
|
1214
1285
|
|
|
1215
1286
|
request = models.MorphoMarketPositionRequest(
|
|
1216
1287
|
chain=chain,
|
|
1288
|
+
block=block,
|
|
1217
1289
|
user_address=user_address,
|
|
1218
1290
|
unique_market_key=unique_market_key,
|
|
1219
1291
|
)
|
|
@@ -1289,6 +1361,11 @@ class Morpho(BaseSDK):
|
|
|
1289
1361
|
*,
|
|
1290
1362
|
chain: models.MorphoUserPositionChain = models.MorphoUserPositionChain.ETHEREUM_MAINNET,
|
|
1291
1363
|
user_address: str = "0xa829B388A3DF7f581cE957a95edbe419dd146d1B",
|
|
1364
|
+
block: Optional[
|
|
1365
|
+
Union[
|
|
1366
|
+
models.MorphoUserPositionBlock, models.MorphoUserPositionBlockTypedDict
|
|
1367
|
+
]
|
|
1368
|
+
] = None,
|
|
1292
1369
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
1293
1370
|
server_url: Optional[str] = None,
|
|
1294
1371
|
timeout_ms: Optional[int] = None,
|
|
@@ -1303,6 +1380,7 @@ class Morpho(BaseSDK):
|
|
|
1303
1380
|
|
|
1304
1381
|
:param chain:
|
|
1305
1382
|
:param user_address: The user wallet address of the desired user position.
|
|
1383
|
+
:param block: The block number you want to get this data at.
|
|
1306
1384
|
:param retries: Override the default retry configuration for this method
|
|
1307
1385
|
:param server_url: Override the default server URL for this method
|
|
1308
1386
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -1320,6 +1398,7 @@ class Morpho(BaseSDK):
|
|
|
1320
1398
|
|
|
1321
1399
|
request = models.MorphoUserPositionRequest(
|
|
1322
1400
|
chain=chain,
|
|
1401
|
+
block=block,
|
|
1323
1402
|
user_address=user_address,
|
|
1324
1403
|
)
|
|
1325
1404
|
|
|
@@ -1394,6 +1473,11 @@ class Morpho(BaseSDK):
|
|
|
1394
1473
|
*,
|
|
1395
1474
|
chain: models.MorphoUserPositionChain = models.MorphoUserPositionChain.ETHEREUM_MAINNET,
|
|
1396
1475
|
user_address: str = "0xa829B388A3DF7f581cE957a95edbe419dd146d1B",
|
|
1476
|
+
block: Optional[
|
|
1477
|
+
Union[
|
|
1478
|
+
models.MorphoUserPositionBlock, models.MorphoUserPositionBlockTypedDict
|
|
1479
|
+
]
|
|
1480
|
+
] = None,
|
|
1397
1481
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
1398
1482
|
server_url: Optional[str] = None,
|
|
1399
1483
|
timeout_ms: Optional[int] = None,
|
|
@@ -1408,6 +1492,7 @@ class Morpho(BaseSDK):
|
|
|
1408
1492
|
|
|
1409
1493
|
:param chain:
|
|
1410
1494
|
:param user_address: The user wallet address of the desired user position.
|
|
1495
|
+
:param block: The block number you want to get this data at.
|
|
1411
1496
|
:param retries: Override the default retry configuration for this method
|
|
1412
1497
|
:param server_url: Override the default server URL for this method
|
|
1413
1498
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -1425,6 +1510,7 @@ class Morpho(BaseSDK):
|
|
|
1425
1510
|
|
|
1426
1511
|
request = models.MorphoUserPositionRequest(
|
|
1427
1512
|
chain=chain,
|
|
1513
|
+
block=block,
|
|
1428
1514
|
user_address=user_address,
|
|
1429
1515
|
)
|
|
1430
1516
|
|