Skip to main content
POST
CES Consumer Demand

Authorizations

X-API-Key
string
header
required

API key for authentication. Get your key at https://api.fincept.in/auth/register

Body

application/json
rho
number
required

Substitution parameter (rho = (sigma-1)/sigma where sigma is elasticity of substitution). rho < 1 for substitutes, rho = 0 for Cobb-Douglas, rho → -∞ for Leontief.

Example:

-0.5

weights
number[]
required

Share parameters for the two goods [w1, w2]

Required array length: 2 elements
Required range: x >= 0
Example:
income
number
required

Consumer's total income or budget

Required range: x >= 0
Example:

1000

prices
number[]
required

Prices of the two goods [p1, p2]

Required array length: 2 elements
Required range: x >= 0
Example:

Response

Successful Response

success
boolean
Example:

true

data
object