API reference/Finance & Markets/Risk Premium on Lending

Risk Premium on Lending

freeLive data

Lending rate minus the risk-free Treasury bill rate.

GET/api/v1/finance/worldbank/risk-premium

Data source

Query parameters

ParameterDescriptionTry value
country
string
ISO 3166 alpha-2/3 code (default US)
years
number
Years of history, 1–60 (default 15)
apikey
string required
Your API key. Can also be sent as the X-API-Key header.demo key used here

Response envelope

Success: { data, meta: { sources, fetchedAt, cached } }. Errors: { error: { code, message } } with HTTP 400, 401, 404, 502, 503 or 504.