Skip to main content
POST
/
markets
/
loans
/
info
Get loan information
curl --request POST \
  --url https://tars.loopscale.com/v1/markets/loans/info \
  --header 'Content-Type: application/json' \
  --data '{
  "loanAddresses": [
    "<string>"
  ],
  "lenders": [
    "<string>"
  ],
  "borrowers": [
    "<string>"
  ],
  "filterType": 123,
  "principalMints": [
    "<string>"
  ],
  "orderFundingType": 123,
  "page": 123,
  "pageSize": 123,
  "sortDirection": 123,
  "sortType": 123,
  "collateralMints": [
    "<string>"
  ],
  "excludeCollateralIdentifiers": [
    "<string>"
  ],
  "excludePrincipalMints": [
    "<string>"
  ],
  "assetTypes": 123
}'
[
  {
    "totalCount": 123,
    "loanInfos": [
      {
        "loan": {
          "id": 123,
          "address": "<string>",
          "bump": 123,
          "loanStatus": 123,
          "nonce": 123,
          "borrower": "<string>",
          "startTime": 123,
          "closed": "<any>",
          "lastInteractedTime": 123,
          "lastInteractedTxn": "<string>",
          "writeVersion": 123
        },
        "loanType": 123,
        "ledgers": [
          {
            "id": 123,
            "ledgerIndex": 123,
            "loan": "<string>",
            "status": 123,
            "strategy": "<string>",
            "principalMint": "<string>",
            "marketInformation": "<string>",
            "apy": 123,
            "principalDue": 123,
            "principalRepaid": 123,
            "interestPerSecond": 123,
            "lastInterestUpdateTime": 123,
            "interestOutstanding": 123,
            "durationType": 123,
            "duration": 123,
            "startTime": 123,
            "endTime": 123,
            "weights": [
              123
            ],
            "ltvRatios": [
              123
            ],
            "lqtRatios": [
              123
            ],
            "lastInteractedTime": 123,
            "lastInteractedTxn": "<string>",
            "writeVersion": 123
          }
        ],
        "pastLedgers": [
          {
            "id": 123,
            "ledgerIndex": 123,
            "loan": "<string>",
            "status": 123,
            "strategy": "<string>",
            "principalMint": "<string>",
            "marketInformation": "<string>",
            "apy": 123,
            "principalDue": 123,
            "principalRepaid": 123,
            "interestPerSecond": 123,
            "lastInterestUpdateTime": 123,
            "interestOutstanding": 123,
            "durationType": 123,
            "duration": 123,
            "startTime": 123,
            "endTime": 123,
            "weights": [
              123
            ],
            "ltvRatios": [
              123
            ],
            "lqtRatios": [
              123
            ],
            "lastInteractedTime": 123,
            "lastInteractedTxn": "<string>",
            "writeVersion": 123
          }
        ],
        "collateral": [
          {
            "id": 123,
            "loan": "<string>",
            "index": 123,
            "assetType": 123,
            "assetIdentifier": "<string>",
            "assetMint": "<string>",
            "amount": 123,
            "lastInteractedTime": 123,
            "lastInteractedTxn": "<string>",
            "writeVersion": 123
          }
        ],
        "events": [
          {
            "id": 123,
            "loan": "<string>",
            "assetIdentifier": "<string>",
            "assetMint": "<string>",
            "amount": 123,
            "originalLender": "<string>",
            "newLender": "<string>",
            "action": 123,
            "actionMetadata": {},
            "eventTime": 123,
            "usdPrice": 123,
            "eventTxn": "<string>"
          }
        ],
        "matrixUpdates": [
          {
            "id": 123,
            "loan": "<string>",
            "ledgerIndex": 123,
            "weights": [
              123
            ],
            "ltvRatios": [
              123
            ],
            "lqtRatios": [
              123
            ],
            "timestamp": 123,
            "txnSignature": "<string>",
            "writeVersion": 123
          }
        ],
        "collateralYield": [
          {
            "id": 123,
            "collateralMint": "<string>",
            "collateralApy": 123,
            "collateralTimestamp": 123
          }
        ]
      }
    ]
  }
]

Body

application/json
loanAddresses
string[]
lenders
string[]
borrowers
string[]
filterType
number

Filter type enum (0 = Active, 1 = Closed, 2 = Refinance Eligible, 3 = Time Based Liquidation Eligible)

principalMints
string[]
orderFundingType
integer

Funding type enum (0 = Term loan, 2 = Loop)

page
integer

Pagination number

pageSize
integer

Pagination size, (max 1000)

sortDirection
integer

Sort direction enum (0 = asc, 1 = desc)

sortType
integer

Sort type enum (0 = Next Payment Due, 1 = End Time, 2 = Start Time, 3 = Principal Amount, 4 = Health)

collateralMints
string[]

List of collateral mints

excludeCollateralIdentifiers
string[]

List of collateral identifiers to hide

excludePrincipalMints
string[]

List of principal mints to hide

assetTypes
integer

Enum for asset type to include (0 = Normal Token, 1 = Staked Solana, 2 = Orca CLMM, 3 = Raydium CLMM, 4 = Meteora DLMM)

Response

List of loan data

totalCount
number

Number of loans contained in query

loanInfos
object[]
I