Getting Repay Details
Getting user loans
{
user(id: "0x359e8a8ab1061ec972d9b8f807577563432b8994") { # replace this by the user id
borrowers {
marketplaceId
tokenVolumes {
aprAverage
aprActiveAverage
lendingTokenAddress
}
loans {
all(where: { status_not: "Repaid" }) {
totalRepaidPrincipal
principal
borrowerAddress
lenderAddress
apr
marketplaceId
lendingTokenAddress
loanDuration
paymentCycle
paymentCycleAmount
metadataURI
bidId
acceptedTimestamp
lastRepaidTimestamp
nextDueDate
paymentDefaultDuration
status
expiresAt
collateral {
type
collateralAddress
token {
name
symbol
decimals
}
amount
tokenId
status
}
marketplace {
paymentType
}
}
}
}
}
}Last updated