@compass-labs/api-sdk 2.2.87 → 2.2.88

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.
Files changed (141) hide show
  1. package/dist/commonjs/lib/config.d.ts +2 -2
  2. package/dist/commonjs/lib/config.js +2 -2
  3. package/dist/commonjs/models/components/accountsummary.d.ts +5 -6
  4. package/dist/commonjs/models/components/accountsummary.d.ts.map +1 -1
  5. package/dist/commonjs/models/components/accountsummary.js.map +1 -1
  6. package/dist/commonjs/models/components/collateralposition.d.ts +5 -6
  7. package/dist/commonjs/models/components/collateralposition.d.ts.map +1 -1
  8. package/dist/commonjs/models/components/collateralposition.js.map +1 -1
  9. package/dist/commonjs/models/components/creditborrowparams.d.ts +5 -6
  10. package/dist/commonjs/models/components/creditborrowparams.d.ts.map +1 -1
  11. package/dist/commonjs/models/components/creditborrowparams.js.map +1 -1
  12. package/dist/commonjs/models/components/creditborrowrequest.d.ts +5 -6
  13. package/dist/commonjs/models/components/creditborrowrequest.d.ts.map +1 -1
  14. package/dist/commonjs/models/components/creditborrowrequest.js.map +1 -1
  15. package/dist/commonjs/models/components/creditenablecollateralparams.d.ts +5 -6
  16. package/dist/commonjs/models/components/creditenablecollateralparams.d.ts.map +1 -1
  17. package/dist/commonjs/models/components/creditenablecollateralparams.js.map +1 -1
  18. package/dist/commonjs/models/components/creditlooprequest.d.ts +20 -6
  19. package/dist/commonjs/models/components/creditlooprequest.d.ts.map +1 -1
  20. package/dist/commonjs/models/components/creditlooprequest.js +6 -0
  21. package/dist/commonjs/models/components/creditlooprequest.js.map +1 -1
  22. package/dist/commonjs/models/components/creditprotocol.d.ts +10 -12
  23. package/dist/commonjs/models/components/creditprotocol.d.ts.map +1 -1
  24. package/dist/commonjs/models/components/creditprotocol.js +5 -6
  25. package/dist/commonjs/models/components/creditprotocol.js.map +1 -1
  26. package/dist/commonjs/models/components/creditrepayparams.d.ts +5 -6
  27. package/dist/commonjs/models/components/creditrepayparams.d.ts.map +1 -1
  28. package/dist/commonjs/models/components/creditrepayparams.js.map +1 -1
  29. package/dist/commonjs/models/components/creditrepayrequest.d.ts +5 -6
  30. package/dist/commonjs/models/components/creditrepayrequest.d.ts.map +1 -1
  31. package/dist/commonjs/models/components/creditrepayrequest.js.map +1 -1
  32. package/dist/commonjs/models/components/creditsupplyparams.d.ts +5 -6
  33. package/dist/commonjs/models/components/creditsupplyparams.d.ts.map +1 -1
  34. package/dist/commonjs/models/components/creditsupplyparams.js.map +1 -1
  35. package/dist/commonjs/models/components/creditunlooprequest.d.ts +20 -6
  36. package/dist/commonjs/models/components/creditunlooprequest.d.ts.map +1 -1
  37. package/dist/commonjs/models/components/creditunlooprequest.js +6 -0
  38. package/dist/commonjs/models/components/creditunlooprequest.js.map +1 -1
  39. package/dist/commonjs/models/components/creditwithdrawparams.d.ts +5 -6
  40. package/dist/commonjs/models/components/creditwithdrawparams.d.ts.map +1 -1
  41. package/dist/commonjs/models/components/creditwithdrawparams.js.map +1 -1
  42. package/dist/commonjs/models/components/debtposition.d.ts +5 -6
  43. package/dist/commonjs/models/components/debtposition.d.ts.map +1 -1
  44. package/dist/commonjs/models/components/debtposition.js.map +1 -1
  45. package/dist/commonjs/models/components/loopedposition.d.ts +5 -6
  46. package/dist/commonjs/models/components/loopedposition.d.ts.map +1 -1
  47. package/dist/commonjs/models/components/loopedposition.js.map +1 -1
  48. package/dist/commonjs/models/components/rebalancetarget.d.ts +5 -6
  49. package/dist/commonjs/models/components/rebalancetarget.d.ts.map +1 -1
  50. package/dist/commonjs/models/components/rebalancetarget.js.map +1 -1
  51. package/dist/commonjs/models/components/rebalancetargetpreview.d.ts +5 -6
  52. package/dist/commonjs/models/components/rebalancetargetpreview.d.ts.map +1 -1
  53. package/dist/commonjs/models/components/rebalancetargetpreview.js.map +1 -1
  54. package/dist/esm/lib/config.d.ts +2 -2
  55. package/dist/esm/lib/config.js +2 -2
  56. package/dist/esm/models/components/accountsummary.d.ts +5 -6
  57. package/dist/esm/models/components/accountsummary.d.ts.map +1 -1
  58. package/dist/esm/models/components/accountsummary.js.map +1 -1
  59. package/dist/esm/models/components/collateralposition.d.ts +5 -6
  60. package/dist/esm/models/components/collateralposition.d.ts.map +1 -1
  61. package/dist/esm/models/components/collateralposition.js.map +1 -1
  62. package/dist/esm/models/components/creditborrowparams.d.ts +5 -6
  63. package/dist/esm/models/components/creditborrowparams.d.ts.map +1 -1
  64. package/dist/esm/models/components/creditborrowparams.js.map +1 -1
  65. package/dist/esm/models/components/creditborrowrequest.d.ts +5 -6
  66. package/dist/esm/models/components/creditborrowrequest.d.ts.map +1 -1
  67. package/dist/esm/models/components/creditborrowrequest.js.map +1 -1
  68. package/dist/esm/models/components/creditenablecollateralparams.d.ts +5 -6
  69. package/dist/esm/models/components/creditenablecollateralparams.d.ts.map +1 -1
  70. package/dist/esm/models/components/creditenablecollateralparams.js.map +1 -1
  71. package/dist/esm/models/components/creditlooprequest.d.ts +20 -6
  72. package/dist/esm/models/components/creditlooprequest.d.ts.map +1 -1
  73. package/dist/esm/models/components/creditlooprequest.js +6 -0
  74. package/dist/esm/models/components/creditlooprequest.js.map +1 -1
  75. package/dist/esm/models/components/creditprotocol.d.ts +10 -12
  76. package/dist/esm/models/components/creditprotocol.d.ts.map +1 -1
  77. package/dist/esm/models/components/creditprotocol.js +5 -6
  78. package/dist/esm/models/components/creditprotocol.js.map +1 -1
  79. package/dist/esm/models/components/creditrepayparams.d.ts +5 -6
  80. package/dist/esm/models/components/creditrepayparams.d.ts.map +1 -1
  81. package/dist/esm/models/components/creditrepayparams.js.map +1 -1
  82. package/dist/esm/models/components/creditrepayrequest.d.ts +5 -6
  83. package/dist/esm/models/components/creditrepayrequest.d.ts.map +1 -1
  84. package/dist/esm/models/components/creditrepayrequest.js.map +1 -1
  85. package/dist/esm/models/components/creditsupplyparams.d.ts +5 -6
  86. package/dist/esm/models/components/creditsupplyparams.d.ts.map +1 -1
  87. package/dist/esm/models/components/creditsupplyparams.js.map +1 -1
  88. package/dist/esm/models/components/creditunlooprequest.d.ts +20 -6
  89. package/dist/esm/models/components/creditunlooprequest.d.ts.map +1 -1
  90. package/dist/esm/models/components/creditunlooprequest.js +6 -0
  91. package/dist/esm/models/components/creditunlooprequest.js.map +1 -1
  92. package/dist/esm/models/components/creditwithdrawparams.d.ts +5 -6
  93. package/dist/esm/models/components/creditwithdrawparams.d.ts.map +1 -1
  94. package/dist/esm/models/components/creditwithdrawparams.js.map +1 -1
  95. package/dist/esm/models/components/debtposition.d.ts +5 -6
  96. package/dist/esm/models/components/debtposition.d.ts.map +1 -1
  97. package/dist/esm/models/components/debtposition.js.map +1 -1
  98. package/dist/esm/models/components/loopedposition.d.ts +5 -6
  99. package/dist/esm/models/components/loopedposition.d.ts.map +1 -1
  100. package/dist/esm/models/components/loopedposition.js.map +1 -1
  101. package/dist/esm/models/components/rebalancetarget.d.ts +5 -6
  102. package/dist/esm/models/components/rebalancetarget.d.ts.map +1 -1
  103. package/dist/esm/models/components/rebalancetarget.js.map +1 -1
  104. package/dist/esm/models/components/rebalancetargetpreview.d.ts +5 -6
  105. package/dist/esm/models/components/rebalancetargetpreview.d.ts.map +1 -1
  106. package/dist/esm/models/components/rebalancetargetpreview.js.map +1 -1
  107. package/docs/models/components/accountsummary.md +11 -11
  108. package/docs/models/components/collateralposition.md +17 -17
  109. package/docs/models/components/creditborrowparams.md +11 -11
  110. package/docs/models/components/creditborrowrequest.md +21 -21
  111. package/docs/models/components/creditenablecollateralparams.md +7 -7
  112. package/docs/models/components/creditlooprequest.md +17 -14
  113. package/docs/models/components/creditprotocol.md +5 -6
  114. package/docs/models/components/creditrepayparams.md +10 -10
  115. package/docs/models/components/creditrepayrequest.md +20 -20
  116. package/docs/models/components/creditsupplyparams.md +9 -9
  117. package/docs/models/components/creditunlooprequest.md +15 -12
  118. package/docs/models/components/creditwithdrawparams.md +9 -9
  119. package/docs/models/components/debtposition.md +16 -16
  120. package/docs/models/components/loopedposition.md +14 -14
  121. package/docs/models/components/rebalancetarget.md +10 -10
  122. package/docs/models/components/rebalancetargetpreview.md +16 -16
  123. package/openapi_prepped_for_speakeasy.json +67 -3
  124. package/package.json +1 -1
  125. package/src/lib/config.ts +2 -2
  126. package/src/models/components/accountsummary.ts +5 -6
  127. package/src/models/components/collateralposition.ts +5 -6
  128. package/src/models/components/creditborrowparams.ts +5 -6
  129. package/src/models/components/creditborrowrequest.ts +5 -6
  130. package/src/models/components/creditenablecollateralparams.ts +5 -6
  131. package/src/models/components/creditlooprequest.ts +26 -6
  132. package/src/models/components/creditprotocol.ts +10 -12
  133. package/src/models/components/creditrepayparams.ts +5 -6
  134. package/src/models/components/creditrepayrequest.ts +5 -6
  135. package/src/models/components/creditsupplyparams.ts +5 -6
  136. package/src/models/components/creditunlooprequest.ts +26 -6
  137. package/src/models/components/creditwithdrawparams.ts +5 -6
  138. package/src/models/components/debtposition.ts +5 -6
  139. package/src/models/components/loopedposition.ts +5 -6
  140. package/src/models/components/rebalancetarget.ts +5 -6
  141. package/src/models/components/rebalancetargetpreview.ts +5 -6
@@ -27,12 +27,11 @@ export type RebalanceTargetPreview = {
27
27
  * @remarks
28
28
  *
29
29
  * ``AAVE`` is the default so existing callers (which never send a ``protocol``
30
- * field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the
31
- * Euler V2 path, where the market is identified by EVK vault address(es).
32
- * ``MORPHO`` identifies Morpho Blue lending markets (bytes32 market id) and is
33
- * currently read-only: positions and market discovery only — transaction
34
- * builders land with the looping work (COM-7106/7107/7108), so transact
35
- * endpoints reject it with a 422.
30
+ * field) keep hitting the unchanged Aave code path. ``MORPHO`` identifies Morpho
31
+ * Blue lending markets by their bytes32 ``market_id``. ``EULER`` identifies Euler
32
+ * V2 markets by their EVK ``collateral_vault`` + ``borrow_vault`` addresses and
33
+ * supports isolated per-sub-account positions (``sub_account_id``). All three
34
+ * support the loop/unloop leverage endpoints.
36
35
  */
37
36
  protocol: CreditProtocol;
38
37
  /**
@@ -1 +1 @@
1
- {"version":3,"file":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ACtB;;OAEG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAC9B;;OAEG;IACH,iBAAiB,EAAE,uCAAuC,CAAC;IAC3D;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qDAAqD,EAChE,CAAC,CAAC,aAAa,CAAC,OAAO,uCAAuC,CACR,CAAC;AAEzD,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,sBAAsB,EACtB,CAAC,CAAC,UAAU,EACZ,OAAO,CA8BP,CAAC;AAEH,wBAAgB,8BAA8B,CAC5C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,sBAAsB,EAAE,kBAAkB,CAAC,CAM7D"}
1
+ {"version":3,"file":"rebalancetargetpreview.d.ts","sourceRoot":"","sources":["../../../../src/models/components/rebalancetargetpreview.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,kBAAkB,EAEnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,gBAAgB,EAEjB,MAAM,uBAAuB,CAAC;AAE/B;;GAEG;AACH,eAAO,MAAM,uCAAuC;;;CAG1C,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,uCAAuC,GAAG,UAAU,CAC9D,OAAO,uCAAuC,CAC/C,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;;;;;;;;;;OAWG;IACH,QAAQ,EAAE,cAAc,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,SAAS,EAAE,kBAAkB,CAAC;IAC9B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,SAAS,CAAC;IACjD;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC;IAC7C;;OAEG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAC9B;;OAEG;IACH,iBAAiB,EAAE,uCAAuC,CAAC;IAC3D;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qDAAqD,EAChE,CAAC,CAAC,aAAa,CAAC,OAAO,uCAAuC,CACR,CAAC;AAEzD,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,sBAAsB,EACtB,CAAC,CAAC,UAAU,EACZ,OAAO,CA8BP,CAAC;AAEH,wBAAgB,8BAA8B,CAC5C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,sBAAsB,EAAE,kBAAkB,CAAC,CAM7D"}
@@ -1 +1 @@
1
- {"version":3,"file":"rebalancetargetpreview.js","sourceRoot":"","sources":["../../../../src/models/components/rebalancetargetpreview.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;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CAAC,MAAM,EAAE;IACnC,mBAAmB,EAAE,qDAAqD;IAC1E,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;CAC/B,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,WAAW,EAAE,UAAU;QACvB,kBAAkB,EAAE,iBAAiB;QACrC,cAAc,EAAE,aAAa;QAC7B,aAAa,EAAE,YAAY;QAC3B,WAAW,EAAE,UAAU;QACvB,sBAAsB,EAAE,qBAAqB;QAC7C,gBAAgB,EAAE,eAAe;QACjC,sBAAsB,EAAE,qBAAqB;QAC7C,yBAAyB,EAAE,uBAAuB;QAClD,qBAAqB,EAAE,mBAAmB;QAC1C,oBAAoB,EAAE,kBAAkB;KACzC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,8BAA8B,CAC5C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,oCAAoC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAChE,oDAAoD,CACrD,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"rebalancetargetpreview.js","sourceRoot":"","sources":["../../../../src/models/components/rebalancetargetpreview.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAIjD,OAAO,EAEL,4BAA4B,GAC7B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,4BAA4B,GAC7B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,gCAAgC,GACjC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAEL,8BAA8B,GAC/B,MAAM,uBAAuB,CAAC;AAE/B;;G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C,gBAAgB,EAAE,eAAe;QACjC,sBAAsB,EAAE,qBAAqB;QAC7C,yBAAyB,EAAE,uBAAuB;QAClD,qBAAqB,EAAE,mBAAmB;QAC1C,oBAAoB,EAAE,kBAAkB;KACzC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,8BAA8B,CAC5C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,oCAAoC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAChE,oDAAoD,CACrD,CAAC;AACJ,CAAC"}
@@ -23,14 +23,14 @@ let value: AccountSummary = {
23
23
 
24
24
  ## Fields
25
25
 
26
- | Field | Type | Required | Description | Example |
27
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
28
- | `protocol` | [components.CreditProtocol](../../models/components/creditprotocol.md) | :heavy_minus_sign: | Which lending protocol a credit action targets.<br/><br/>``AAVE`` is the default so existing callers (which never send a ``protocol``<br/>field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the<br/>Euler V2 path, where the market is identified by EVK vault address(es).<br/>``MORPHO`` identifies Morpho Blue lending markets (bytes32 market id) and is<br/>currently read-only: positions and market discovery only — transaction<br/>builders land with the looping work (COM-7106/7107/7108), so transact<br/>endpoints reject it with a 422. | |
29
- | `subAccountId` | *number* | :heavy_minus_sign: | Euler only: the EVC sub-account (0–255) this summary describes. Euler health is per-sub-account. Null for Aave/Morpho. | |
30
- | `healthFactor` | *string* | :heavy_check_mark: | Health factor. Above 1 is safe; below 1 risks liquidation. | |
31
- | `totalCollateralUsd` | *string* | :heavy_check_mark: | Total collateral value in USD. | |
32
- | `totalDebtUsd` | *string* | :heavy_check_mark: | Total debt value in USD. | |
33
- | `availableBorrowsUsd` | *string* | :heavy_check_mark: | Available borrow capacity in USD. | |
34
- | `ltv` | *string* | :heavy_check_mark: | Current loan-to-value ratio. | |
35
- | `emodeCategoryId` | *number* | :heavy_minus_sign: | E-Mode category ID. 0 = disabled. E-Mode gives higher LTV when collateral and debt are price-correlated (e.g. stablecoin-to-stablecoin or ETH-to-ETH-derivative). | 0 |
36
- | `emodeLabel` | *string* | :heavy_minus_sign: | Human-readable E-Mode category name (e.g. 'Stablecoins', 'ETH correlated'). Null when E-Mode is disabled (category 0). | |
26
+ | Field | Type | Required | Description | Example |
27
+ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
28
+ | `protocol` | [components.CreditProtocol](../../models/components/creditprotocol.md) | :heavy_minus_sign: | Which lending protocol a credit action targets.<br/><br/>``AAVE`` is the default so existing callers (which never send a ``protocol``<br/>field) keep hitting the unchanged Aave code path. ``MORPHO`` identifies Morpho<br/>Blue lending markets by their bytes32 ``market_id``. ``EULER`` identifies Euler<br/>V2 markets by their EVK ``collateral_vault`` + ``borrow_vault`` addresses and<br/>supports isolated per-sub-account positions (``sub_account_id``). All three<br/>support the loop/unloop leverage endpoints. | |
29
+ | `subAccountId` | *number* | :heavy_minus_sign: | Euler only: the EVC sub-account (0–255) this summary describes. Euler health is per-sub-account. Null for Aave/Morpho. | |
30
+ | `healthFactor` | *string* | :heavy_check_mark: | Health factor. Above 1 is safe; below 1 risks liquidation. | |
31
+ | `totalCollateralUsd` | *string* | :heavy_check_mark: | Total collateral value in USD. | |
32
+ | `totalDebtUsd` | *string* | :heavy_check_mark: | Total debt value in USD. | |
33
+ | `availableBorrowsUsd` | *string* | :heavy_check_mark: | Available borrow capacity in USD. | |
34
+ | `ltv` | *string* | :heavy_check_mark: | Current loan-to-value ratio. | |
35
+ | `emodeCategoryId` | *number* | :heavy_minus_sign: | E-Mode category ID. 0 = disabled. E-Mode gives higher LTV when collateral and debt are price-correlated (e.g. stablecoin-to-stablecoin or ETH-to-ETH-derivative). | 0 |
36
+ | `emodeLabel` | *string* | :heavy_minus_sign: | Human-readable E-Mode category name (e.g. 'Stablecoins', 'ETH correlated'). Null when E-Mode is disabled (category 0). | |
@@ -17,20 +17,20 @@ let value: CollateralPosition = {
17
17
 
18
18
  ## Fields
19
19
 
20
- | Field | Type | Required | Description | Example |
21
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
22
- | `token` | *string* | :heavy_check_mark: | Address of the collateral token. | |
23
- | `symbol` | *string* | :heavy_check_mark: | Symbol of the collateral token (e.g. USDC). | |
24
- | `protocol` | [components.CreditProtocol](../../models/components/creditprotocol.md) | :heavy_minus_sign: | Which lending protocol a credit action targets.<br/><br/>``AAVE`` is the default so existing callers (which never send a ``protocol``<br/>field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the<br/>Euler V2 path, where the market is identified by EVK vault address(es).<br/>``MORPHO`` identifies Morpho Blue lending markets (bytes32 market id) and is<br/>currently read-only: positions and market discovery only — transaction<br/>builders land with the looping work (COM-7106/7107/7108), so transact<br/>endpoints reject it with a 422. | |
25
- | `vault` | *string* | :heavy_minus_sign: | Euler only: the EVK collateral vault holding this position. | |
26
- | `subAccountId` | *number* | :heavy_minus_sign: | Euler only: the EVC sub-account (0–255) this position belongs to. Each sub-account is an independent Euler position with its own health. Null for Aave/Morpho. | |
27
- | `marketId` | *string* | :heavy_minus_sign: | Morpho only: the bytes32 id of the isolated market holding this position. | |
28
- | `isPureSupply` | *boolean* | :heavy_minus_sign: | Morpho only: true when this is a loan-asset supply position (earning supply APY) rather than collateral backing borrows. | |
29
- | `amountSupplied` | *string* | :heavy_check_mark: | Current on-chain collateral balance (the vault's underlying asset for Euler). | |
30
- | `usdValue` | *string* | :heavy_minus_sign: | Collateral value in USD. | |
31
- | `supplyApy` | *string* | :heavy_minus_sign: | Current supply APY in percentage (e.g. 4.5 means 4.5%). | |
32
- | `totalDeposited` | *string* | :heavy_minus_sign: | Total collateral deposited over all time. | |
33
- | `totalWithdrawn` | *string* | :heavy_minus_sign: | Total collateral withdrawn over all time. | |
34
- | `interestEarned` | *string* | :heavy_minus_sign: | Interest earned on collateral: on_chain_balance + total_withdrawn - total_deposited. | |
35
- | `maxLtv` | *string* | :heavy_minus_sign: | Maximum loan-to-value ratio for this collateral in percentage (e.g. 80 means 80%). | |
36
- | `events` | [components.CreditEvent](../../models/components/creditevent.md)[] | :heavy_minus_sign: | All historical events for this collateral reserve. | [] |
20
+ | Field | Type | Required | Description | Example |
21
+ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
22
+ | `token` | *string* | :heavy_check_mark: | Address of the collateral token. | |
23
+ | `symbol` | *string* | :heavy_check_mark: | Symbol of the collateral token (e.g. USDC). | |
24
+ | `protocol` | [components.CreditProtocol](../../models/components/creditprotocol.md) | :heavy_minus_sign: | Which lending protocol a credit action targets.<br/><br/>``AAVE`` is the default so existing callers (which never send a ``protocol``<br/>field) keep hitting the unchanged Aave code path. ``MORPHO`` identifies Morpho<br/>Blue lending markets by their bytes32 ``market_id``. ``EULER`` identifies Euler<br/>V2 markets by their EVK ``collateral_vault`` + ``borrow_vault`` addresses and<br/>supports isolated per-sub-account positions (``sub_account_id``). All three<br/>support the loop/unloop leverage endpoints. | |
25
+ | `vault` | *string* | :heavy_minus_sign: | Euler only: the EVK collateral vault holding this position. | |
26
+ | `subAccountId` | *number* | :heavy_minus_sign: | Euler only: the EVC sub-account (0–255) this position belongs to. Each sub-account is an independent Euler position with its own health. Null for Aave/Morpho. | |
27
+ | `marketId` | *string* | :heavy_minus_sign: | Morpho only: the bytes32 id of the isolated market holding this position. | |
28
+ | `isPureSupply` | *boolean* | :heavy_minus_sign: | Morpho only: true when this is a loan-asset supply position (earning supply APY) rather than collateral backing borrows. | |
29
+ | `amountSupplied` | *string* | :heavy_check_mark: | Current on-chain collateral balance (the vault's underlying asset for Euler). | |
30
+ | `usdValue` | *string* | :heavy_minus_sign: | Collateral value in USD. | |
31
+ | `supplyApy` | *string* | :heavy_minus_sign: | Current supply APY in percentage (e.g. 4.5 means 4.5%). | |
32
+ | `totalDeposited` | *string* | :heavy_minus_sign: | Total collateral deposited over all time. | |
33
+ | `totalWithdrawn` | *string* | :heavy_minus_sign: | Total collateral withdrawn over all time. | |
34
+ | `interestEarned` | *string* | :heavy_minus_sign: | Interest earned on collateral: on_chain_balance + total_withdrawn - total_deposited. | |
35
+ | `maxLtv` | *string* | :heavy_minus_sign: | Maximum loan-to-value ratio for this collateral in percentage (e.g. 80 means 80%). | |
36
+ | `events` | [components.CreditEvent](../../models/components/creditevent.md)[] | :heavy_minus_sign: | All historical events for this collateral reserve. | [] |
@@ -22,14 +22,14 @@ let value: CreditBorrowParams = {
22
22
 
23
23
  ## Fields
24
24
 
25
- | Field | Type | Required | Description | Example |
26
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
27
- | `actionType` | *"CREDIT_BORROW"* | :heavy_check_mark: | N/A | CREDIT_BORROW |
28
- | `token` | *string* | :heavy_check_mark: | Token to borrow from Aave. | |
29
- | `amount` | *components.CreditBorrowParamsAmount* | :heavy_check_mark: | Amount in token units to borrow. | |
30
- | `interestRateMode` | [components.InterestRateMode](../../models/components/interestratemode.md) | :heavy_minus_sign: | On AAVE there are 2 different interest modes.<br/><br/>A stable (but typically higher rate), or a variable rate. | |
31
- | `fee` | [components.CreditFee](../../models/components/creditfee.md) | :heavy_minus_sign: | Optional fee on the borrowed amount. | |
32
- | `protocol` | [components.CreditProtocol](../../models/components/creditprotocol.md) | :heavy_minus_sign: | Which lending protocol a credit action targets.<br/><br/>``AAVE`` is the default so existing callers (which never send a ``protocol``<br/>field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the<br/>Euler V2 path, where the market is identified by EVK vault address(es).<br/>``MORPHO`` identifies Morpho Blue lending markets (bytes32 market id) and is<br/>currently read-only: positions and market discovery only — transaction<br/>builders land with the looping work (COM-7106/7107/7108), so transact<br/>endpoints reject it with a 422. | |
33
- | `borrowVault` | *string* | :heavy_minus_sign: | Euler only: the EVK vault to borrow from. Required when protocol=EULER. | |
34
- | `subAccountId` | *number* | :heavy_minus_sign: | Euler only: EVC sub-account (0–255) to borrow against. Each sub-account is an independent Euler position with its own collateral, borrow controller, and health. Defaults to 0. Ignored for Aave/Morpho. | 0 |
35
- | `marketId` | *string* | :heavy_minus_sign: | Morpho only: the bytes32 market id (from /v2/credit/morpho_markets). Required when protocol=MORPHO. | |
25
+ | Field | Type | Required | Description | Example |
26
+ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
27
+ | `actionType` | *"CREDIT_BORROW"* | :heavy_check_mark: | N/A | CREDIT_BORROW |
28
+ | `token` | *string* | :heavy_check_mark: | Token to borrow from Aave. | |
29
+ | `amount` | *components.CreditBorrowParamsAmount* | :heavy_check_mark: | Amount in token units to borrow. | |
30
+ | `interestRateMode` | [components.InterestRateMode](../../models/components/interestratemode.md) | :heavy_minus_sign: | On AAVE there are 2 different interest modes.<br/><br/>A stable (but typically higher rate), or a variable rate. | |
31
+ | `fee` | [components.CreditFee](../../models/components/creditfee.md) | :heavy_minus_sign: | Optional fee on the borrowed amount. | |
32
+ | `protocol` | [components.CreditProtocol](../../models/components/creditprotocol.md) | :heavy_minus_sign: | Which lending protocol a credit action targets.<br/><br/>``AAVE`` is the default so existing callers (which never send a ``protocol``<br/>field) keep hitting the unchanged Aave code path. ``MORPHO`` identifies Morpho<br/>Blue lending markets by their bytes32 ``market_id``. ``EULER`` identifies Euler<br/>V2 markets by their EVK ``collateral_vault`` + ``borrow_vault`` addresses and<br/>supports isolated per-sub-account positions (``sub_account_id``). All three<br/>support the loop/unloop leverage endpoints. | |
33
+ | `borrowVault` | *string* | :heavy_minus_sign: | Euler only: the EVK vault to borrow from. Required when protocol=EULER. | |
34
+ | `subAccountId` | *number* | :heavy_minus_sign: | Euler only: EVC sub-account (0–255) to borrow against. Each sub-account is an independent Euler position with its own collateral, borrow controller, and health. Defaults to 0. Ignored for Aave/Morpho. | 0 |
35
+ | `marketId` | *string* | :heavy_minus_sign: | Morpho only: the bytes32 market id (from /v2/credit/morpho_markets). Required when protocol=MORPHO. | |