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

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
wealth
number
required

Current wealth level (must be positive)

Required range: x > 0
Example:

10000

Response

Successful Response

success
boolean
Example:

true

data
object