GET
/
loans
/
repayment-preview
curl --request GET \
  --url https://api.exchange.coinbase.com/loans/repayment-preview \
  --header 'cb-access-key: <api-key>' \
  --header 'cb-access-passphrase: <api-key>' \
  --header 'cb-access-sign: <api-key>' \
  --header 'cb-access-timestamp: <api-key>'
{
  "before": {
    "open_loan_value": "<string>",
    "collateral_value": "<string>",
    "collateralization_percentage": "<string>",
    "available_to_borrow": "<string>",
    "available_per_asset": {},
    "withdrawal_restricted": true,
    "credit_limit_value": "<string>",
    "available_credit_value": "<string>",
    "collateralization_percentage_open_only": "<string>",
    "pending_loan_value": "<string>",
    "initial_margin_percentage": "<string>",
    "minimum_margin_percentage": "<string>",
    "unlock_margin_percentage": "<string>"
  },
  "after": {
    "open_loan_value": "<string>",
    "collateral_value": "<string>",
    "collateralization_percentage": "<string>",
    "available_to_borrow": "<string>",
    "available_per_asset": {},
    "withdrawal_restricted": true,
    "credit_limit_value": "<string>",
    "available_credit_value": "<string>",
    "collateralization_percentage_open_only": "<string>",
    "pending_loan_value": "<string>",
    "initial_margin_percentage": "<string>",
    "minimum_margin_percentage": "<string>",
    "unlock_margin_percentage": "<string>"
  }
}

Like the Get lending overview API, all values are notional except available_per_asset which returns both notional and native values per currency.

Coinbase Exchange Loans Program

See Coinbase Exchange Loans Program for program details including qualification criteria and sample terms.

Caution

The lending rate limit is 10 RPS per profile.

Authorizations

cb-access-key
string
header
required
cb-access-passphrase
string
header
required
cb-access-sign
string
header
required
cb-access-timestamp
string
header
required

Query Parameters

loan_id
string
currency
string
native_amount
string

Response

200
application/json

A successful response.

The response is of type object.