View your loans as lender and borrower
curl --request GET \
--url https://api.example.com/lending/my-loanscurl https://api.midasprotocol.org/lending/my-loans \
-H "Authorization: Bearer pp_your_key"
{
"asLender": [
{ "id": "uuid", "borrowerId": "...", "amount": "100.00", "status": "ACTIVE", "repayments": [...] }
],
"asBorrower": [
{ "id": "uuid", "lenderId": "...", "amount": "200.00", "status": "REPAID", "repayments": [...] }
]
}
curl --request GET \
--url https://api.example.com/lending/my-loans