compass_api_sdk 0.9.40__py3-none-any.whl → 0.9.42__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 +3 -3
- compass_api_sdk/aave_v3.py +53 -64
- compass_api_sdk/aerodrome_slipstream.py +29 -28
- compass_api_sdk/erc_4626_vaults.py +13 -12
- compass_api_sdk/models/__init__.py +16 -24
- compass_api_sdk/models/compass_api_backend_models_pendle_read_response_market_userposition.py +82 -0
- compass_api_sdk/models/{userposition.py → compass_api_backend_models_vaults_read_response_vault_userposition.py} +2 -2
- compass_api_sdk/models/pendle_marketop.py +10 -2
- compass_api_sdk/models/pendlegetmarketresponse.py +52 -2
- compass_api_sdk/models/vaultgetvaultresponse.py +19 -6
- compass_api_sdk/morpho.py +49 -60
- compass_api_sdk/pendle.py +71 -268
- compass_api_sdk/sky.py +21 -24
- compass_api_sdk/smart_account.py +5 -4
- compass_api_sdk/token_sdk.py +17 -16
- compass_api_sdk/transaction_bundler.py +13 -12
- compass_api_sdk/uniswap_v3.py +41 -52
- compass_api_sdk/universal.py +33 -32
- compass_api_sdk/utils/__init__.py +0 -3
- compass_api_sdk/utils/serializers.py +1 -18
- compass_api_sdk/utils/unmarshal_json_response.py +24 -0
- {compass_api_sdk-0.9.40.dist-info → compass_api_sdk-0.9.42.dist-info}/METADATA +2 -3
- {compass_api_sdk-0.9.40.dist-info → compass_api_sdk-0.9.42.dist-info}/RECORD +24 -24
- compass_api_sdk/models/pendle_positionop.py +0 -87
- compass_api_sdk/models/pendlegetuserpositionresponse.py +0 -56
- {compass_api_sdk-0.9.40.dist-info → compass_api_sdk-0.9.42.dist-info}/WHEEL +0 -0
compass_api_sdk/universal.py
CHANGED
|
@@ -4,6 +4,7 @@ from .basesdk import BaseSDK
|
|
|
4
4
|
from compass_api_sdk import errors, models, utils
|
|
5
5
|
from compass_api_sdk._hooks import HookContext
|
|
6
6
|
from compass_api_sdk.types import OptionalNullable, UNSET
|
|
7
|
+
from compass_api_sdk.utils.unmarshal_json_response import unmarshal_json_response
|
|
7
8
|
from typing import Any, Mapping, Optional, Union
|
|
8
9
|
|
|
9
10
|
|
|
@@ -86,9 +87,9 @@ class Universal(BaseSDK):
|
|
|
86
87
|
|
|
87
88
|
response_data: Any = None
|
|
88
89
|
if utils.match_response(http_res, "200", "application/json"):
|
|
89
|
-
return
|
|
90
|
+
return unmarshal_json_response(models.Portfolio, http_res)
|
|
90
91
|
if utils.match_response(http_res, "422", "application/json"):
|
|
91
|
-
response_data =
|
|
92
|
+
response_data = unmarshal_json_response(
|
|
92
93
|
errors.HTTPValidationErrorData, http_res
|
|
93
94
|
)
|
|
94
95
|
raise errors.HTTPValidationError(response_data, http_res)
|
|
@@ -179,9 +180,9 @@ class Universal(BaseSDK):
|
|
|
179
180
|
|
|
180
181
|
response_data: Any = None
|
|
181
182
|
if utils.match_response(http_res, "200", "application/json"):
|
|
182
|
-
return
|
|
183
|
+
return unmarshal_json_response(models.Portfolio, http_res)
|
|
183
184
|
if utils.match_response(http_res, "422", "application/json"):
|
|
184
|
-
response_data =
|
|
185
|
+
response_data = unmarshal_json_response(
|
|
185
186
|
errors.HTTPValidationErrorData, http_res
|
|
186
187
|
)
|
|
187
188
|
raise errors.HTTPValidationError(response_data, http_res)
|
|
@@ -273,9 +274,9 @@ class Universal(BaseSDK):
|
|
|
273
274
|
|
|
274
275
|
response_data: Any = None
|
|
275
276
|
if utils.match_response(http_res, "200", "application/json"):
|
|
276
|
-
return
|
|
277
|
+
return unmarshal_json_response(models.Image, http_res)
|
|
277
278
|
if utils.match_response(http_res, "422", "application/json"):
|
|
278
|
-
response_data =
|
|
279
|
+
response_data = unmarshal_json_response(
|
|
279
280
|
errors.HTTPValidationErrorData, http_res
|
|
280
281
|
)
|
|
281
282
|
raise errors.HTTPValidationError(response_data, http_res)
|
|
@@ -367,9 +368,9 @@ class Universal(BaseSDK):
|
|
|
367
368
|
|
|
368
369
|
response_data: Any = None
|
|
369
370
|
if utils.match_response(http_res, "200", "application/json"):
|
|
370
|
-
return
|
|
371
|
+
return unmarshal_json_response(models.Image, http_res)
|
|
371
372
|
if utils.match_response(http_res, "422", "application/json"):
|
|
372
|
-
response_data =
|
|
373
|
+
response_data = unmarshal_json_response(
|
|
373
374
|
errors.HTTPValidationErrorData, http_res
|
|
374
375
|
)
|
|
375
376
|
raise errors.HTTPValidationError(response_data, http_res)
|
|
@@ -454,9 +455,9 @@ class Universal(BaseSDK):
|
|
|
454
455
|
|
|
455
456
|
response_data: Any = None
|
|
456
457
|
if utils.match_response(http_res, "200", "application/json"):
|
|
457
|
-
return
|
|
458
|
+
return unmarshal_json_response(models.TokenInfo, http_res)
|
|
458
459
|
if utils.match_response(http_res, "422", "application/json"):
|
|
459
|
-
response_data =
|
|
460
|
+
response_data = unmarshal_json_response(
|
|
460
461
|
errors.HTTPValidationErrorData, http_res
|
|
461
462
|
)
|
|
462
463
|
raise errors.HTTPValidationError(response_data, http_res)
|
|
@@ -541,9 +542,9 @@ class Universal(BaseSDK):
|
|
|
541
542
|
|
|
542
543
|
response_data: Any = None
|
|
543
544
|
if utils.match_response(http_res, "200", "application/json"):
|
|
544
|
-
return
|
|
545
|
+
return unmarshal_json_response(models.TokenInfo, http_res)
|
|
545
546
|
if utils.match_response(http_res, "422", "application/json"):
|
|
546
|
-
response_data =
|
|
547
|
+
response_data = unmarshal_json_response(
|
|
547
548
|
errors.HTTPValidationErrorData, http_res
|
|
548
549
|
)
|
|
549
550
|
raise errors.HTTPValidationError(response_data, http_res)
|
|
@@ -648,9 +649,9 @@ class Universal(BaseSDK):
|
|
|
648
649
|
|
|
649
650
|
response_data: Any = None
|
|
650
651
|
if utils.match_response(http_res, "200", "application/json"):
|
|
651
|
-
return
|
|
652
|
+
return unmarshal_json_response(models.AllowanceInfoResponse, http_res)
|
|
652
653
|
if utils.match_response(http_res, "422", "application/json"):
|
|
653
|
-
response_data =
|
|
654
|
+
response_data = unmarshal_json_response(
|
|
654
655
|
errors.HTTPValidationErrorData, http_res
|
|
655
656
|
)
|
|
656
657
|
raise errors.HTTPValidationError(response_data, http_res)
|
|
@@ -755,9 +756,9 @@ class Universal(BaseSDK):
|
|
|
755
756
|
|
|
756
757
|
response_data: Any = None
|
|
757
758
|
if utils.match_response(http_res, "200", "application/json"):
|
|
758
|
-
return
|
|
759
|
+
return unmarshal_json_response(models.AllowanceInfoResponse, http_res)
|
|
759
760
|
if utils.match_response(http_res, "422", "application/json"):
|
|
760
|
-
response_data =
|
|
761
|
+
response_data = unmarshal_json_response(
|
|
761
762
|
errors.HTTPValidationErrorData, http_res
|
|
762
763
|
)
|
|
763
764
|
raise errors.HTTPValidationError(response_data, http_res)
|
|
@@ -848,9 +849,9 @@ class Universal(BaseSDK):
|
|
|
848
849
|
|
|
849
850
|
response_data: Any = None
|
|
850
851
|
if utils.match_response(http_res, "200", "application/json"):
|
|
851
|
-
return
|
|
852
|
+
return unmarshal_json_response(models.EnsNameInfoResponse, http_res)
|
|
852
853
|
if utils.match_response(http_res, "422", "application/json"):
|
|
853
|
-
response_data =
|
|
854
|
+
response_data = unmarshal_json_response(
|
|
854
855
|
errors.HTTPValidationErrorData, http_res
|
|
855
856
|
)
|
|
856
857
|
raise errors.HTTPValidationError(response_data, http_res)
|
|
@@ -941,9 +942,9 @@ class Universal(BaseSDK):
|
|
|
941
942
|
|
|
942
943
|
response_data: Any = None
|
|
943
944
|
if utils.match_response(http_res, "200", "application/json"):
|
|
944
|
-
return
|
|
945
|
+
return unmarshal_json_response(models.EnsNameInfoResponse, http_res)
|
|
945
946
|
if utils.match_response(http_res, "422", "application/json"):
|
|
946
|
-
response_data =
|
|
947
|
+
response_data = unmarshal_json_response(
|
|
947
948
|
errors.HTTPValidationErrorData, http_res
|
|
948
949
|
)
|
|
949
950
|
raise errors.HTTPValidationError(response_data, http_res)
|
|
@@ -1040,9 +1041,9 @@ class Universal(BaseSDK):
|
|
|
1040
1041
|
|
|
1041
1042
|
response_data: Any = None
|
|
1042
1043
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1043
|
-
return
|
|
1044
|
+
return unmarshal_json_response(models.TxResponse, http_res)
|
|
1044
1045
|
if utils.match_response(http_res, "422", "application/json"):
|
|
1045
|
-
response_data =
|
|
1046
|
+
response_data = unmarshal_json_response(
|
|
1046
1047
|
errors.HTTPValidationErrorData, http_res
|
|
1047
1048
|
)
|
|
1048
1049
|
raise errors.HTTPValidationError(response_data, http_res)
|
|
@@ -1139,9 +1140,9 @@ class Universal(BaseSDK):
|
|
|
1139
1140
|
|
|
1140
1141
|
response_data: Any = None
|
|
1141
1142
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1142
|
-
return
|
|
1143
|
+
return unmarshal_json_response(models.TxResponse, http_res)
|
|
1143
1144
|
if utils.match_response(http_res, "422", "application/json"):
|
|
1144
|
-
response_data =
|
|
1145
|
+
response_data = unmarshal_json_response(
|
|
1145
1146
|
errors.HTTPValidationErrorData, http_res
|
|
1146
1147
|
)
|
|
1147
1148
|
raise errors.HTTPValidationError(response_data, http_res)
|
|
@@ -1238,9 +1239,9 @@ class Universal(BaseSDK):
|
|
|
1238
1239
|
|
|
1239
1240
|
response_data: Any = None
|
|
1240
1241
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1241
|
-
return
|
|
1242
|
+
return unmarshal_json_response(models.TxResponse, http_res)
|
|
1242
1243
|
if utils.match_response(http_res, "422", "application/json"):
|
|
1243
|
-
response_data =
|
|
1244
|
+
response_data = unmarshal_json_response(
|
|
1244
1245
|
errors.HTTPValidationErrorData, http_res
|
|
1245
1246
|
)
|
|
1246
1247
|
raise errors.HTTPValidationError(response_data, http_res)
|
|
@@ -1337,9 +1338,9 @@ class Universal(BaseSDK):
|
|
|
1337
1338
|
|
|
1338
1339
|
response_data: Any = None
|
|
1339
1340
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1340
|
-
return
|
|
1341
|
+
return unmarshal_json_response(models.TxResponse, http_res)
|
|
1341
1342
|
if utils.match_response(http_res, "422", "application/json"):
|
|
1342
|
-
response_data =
|
|
1343
|
+
response_data = unmarshal_json_response(
|
|
1343
1344
|
errors.HTTPValidationErrorData, http_res
|
|
1344
1345
|
)
|
|
1345
1346
|
raise errors.HTTPValidationError(response_data, http_res)
|
|
@@ -1453,9 +1454,9 @@ class Universal(BaseSDK):
|
|
|
1453
1454
|
|
|
1454
1455
|
response_data: Any = None
|
|
1455
1456
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1456
|
-
return
|
|
1457
|
+
return unmarshal_json_response(models.TxResponse, http_res)
|
|
1457
1458
|
if utils.match_response(http_res, "422", "application/json"):
|
|
1458
|
-
response_data =
|
|
1459
|
+
response_data = unmarshal_json_response(
|
|
1459
1460
|
errors.HTTPValidationErrorData, http_res
|
|
1460
1461
|
)
|
|
1461
1462
|
raise errors.HTTPValidationError(response_data, http_res)
|
|
@@ -1569,9 +1570,9 @@ class Universal(BaseSDK):
|
|
|
1569
1570
|
|
|
1570
1571
|
response_data: Any = None
|
|
1571
1572
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1572
|
-
return
|
|
1573
|
+
return unmarshal_json_response(models.TxResponse, http_res)
|
|
1573
1574
|
if utils.match_response(http_res, "422", "application/json"):
|
|
1574
|
-
response_data =
|
|
1575
|
+
response_data = unmarshal_json_response(
|
|
1575
1576
|
errors.HTTPValidationErrorData, http_res
|
|
1576
1577
|
)
|
|
1577
1578
|
raise errors.HTTPValidationError(response_data, http_res)
|
|
@@ -28,7 +28,6 @@ if TYPE_CHECKING:
|
|
|
28
28
|
marshal_json,
|
|
29
29
|
unmarshal,
|
|
30
30
|
unmarshal_json,
|
|
31
|
-
unmarshal_json_response,
|
|
32
31
|
serialize_decimal,
|
|
33
32
|
serialize_float,
|
|
34
33
|
serialize_int,
|
|
@@ -97,7 +96,6 @@ __all__ = [
|
|
|
97
96
|
"template_url",
|
|
98
97
|
"unmarshal",
|
|
99
98
|
"unmarshal_json",
|
|
100
|
-
"unmarshal_json_response",
|
|
101
99
|
"validate_decimal",
|
|
102
100
|
"validate_const",
|
|
103
101
|
"validate_float",
|
|
@@ -151,7 +149,6 @@ _dynamic_imports: dict[str, str] = {
|
|
|
151
149
|
"template_url": ".url",
|
|
152
150
|
"unmarshal": ".serializers",
|
|
153
151
|
"unmarshal_json": ".serializers",
|
|
154
|
-
"unmarshal_json_response": ".serializers",
|
|
155
152
|
"validate_decimal": ".serializers",
|
|
156
153
|
"validate_const": ".serializers",
|
|
157
154
|
"validate_float": ".serializers",
|
|
@@ -4,7 +4,7 @@ from decimal import Decimal
|
|
|
4
4
|
import functools
|
|
5
5
|
import json
|
|
6
6
|
import typing
|
|
7
|
-
from typing import Any, Dict, List,
|
|
7
|
+
from typing import Any, Dict, List, Tuple, Union, get_args
|
|
8
8
|
import typing_extensions
|
|
9
9
|
from typing_extensions import get_origin
|
|
10
10
|
|
|
@@ -13,7 +13,6 @@ from pydantic import ConfigDict, create_model
|
|
|
13
13
|
from pydantic_core import from_json
|
|
14
14
|
|
|
15
15
|
from ..types.basemodel import BaseModel, Nullable, OptionalNullable, Unset
|
|
16
|
-
from compass_api_sdk import errors
|
|
17
16
|
|
|
18
17
|
|
|
19
18
|
def serialize_decimal(as_str: bool):
|
|
@@ -141,22 +140,6 @@ def unmarshal_json(raw, typ: Any) -> Any:
|
|
|
141
140
|
return unmarshal(from_json(raw), typ)
|
|
142
141
|
|
|
143
142
|
|
|
144
|
-
def unmarshal_json_response(
|
|
145
|
-
typ: Any, http_res: httpx.Response, body: Optional[str] = None
|
|
146
|
-
) -> Any:
|
|
147
|
-
if body is None:
|
|
148
|
-
body = http_res.text
|
|
149
|
-
try:
|
|
150
|
-
return unmarshal_json(body, typ)
|
|
151
|
-
except Exception as e:
|
|
152
|
-
raise errors.ResponseValidationError(
|
|
153
|
-
"Response validation failed",
|
|
154
|
-
http_res,
|
|
155
|
-
e,
|
|
156
|
-
body,
|
|
157
|
-
) from e
|
|
158
|
-
|
|
159
|
-
|
|
160
143
|
def unmarshal(val, typ: Any) -> Any:
|
|
161
144
|
unmarshaller = create_model(
|
|
162
145
|
"Unmarshaller",
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from typing import Any, Optional
|
|
4
|
+
|
|
5
|
+
import httpx
|
|
6
|
+
|
|
7
|
+
from .serializers import unmarshal_json
|
|
8
|
+
from compass_api_sdk import errors
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def unmarshal_json_response(
|
|
12
|
+
typ: Any, http_res: httpx.Response, body: Optional[str] = None
|
|
13
|
+
) -> Any:
|
|
14
|
+
if body is None:
|
|
15
|
+
body = http_res.text
|
|
16
|
+
try:
|
|
17
|
+
return unmarshal_json(body, typ)
|
|
18
|
+
except Exception as e:
|
|
19
|
+
raise errors.ResponseValidationError(
|
|
20
|
+
"Response validation failed",
|
|
21
|
+
http_res,
|
|
22
|
+
e,
|
|
23
|
+
body,
|
|
24
|
+
) from e
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: compass_api_sdk
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.42
|
|
4
4
|
Summary: Compass API SDK.
|
|
5
5
|
Author: royalnine
|
|
6
6
|
Requires-Python: >=3.9.2
|
|
@@ -241,9 +241,8 @@ with CompassAPI(
|
|
|
241
241
|
|
|
242
242
|
### [pendle](https://github.com/CompassLabs/mono/blob/master/docs/sdks/pendle/README.md)
|
|
243
243
|
|
|
244
|
-
* [
|
|
244
|
+
* [market](https://github.com/CompassLabs/mono/blob/master/docs/sdks/pendle/README.md#market) - Get Market & User Position
|
|
245
245
|
* [positions](https://github.com/CompassLabs/mono/blob/master/docs/sdks/pendle/README.md#positions) - List User's Market Positions
|
|
246
|
-
* [market](https://github.com/CompassLabs/mono/blob/master/docs/sdks/pendle/README.md#market) - Get Market Data
|
|
247
246
|
* [markets](https://github.com/CompassLabs/mono/blob/master/docs/sdks/pendle/README.md#markets) - List Market Data
|
|
248
247
|
* [quote](https://github.com/CompassLabs/mono/blob/master/docs/sdks/pendle/README.md#quote) - Get Quote
|
|
249
248
|
* [buy_pt](https://github.com/CompassLabs/mono/blob/master/docs/sdks/pendle/README.md#buy_pt) - Buy Principal Token (PT)
|
|
@@ -2,11 +2,11 @@ compass_api_sdk/__init__.py,sha256=w2u919V3Tzv4zEPQ-OYJ79gQ_4_SyW7GOFFoHtqXDFA,4
|
|
|
2
2
|
compass_api_sdk/_hooks/__init__.py,sha256=p5J13DeYuISQyQWirjJAObHIf2VtIlOtFqnIpvjjVwk,118
|
|
3
3
|
compass_api_sdk/_hooks/sdkhooks.py,sha256=eVxHB2Q_JG6zZx5xn74i208ij-fpTHqq2jod6fbghRQ,2503
|
|
4
4
|
compass_api_sdk/_hooks/types.py,sha256=4qXm6dEntJOC2QeOdTklcc53oFzTU3HBb1xGdZ-kBXY,3059
|
|
5
|
-
compass_api_sdk/_version.py,sha256=
|
|
6
|
-
compass_api_sdk/aave_v3.py,sha256=
|
|
7
|
-
compass_api_sdk/aerodrome_slipstream.py,sha256=
|
|
5
|
+
compass_api_sdk/_version.py,sha256=RoWXI4KUAMSiY3fr5kSG1gz_gt_40orYOICmcejgc3Y,474
|
|
6
|
+
compass_api_sdk/aave_v3.py,sha256=OhQmjeWl2emRwT0g1D9RUdPn5B3NsO2fdwzszPs3Uug,116614
|
|
7
|
+
compass_api_sdk/aerodrome_slipstream.py,sha256=l57AwIZqQvYpeZp9ZJxfhHXqPD5XRGSH0d5ETV3YLww,78289
|
|
8
8
|
compass_api_sdk/basesdk.py,sha256=PQNcMD7BiLruZwOuU2TeWIE_zQ0iO--XYUFmIDr5zX0,11844
|
|
9
|
-
compass_api_sdk/erc_4626_vaults.py,sha256=
|
|
9
|
+
compass_api_sdk/erc_4626_vaults.py,sha256=h2lIPJYbyj6eBZQ6ww9FiU-ZYwLZpcgN3P0nieQtptc,26383
|
|
10
10
|
compass_api_sdk/errors/__init__.py,sha256=UZYQ_CPi1cQkYcHe6n00nfKPIRwbmcufTY-FmMJGmk8,1693
|
|
11
11
|
compass_api_sdk/errors/apierror.py,sha256=y1lf-8zwQhv1JGntxj03ViMUyHN_Uewe0oZoH8MhwSM,1235
|
|
12
12
|
compass_api_sdk/errors/compassapierror.py,sha256=VqVzBWmwoS3OvoKbgBNh2WFFhrM3K5Kbz_5q4bupD7o,717
|
|
@@ -14,7 +14,7 @@ compass_api_sdk/errors/httpvalidationerror.py,sha256=ebdzfILwY0BltW3MqxCpHipluRS
|
|
|
14
14
|
compass_api_sdk/errors/no_response_error.py,sha256=FQG44Lq6uF7uUlzbUYfM3dJon6sbqXzJ0Ri6YrDdsEs,380
|
|
15
15
|
compass_api_sdk/errors/responsevalidationerror.py,sha256=baMAkfmUhcPt_cxzyOCBCGBOzlXAeTHwcn5AUCsAgOw,702
|
|
16
16
|
compass_api_sdk/httpclient.py,sha256=Eu73urOAiZQtdUIyOUnPccxCiBbWEKrXG-JrRG3SLM4,3946
|
|
17
|
-
compass_api_sdk/models/__init__.py,sha256=
|
|
17
|
+
compass_api_sdk/models/__init__.py,sha256=kYa-SLboGGobCZPSELnkErnnxeumV95LbG08IL8M4V0,118463
|
|
18
18
|
compass_api_sdk/models/aave_avg_rateop.py,sha256=Qn7IkBwZv5zY_L15V_LONkANzQPTbtmK2Wwhc2iqYz8,3718
|
|
19
19
|
compass_api_sdk/models/aave_historical_transactionsop.py,sha256=oWOjaRhNyjddZPqr5RfhNYf6V4Ye4gOQ0BDIXoqZGSs,1785
|
|
20
20
|
compass_api_sdk/models/aave_liquidity_changeop.py,sha256=o9G4dD2foyhbunziTv_177Qr2AK37KTIQsQfvPxo5Fs,2785
|
|
@@ -76,8 +76,10 @@ compass_api_sdk/models/compass_api_backend_models_morpho_read_response_get_marke
|
|
|
76
76
|
compass_api_sdk/models/compass_api_backend_models_morpho_read_response_get_markets_marketstate.py,sha256=wour5BGvKGddpI_qfs7WHfDewE5-cLdRjq7L-QTAQLg,2133
|
|
77
77
|
compass_api_sdk/models/compass_api_backend_models_morpho_read_response_get_vaults_asset.py,sha256=zlxZwigsUocOnYo2Q43JLDSiFL6w26r-jaqcy4Ds2NU,562
|
|
78
78
|
compass_api_sdk/models/compass_api_backend_models_morpho_read_response_get_vaults_vaultstate.py,sha256=WwlaoKcfHa18irpBwR95FIV5TD0_2jVN_hIqo1R55rE,796
|
|
79
|
+
compass_api_sdk/models/compass_api_backend_models_pendle_read_response_market_userposition.py,sha256=jkWdF9C7npeeiZPgBWaJt9Hd8Ft9Sn745ZNZct6R_-A,2749
|
|
79
80
|
compass_api_sdk/models/compass_api_backend_models_pendle_read_response_positions_tokenbalance.py,sha256=dxEvdDEZmYokpmCAO3RXRQU81kR4Bmiv3eEqMKh0GTU,450
|
|
80
81
|
compass_api_sdk/models/compass_api_backend_models_vaults_read_response_vault_asset.py,sha256=M5ShjhNBdQYc_D4FefCDjDc5hm3KV4u_fJ7ZKyTH-uk,478
|
|
82
|
+
compass_api_sdk/models/compass_api_backend_models_vaults_read_response_vault_userposition.py,sha256=SxtENOm04UiflzOyi09Gcrh3v0ibB3uWHAbI_bqlUdk,436
|
|
81
83
|
compass_api_sdk/models/details.py,sha256=3nlDe5Po20HFWWc31iX-6wOfMdveE76JpNf-Kp9AsuQ,1212
|
|
82
84
|
compass_api_sdk/models/ensnameinforesponse.py,sha256=p7y3TYD3lApa8hzHTCKDUEmSpmH2QmJAHG7wzef9rLk,626
|
|
83
85
|
compass_api_sdk/models/erc20data.py,sha256=Pn9h6Ts64VoV3bR5gpbMxTPb2Du8izsK5a6eFxQfRZU,394
|
|
@@ -124,9 +126,8 @@ compass_api_sdk/models/multicallauthorizationrequest.py,sha256=h5-2acLlhV9assgII
|
|
|
124
126
|
compass_api_sdk/models/multicallauthorizationresponse.py,sha256=3jjdz9Mz-tKjhBzZbVaJW51no58HSqcxfHJwuZsgnhg,914
|
|
125
127
|
compass_api_sdk/models/multicallexecuterequest.py,sha256=iVCfkarzlLYQrdo2sCRB9YJyJ-dayaf321j0Hh4Fit8,1095
|
|
126
128
|
compass_api_sdk/models/openposition.py,sha256=jd5t6ku3f7J0PA-1LmfWyrNYrQybGF68ebfVKgkSzdc,1013
|
|
127
|
-
compass_api_sdk/models/pendle_marketop.py,sha256=
|
|
129
|
+
compass_api_sdk/models/pendle_marketop.py,sha256=5Q0SA0lkY6H7RK7UV4PNNTe5in_jX6DxKPaw4rZGqHs,2989
|
|
128
130
|
compass_api_sdk/models/pendle_marketsop.py,sha256=LHFiQt07oujjdLItscPDEkOCh282rsc_Q2W0jYnkXXM,830
|
|
129
|
-
compass_api_sdk/models/pendle_positionop.py,sha256=UQi58V5JAeDqHeEXWeRgfqeD1zQoYgDaDFgT4aZXi8s,2754
|
|
130
131
|
compass_api_sdk/models/pendle_positionsop.py,sha256=TVqsZ_DuXi9Osl8vtETb33BrSc4tEMccLnqevU30avk,1134
|
|
131
132
|
compass_api_sdk/models/pendle_quoteop.py,sha256=924Xt5q0tkmB1thM5Y6wELh7EZ4y8uEFyfBoCj8F26o,3787
|
|
132
133
|
compass_api_sdk/models/pendleaddliquidityparams.py,sha256=03Jo5eLXbA-78187BU1LolAsE9pjKQ9VizwmlHYwkxM,2056
|
|
@@ -135,9 +136,8 @@ compass_api_sdk/models/pendlebuyptparams.py,sha256=Y_3zGoBomfP1EFK1Gl6DKAOv7C3vS
|
|
|
135
136
|
compass_api_sdk/models/pendlebuyptrequest.py,sha256=NQkaQ2HqjGeVx8yNwFz6a_r0ZrMmMo8AEf-zweChOkA,2209
|
|
136
137
|
compass_api_sdk/models/pendlebuyytparams.py,sha256=KNPS0zRlcr9R44jARza_nDoZNinHc4j34EuReii8JvI,1926
|
|
137
138
|
compass_api_sdk/models/pendlebuyytrequest.py,sha256=EzpfmTGzWLCuG2C6tFMeHXxdP5L7R6XzWEbMJDOy1Tk,2185
|
|
138
|
-
compass_api_sdk/models/pendlegetmarketresponse.py,sha256=
|
|
139
|
+
compass_api_sdk/models/pendlegetmarketresponse.py,sha256=66iWVY6l95X2mx0SKCimZr_39zrqZoUL28XHbOKHpnw,2509
|
|
139
140
|
compass_api_sdk/models/pendlegetquoteresponse.py,sha256=v-xQTnffKHix-tYuGnxCSiFU1HHs1cag492rB6B_1X4,591
|
|
140
|
-
compass_api_sdk/models/pendlegetuserpositionresponse.py,sha256=lGYK1LRI6osNYz5043uGO2aBYojDzXKK4cVnyvaFdmA,1913
|
|
141
141
|
compass_api_sdk/models/pendlelistmarketsresponse.py,sha256=-DlImGBzAP-yc0B1F9Cfer1ruFHLUEsRv2F1MQt2-hE,570
|
|
142
142
|
compass_api_sdk/models/pendlelistuserpositionsresponse.py,sha256=7QQ5xeGxlPo1mPrzR9LRwSlx7veUN3u2qnZDi6iVWj0,572
|
|
143
143
|
compass_api_sdk/models/pendlemarket.py,sha256=4eLXsYRw9c7CSFOsciOA4MCA57-1Su6B2vx4RoRBlew,918
|
|
@@ -210,12 +210,11 @@ compass_api_sdk/models/unwrapwethrequest.py,sha256=pt-eqvKWN6qir5bN6d9EWBZIDrXs_
|
|
|
210
210
|
compass_api_sdk/models/usageascollateral.py,sha256=hHBgh83BO9WA6u-9xzTvBlPOLoiYV1N21G6vDeo_b30,1561
|
|
211
211
|
compass_api_sdk/models/useroperation.py,sha256=oxm4nj0hIhGE821-MTBoQ6x3DrLOi1XbzVXJtrOpaLw,8850
|
|
212
212
|
compass_api_sdk/models/useroperationresponse.py,sha256=z0o0N-EC30XlrkFiR3vLO_EXbpXojUCJlWQxuOir5VM,671
|
|
213
|
-
compass_api_sdk/models/userposition.py,sha256=tmRq5o-tNWFQCZ-48bA4HCTJnVt_lt1DMM8cZShZOZE,344
|
|
214
213
|
compass_api_sdk/models/userstate.py,sha256=uwoWC0y2Bv5jHW-F2MInZx0RwMihH6WxcXmemr71sdk,1994
|
|
215
214
|
compass_api_sdk/models/validationerror.py,sha256=01WnpU7Tgin0B_poO97_hl6b5CNJ_9VGzpcmoeJs4GU,532
|
|
216
215
|
compass_api_sdk/models/vault.py,sha256=ttepBiKO4o7-C97oALWOYAcN7ALDXmBFBcbQV_nfwO4,1849
|
|
217
216
|
compass_api_sdk/models/vaultdepositrequest.py,sha256=GXYfXNlMmExOxjgabMDFjRS4kjHovuofGNz9DHO1TDQ,3136
|
|
218
|
-
compass_api_sdk/models/vaultgetvaultresponse.py,sha256=
|
|
217
|
+
compass_api_sdk/models/vaultgetvaultresponse.py,sha256=eIo-NdQ6C7DVFITjb1mimYL_akHA8MfmkovNroTEyG0,3164
|
|
219
218
|
compass_api_sdk/models/vaultposition.py,sha256=o_Nyjc7GB5lLi11yCO6cp8nZpIvJcZzGB1iL_oCJUA0,801
|
|
220
219
|
compass_api_sdk/models/vaults_vaultop.py,sha256=4LE8AgOUsfDBDNcupsAnhbY_s20oMTRsHRazsF-slAY,2989
|
|
221
220
|
compass_api_sdk/models/vaultwithdrawrequest.py,sha256=w4STTo4hqAZ6OtCgflHlaKquFCDWyTEa399tURyFgTo,2758
|
|
@@ -223,20 +222,20 @@ compass_api_sdk/models/weeklyapys.py,sha256=AaGjDD4NeGsZQBwdRW1G09Pmx17pLPe2oUA9
|
|
|
223
222
|
compass_api_sdk/models/wrapethparams.py,sha256=nw1fZiDrj5wZnI25Vmg0DcNI01k-uhot68lG1_H7xrY,1223
|
|
224
223
|
compass_api_sdk/models/wrapethrequest.py,sha256=pjo0BZtzdOZKuwgnc05LsCWO1A6ZAGLwFixLuXQNKDg,1476
|
|
225
224
|
compass_api_sdk/models/yieldrange.py,sha256=WEpZR24JddnCS1_13y2P1CdD0lBi6dPktysCNu3TUic,324
|
|
226
|
-
compass_api_sdk/morpho.py,sha256=
|
|
227
|
-
compass_api_sdk/pendle.py,sha256=
|
|
225
|
+
compass_api_sdk/morpho.py,sha256=RJ7uw5GswJmy65Imwq3i3svxjuhVpl5c3Q9bv9AY9jw,107770
|
|
226
|
+
compass_api_sdk/pendle.py,sha256=Eb4zJfmfU28fria3eeA_tA2xnKZjvmtTrTJpNrrhb98,93890
|
|
228
227
|
compass_api_sdk/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
|
|
229
228
|
compass_api_sdk/sdk.py,sha256=rQ3ANGf0BxHoZc9hCQvsxkNc9qOW3DbGAuOz_sy3o7g,7865
|
|
230
229
|
compass_api_sdk/sdkconfiguration.py,sha256=5nec4ViMLCsNWBd3DyEv8zWqU5Z77YZfzwX69jkdSnM,1607
|
|
231
|
-
compass_api_sdk/sky.py,sha256=
|
|
232
|
-
compass_api_sdk/smart_account.py,sha256=
|
|
233
|
-
compass_api_sdk/token_sdk.py,sha256=
|
|
234
|
-
compass_api_sdk/transaction_bundler.py,sha256=
|
|
230
|
+
compass_api_sdk/sky.py,sha256=lY4fOXFzRQpAHf-u33dUCDNPl_WzGviBErT_5ogzPkM,40307
|
|
231
|
+
compass_api_sdk/smart_account.py,sha256=H28RSfvyffnWNBOy7irXHsp4Xcmz-mBgKuJWlsQ6Rv4,8704
|
|
232
|
+
compass_api_sdk/token_sdk.py,sha256=cCzbVft0xGsABPCga56h7FvV0PglJO8okBjg5qyvYHU,31964
|
|
233
|
+
compass_api_sdk/transaction_bundler.py,sha256=6nij4Wf5g5fyE_DEY0tGr9VGUNvyjXRLqEfA1Y1FUNM,30278
|
|
235
234
|
compass_api_sdk/types/__init__.py,sha256=RArOwSgeeTIva6h-4ttjXwMUeCkz10nAFBL9D-QljI4,377
|
|
236
235
|
compass_api_sdk/types/basemodel.py,sha256=L79WXvTECbSqaJzs8D3ud_KdIWkU7Cx2wbohDAktE9E,1127
|
|
237
|
-
compass_api_sdk/uniswap_v3.py,sha256=
|
|
238
|
-
compass_api_sdk/universal.py,sha256=
|
|
239
|
-
compass_api_sdk/utils/__init__.py,sha256=
|
|
236
|
+
compass_api_sdk/uniswap_v3.py,sha256=JBNEi6nuU248f7HmEjBvUdQr-fYX8TgyD8ZneT1VfW8,101569
|
|
237
|
+
compass_api_sdk/universal.py,sha256=zdmsKmRxI9u3kv-kGXUXFY30ARz9Yp8yCYNl1bvjLxs,65113
|
|
238
|
+
compass_api_sdk/utils/__init__.py,sha256=811KKdkxMaWDfz2lMohUWqrR4JnIWxqeNQ1lRGQU4DM,5341
|
|
240
239
|
compass_api_sdk/utils/annotations.py,sha256=aR7mZG34FzgRdew7WZPYEu9QGBerpuKxCF4sek5Z_5Y,1699
|
|
241
240
|
compass_api_sdk/utils/datetimes.py,sha256=oppAA5e3V35pQov1-FNLKxAaNF1_XWi-bQtyjjql3H8,855
|
|
242
241
|
compass_api_sdk/utils/enums.py,sha256=REU6ydF8gsVL3xaeGX4sMNyiL3q5P9h29-f6Sa6luAE,2633
|
|
@@ -249,9 +248,10 @@ compass_api_sdk/utils/queryparams.py,sha256=MTK6inMS1_WwjmMJEJmAn67tSHHJyarpdGRl
|
|
|
249
248
|
compass_api_sdk/utils/requestbodies.py,sha256=ySjEyjcLi731LNUahWvLOrES2HihuA8VrOJx4eQ7Qzg,2101
|
|
250
249
|
compass_api_sdk/utils/retries.py,sha256=6yhfZifqIat9i76xF0lTR2jLj1IN9BNGyqqxATlEFPU,6348
|
|
251
250
|
compass_api_sdk/utils/security.py,sha256=ktep3HKwbFs-MLxUYTM8Jd4v-ZBum5_Z0u1PFIdYBX0,5516
|
|
252
|
-
compass_api_sdk/utils/serializers.py,sha256=
|
|
251
|
+
compass_api_sdk/utils/serializers.py,sha256=Hndks5M_rJXVub_N5lu0gKZQUoEmWrn6PN7R-0HwvOE,5999
|
|
252
|
+
compass_api_sdk/utils/unmarshal_json_response.py,sha256=GI4Cw4JB6H2qNkqbOuBiUcxtEOJhRm2bz3qfer9KmoE,591
|
|
253
253
|
compass_api_sdk/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
|
|
254
254
|
compass_api_sdk/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
|
|
255
|
-
compass_api_sdk-0.9.
|
|
256
|
-
compass_api_sdk-0.9.
|
|
257
|
-
compass_api_sdk-0.9.
|
|
255
|
+
compass_api_sdk-0.9.42.dist-info/METADATA,sha256=WKI9Ep-pfIZI7zZXClBFMuK2bnfYYJwW2h_HdGAM3Us,28507
|
|
256
|
+
compass_api_sdk-0.9.42.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
257
|
+
compass_api_sdk-0.9.42.dist-info/RECORD,,
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
from compass_api_sdk.types import (
|
|
5
|
-
BaseModel,
|
|
6
|
-
Nullable,
|
|
7
|
-
OptionalNullable,
|
|
8
|
-
UNSET,
|
|
9
|
-
UNSET_SENTINEL,
|
|
10
|
-
)
|
|
11
|
-
from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
|
|
12
|
-
from enum import Enum
|
|
13
|
-
from pydantic import model_serializer
|
|
14
|
-
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
class PendlePositionChain(str, Enum):
|
|
18
|
-
r"""The chain to use."""
|
|
19
|
-
|
|
20
|
-
BASE_MAINNET = "base:mainnet"
|
|
21
|
-
ETHEREUM_MAINNET = "ethereum:mainnet"
|
|
22
|
-
ARBITRUM_MAINNET = "arbitrum:mainnet"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
class PendlePositionRequestTypedDict(TypedDict):
|
|
26
|
-
chain: PendlePositionChain
|
|
27
|
-
r"""The chain to use."""
|
|
28
|
-
block: NotRequired[Nullable[int]]
|
|
29
|
-
r"""Optional block number (defaults to latest)."""
|
|
30
|
-
user_address: str
|
|
31
|
-
r"""The user address of the desired position."""
|
|
32
|
-
market_address: str
|
|
33
|
-
r"""The market address of the desired position."""
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
class PendlePositionRequest(BaseModel):
|
|
37
|
-
chain: Annotated[
|
|
38
|
-
PendlePositionChain,
|
|
39
|
-
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
40
|
-
] = PendlePositionChain.ARBITRUM_MAINNET
|
|
41
|
-
r"""The chain to use."""
|
|
42
|
-
|
|
43
|
-
block: Annotated[
|
|
44
|
-
OptionalNullable[int],
|
|
45
|
-
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
46
|
-
] = UNSET
|
|
47
|
-
r"""Optional block number (defaults to latest)."""
|
|
48
|
-
|
|
49
|
-
user_address: Annotated[
|
|
50
|
-
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
51
|
-
] = "0xB7954A07213413b2ec6Faa1360f56a498eACe10b"
|
|
52
|
-
r"""The user address of the desired position."""
|
|
53
|
-
|
|
54
|
-
market_address: Annotated[
|
|
55
|
-
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
56
|
-
] = "0x46d62a8dede1bf2d0de04f2ed863245cbba5e538"
|
|
57
|
-
r"""The market address of the desired position."""
|
|
58
|
-
|
|
59
|
-
@model_serializer(mode="wrap")
|
|
60
|
-
def serialize_model(self, handler):
|
|
61
|
-
optional_fields = ["block"]
|
|
62
|
-
nullable_fields = ["block"]
|
|
63
|
-
null_default_fields = []
|
|
64
|
-
|
|
65
|
-
serialized = handler(self)
|
|
66
|
-
|
|
67
|
-
m = {}
|
|
68
|
-
|
|
69
|
-
for n, f in type(self).model_fields.items():
|
|
70
|
-
k = f.alias or n
|
|
71
|
-
val = serialized.get(k)
|
|
72
|
-
serialized.pop(k, None)
|
|
73
|
-
|
|
74
|
-
optional_nullable = k in optional_fields and k in nullable_fields
|
|
75
|
-
is_set = (
|
|
76
|
-
self.__pydantic_fields_set__.intersection({n})
|
|
77
|
-
or k in null_default_fields
|
|
78
|
-
) # pylint: disable=no-member
|
|
79
|
-
|
|
80
|
-
if val is not None and val != UNSET_SENTINEL:
|
|
81
|
-
m[k] = val
|
|
82
|
-
elif val != UNSET_SENTINEL and (
|
|
83
|
-
not k in optional_fields or (optional_nullable and is_set)
|
|
84
|
-
):
|
|
85
|
-
m[k] = val
|
|
86
|
-
|
|
87
|
-
return m
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
from compass_api_sdk.types import BaseModel
|
|
5
|
-
from datetime import datetime
|
|
6
|
-
from typing_extensions import TypedDict
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
class PendleGetUserPositionResponseTypedDict(TypedDict):
|
|
10
|
-
claimable_yield: str
|
|
11
|
-
r"""The amount of yield that can be claimed in the underlying token."""
|
|
12
|
-
sy_balance: str
|
|
13
|
-
r"""The amount of SY tokens the user currently holds."""
|
|
14
|
-
pt_balance: str
|
|
15
|
-
r"""The amount of PT tokens the user currently holds."""
|
|
16
|
-
yt_balance: str
|
|
17
|
-
r"""The amount of YT tokens the user currently holds."""
|
|
18
|
-
lp_balance: str
|
|
19
|
-
r"""The amount of LP tokens the user currently holds."""
|
|
20
|
-
underlying_token_balance: str
|
|
21
|
-
r"""The amount of underlying tokens the user currently holds."""
|
|
22
|
-
underlying_token_name: str
|
|
23
|
-
r"""The name of the underlying token."""
|
|
24
|
-
underlying_token_symbol: str
|
|
25
|
-
r"""The symbol of the underlying token."""
|
|
26
|
-
maturity_date: datetime
|
|
27
|
-
r"""The maturity date of the market. ISO 8601 format. UTC timezone."""
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
class PendleGetUserPositionResponse(BaseModel):
|
|
31
|
-
claimable_yield: str
|
|
32
|
-
r"""The amount of yield that can be claimed in the underlying token."""
|
|
33
|
-
|
|
34
|
-
sy_balance: str
|
|
35
|
-
r"""The amount of SY tokens the user currently holds."""
|
|
36
|
-
|
|
37
|
-
pt_balance: str
|
|
38
|
-
r"""The amount of PT tokens the user currently holds."""
|
|
39
|
-
|
|
40
|
-
yt_balance: str
|
|
41
|
-
r"""The amount of YT tokens the user currently holds."""
|
|
42
|
-
|
|
43
|
-
lp_balance: str
|
|
44
|
-
r"""The amount of LP tokens the user currently holds."""
|
|
45
|
-
|
|
46
|
-
underlying_token_balance: str
|
|
47
|
-
r"""The amount of underlying tokens the user currently holds."""
|
|
48
|
-
|
|
49
|
-
underlying_token_name: str
|
|
50
|
-
r"""The name of the underlying token."""
|
|
51
|
-
|
|
52
|
-
underlying_token_symbol: str
|
|
53
|
-
r"""The symbol of the underlying token."""
|
|
54
|
-
|
|
55
|
-
maturity_date: datetime
|
|
56
|
-
r"""The maturity date of the market. ISO 8601 format. UTC timezone."""
|
|
File without changes
|