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": "<unknown>",
"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
}
]
}
]
}
]Returns a list of loans filtered by request. Results support pagination.
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": "<unknown>",
"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
}
]
}
]
}
]Filter type enum (0 = Active, 1 = Closed, 2 = Refinance Eligible, 3 = Time Based Liquidation Eligible)
Funding type enum (0 = Term loan, 2 = Loop)
Pagination number
Pagination size, (max 1000)
Sort direction enum (0 = asc, 1 = desc)
Sort type enum (0 = Next Payment Due, 1 = End Time, 2 = Start Time, 3 = Principal Amount, 4 = Health)
List of collateral mints
List of collateral identifiers to hide
List of principal mints to hide
Enum for asset type to include (0 = Normal Token, 1 = Staked Solana, 2 = Orca CLMM, 3 = Raydium CLMM, 4 = Meteora DLMM)