Skip to main content
POST
Cobb-Douglas 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
alpha
number
required

Preference parameter for good 1 (must be between 0 and 1). Represents the share of income spent on good 1.

Required range: 0 <= x <= 1
Example:

0.6

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