Skip to main content
POST
/
lending
/
offers
Create Loan Offer
curl --request POST \
  --url https://api.example.com/lending/offers \
  --header 'Content-Type: application/json' \
  --data '
{
  "amount": 123,
  "currency": "<string>",
  "interestRate": 123,
  "durationDays": 123,
  "collateralPercent": 123,
  "expiresInHours": 123
}
'

Request

amount
number
required
Amount to lend.
currency
string
required
Currency code.
interestRate
number
required
Interest rate as percentage (e.g. 5 for 5%).
durationDays
number
required
Loan duration in days.
collateralPercent
number
required
Collateral requirement as percentage of loan amount.
expiresInHours
number
Hours until the offer expires (optional).
curl -X POST https://api.midasprotocol.org/lending/offers \
  -H "Authorization: Bearer pp_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": 100, "currency": "USDC", "interestRate": 5,
    "durationDays": 30, "collateralPercent": 50
  }'

Response

{
  "id": "uuid",
  "lenderId": "your-uuid",
  "amount": "100.00",
  "currency": "USDC",
  "interestRate": 5,
  "durationDays": 30,
  "collateralPercent": 50,
  "status": "OPEN",
  "expiresAt": null
}
The loan amount is placed in escrow when the offer is created.