Appearance
Get Lending Rates History Average
GET
/v1/loans/rates/history/average
Returns the average lending rate for one or more currencies (or all currencies that support lending, if none are specified) over a given period. Use the currencySymbol query parameter to restrict the result to specific currencies, and startTime and endTime to bound the period.
Authorizations
apiKey
Your API key
Type
API Key (header: X-VALR-API-KEY)
apiSignature
HMAC SHA512 signature of the request (see Authentication section)
Type
API Key (header: X-VALR-SIGNATURE)
apiTimestamp
Request timestamp in milliseconds
Type
API Key (header: X-VALR-TIMESTAMP)
Parameters
Query Parameters
currencySymbol
The currency symbol to filter by (e.g., BTC, ETH).
Type
string
Example
"BTC"startTime
Start time in ISO 8601 format (e.g., 2023-11-14T22:00:00.000Z)
Type
string
endTime
End time in ISO 8601 format (e.g., 2023-12-14T22:00:00.000Z)
Type
string
Responses
Average lending rates retrieved successfully
application/json