compass_api_sdk 0.6.1__py3-none-any.whl → 0.6.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of compass_api_sdk might be problematic. Click here for more details.

Files changed (30) hide show
  1. compass_api_sdk/_version.py +2 -2
  2. compass_api_sdk/models/__init__.py +106 -22
  3. compass_api_sdk/models/{tokenbalance.py → compass_api_backend_models_generic_read_response_portfolio_tokenbalance.py} +4 -2
  4. compass_api_sdk/models/compass_api_backend_models_pendle_read_response_positions_tokenbalance.py +18 -0
  5. compass_api_sdk/models/details.py +39 -0
  6. compass_api_sdk/models/increaseallowanceparams.py +20 -16
  7. compass_api_sdk/models/increaseallowancerequest.py +20 -16
  8. compass_api_sdk/models/lpbalance.py +20 -0
  9. compass_api_sdk/models/movement10percent.py +23 -0
  10. compass_api_sdk/models/multicallactiontype.py +0 -1
  11. compass_api_sdk/models/openposition.py +28 -0
  12. compass_api_sdk/models/pendle_marketop.py +1 -1
  13. compass_api_sdk/models/pendle_marketsop.py +73 -0
  14. compass_api_sdk/models/pendle_positionop.py +1 -1
  15. compass_api_sdk/models/pendle_positionsop.py +80 -0
  16. compass_api_sdk/models/pendlelistmarketsresponse.py +17 -0
  17. compass_api_sdk/models/pendlelistuserpositionsresponse.py +17 -0
  18. compass_api_sdk/models/pendlemarket.py +46 -0
  19. compass_api_sdk/models/portfolio.py +10 -3
  20. compass_api_sdk/models/position.py +41 -0
  21. compass_api_sdk/models/syposition.py +17 -0
  22. compass_api_sdk/models/useroperation.py +20 -26
  23. compass_api_sdk/models/yieldrange.py +16 -0
  24. compass_api_sdk/pendle.py +414 -4
  25. compass_api_sdk/universal.py +14 -8
  26. {compass_api_sdk-0.6.1.dist-info → compass_api_sdk-0.6.2.dist-info}/METADATA +4 -2
  27. {compass_api_sdk-0.6.1.dist-info → compass_api_sdk-0.6.2.dist-info}/RECORD +28 -17
  28. compass_api_sdk/models/contractname.py +0 -41
  29. compass_api_sdk/models/increaseallowanceanyparams.py +0 -58
  30. {compass_api_sdk-0.6.1.dist-info → compass_api_sdk-0.6.2.dist-info}/WHEEL +0 -0
@@ -3,10 +3,10 @@
3
3
  import importlib.metadata
4
4
 
5
5
  __title__: str = "compass_api_sdk"
6
- __version__: str = "0.6.1"
6
+ __version__: str = "0.6.2"
7
7
  __openapi_doc_version__: str = "0.0.1"
8
8
  __gen_version__: str = "2.610.0"
9
- __user_agent__: str = "speakeasy-sdk/python 0.6.1 2.610.0 0.0.1 compass_api_sdk"
9
+ __user_agent__: str = "speakeasy-sdk/python 0.6.2 2.610.0 0.0.1 compass_api_sdk"
10
10
 
11
11
  try:
12
12
  if __package__ is not None:
@@ -267,6 +267,10 @@ if TYPE_CHECKING:
267
267
  from .borrow import Borrow, BorrowTypedDict, Borrowratemode
268
268
  from .chain import Chain
269
269
  from .chaininfo import ChainInfo, ChainInfoTypedDict
270
+ from .compass_api_backend_models_generic_read_response_portfolio_tokenbalance import (
271
+ CompassAPIBackendModelsGenericReadResponsePortfolioTokenBalance,
272
+ CompassAPIBackendModelsGenericReadResponsePortfolioTokenBalanceTypedDict,
273
+ )
270
274
  from .compass_api_backend_models_morpho_read_response_check_user_position_apydata import (
271
275
  CompassAPIBackendModelsMorphoReadResponseCheckUserPositionApyData,
272
276
  CompassAPIBackendModelsMorphoReadResponseCheckUserPositionApyDataTypedDict,
@@ -319,8 +323,12 @@ if TYPE_CHECKING:
319
323
  CompassAPIBackendModelsMorphoReadResponseGetVaultsVaultState,
320
324
  CompassAPIBackendModelsMorphoReadResponseGetVaultsVaultStateTypedDict,
321
325
  )
322
- from .contractname import ContractName
326
+ from .compass_api_backend_models_pendle_read_response_positions_tokenbalance import (
327
+ CompassAPIBackendModelsPendleReadResponsePositionsTokenBalance,
328
+ CompassAPIBackendModelsPendleReadResponsePositionsTokenBalanceTypedDict,
329
+ )
323
330
  from .curator import Curator, CuratorTypedDict
331
+ from .details import Details, DetailsTypedDict
324
332
  from .ensnameinforesponse import EnsNameInfoResponse, EnsNameInfoResponseTypedDict
325
333
  from .erc20data import Erc20Data, Erc20DataTypedDict
326
334
  from .feeenum import FeeEnum
@@ -352,17 +360,13 @@ if TYPE_CHECKING:
352
360
  GenericVisualizePortfolioRequestTypedDict,
353
361
  )
354
362
  from .image import Image, ImageTypedDict
355
- from .increaseallowanceanyparams import (
356
- IncreaseAllowanceAnyParams,
357
- IncreaseAllowanceAnyParamsAmount,
358
- IncreaseAllowanceAnyParamsAmountTypedDict,
359
- IncreaseAllowanceAnyParamsTypedDict,
360
- )
361
363
  from .increaseallowanceparams import (
362
364
  IncreaseAllowanceParams,
363
365
  IncreaseAllowanceParamsAmount,
364
366
  IncreaseAllowanceParamsAmountTypedDict,
365
367
  IncreaseAllowanceParamsContractName,
368
+ IncreaseAllowanceParamsToken,
369
+ IncreaseAllowanceParamsTokenTypedDict,
366
370
  IncreaseAllowanceParamsTypedDict,
367
371
  )
368
372
  from .increaseallowancerequest import (
@@ -370,11 +374,14 @@ if TYPE_CHECKING:
370
374
  IncreaseAllowanceRequestAmount,
371
375
  IncreaseAllowanceRequestAmountTypedDict,
372
376
  IncreaseAllowanceRequestContractName,
377
+ IncreaseAllowanceRequestToken,
378
+ IncreaseAllowanceRequestTokenTypedDict,
373
379
  IncreaseAllowanceRequestTypedDict,
374
380
  )
375
381
  from .interestratemode import InterestRateMode
376
382
  from .liquidationcall import LiquidationCall, LiquidationCallTypedDict
377
383
  from .liquidity import Liquidity, LiquidityTypedDict
384
+ from .lpbalance import LpBalance, LpBalanceTypedDict
378
385
  from .market import Market, MarketTypedDict
379
386
  from .marketposition import MarketPosition, MarketPositionTypedDict
380
387
  from .metadata import Metadata, MetadataTypedDict
@@ -523,6 +530,7 @@ if TYPE_CHECKING:
523
530
  MorphoWithdrawRequestChain,
524
531
  MorphoWithdrawRequestTypedDict,
525
532
  )
533
+ from .movement10percent import Movement10Percent, Movement10PercentTypedDict
526
534
  from .multicallactiontype import MulticallActionType
527
535
  from .multicallauthorizationrequest import (
528
536
  MulticallAuthorizationRequest,
@@ -536,16 +544,27 @@ if TYPE_CHECKING:
536
544
  MulticallExecuteRequest,
537
545
  MulticallExecuteRequestTypedDict,
538
546
  )
547
+ from .openposition import OpenPosition, OpenPositionTypedDict
539
548
  from .pendle_marketop import (
540
549
  PendleMarketChain,
541
550
  PendleMarketRequest,
542
551
  PendleMarketRequestTypedDict,
543
552
  )
553
+ from .pendle_marketsop import (
554
+ PendleMarketsChain,
555
+ PendleMarketsRequest,
556
+ PendleMarketsRequestTypedDict,
557
+ )
544
558
  from .pendle_positionop import (
545
559
  PendlePositionChain,
546
560
  PendlePositionRequest,
547
561
  PendlePositionRequestTypedDict,
548
562
  )
563
+ from .pendle_positionsop import (
564
+ PendlePositionsChain,
565
+ PendlePositionsRequest,
566
+ PendlePositionsRequestTypedDict,
567
+ )
549
568
  from .pendlegetmarketresponse import (
550
569
  PendleGetMarketResponse,
551
570
  PendleGetMarketResponseTypedDict,
@@ -554,7 +573,17 @@ if TYPE_CHECKING:
554
573
  PendleGetUserPositionResponse,
555
574
  PendleGetUserPositionResponseTypedDict,
556
575
  )
576
+ from .pendlelistmarketsresponse import (
577
+ PendleListMarketsResponse,
578
+ PendleListMarketsResponseTypedDict,
579
+ )
580
+ from .pendlelistuserpositionsresponse import (
581
+ PendleListUserPositionsResponse,
582
+ PendleListUserPositionsResponseTypedDict,
583
+ )
584
+ from .pendlemarket import PendleMarket, PendleMarketTypedDict
557
585
  from .portfolio import Portfolio, PortfolioTypedDict
586
+ from .position import Position, PositionTypedDict
558
587
  from .redeemunderlying import RedeemUnderlying, RedeemUnderlyingTypedDict
559
588
  from .repay import Repay, RepayTypedDict
560
589
  from .reserve import Reserve, ReserveTypedDict
@@ -616,6 +645,7 @@ if TYPE_CHECKING:
616
645
  from .skywithdrawrequest import SkyWithdrawRequest, SkyWithdrawRequestTypedDict
617
646
  from .supply import Supply, SupplyTypedDict
618
647
  from .swapborrowrate import SwapBorrowRate, SwapBorrowRateTypedDict
648
+ from .syposition import SyPosition, SyPositionTypedDict
619
649
  from .token_addressop import (
620
650
  TokenAddressChain,
621
651
  TokenAddressRequest,
@@ -640,7 +670,6 @@ if TYPE_CHECKING:
640
670
  TokenAddressResponse,
641
671
  TokenAddressResponseTypedDict,
642
672
  )
643
- from .tokenbalance import TokenBalance, TokenBalanceTypedDict
644
673
  from .tokenbalanceresponse import (
645
674
  TokenBalanceResponse,
646
675
  TokenBalanceResponseTypedDict,
@@ -860,6 +889,7 @@ if TYPE_CHECKING:
860
889
  WrapEthRequestAmountTypedDict,
861
890
  WrapEthRequestTypedDict,
862
891
  )
892
+ from .yieldrange import YieldRange, YieldRangeTypedDict
863
893
 
864
894
  __all__ = [
865
895
  "AaveAvgRateChain",
@@ -1050,6 +1080,8 @@ __all__ = [
1050
1080
  "ChainInfoTypedDict",
1051
1081
  "CollateralAmount",
1052
1082
  "CollateralAmountTypedDict",
1083
+ "CompassAPIBackendModelsGenericReadResponsePortfolioTokenBalance",
1084
+ "CompassAPIBackendModelsGenericReadResponsePortfolioTokenBalanceTypedDict",
1053
1085
  "CompassAPIBackendModelsMorphoReadResponseCheckUserPositionApyData",
1054
1086
  "CompassAPIBackendModelsMorphoReadResponseCheckUserPositionApyDataTypedDict",
1055
1087
  "CompassAPIBackendModelsMorphoReadResponseCheckUserPositionAsset",
@@ -1076,9 +1108,12 @@ __all__ = [
1076
1108
  "CompassAPIBackendModelsMorphoReadResponseGetVaultsAssetTypedDict",
1077
1109
  "CompassAPIBackendModelsMorphoReadResponseGetVaultsVaultState",
1078
1110
  "CompassAPIBackendModelsMorphoReadResponseGetVaultsVaultStateTypedDict",
1079
- "ContractName",
1111
+ "CompassAPIBackendModelsPendleReadResponsePositionsTokenBalance",
1112
+ "CompassAPIBackendModelsPendleReadResponsePositionsTokenBalanceTypedDict",
1080
1113
  "Curator",
1081
1114
  "CuratorTypedDict",
1115
+ "Details",
1116
+ "DetailsTypedDict",
1082
1117
  "EnsNameInfoResponse",
1083
1118
  "EnsNameInfoResponseTypedDict",
1084
1119
  "Erc20Data",
@@ -1103,19 +1138,19 @@ __all__ = [
1103
1138
  "GenericVisualizePortfolioRequestTypedDict",
1104
1139
  "Image",
1105
1140
  "ImageTypedDict",
1106
- "IncreaseAllowanceAnyParams",
1107
- "IncreaseAllowanceAnyParamsAmount",
1108
- "IncreaseAllowanceAnyParamsAmountTypedDict",
1109
- "IncreaseAllowanceAnyParamsTypedDict",
1110
1141
  "IncreaseAllowanceParams",
1111
1142
  "IncreaseAllowanceParamsAmount",
1112
1143
  "IncreaseAllowanceParamsAmountTypedDict",
1113
1144
  "IncreaseAllowanceParamsContractName",
1145
+ "IncreaseAllowanceParamsToken",
1146
+ "IncreaseAllowanceParamsTokenTypedDict",
1114
1147
  "IncreaseAllowanceParamsTypedDict",
1115
1148
  "IncreaseAllowanceRequest",
1116
1149
  "IncreaseAllowanceRequestAmount",
1117
1150
  "IncreaseAllowanceRequestAmountTypedDict",
1118
1151
  "IncreaseAllowanceRequestContractName",
1152
+ "IncreaseAllowanceRequestToken",
1153
+ "IncreaseAllowanceRequestTokenTypedDict",
1119
1154
  "IncreaseAllowanceRequestTypedDict",
1120
1155
  "InterestRateMode",
1121
1156
  "LiquidationCall",
@@ -1124,6 +1159,8 @@ __all__ = [
1124
1159
  "LiquidityTypedDict",
1125
1160
  "Loc",
1126
1161
  "LocTypedDict",
1162
+ "LpBalance",
1163
+ "LpBalanceTypedDict",
1127
1164
  "Market",
1128
1165
  "MarketPosition",
1129
1166
  "MarketPositionTypedDict",
@@ -1224,6 +1261,8 @@ __all__ = [
1224
1261
  "MorphoWithdrawRequest",
1225
1262
  "MorphoWithdrawRequestChain",
1226
1263
  "MorphoWithdrawRequestTypedDict",
1264
+ "Movement10Percent",
1265
+ "Movement10PercentTypedDict",
1227
1266
  "MulticallActionType",
1228
1267
  "MulticallAuthorizationRequest",
1229
1268
  "MulticallAuthorizationRequestTypedDict",
@@ -1231,18 +1270,34 @@ __all__ = [
1231
1270
  "MulticallAuthorizationResponseTypedDict",
1232
1271
  "MulticallExecuteRequest",
1233
1272
  "MulticallExecuteRequestTypedDict",
1273
+ "OpenPosition",
1274
+ "OpenPositionTypedDict",
1234
1275
  "PendleGetMarketResponse",
1235
1276
  "PendleGetMarketResponseTypedDict",
1236
1277
  "PendleGetUserPositionResponse",
1237
1278
  "PendleGetUserPositionResponseTypedDict",
1279
+ "PendleListMarketsResponse",
1280
+ "PendleListMarketsResponseTypedDict",
1281
+ "PendleListUserPositionsResponse",
1282
+ "PendleListUserPositionsResponseTypedDict",
1283
+ "PendleMarket",
1238
1284
  "PendleMarketChain",
1239
1285
  "PendleMarketRequest",
1240
1286
  "PendleMarketRequestTypedDict",
1287
+ "PendleMarketTypedDict",
1288
+ "PendleMarketsChain",
1289
+ "PendleMarketsRequest",
1290
+ "PendleMarketsRequestTypedDict",
1241
1291
  "PendlePositionChain",
1242
1292
  "PendlePositionRequest",
1243
1293
  "PendlePositionRequestTypedDict",
1294
+ "PendlePositionsChain",
1295
+ "PendlePositionsRequest",
1296
+ "PendlePositionsRequestTypedDict",
1244
1297
  "Portfolio",
1245
1298
  "PortfolioTypedDict",
1299
+ "Position",
1300
+ "PositionTypedDict",
1246
1301
  "R",
1247
1302
  "RTypedDict",
1248
1303
  "RedeemUnderlying",
@@ -1297,13 +1352,14 @@ __all__ = [
1297
1352
  "SupplyTypedDict",
1298
1353
  "SwapBorrowRate",
1299
1354
  "SwapBorrowRateTypedDict",
1355
+ "SyPosition",
1356
+ "SyPositionTypedDict",
1300
1357
  "TokenAddressChain",
1301
1358
  "TokenAddressRequest",
1302
1359
  "TokenAddressRequestTypedDict",
1303
1360
  "TokenAddressResponse",
1304
1361
  "TokenAddressResponseTypedDict",
1305
1362
  "TokenAddressToken",
1306
- "TokenBalance",
1307
1363
  "TokenBalanceChain",
1308
1364
  "TokenBalanceRequest",
1309
1365
  "TokenBalanceRequestTypedDict",
@@ -1311,7 +1367,6 @@ __all__ = [
1311
1367
  "TokenBalanceResponseTypedDict",
1312
1368
  "TokenBalanceToken",
1313
1369
  "TokenBalanceTokenTypedDict",
1314
- "TokenBalanceTypedDict",
1315
1370
  "TokenEnum",
1316
1371
  "TokenInfo",
1317
1372
  "TokenInfoTypedDict",
@@ -1477,6 +1532,8 @@ __all__ = [
1477
1532
  "WrapEthRequestAmount",
1478
1533
  "WrapEthRequestAmountTypedDict",
1479
1534
  "WrapEthRequestTypedDict",
1535
+ "YieldRange",
1536
+ "YieldRangeTypedDict",
1480
1537
  ]
1481
1538
 
1482
1539
  _dynamic_imports: dict[str, str] = {
@@ -1668,6 +1725,8 @@ _dynamic_imports: dict[str, str] = {
1668
1725
  "Chain": ".chain",
1669
1726
  "ChainInfo": ".chaininfo",
1670
1727
  "ChainInfoTypedDict": ".chaininfo",
1728
+ "CompassAPIBackendModelsGenericReadResponsePortfolioTokenBalance": ".compass_api_backend_models_generic_read_response_portfolio_tokenbalance",
1729
+ "CompassAPIBackendModelsGenericReadResponsePortfolioTokenBalanceTypedDict": ".compass_api_backend_models_generic_read_response_portfolio_tokenbalance",
1671
1730
  "CompassAPIBackendModelsMorphoReadResponseCheckUserPositionApyData": ".compass_api_backend_models_morpho_read_response_check_user_position_apydata",
1672
1731
  "CompassAPIBackendModelsMorphoReadResponseCheckUserPositionApyDataTypedDict": ".compass_api_backend_models_morpho_read_response_check_user_position_apydata",
1673
1732
  "CompassAPIBackendModelsMorphoReadResponseCheckUserPositionAsset": ".compass_api_backend_models_morpho_read_response_check_user_position_asset",
@@ -1694,9 +1753,12 @@ _dynamic_imports: dict[str, str] = {
1694
1753
  "CompassAPIBackendModelsMorphoReadResponseGetVaultsAssetTypedDict": ".compass_api_backend_models_morpho_read_response_get_vaults_asset",
1695
1754
  "CompassAPIBackendModelsMorphoReadResponseGetVaultsVaultState": ".compass_api_backend_models_morpho_read_response_get_vaults_vaultstate",
1696
1755
  "CompassAPIBackendModelsMorphoReadResponseGetVaultsVaultStateTypedDict": ".compass_api_backend_models_morpho_read_response_get_vaults_vaultstate",
1697
- "ContractName": ".contractname",
1756
+ "CompassAPIBackendModelsPendleReadResponsePositionsTokenBalance": ".compass_api_backend_models_pendle_read_response_positions_tokenbalance",
1757
+ "CompassAPIBackendModelsPendleReadResponsePositionsTokenBalanceTypedDict": ".compass_api_backend_models_pendle_read_response_positions_tokenbalance",
1698
1758
  "Curator": ".curator",
1699
1759
  "CuratorTypedDict": ".curator",
1760
+ "Details": ".details",
1761
+ "DetailsTypedDict": ".details",
1700
1762
  "EnsNameInfoResponse": ".ensnameinforesponse",
1701
1763
  "EnsNameInfoResponseTypedDict": ".ensnameinforesponse",
1702
1764
  "Erc20Data": ".erc20data",
@@ -1721,25 +1783,27 @@ _dynamic_imports: dict[str, str] = {
1721
1783
  "GenericVisualizePortfolioRequestTypedDict": ".generic_visualize_portfolioop",
1722
1784
  "Image": ".image",
1723
1785
  "ImageTypedDict": ".image",
1724
- "IncreaseAllowanceAnyParams": ".increaseallowanceanyparams",
1725
- "IncreaseAllowanceAnyParamsAmount": ".increaseallowanceanyparams",
1726
- "IncreaseAllowanceAnyParamsAmountTypedDict": ".increaseallowanceanyparams",
1727
- "IncreaseAllowanceAnyParamsTypedDict": ".increaseallowanceanyparams",
1728
1786
  "IncreaseAllowanceParams": ".increaseallowanceparams",
1729
1787
  "IncreaseAllowanceParamsAmount": ".increaseallowanceparams",
1730
1788
  "IncreaseAllowanceParamsAmountTypedDict": ".increaseallowanceparams",
1731
1789
  "IncreaseAllowanceParamsContractName": ".increaseallowanceparams",
1790
+ "IncreaseAllowanceParamsToken": ".increaseallowanceparams",
1791
+ "IncreaseAllowanceParamsTokenTypedDict": ".increaseallowanceparams",
1732
1792
  "IncreaseAllowanceParamsTypedDict": ".increaseallowanceparams",
1733
1793
  "IncreaseAllowanceRequest": ".increaseallowancerequest",
1734
1794
  "IncreaseAllowanceRequestAmount": ".increaseallowancerequest",
1735
1795
  "IncreaseAllowanceRequestAmountTypedDict": ".increaseallowancerequest",
1736
1796
  "IncreaseAllowanceRequestContractName": ".increaseallowancerequest",
1797
+ "IncreaseAllowanceRequestToken": ".increaseallowancerequest",
1798
+ "IncreaseAllowanceRequestTokenTypedDict": ".increaseallowancerequest",
1737
1799
  "IncreaseAllowanceRequestTypedDict": ".increaseallowancerequest",
1738
1800
  "InterestRateMode": ".interestratemode",
1739
1801
  "LiquidationCall": ".liquidationcall",
1740
1802
  "LiquidationCallTypedDict": ".liquidationcall",
1741
1803
  "Liquidity": ".liquidity",
1742
1804
  "LiquidityTypedDict": ".liquidity",
1805
+ "LpBalance": ".lpbalance",
1806
+ "LpBalanceTypedDict": ".lpbalance",
1743
1807
  "Market": ".market",
1744
1808
  "MarketTypedDict": ".market",
1745
1809
  "MarketPosition": ".marketposition",
@@ -1840,6 +1904,8 @@ _dynamic_imports: dict[str, str] = {
1840
1904
  "MorphoWithdrawRequest": ".morphowithdrawrequest",
1841
1905
  "MorphoWithdrawRequestChain": ".morphowithdrawrequest",
1842
1906
  "MorphoWithdrawRequestTypedDict": ".morphowithdrawrequest",
1907
+ "Movement10Percent": ".movement10percent",
1908
+ "Movement10PercentTypedDict": ".movement10percent",
1843
1909
  "MulticallActionType": ".multicallactiontype",
1844
1910
  "MulticallAuthorizationRequest": ".multicallauthorizationrequest",
1845
1911
  "MulticallAuthorizationRequestTypedDict": ".multicallauthorizationrequest",
@@ -1847,18 +1913,34 @@ _dynamic_imports: dict[str, str] = {
1847
1913
  "MulticallAuthorizationResponseTypedDict": ".multicallauthorizationresponse",
1848
1914
  "MulticallExecuteRequest": ".multicallexecuterequest",
1849
1915
  "MulticallExecuteRequestTypedDict": ".multicallexecuterequest",
1916
+ "OpenPosition": ".openposition",
1917
+ "OpenPositionTypedDict": ".openposition",
1850
1918
  "PendleMarketChain": ".pendle_marketop",
1851
1919
  "PendleMarketRequest": ".pendle_marketop",
1852
1920
  "PendleMarketRequestTypedDict": ".pendle_marketop",
1921
+ "PendleMarketsChain": ".pendle_marketsop",
1922
+ "PendleMarketsRequest": ".pendle_marketsop",
1923
+ "PendleMarketsRequestTypedDict": ".pendle_marketsop",
1853
1924
  "PendlePositionChain": ".pendle_positionop",
1854
1925
  "PendlePositionRequest": ".pendle_positionop",
1855
1926
  "PendlePositionRequestTypedDict": ".pendle_positionop",
1927
+ "PendlePositionsChain": ".pendle_positionsop",
1928
+ "PendlePositionsRequest": ".pendle_positionsop",
1929
+ "PendlePositionsRequestTypedDict": ".pendle_positionsop",
1856
1930
  "PendleGetMarketResponse": ".pendlegetmarketresponse",
1857
1931
  "PendleGetMarketResponseTypedDict": ".pendlegetmarketresponse",
1858
1932
  "PendleGetUserPositionResponse": ".pendlegetuserpositionresponse",
1859
1933
  "PendleGetUserPositionResponseTypedDict": ".pendlegetuserpositionresponse",
1934
+ "PendleListMarketsResponse": ".pendlelistmarketsresponse",
1935
+ "PendleListMarketsResponseTypedDict": ".pendlelistmarketsresponse",
1936
+ "PendleListUserPositionsResponse": ".pendlelistuserpositionsresponse",
1937
+ "PendleListUserPositionsResponseTypedDict": ".pendlelistuserpositionsresponse",
1938
+ "PendleMarket": ".pendlemarket",
1939
+ "PendleMarketTypedDict": ".pendlemarket",
1860
1940
  "Portfolio": ".portfolio",
1861
1941
  "PortfolioTypedDict": ".portfolio",
1942
+ "Position": ".position",
1943
+ "PositionTypedDict": ".position",
1862
1944
  "RedeemUnderlying": ".redeemunderlying",
1863
1945
  "RedeemUnderlyingTypedDict": ".redeemunderlying",
1864
1946
  "Repay": ".repay",
@@ -1913,6 +1995,8 @@ _dynamic_imports: dict[str, str] = {
1913
1995
  "SupplyTypedDict": ".supply",
1914
1996
  "SwapBorrowRate": ".swapborrowrate",
1915
1997
  "SwapBorrowRateTypedDict": ".swapborrowrate",
1998
+ "SyPosition": ".syposition",
1999
+ "SyPositionTypedDict": ".syposition",
1916
2000
  "TokenAddressChain": ".token_addressop",
1917
2001
  "TokenAddressRequest": ".token_addressop",
1918
2002
  "TokenAddressRequestTypedDict": ".token_addressop",
@@ -1929,8 +2013,6 @@ _dynamic_imports: dict[str, str] = {
1929
2013
  "TokenPriceToken": ".token_priceop",
1930
2014
  "TokenAddressResponse": ".tokenaddressresponse",
1931
2015
  "TokenAddressResponseTypedDict": ".tokenaddressresponse",
1932
- "TokenBalance": ".tokenbalance",
1933
- "TokenBalanceTypedDict": ".tokenbalance",
1934
2016
  "TokenBalanceResponse": ".tokenbalanceresponse",
1935
2017
  "TokenBalanceResponseTypedDict": ".tokenbalanceresponse",
1936
2018
  "TokenSymbol": ".tokenbalanceresponse",
@@ -2095,6 +2177,8 @@ _dynamic_imports: dict[str, str] = {
2095
2177
  "WrapEthRequestAmount": ".wrapethrequest",
2096
2178
  "WrapEthRequestAmountTypedDict": ".wrapethrequest",
2097
2179
  "WrapEthRequestTypedDict": ".wrapethrequest",
2180
+ "YieldRange": ".yieldrange",
2181
+ "YieldRangeTypedDict": ".yieldrange",
2098
2182
  }
2099
2183
 
2100
2184
 
@@ -6,7 +6,9 @@ from compass_api_sdk.types import BaseModel
6
6
  from typing_extensions import TypedDict
7
7
 
8
8
 
9
- class TokenBalanceTypedDict(TypedDict):
9
+ class CompassAPIBackendModelsGenericReadResponsePortfolioTokenBalanceTypedDict(
10
+ TypedDict
11
+ ):
10
12
  amount: str
11
13
  r"""Amount of tokens a particular address holds"""
12
14
  decimals: int
@@ -25,7 +27,7 @@ class TokenBalanceTypedDict(TypedDict):
25
27
  r"""Value of the token balance in USD"""
26
28
 
27
29
 
28
- class TokenBalance(BaseModel):
30
+ class CompassAPIBackendModelsGenericReadResponsePortfolioTokenBalance(BaseModel):
29
31
  amount: str
30
32
  r"""Amount of tokens a particular address holds"""
31
33
 
@@ -0,0 +1,18 @@
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 typing_extensions import TypedDict
6
+
7
+
8
+ class CompassAPIBackendModelsPendleReadResponsePositionsTokenBalanceTypedDict(
9
+ TypedDict
10
+ ):
11
+ valuation: float
12
+ balance: str
13
+
14
+
15
+ class CompassAPIBackendModelsPendleReadResponsePositionsTokenBalance(BaseModel):
16
+ valuation: float
17
+
18
+ balance: str
@@ -0,0 +1,39 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .movement10percent import Movement10Percent, Movement10PercentTypedDict
5
+ from .yieldrange import YieldRange, YieldRangeTypedDict
6
+ from compass_api_sdk.types import BaseModel
7
+ import pydantic
8
+ from typing_extensions import Annotated, TypedDict
9
+
10
+
11
+ class DetailsTypedDict(TypedDict):
12
+ liquidity: float
13
+ pendle_apy: float
14
+ implied_apy: float
15
+ fee_rate: float
16
+ movement10_percent: Movement10PercentTypedDict
17
+ yield_range: YieldRangeTypedDict
18
+ aggregated_apy: float
19
+ max_boosted_apy: float
20
+
21
+
22
+ class Details(BaseModel):
23
+ liquidity: float
24
+
25
+ pendle_apy: Annotated[float, pydantic.Field(alias="pendleApy")]
26
+
27
+ implied_apy: Annotated[float, pydantic.Field(alias="impliedApy")]
28
+
29
+ fee_rate: Annotated[float, pydantic.Field(alias="feeRate")]
30
+
31
+ movement10_percent: Annotated[
32
+ Movement10Percent, pydantic.Field(alias="movement10Percent")
33
+ ]
34
+
35
+ yield_range: Annotated[YieldRange, pydantic.Field(alias="yieldRange")]
36
+
37
+ aggregated_apy: Annotated[float, pydantic.Field(alias="aggregatedApy")]
38
+
39
+ max_boosted_apy: Annotated[float, pydantic.Field(alias="maxBoostedApy")]
@@ -8,6 +8,18 @@ from typing import Union
8
8
  from typing_extensions import TypeAliasType, TypedDict
9
9
 
10
10
 
11
+ IncreaseAllowanceParamsTokenTypedDict = TypeAliasType(
12
+ "IncreaseAllowanceParamsTokenTypedDict", Union[TokenEnum, str]
13
+ )
14
+ r"""The symbol or address of the token for which the allowance is increased.."""
15
+
16
+
17
+ IncreaseAllowanceParamsToken = TypeAliasType(
18
+ "IncreaseAllowanceParamsToken", Union[TokenEnum, str]
19
+ )
20
+ r"""The symbol or address of the token for which the allowance is increased.."""
21
+
22
+
11
23
  class IncreaseAllowanceParamsContractName(str, Enum):
12
24
  r"""The name of the contract to increase allowance for."""
13
25
 
@@ -29,42 +41,34 @@ class IncreaseAllowanceParamsContractName(str, Enum):
29
41
  IncreaseAllowanceParamsAmountTypedDict = TypeAliasType(
30
42
  "IncreaseAllowanceParamsAmountTypedDict", Union[float, str]
31
43
  )
32
- r"""The amount of tokens to increase the allowance by."""
44
+ r"""The amount to increase the allowance to."""
33
45
 
34
46
 
35
47
  IncreaseAllowanceParamsAmount = TypeAliasType(
36
48
  "IncreaseAllowanceParamsAmount", Union[float, str]
37
49
  )
38
- r"""The amount of tokens to increase the allowance by."""
50
+ r"""The amount to increase the allowance to."""
39
51
 
40
52
 
41
53
  class IncreaseAllowanceParamsTypedDict(TypedDict):
42
54
  r"""Parameters model for increasing token allowance for a contract."""
43
55
 
44
- token: TokenEnum
45
- r"""A class representing the token.
46
-
47
- This class is used to represent the token in the system. Notice individual
48
- endpoints' documentation where per chain tokens are presented.
49
- """
56
+ token: IncreaseAllowanceParamsTokenTypedDict
57
+ r"""The symbol or address of the token for which the allowance is increased.."""
50
58
  contract_name: IncreaseAllowanceParamsContractName
51
59
  r"""The name of the contract to increase allowance for."""
52
60
  amount: IncreaseAllowanceParamsAmountTypedDict
53
- r"""The amount of tokens to increase the allowance by."""
61
+ r"""The amount to increase the allowance to."""
54
62
 
55
63
 
56
64
  class IncreaseAllowanceParams(BaseModel):
57
65
  r"""Parameters model for increasing token allowance for a contract."""
58
66
 
59
- token: TokenEnum
60
- r"""A class representing the token.
61
-
62
- This class is used to represent the token in the system. Notice individual
63
- endpoints' documentation where per chain tokens are presented.
64
- """
67
+ token: IncreaseAllowanceParamsToken
68
+ r"""The symbol or address of the token for which the allowance is increased.."""
65
69
 
66
70
  contract_name: IncreaseAllowanceParamsContractName
67
71
  r"""The name of the contract to increase allowance for."""
68
72
 
69
73
  amount: IncreaseAllowanceParamsAmount
70
- r"""The amount of tokens to increase the allowance by."""
74
+ r"""The amount to increase the allowance to."""
@@ -9,6 +9,18 @@ from typing import Union
9
9
  from typing_extensions import TypeAliasType, TypedDict
10
10
 
11
11
 
12
+ IncreaseAllowanceRequestTokenTypedDict = TypeAliasType(
13
+ "IncreaseAllowanceRequestTokenTypedDict", Union[TokenEnum, str]
14
+ )
15
+ r"""The symbol or address of the token for which the allowance is increased.."""
16
+
17
+
18
+ IncreaseAllowanceRequestToken = TypeAliasType(
19
+ "IncreaseAllowanceRequestToken", Union[TokenEnum, str]
20
+ )
21
+ r"""The symbol or address of the token for which the allowance is increased.."""
22
+
23
+
12
24
  class IncreaseAllowanceRequestContractName(str, Enum):
13
25
  r"""The name of the contract to increase allowance for."""
14
26
 
@@ -30,28 +42,24 @@ class IncreaseAllowanceRequestContractName(str, Enum):
30
42
  IncreaseAllowanceRequestAmountTypedDict = TypeAliasType(
31
43
  "IncreaseAllowanceRequestAmountTypedDict", Union[float, str]
32
44
  )
33
- r"""The amount of tokens to increase the allowance by."""
45
+ r"""The amount to increase the allowance to."""
34
46
 
35
47
 
36
48
  IncreaseAllowanceRequestAmount = TypeAliasType(
37
49
  "IncreaseAllowanceRequestAmount", Union[float, str]
38
50
  )
39
- r"""The amount of tokens to increase the allowance by."""
51
+ r"""The amount to increase the allowance to."""
40
52
 
41
53
 
42
54
  class IncreaseAllowanceRequestTypedDict(TypedDict):
43
55
  r"""Request model for increasing token allowance for a contract."""
44
56
 
45
- token: TokenEnum
46
- r"""A class representing the token.
47
-
48
- This class is used to represent the token in the system. Notice individual
49
- endpoints' documentation where per chain tokens are presented.
50
- """
57
+ token: IncreaseAllowanceRequestTokenTypedDict
58
+ r"""The symbol or address of the token for which the allowance is increased.."""
51
59
  contract_name: IncreaseAllowanceRequestContractName
52
60
  r"""The name of the contract to increase allowance for."""
53
61
  amount: IncreaseAllowanceRequestAmountTypedDict
54
- r"""The amount of tokens to increase the allowance by."""
62
+ r"""The amount to increase the allowance to."""
55
63
  chain: Chain
56
64
  r"""The chain to use."""
57
65
  sender: str
@@ -61,18 +69,14 @@ class IncreaseAllowanceRequestTypedDict(TypedDict):
61
69
  class IncreaseAllowanceRequest(BaseModel):
62
70
  r"""Request model for increasing token allowance for a contract."""
63
71
 
64
- token: TokenEnum
65
- r"""A class representing the token.
66
-
67
- This class is used to represent the token in the system. Notice individual
68
- endpoints' documentation where per chain tokens are presented.
69
- """
72
+ token: IncreaseAllowanceRequestToken
73
+ r"""The symbol or address of the token for which the allowance is increased.."""
70
74
 
71
75
  contract_name: IncreaseAllowanceRequestContractName
72
76
  r"""The name of the contract to increase allowance for."""
73
77
 
74
78
  amount: IncreaseAllowanceRequestAmount
75
- r"""The amount of tokens to increase the allowance by."""
79
+ r"""The amount to increase the allowance to."""
76
80
 
77
81
  chain: Chain
78
82
  r"""The chain to use."""
@@ -0,0 +1,20 @@
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
+ import pydantic
6
+ from typing_extensions import Annotated, TypedDict
7
+
8
+
9
+ class LpBalanceTypedDict(TypedDict):
10
+ valuation: float
11
+ balance: str
12
+ active_balance: str
13
+
14
+
15
+ class LpBalance(BaseModel):
16
+ valuation: float
17
+
18
+ balance: str
19
+
20
+ active_balance: Annotated[str, pydantic.Field(alias="activeBalance")]
@@ -0,0 +1,23 @@
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
+ import pydantic
6
+ from typing_extensions import Annotated, TypedDict
7
+
8
+
9
+ class Movement10PercentTypedDict(TypedDict):
10
+ pt_movement_up_usd: float
11
+ pt_movement_down_usd: float
12
+ yt_movement_up_usd: float
13
+ yt_movement_down_usd: float
14
+
15
+
16
+ class Movement10Percent(BaseModel):
17
+ pt_movement_up_usd: Annotated[float, pydantic.Field(alias="ptMovementUpUsd")]
18
+
19
+ pt_movement_down_usd: Annotated[float, pydantic.Field(alias="ptMovementDownUsd")]
20
+
21
+ yt_movement_up_usd: Annotated[float, pydantic.Field(alias="ytMovementUpUsd")]
22
+
23
+ yt_movement_down_usd: Annotated[float, pydantic.Field(alias="ytMovementDownUsd")]