Skip to main content
POST
/
quantlib
/
economics
/
utility
/
crra
CRRA Utility Function
curl --request POST \
  --url https://finceptbackend.share.zrok.io/quantlib/economics/utility/crra \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "gamma": 2,
  "wealth": 10000
}
'
{
  "success": true,
  "data": {
    "utility": -0.0001,
    "marginal_utility": 1e-8,
    "absolute_risk_aversion": 0.0002,
    "relative_risk_aversion": 2
  }
}

Authorizations

X-API-Key
string
header
required

API key for authentication. Get your key at https://finceptbackend.share.zrok.io/auth/register

Body

application/json
gamma
number
required

Relative risk aversion coefficient (gamma > 0 for risk aversion, typically 1-10)

Required range: x >= 0
Example:

2

wealth
number
required

Current wealth level (must be positive)

Required range: x > 0
Example:

10000

Response

Successful Response

success
boolean
Example:

true

data
object