@compass-labs/api-sdk 2.2.76 → 2.2.77-rc.1
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.
- package/README.md +9 -3
- package/codeSamples_typescript.yaml +18 -0
- package/dist/commonjs/funcs/creditCreditLoop.d.ts +31 -0
- package/dist/commonjs/funcs/creditCreditLoop.d.ts.map +1 -0
- package/dist/commonjs/funcs/creditCreditLoop.js +132 -0
- package/dist/commonjs/funcs/creditCreditLoop.js.map +1 -0
- package/dist/commonjs/funcs/creditCreditLoopedPositions.d.ts +26 -0
- package/dist/commonjs/funcs/creditCreditLoopedPositions.d.ts.map +1 -0
- package/dist/commonjs/funcs/creditCreditLoopedPositions.js +131 -0
- package/dist/commonjs/funcs/creditCreditLoopedPositions.js.map +1 -0
- package/dist/commonjs/funcs/creditCreditMorphoMarkets.d.ts +24 -0
- package/dist/commonjs/funcs/creditCreditMorphoMarkets.d.ts.map +1 -0
- package/dist/commonjs/funcs/creditCreditMorphoMarkets.js +128 -0
- package/dist/commonjs/funcs/creditCreditMorphoMarkets.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/components/aavelooprequest.d.ts +16 -16
- package/dist/commonjs/models/components/aavelooprequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/aavelooprequest.js +17 -17
- package/dist/commonjs/models/components/aavelooprequest.js.map +1 -1
- package/dist/commonjs/models/components/accountsummary.d.ts +4 -0
- package/dist/commonjs/models/components/accountsummary.d.ts.map +1 -1
- package/dist/commonjs/models/components/accountsummary.js.map +1 -1
- package/dist/commonjs/models/components/collateralposition.d.ts +12 -0
- package/dist/commonjs/models/components/collateralposition.d.ts.map +1 -1
- package/dist/commonjs/models/components/collateralposition.js +4 -0
- package/dist/commonjs/models/components/collateralposition.js.map +1 -1
- package/dist/commonjs/models/components/createaccountrequest.d.ts +1 -0
- package/dist/commonjs/models/components/createaccountrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/createaccountrequest.js +1 -0
- package/dist/commonjs/models/components/createaccountrequest.js.map +1 -1
- package/dist/commonjs/models/components/createcreditaccountrequest.d.ts +1 -0
- package/dist/commonjs/models/components/createcreditaccountrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/createcreditaccountrequest.js +1 -0
- package/dist/commonjs/models/components/createcreditaccountrequest.js.map +1 -1
- package/dist/commonjs/models/components/creditborrowparams.d.ts +9 -0
- package/dist/commonjs/models/components/creditborrowparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditborrowparams.js +2 -0
- package/dist/commonjs/models/components/creditborrowparams.js.map +1 -1
- package/dist/commonjs/models/components/creditborrowrequest.d.ts +9 -0
- package/dist/commonjs/models/components/creditborrowrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditborrowrequest.js +2 -0
- package/dist/commonjs/models/components/creditborrowrequest.js.map +1 -1
- package/dist/commonjs/models/components/creditenablecollateralparams.d.ts +4 -0
- package/dist/commonjs/models/components/creditenablecollateralparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditenablecollateralparams.js.map +1 -1
- package/dist/commonjs/models/components/creditloopedpositionsresponse.d.ts +26 -0
- package/dist/commonjs/models/components/creditloopedpositionsresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/creditloopedpositionsresponse.js +60 -0
- package/dist/commonjs/models/components/creditloopedpositionsresponse.js.map +1 -0
- package/dist/commonjs/models/components/creditlooppreview.d.ts +45 -0
- package/dist/commonjs/models/components/creditlooppreview.d.ts.map +1 -0
- package/dist/commonjs/models/components/creditlooppreview.js +68 -0
- package/dist/commonjs/models/components/creditlooppreview.js.map +1 -0
- package/dist/commonjs/models/components/creditlooprequest.d.ts +125 -0
- package/dist/commonjs/models/components/creditlooprequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/creditlooprequest.js +98 -0
- package/dist/commonjs/models/components/creditlooprequest.js.map +1 -0
- package/dist/commonjs/models/components/creditloopresponse.d.ts +27 -0
- package/dist/commonjs/models/components/creditloopresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/creditloopresponse.js +61 -0
- package/dist/commonjs/models/components/creditloopresponse.js.map +1 -0
- package/dist/commonjs/models/components/creditprotocol.d.ts +9 -0
- package/dist/commonjs/models/components/creditprotocol.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditprotocol.js +5 -0
- package/dist/commonjs/models/components/creditprotocol.js.map +1 -1
- package/dist/commonjs/models/components/creditrepayparams.d.ts +9 -0
- package/dist/commonjs/models/components/creditrepayparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditrepayparams.js +2 -0
- package/dist/commonjs/models/components/creditrepayparams.js.map +1 -1
- package/dist/commonjs/models/components/creditrepayrequest.d.ts +9 -0
- package/dist/commonjs/models/components/creditrepayrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditrepayrequest.js +2 -0
- package/dist/commonjs/models/components/creditrepayrequest.js.map +1 -1
- package/dist/commonjs/models/components/creditsupplyparams.d.ts +9 -0
- package/dist/commonjs/models/components/creditsupplyparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditsupplyparams.js +2 -0
- package/dist/commonjs/models/components/creditsupplyparams.js.map +1 -1
- package/dist/commonjs/models/components/creditwithdrawparams.d.ts +9 -0
- package/dist/commonjs/models/components/creditwithdrawparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditwithdrawparams.js +2 -0
- package/dist/commonjs/models/components/creditwithdrawparams.js.map +1 -1
- package/dist/commonjs/models/components/debtposition.d.ts +12 -0
- package/dist/commonjs/models/components/debtposition.d.ts.map +1 -1
- package/dist/commonjs/models/components/debtposition.js +4 -0
- package/dist/commonjs/models/components/debtposition.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +12 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +12 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/loopedposition.d.ts +88 -0
- package/dist/commonjs/models/components/loopedposition.d.ts.map +1 -0
- package/dist/commonjs/models/components/loopedposition.js +85 -0
- package/dist/commonjs/models/components/loopedposition.js.map +1 -0
- package/dist/commonjs/models/components/loopedpositioncurrentstate.d.ts +58 -0
- package/dist/commonjs/models/components/loopedpositioncurrentstate.d.ts.map +1 -0
- package/dist/commonjs/models/components/loopedpositioncurrentstate.js +77 -0
- package/dist/commonjs/models/components/loopedpositioncurrentstate.js.map +1 -0
- package/dist/commonjs/models/components/loopedpositionhistoryentry.d.ts +71 -0
- package/dist/commonjs/models/components/loopedpositionhistoryentry.d.ts.map +1 -0
- package/dist/commonjs/models/components/loopedpositionhistoryentry.js +85 -0
- package/dist/commonjs/models/components/loopedpositionhistoryentry.js.map +1 -0
- package/dist/commonjs/models/components/loopedpositiontotals.d.ts +40 -0
- package/dist/commonjs/models/components/loopedpositiontotals.d.ts.map +1 -0
- package/dist/commonjs/models/components/loopedpositiontotals.js +67 -0
- package/dist/commonjs/models/components/loopedpositiontotals.js.map +1 -0
- package/dist/commonjs/models/components/looplegpreview.d.ts +24 -0
- package/dist/commonjs/models/components/looplegpreview.d.ts.map +1 -0
- package/dist/commonjs/models/components/looplegpreview.js +59 -0
- package/dist/commonjs/models/components/looplegpreview.js.map +1 -0
- package/dist/commonjs/models/components/morpholendingmarket.d.ts +80 -0
- package/dist/commonjs/models/components/morpholendingmarket.d.ts.map +1 -0
- package/dist/commonjs/models/components/morpholendingmarket.js +82 -0
- package/dist/commonjs/models/components/morpholendingmarket.js.map +1 -0
- package/dist/commonjs/models/components/morphomarketsresponse.d.ts +21 -0
- package/dist/commonjs/models/components/morphomarketsresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/morphomarketsresponse.js +52 -0
- package/dist/commonjs/models/components/morphomarketsresponse.js.map +1 -0
- package/dist/commonjs/models/components/swapinfo.d.ts +48 -0
- package/dist/commonjs/models/components/swapinfo.d.ts.map +1 -0
- package/dist/commonjs/models/components/swapinfo.js +66 -0
- package/dist/commonjs/models/components/swapinfo.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +2 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +2 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/v2creditbalances.d.ts +1 -0
- package/dist/commonjs/models/operations/v2creditbalances.d.ts.map +1 -1
- package/dist/commonjs/models/operations/v2creditbalances.js +1 -0
- package/dist/commonjs/models/operations/v2creditbalances.js.map +1 -1
- package/dist/commonjs/models/operations/v2crediteulermarkets.d.ts +1 -0
- package/dist/commonjs/models/operations/v2crediteulermarkets.d.ts.map +1 -1
- package/dist/commonjs/models/operations/v2crediteulermarkets.js +1 -0
- package/dist/commonjs/models/operations/v2crediteulermarkets.js.map +1 -1
- package/dist/commonjs/models/operations/v2creditloopedpositions.d.ts +28 -0
- package/dist/commonjs/models/operations/v2creditloopedpositions.d.ts.map +1 -0
- package/dist/commonjs/models/operations/v2creditloopedpositions.js +59 -0
- package/dist/commonjs/models/operations/v2creditloopedpositions.js.map +1 -0
- package/dist/commonjs/models/operations/v2creditmorphomarkets.d.ts +23 -0
- package/dist/commonjs/models/operations/v2creditmorphomarkets.d.ts.map +1 -0
- package/dist/commonjs/models/operations/v2creditmorphomarkets.js +58 -0
- package/dist/commonjs/models/operations/v2creditmorphomarkets.js.map +1 -0
- package/dist/commonjs/models/operations/v2creditpositions.d.ts +1 -0
- package/dist/commonjs/models/operations/v2creditpositions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/v2creditpositions.js +1 -0
- package/dist/commonjs/models/operations/v2creditpositions.js.map +1 -1
- package/dist/commonjs/models/operations/v2earnbalances.d.ts +1 -0
- package/dist/commonjs/models/operations/v2earnbalances.d.ts.map +1 -1
- package/dist/commonjs/models/operations/v2earnbalances.js +1 -0
- package/dist/commonjs/models/operations/v2earnbalances.js.map +1 -1
- package/dist/commonjs/models/operations/v2earnpositions.d.ts +1 -0
- package/dist/commonjs/models/operations/v2earnpositions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/v2earnpositions.js +1 -0
- package/dist/commonjs/models/operations/v2earnpositions.js.map +1 -1
- package/dist/commonjs/sdk/credit.d.ts +46 -0
- package/dist/commonjs/sdk/credit.d.ts.map +1 -1
- package/dist/commonjs/sdk/credit.js +55 -0
- package/dist/commonjs/sdk/credit.js.map +1 -1
- package/dist/esm/funcs/creditCreditLoop.d.ts +31 -0
- package/dist/esm/funcs/creditCreditLoop.d.ts.map +1 -0
- package/dist/esm/funcs/creditCreditLoop.js +96 -0
- package/dist/esm/funcs/creditCreditLoop.js.map +1 -0
- package/dist/esm/funcs/creditCreditLoopedPositions.d.ts +26 -0
- package/dist/esm/funcs/creditCreditLoopedPositions.d.ts.map +1 -0
- package/dist/esm/funcs/creditCreditLoopedPositions.js +95 -0
- package/dist/esm/funcs/creditCreditLoopedPositions.js.map +1 -0
- package/dist/esm/funcs/creditCreditMorphoMarkets.d.ts +24 -0
- package/dist/esm/funcs/creditCreditMorphoMarkets.d.ts.map +1 -0
- package/dist/esm/funcs/creditCreditMorphoMarkets.js +92 -0
- package/dist/esm/funcs/creditCreditMorphoMarkets.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/components/aavelooprequest.d.ts +16 -16
- package/dist/esm/models/components/aavelooprequest.d.ts.map +1 -1
- package/dist/esm/models/components/aavelooprequest.js +12 -12
- package/dist/esm/models/components/aavelooprequest.js.map +1 -1
- package/dist/esm/models/components/accountsummary.d.ts +4 -0
- package/dist/esm/models/components/accountsummary.d.ts.map +1 -1
- package/dist/esm/models/components/accountsummary.js.map +1 -1
- package/dist/esm/models/components/collateralposition.d.ts +12 -0
- package/dist/esm/models/components/collateralposition.d.ts.map +1 -1
- package/dist/esm/models/components/collateralposition.js +4 -0
- package/dist/esm/models/components/collateralposition.js.map +1 -1
- package/dist/esm/models/components/createaccountrequest.d.ts +1 -0
- package/dist/esm/models/components/createaccountrequest.d.ts.map +1 -1
- package/dist/esm/models/components/createaccountrequest.js +1 -0
- package/dist/esm/models/components/createaccountrequest.js.map +1 -1
- package/dist/esm/models/components/createcreditaccountrequest.d.ts +1 -0
- package/dist/esm/models/components/createcreditaccountrequest.d.ts.map +1 -1
- package/dist/esm/models/components/createcreditaccountrequest.js +1 -0
- package/dist/esm/models/components/createcreditaccountrequest.js.map +1 -1
- package/dist/esm/models/components/creditborrowparams.d.ts +9 -0
- package/dist/esm/models/components/creditborrowparams.d.ts.map +1 -1
- package/dist/esm/models/components/creditborrowparams.js +2 -0
- package/dist/esm/models/components/creditborrowparams.js.map +1 -1
- package/dist/esm/models/components/creditborrowrequest.d.ts +9 -0
- package/dist/esm/models/components/creditborrowrequest.d.ts.map +1 -1
- package/dist/esm/models/components/creditborrowrequest.js +2 -0
- package/dist/esm/models/components/creditborrowrequest.js.map +1 -1
- package/dist/esm/models/components/creditenablecollateralparams.d.ts +4 -0
- package/dist/esm/models/components/creditenablecollateralparams.d.ts.map +1 -1
- package/dist/esm/models/components/creditenablecollateralparams.js.map +1 -1
- package/dist/esm/models/components/creditloopedpositionsresponse.d.ts +26 -0
- package/dist/esm/models/components/creditloopedpositionsresponse.d.ts.map +1 -0
- package/dist/esm/models/components/creditloopedpositionsresponse.js +23 -0
- package/dist/esm/models/components/creditloopedpositionsresponse.js.map +1 -0
- package/dist/esm/models/components/creditlooppreview.d.ts +45 -0
- package/dist/esm/models/components/creditlooppreview.d.ts.map +1 -0
- package/dist/esm/models/components/creditlooppreview.js +31 -0
- package/dist/esm/models/components/creditlooppreview.js.map +1 -0
- package/dist/esm/models/components/creditlooprequest.d.ts +125 -0
- package/dist/esm/models/components/creditlooprequest.d.ts.map +1 -0
- package/dist/esm/models/components/creditlooprequest.js +57 -0
- package/dist/esm/models/components/creditlooprequest.js.map +1 -0
- package/dist/esm/models/components/creditloopresponse.d.ts +27 -0
- package/dist/esm/models/components/creditloopresponse.d.ts.map +1 -0
- package/dist/esm/models/components/creditloopresponse.js +24 -0
- package/dist/esm/models/components/creditloopresponse.js.map +1 -0
- package/dist/esm/models/components/creditprotocol.d.ts +9 -0
- package/dist/esm/models/components/creditprotocol.d.ts.map +1 -1
- package/dist/esm/models/components/creditprotocol.js +5 -0
- package/dist/esm/models/components/creditprotocol.js.map +1 -1
- package/dist/esm/models/components/creditrepayparams.d.ts +9 -0
- package/dist/esm/models/components/creditrepayparams.d.ts.map +1 -1
- package/dist/esm/models/components/creditrepayparams.js +2 -0
- package/dist/esm/models/components/creditrepayparams.js.map +1 -1
- package/dist/esm/models/components/creditrepayrequest.d.ts +9 -0
- package/dist/esm/models/components/creditrepayrequest.d.ts.map +1 -1
- package/dist/esm/models/components/creditrepayrequest.js +2 -0
- package/dist/esm/models/components/creditrepayrequest.js.map +1 -1
- package/dist/esm/models/components/creditsupplyparams.d.ts +9 -0
- package/dist/esm/models/components/creditsupplyparams.d.ts.map +1 -1
- package/dist/esm/models/components/creditsupplyparams.js +2 -0
- package/dist/esm/models/components/creditsupplyparams.js.map +1 -1
- package/dist/esm/models/components/creditwithdrawparams.d.ts +9 -0
- package/dist/esm/models/components/creditwithdrawparams.d.ts.map +1 -1
- package/dist/esm/models/components/creditwithdrawparams.js +2 -0
- package/dist/esm/models/components/creditwithdrawparams.js.map +1 -1
- package/dist/esm/models/components/debtposition.d.ts +12 -0
- package/dist/esm/models/components/debtposition.d.ts.map +1 -1
- package/dist/esm/models/components/debtposition.js +4 -0
- package/dist/esm/models/components/debtposition.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +12 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +12 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/loopedposition.d.ts +88 -0
- package/dist/esm/models/components/loopedposition.d.ts.map +1 -0
- package/dist/esm/models/components/loopedposition.js +48 -0
- package/dist/esm/models/components/loopedposition.js.map +1 -0
- package/dist/esm/models/components/loopedpositioncurrentstate.d.ts +58 -0
- package/dist/esm/models/components/loopedpositioncurrentstate.d.ts.map +1 -0
- package/dist/esm/models/components/loopedpositioncurrentstate.js +40 -0
- package/dist/esm/models/components/loopedpositioncurrentstate.js.map +1 -0
- package/dist/esm/models/components/loopedpositionhistoryentry.d.ts +71 -0
- package/dist/esm/models/components/loopedpositionhistoryentry.d.ts.map +1 -0
- package/dist/esm/models/components/loopedpositionhistoryentry.js +48 -0
- package/dist/esm/models/components/loopedpositionhistoryentry.js.map +1 -0
- package/dist/esm/models/components/loopedpositiontotals.d.ts +40 -0
- package/dist/esm/models/components/loopedpositiontotals.d.ts.map +1 -0
- package/dist/esm/models/components/loopedpositiontotals.js +30 -0
- package/dist/esm/models/components/loopedpositiontotals.js.map +1 -0
- package/dist/esm/models/components/looplegpreview.d.ts +24 -0
- package/dist/esm/models/components/looplegpreview.d.ts.map +1 -0
- package/dist/esm/models/components/looplegpreview.js +22 -0
- package/dist/esm/models/components/looplegpreview.js.map +1 -0
- package/dist/esm/models/components/morpholendingmarket.d.ts +80 -0
- package/dist/esm/models/components/morpholendingmarket.d.ts.map +1 -0
- package/dist/esm/models/components/morpholendingmarket.js +45 -0
- package/dist/esm/models/components/morpholendingmarket.js.map +1 -0
- package/dist/esm/models/components/morphomarketsresponse.d.ts +21 -0
- package/dist/esm/models/components/morphomarketsresponse.d.ts.map +1 -0
- package/dist/esm/models/components/morphomarketsresponse.js +15 -0
- package/dist/esm/models/components/morphomarketsresponse.js.map +1 -0
- package/dist/esm/models/components/swapinfo.d.ts +48 -0
- package/dist/esm/models/components/swapinfo.d.ts.map +1 -0
- package/dist/esm/models/components/swapinfo.js +29 -0
- package/dist/esm/models/components/swapinfo.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +2 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +2 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/v2creditbalances.d.ts +1 -0
- package/dist/esm/models/operations/v2creditbalances.d.ts.map +1 -1
- package/dist/esm/models/operations/v2creditbalances.js +1 -0
- package/dist/esm/models/operations/v2creditbalances.js.map +1 -1
- package/dist/esm/models/operations/v2crediteulermarkets.d.ts +1 -0
- package/dist/esm/models/operations/v2crediteulermarkets.d.ts.map +1 -1
- package/dist/esm/models/operations/v2crediteulermarkets.js +1 -0
- package/dist/esm/models/operations/v2crediteulermarkets.js.map +1 -1
- package/dist/esm/models/operations/v2creditloopedpositions.d.ts +28 -0
- package/dist/esm/models/operations/v2creditloopedpositions.d.ts.map +1 -0
- package/dist/esm/models/operations/v2creditloopedpositions.js +22 -0
- package/dist/esm/models/operations/v2creditloopedpositions.js.map +1 -0
- package/dist/esm/models/operations/v2creditmorphomarkets.d.ts +23 -0
- package/dist/esm/models/operations/v2creditmorphomarkets.d.ts.map +1 -0
- package/dist/esm/models/operations/v2creditmorphomarkets.js +21 -0
- package/dist/esm/models/operations/v2creditmorphomarkets.js.map +1 -0
- package/dist/esm/models/operations/v2creditpositions.d.ts +1 -0
- package/dist/esm/models/operations/v2creditpositions.d.ts.map +1 -1
- package/dist/esm/models/operations/v2creditpositions.js +1 -0
- package/dist/esm/models/operations/v2creditpositions.js.map +1 -1
- package/dist/esm/models/operations/v2earnbalances.d.ts +1 -0
- package/dist/esm/models/operations/v2earnbalances.d.ts.map +1 -1
- package/dist/esm/models/operations/v2earnbalances.js +1 -0
- package/dist/esm/models/operations/v2earnbalances.js.map +1 -1
- package/dist/esm/models/operations/v2earnpositions.d.ts +1 -0
- package/dist/esm/models/operations/v2earnpositions.d.ts.map +1 -1
- package/dist/esm/models/operations/v2earnpositions.js +1 -0
- package/dist/esm/models/operations/v2earnpositions.js.map +1 -1
- package/dist/esm/sdk/credit.d.ts +46 -0
- package/dist/esm/sdk/credit.d.ts.map +1 -1
- package/dist/esm/sdk/credit.js +55 -0
- package/dist/esm/sdk/credit.js.map +1 -1
- package/docs/models/components/aavelooprequest.md +4 -4
- package/docs/models/components/{initialcollateralamount.md → aavelooprequestinitialcollateralamount.md} +1 -1
- package/docs/models/components/{loantovalue.md → aavelooprequestloantovalue.md} +1 -1
- package/docs/models/components/{maxslippagepercent.md → aavelooprequestmaxslippagepercent.md} +1 -1
- package/docs/models/components/{multiplier.md → aavelooprequestmultiplier.md} +1 -1
- package/docs/models/components/accountsummary.md +10 -10
- package/docs/models/components/classification.md +17 -0
- package/docs/models/components/collateralposition.md +16 -14
- package/docs/models/components/createaccountrequestchain.md +1 -1
- package/docs/models/components/createcreditaccountrequestchain.md +1 -1
- package/docs/models/components/creditborrowparams.md +10 -9
- package/docs/models/components/creditborrowrequest.md +20 -19
- package/docs/models/components/creditenablecollateralparams.md +6 -6
- package/docs/models/components/creditloopedpositionsresponse.md +30 -0
- package/docs/models/components/creditlooppreview.md +33 -0
- package/docs/models/components/creditlooprequest.md +41 -0
- package/docs/models/components/creditlooprequestinitialcollateralamount.md +19 -0
- package/docs/models/components/creditlooprequestloantovalue.md +19 -0
- package/docs/models/components/creditlooprequestmaxslippagepercent.md +19 -0
- package/docs/models/components/creditlooprequestmultiplier.md +19 -0
- package/docs/models/components/creditloopresponse.md +30 -0
- package/docs/models/components/creditprotocol.md +5 -1
- package/docs/models/components/creditrepayparams.md +9 -8
- package/docs/models/components/creditrepayrequest.md +19 -18
- package/docs/models/components/creditsupplyparams.md +8 -7
- package/docs/models/components/creditwithdrawparams.md +8 -7
- package/docs/models/components/debtposition.md +15 -13
- package/docs/models/components/healthfactorscope.md +17 -0
- package/docs/models/components/loopedposition.md +46 -0
- package/docs/models/components/loopedpositioncurrentstate.md +28 -0
- package/docs/models/components/loopedpositionhistoryentry.md +33 -0
- package/docs/models/components/loopedpositionstatus.md +17 -0
- package/docs/models/components/loopedpositiontotals.md +31 -0
- package/docs/models/components/looplegpreview.md +21 -0
- package/docs/models/components/morpholendingmarket.md +49 -0
- package/docs/models/components/morphomarketsresponse.md +21 -0
- package/docs/models/components/swapinfo.md +36 -0
- package/docs/models/operations/v2creditbalanceschain.md +1 -1
- package/docs/models/operations/v2crediteulermarketschain.md +1 -1
- package/docs/models/operations/v2creditloopedpositionschain.md +15 -0
- package/docs/models/operations/v2creditloopedpositionsrequest.md +19 -0
- package/docs/models/operations/v2creditmorphomarketschain.md +15 -0
- package/docs/models/operations/v2creditmorphomarketsrequest.md +17 -0
- package/docs/models/operations/v2creditpositionschain.md +1 -1
- package/docs/models/operations/v2earnbalanceschain.md +1 -1
- package/docs/models/operations/v2earnpositionschain.md +1 -1
- package/docs/sdks/credit/README.md +270 -0
- package/openapi_prepped_for_speakeasy.json +1331 -157
- package/package.json +1 -1
- package/src/funcs/creditCreditLoop.ts +184 -0
- package/src/funcs/creditCreditLoopedPositions.ts +185 -0
- package/src/funcs/creditCreditMorphoMarkets.ts +182 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/aavelooprequest.ts +43 -30
- package/src/models/components/accountsummary.ts +4 -0
- package/src/models/components/collateralposition.ts +16 -0
- package/src/models/components/createaccountrequest.ts +1 -0
- package/src/models/components/createcreditaccountrequest.ts +1 -0
- package/src/models/components/creditborrowparams.ts +11 -0
- package/src/models/components/creditborrowrequest.ts +11 -0
- package/src/models/components/creditenablecollateralparams.ts +4 -0
- package/src/models/components/creditloopedpositionsresponse.ts +61 -0
- package/src/models/components/creditlooppreview.ts +86 -0
- package/src/models/components/creditlooprequest.ts +235 -0
- package/src/models/components/creditloopresponse.ts +65 -0
- package/src/models/components/creditprotocol.ts +9 -0
- package/src/models/components/creditrepayparams.ts +11 -0
- package/src/models/components/creditrepayrequest.ts +11 -0
- package/src/models/components/creditsupplyparams.ts +11 -0
- package/src/models/components/creditwithdrawparams.ts +11 -0
- package/src/models/components/debtposition.ts +16 -0
- package/src/models/components/index.ts +12 -0
- package/src/models/components/loopedposition.ts +149 -0
- package/src/models/components/loopedpositioncurrentstate.ts +101 -0
- package/src/models/components/loopedpositionhistoryentry.ts +115 -0
- package/src/models/components/loopedpositiontotals.ts +78 -0
- package/src/models/components/looplegpreview.ts +54 -0
- package/src/models/components/morpholendingmarket.ts +133 -0
- package/src/models/components/morphomarketsresponse.ts +46 -0
- package/src/models/components/swapinfo.ts +85 -0
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/v2creditbalances.ts +1 -0
- package/src/models/operations/v2crediteulermarkets.ts +1 -0
- package/src/models/operations/v2creditloopedpositions.ts +56 -0
- package/src/models/operations/v2creditmorphomarkets.ts +50 -0
- package/src/models/operations/v2creditpositions.ts +1 -0
- package/src/models/operations/v2earnbalances.ts +1 -0
- package/src/models/operations/v2earnpositions.ts +1 -0
- package/src/sdk/credit.ts +79 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# LoopedPosition
|
|
2
|
+
|
|
3
|
+
A single looped (leveraged) position with its full history.
|
|
4
|
+
|
|
5
|
+
## Example Usage
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
import { LoopedPosition } from "@compass-labs/api-sdk/models/components";
|
|
9
|
+
|
|
10
|
+
let value: LoopedPosition = {
|
|
11
|
+
protocol: "AAVE",
|
|
12
|
+
collateralToken: "<value>",
|
|
13
|
+
collateralSymbol: "<value>",
|
|
14
|
+
debtToken: "<value>",
|
|
15
|
+
debtSymbol: "<value>",
|
|
16
|
+
status: "OPEN",
|
|
17
|
+
openedAt: new Date("2025-04-19T22:45:09.421Z"),
|
|
18
|
+
totals: {
|
|
19
|
+
totalCollateralAdded: "<value>",
|
|
20
|
+
totalCollateralRemoved: "<value>",
|
|
21
|
+
totalDebtAdded: "<value>",
|
|
22
|
+
totalDebtRemoved: "<value>",
|
|
23
|
+
loopTxCount: 622180,
|
|
24
|
+
unwindTxCount: 197847,
|
|
25
|
+
liquidationCount: 358955,
|
|
26
|
+
},
|
|
27
|
+
history: [],
|
|
28
|
+
};
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Fields
|
|
32
|
+
|
|
33
|
+
| Field | Type | Required | Description | Example |
|
|
34
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
35
|
+
| `protocol` | [components.CreditProtocol](../../models/components/creditprotocol.md) | :heavy_check_mark: | 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. | |
|
|
36
|
+
| `marketId` | *string* | :heavy_minus_sign: | Morpho only: the bytes32 id of the isolated market. | |
|
|
37
|
+
| `collateralToken` | *string* | :heavy_check_mark: | Address of the collateral token. | |
|
|
38
|
+
| `collateralSymbol` | *string* | :heavy_check_mark: | Symbol of the collateral token. | |
|
|
39
|
+
| `debtToken` | *string* | :heavy_check_mark: | Address of the debt token. | |
|
|
40
|
+
| `debtSymbol` | *string* | :heavy_check_mark: | Symbol of the debt token. | |
|
|
41
|
+
| `status` | [components.LoopedPositionStatus](../../models/components/loopedpositionstatus.md) | :heavy_check_mark: | Whether the position is currently open or fully closed. | |
|
|
42
|
+
| `openedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | Timestamp of the position's first transaction. | |
|
|
43
|
+
| `closedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Timestamp the position was fully closed; null while open. | |
|
|
44
|
+
| `current` | [components.LoopedPositionCurrentState](../../models/components/loopedpositioncurrentstate.md) | :heavy_minus_sign: | Live on-chain state; null for CLOSED positions. | |
|
|
45
|
+
| `totals` | [components.LoopedPositionTotals](../../models/components/loopedpositiontotals.md) | :heavy_check_mark: | Lifetime totals across all of a looped position's transactions. | |
|
|
46
|
+
| `history` | [components.LoopedPositionHistoryEntry](../../models/components/loopedpositionhistoryentry.md)[] | :heavy_minus_sign: | All transactions for this position, chronological. | [] |
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# LoopedPositionCurrentState
|
|
2
|
+
|
|
3
|
+
Live on-chain state of an OPEN looped position.
|
|
4
|
+
|
|
5
|
+
## Example Usage
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
import { LoopedPositionCurrentState } from "@compass-labs/api-sdk/models/components";
|
|
9
|
+
|
|
10
|
+
let value: LoopedPositionCurrentState = {
|
|
11
|
+
collateralAmount: "<value>",
|
|
12
|
+
debtAmount: "<value>",
|
|
13
|
+
healthFactorScope: "account",
|
|
14
|
+
};
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Fields
|
|
18
|
+
|
|
19
|
+
| Field | Type | Required | Description |
|
|
20
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
21
|
+
| `collateralAmount` | *string* | :heavy_check_mark: | Current on-chain collateral amount for this position. |
|
|
22
|
+
| `debtAmount` | *string* | :heavy_check_mark: | Current on-chain debt amount for this position. |
|
|
23
|
+
| `collateralUsd` | *string* | :heavy_minus_sign: | Collateral value in USD (null if unpriced). |
|
|
24
|
+
| `debtUsd` | *string* | :heavy_minus_sign: | Debt value in USD (null if unpriced). |
|
|
25
|
+
| `netUsdValue` | *string* | :heavy_minus_sign: | Net position value in USD (collateral - debt); null if unpriced. |
|
|
26
|
+
| `leverage` | *string* | :heavy_minus_sign: | Leverage multiplier: collateral_usd / (collateral_usd - debt_usd). Null when unpriced or net value is non-positive. |
|
|
27
|
+
| `healthFactor` | *string* | :heavy_minus_sign: | Health factor. Above 1 is safe; below 1 risks liquidation. See health_factor_scope for what it covers. |
|
|
28
|
+
| `healthFactorScope` | [components.HealthFactorScope](../../models/components/healthfactorscope.md) | :heavy_check_mark: | 'market' for Morpho (isolated per-market health). 'account' for Aave: collateral is pooled, so all collateral backs all debt and this health factor is shared by every Aave position on the account — see aave_account_summary for the account-level figures. |
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# LoopedPositionHistoryEntry
|
|
2
|
+
|
|
3
|
+
One transaction in a looped position's lifetime.
|
|
4
|
+
|
|
5
|
+
## Example Usage
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
import { LoopedPositionHistoryEntry } from "@compass-labs/api-sdk/models/components";
|
|
9
|
+
|
|
10
|
+
let value: LoopedPositionHistoryEntry = {
|
|
11
|
+
transactionHash: "<value>",
|
|
12
|
+
blockNumber: 765879,
|
|
13
|
+
blockTimestamp: new Date("2026-02-06T05:55:08.384Z"),
|
|
14
|
+
classification: "liquidation",
|
|
15
|
+
collateralDelta: "<value>",
|
|
16
|
+
debtDelta: "<value>",
|
|
17
|
+
events: [],
|
|
18
|
+
};
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Fields
|
|
22
|
+
|
|
23
|
+
| Field | Type | Required | Description | Example |
|
|
24
|
+
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
25
|
+
| `transactionHash` | *string* | :heavy_check_mark: | Transaction hash. | |
|
|
26
|
+
| `blockNumber` | *number* | :heavy_check_mark: | Block number of the transaction. | |
|
|
27
|
+
| `blockTimestamp` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | Timestamp of the transaction. | |
|
|
28
|
+
| `classification` | [components.Classification](../../models/components/classification.md) | :heavy_check_mark: | What this transaction did to the position: loop_open / loop_increase (lever up with a swap), unwind (delever), single-sided supply/withdraw/borrow/repay, liquidation, or mixed. | |
|
|
29
|
+
| `iterations` | *number* | :heavy_minus_sign: | Loop transactions only: number of borrow legs in this transaction (one per loop iteration). Null for non-loop transactions. | |
|
|
30
|
+
| `collateralDelta` | *string* | :heavy_check_mark: | Signed change in collateral in this transaction (positive = added). | |
|
|
31
|
+
| `debtDelta` | *string* | :heavy_check_mark: | Signed change in debt in this transaction (positive = borrowed). | |
|
|
32
|
+
| `swap` | [components.SwapInfo](../../models/components/swapinfo.md) | :heavy_minus_sign: | The swap leg detected in this transaction, if any. | |
|
|
33
|
+
| `events` | [components.CreditEvent](../../models/components/creditevent.md)[] | :heavy_minus_sign: | The raw lending events that make up this transaction (Morpho supply_collateral maps to 'supply', withdraw_collateral to 'withdraw'). | [] |
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# LoopedPositionStatus
|
|
2
|
+
|
|
3
|
+
Whether the position is currently open or fully closed.
|
|
4
|
+
|
|
5
|
+
## Example Usage
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
import { LoopedPositionStatus } from "@compass-labs/api-sdk/models/components";
|
|
9
|
+
|
|
10
|
+
let value: LoopedPositionStatus = "CLOSED";
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Values
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
"OPEN" | "CLOSED"
|
|
17
|
+
```
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# LoopedPositionTotals
|
|
2
|
+
|
|
3
|
+
Lifetime totals across all of a looped position's transactions.
|
|
4
|
+
|
|
5
|
+
## Example Usage
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
import { LoopedPositionTotals } from "@compass-labs/api-sdk/models/components";
|
|
9
|
+
|
|
10
|
+
let value: LoopedPositionTotals = {
|
|
11
|
+
totalCollateralAdded: "<value>",
|
|
12
|
+
totalCollateralRemoved: "<value>",
|
|
13
|
+
totalDebtAdded: "<value>",
|
|
14
|
+
totalDebtRemoved: "<value>",
|
|
15
|
+
loopTxCount: 994708,
|
|
16
|
+
unwindTxCount: 202920,
|
|
17
|
+
liquidationCount: 868925,
|
|
18
|
+
};
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Fields
|
|
22
|
+
|
|
23
|
+
| Field | Type | Required | Description |
|
|
24
|
+
| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ |
|
|
25
|
+
| `totalCollateralAdded` | *string* | :heavy_check_mark: | Total collateral added over the position's lifetime. |
|
|
26
|
+
| `totalCollateralRemoved` | *string* | :heavy_check_mark: | Total collateral removed over the position's lifetime. |
|
|
27
|
+
| `totalDebtAdded` | *string* | :heavy_check_mark: | Total debt borrowed over the position's lifetime. |
|
|
28
|
+
| `totalDebtRemoved` | *string* | :heavy_check_mark: | Total debt repaid over the position's lifetime. |
|
|
29
|
+
| `loopTxCount` | *number* | :heavy_check_mark: | Number of loop_open + loop_increase transactions. |
|
|
30
|
+
| `unwindTxCount` | *number* | :heavy_check_mark: | Number of unwind transactions. |
|
|
31
|
+
| `liquidationCount` | *number* | :heavy_check_mark: | Number of liquidation events. |
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# LoopLegPreview
|
|
2
|
+
|
|
3
|
+
One planned loop iteration.
|
|
4
|
+
|
|
5
|
+
## Example Usage
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
import { LoopLegPreview } from "@compass-labs/api-sdk/models/components";
|
|
9
|
+
|
|
10
|
+
let value: LoopLegPreview = {
|
|
11
|
+
supplyAmount: null,
|
|
12
|
+
};
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Fields
|
|
16
|
+
|
|
17
|
+
| Field | Type | Required | Description |
|
|
18
|
+
| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ |
|
|
19
|
+
| `supplyAmount` | *string* | :heavy_check_mark: | Collateral supplied this iteration (token units). |
|
|
20
|
+
| `borrowAmount` | *string* | :heavy_minus_sign: | Loan borrowed this iteration; null on the final supply-only iteration. |
|
|
21
|
+
| `minSwapOut` | *string* | :heavy_minus_sign: | Guaranteed swap output (collateral units) — the next iteration's supply. Enforced on-chain by the swap's minimum-return. |
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# MorphoLendingMarket
|
|
2
|
+
|
|
3
|
+
A Morpho Blue lending market: one isolated (collateral, loan) pair.
|
|
4
|
+
|
|
5
|
+
## Example Usage
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
import { MorphoLendingMarket } from "@compass-labs/api-sdk/models/components";
|
|
9
|
+
|
|
10
|
+
let value: MorphoLendingMarket = {
|
|
11
|
+
marketId: "<id>",
|
|
12
|
+
loanToken: "<value>",
|
|
13
|
+
loanTokenSymbol: "<value>",
|
|
14
|
+
loanTokenDecimals: 959829,
|
|
15
|
+
collateralToken: "<value>",
|
|
16
|
+
collateralTokenSymbol: "<value>",
|
|
17
|
+
collateralTokenDecimals: 294886,
|
|
18
|
+
oracle: "<value>",
|
|
19
|
+
irm: "<value>",
|
|
20
|
+
lltv: "<value>",
|
|
21
|
+
utilization: "<value>",
|
|
22
|
+
totalSupplyAssets: "<value>",
|
|
23
|
+
totalBorrowAssets: "<value>",
|
|
24
|
+
availableLiquidity: "<value>",
|
|
25
|
+
fee: "<value>",
|
|
26
|
+
};
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Fields
|
|
30
|
+
|
|
31
|
+
| Field | Type | Required | Description |
|
|
32
|
+
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
33
|
+
| `marketId` | *string* | :heavy_check_mark: | Morpho Blue market id — the bytes32 keccak of the market's (loanToken, collateralToken, oracle, irm, lltv) tuple. Pass this to the Morpho credit actions to identify the market. |
|
|
34
|
+
| `loanToken` | *string* | :heavy_check_mark: | Token that is supplied and borrowed in this market. |
|
|
35
|
+
| `loanTokenSymbol` | *string* | :heavy_check_mark: | Symbol of the loan token (e.g. USDC). |
|
|
36
|
+
| `loanTokenDecimals` | *number* | :heavy_check_mark: | Decimals of the loan token. |
|
|
37
|
+
| `collateralToken` | *string* | :heavy_check_mark: | Token accepted as collateral in this market. |
|
|
38
|
+
| `collateralTokenSymbol` | *string* | :heavy_check_mark: | Symbol of the collateral token (e.g. wstETH). |
|
|
39
|
+
| `collateralTokenDecimals` | *number* | :heavy_check_mark: | Decimals of the collateral token. |
|
|
40
|
+
| `oracle` | *string* | :heavy_check_mark: | Oracle pricing the collateral in loan-token terms for this market. |
|
|
41
|
+
| `irm` | *string* | :heavy_check_mark: | Interest rate model contract of this market. |
|
|
42
|
+
| `lltv` | *string* | :heavy_check_mark: | Liquidation loan-to-value in percentage (e.g. 86 means a position is liquidatable once debt exceeds 86% of collateral value). |
|
|
43
|
+
| `supplyApy` | *string* | :heavy_minus_sign: | Current supply APY for lending the loan token, in percentage (e.g. 3.5 means 3.5%). Null if the rate is unavailable. |
|
|
44
|
+
| `borrowApy` | *string* | :heavy_minus_sign: | Current borrow APY for the loan token, in percentage (e.g. 5.25 means 5.25%). Null if the rate is unavailable. |
|
|
45
|
+
| `utilization` | *string* | :heavy_check_mark: | Borrowed share of supplied assets, in percentage 0-100. |
|
|
46
|
+
| `totalSupplyAssets` | *string* | :heavy_check_mark: | Total loan tokens supplied to the market, in token units. |
|
|
47
|
+
| `totalBorrowAssets` | *string* | :heavy_check_mark: | Total loan tokens borrowed from the market, in token units. |
|
|
48
|
+
| `availableLiquidity` | *string* | :heavy_check_mark: | Loan tokens available to borrow or withdraw (supplied - borrowed), in token units. |
|
|
49
|
+
| `fee` | *string* | :heavy_check_mark: | Protocol fee taken from interest, in percentage of interest (e.g. 0 means no fee). |
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# MorphoMarketsResponse
|
|
2
|
+
|
|
3
|
+
Curated Morpho Blue lending markets, read on-chain per request.
|
|
4
|
+
|
|
5
|
+
## Example Usage
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
import { MorphoMarketsResponse } from "@compass-labs/api-sdk/models/components";
|
|
9
|
+
|
|
10
|
+
let value: MorphoMarketsResponse = {
|
|
11
|
+
morpho: "<value>",
|
|
12
|
+
markets: [],
|
|
13
|
+
};
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Fields
|
|
17
|
+
|
|
18
|
+
| Field | Type | Required | Description | Example |
|
|
19
|
+
| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
|
|
20
|
+
| `morpho` | *string* | :heavy_check_mark: | Morpho Blue singleton contract the markets were read from. | |
|
|
21
|
+
| `markets` | [components.MorphoLendingMarket](../../models/components/morpholendingmarket.md)[] | :heavy_minus_sign: | Curated lending markets with live LLTV, APYs, utilization, and liquidity. | [] |
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# SwapInfo
|
|
2
|
+
|
|
3
|
+
The DEX swap leg detected inside a loop transaction.
|
|
4
|
+
|
|
5
|
+
Evidence is token-filtered and executor-proof: the sold (debt) token left the
|
|
6
|
+
account to a non-protocol counterparty and the bought (collateral) token
|
|
7
|
+
arrived from a non-protocol counterparty. 1inch fills often settle from an
|
|
8
|
+
executor contract, so the router is recorded only when it happens to be the
|
|
9
|
+
outbound counterparty — it is never required for detection.
|
|
10
|
+
|
|
11
|
+
## Example Usage
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { SwapInfo } from "@compass-labs/api-sdk/models/components";
|
|
15
|
+
|
|
16
|
+
let value: SwapInfo = {
|
|
17
|
+
soldToken: "<value>",
|
|
18
|
+
soldSymbol: "<value>",
|
|
19
|
+
soldAmount: "<value>",
|
|
20
|
+
boughtToken: "<value>",
|
|
21
|
+
boughtSymbol: "<value>",
|
|
22
|
+
boughtAmount: "<value>",
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Fields
|
|
27
|
+
|
|
28
|
+
| Field | Type | Required | Description |
|
|
29
|
+
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
30
|
+
| `soldToken` | *string* | :heavy_check_mark: | Token sold in the swap (the borrowed/debt token). |
|
|
31
|
+
| `soldSymbol` | *string* | :heavy_check_mark: | Symbol of the sold token. |
|
|
32
|
+
| `soldAmount` | *string* | :heavy_check_mark: | Amount of the sold token. |
|
|
33
|
+
| `boughtToken` | *string* | :heavy_check_mark: | Token bought in the swap (the collateral token). |
|
|
34
|
+
| `boughtSymbol` | *string* | :heavy_check_mark: | Symbol of the bought token. |
|
|
35
|
+
| `boughtAmount` | *string* | :heavy_check_mark: | Amount of the bought token. |
|
|
36
|
+
| `router` | *string* | :heavy_minus_sign: | The outbound counterparty when it is the 1inch aggregation router. Null when the swap settled from an executor contract (informational only — never required to detect the swap). |
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# V2CreditLoopedPositionsChain
|
|
2
|
+
|
|
3
|
+
## Example Usage
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { V2CreditLoopedPositionsChain } from "@compass-labs/api-sdk/models/operations";
|
|
7
|
+
|
|
8
|
+
let value: V2CreditLoopedPositionsChain = "base";
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Values
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
"arbitrum" | "base" | "bsc" | "ethereum" | "tempo"
|
|
15
|
+
```
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# V2CreditLoopedPositionsRequest
|
|
2
|
+
|
|
3
|
+
## Example Usage
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { V2CreditLoopedPositionsRequest } from "@compass-labs/api-sdk/models/operations";
|
|
7
|
+
|
|
8
|
+
let value: V2CreditLoopedPositionsRequest = {
|
|
9
|
+
chain: "base",
|
|
10
|
+
owner: "0x06A9aF046187895AcFc7258450B15397CAc67400",
|
|
11
|
+
};
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Fields
|
|
15
|
+
|
|
16
|
+
| Field | Type | Required | Description | Example |
|
|
17
|
+
| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- |
|
|
18
|
+
| `chain` | [operations.V2CreditLoopedPositionsChain](../../models/operations/v2creditloopedpositionschain.md) | :heavy_check_mark: | N/A | base |
|
|
19
|
+
| `owner` | *string* | :heavy_check_mark: | The address of the owner of the credit account to get looped positions for. | 0x06A9aF046187895AcFc7258450B15397CAc67400 |
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# V2CreditMorphoMarketsChain
|
|
2
|
+
|
|
3
|
+
## Example Usage
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { V2CreditMorphoMarketsChain } from "@compass-labs/api-sdk/models/operations";
|
|
7
|
+
|
|
8
|
+
let value: V2CreditMorphoMarketsChain = "ethereum";
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Values
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
"arbitrum" | "base" | "bsc" | "ethereum" | "tempo"
|
|
15
|
+
```
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# V2CreditMorphoMarketsRequest
|
|
2
|
+
|
|
3
|
+
## Example Usage
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { V2CreditMorphoMarketsRequest } from "@compass-labs/api-sdk/models/operations";
|
|
7
|
+
|
|
8
|
+
let value: V2CreditMorphoMarketsRequest = {
|
|
9
|
+
chain: "ethereum",
|
|
10
|
+
};
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Fields
|
|
14
|
+
|
|
15
|
+
| Field | Type | Required | Description | Example |
|
|
16
|
+
| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
|
|
17
|
+
| `chain` | [operations.V2CreditMorphoMarketsChain](../../models/operations/v2creditmorphomarketschain.md) | :heavy_check_mark: | N/A | ethereum |
|