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

Response

200
application/json

List of loan data

The response is of type object[].