Fincept Terminal Quantlib Economics API
The quantlib-economics API from Fincept Terminal — 25 operation(s) for quantlib-economics.
The quantlib-economics API from Fincept Terminal — 25 operation(s) for quantlib-economics.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/fincept-in:fincept-in-quantlib-economics-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Fincept In Quantlib Economics API
version: 3.0.0
description: 'Operations tagged quantlib-economics across 2 of this provider''s published API definitions: fincept-in-openapi.json, fincept-in-openapi.json. Each path carries the servers of the definition it was published in.'
tags:
- name: quantlib-economics
paths:
/quantlib/economics/equilibrium/cobb-douglas:
post:
tags:
- quantlib-economics
summary: Cobb Douglas
description: Compute Cobb-Douglas consumer demand, utility, and expenditure
operationId: cobb_douglas_quantlib_economics_equilibrium_cobb_douglas_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CobbDouglasRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- APIKeyHeader: []
/quantlib/economics/equilibrium/ces:
post:
tags:
- quantlib-economics
summary: Ces Consumer
description: Compute CES consumer demand and utility
operationId: ces_consumer_quantlib_economics_equilibrium_ces_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CESRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- APIKeyHeader: []
/quantlib/economics/equilibrium/exchange-economy:
post:
tags:
- quantlib-economics
summary: Exchange Economy
description: Analyze a 2-consumer exchange economy (excess demand, Pareto efficiency)
operationId: exchange_economy_quantlib_economics_equilibrium_exchange_economy_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ExchangeEconomyRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- APIKeyHeader: []
/quantlib/economics/equilibrium/walrasian:
post:
tags:
- quantlib-economics
summary: Walrasian Equilibrium
description: Find Walrasian equilibrium prices and allocations
operationId: walrasian_equilibrium_quantlib_economics_equilibrium_walrasian_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/WalrasianRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- APIKeyHeader: []
/quantlib/economics/games/create:
post:
tags:
- quantlib-economics
summary: Create Game
description: Create a normal-form game and find pure Nash equilibria
operationId: create_game_quantlib_economics_games_create_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/GameRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- APIKeyHeader: []
/quantlib/economics/games/classic:
post:
tags:
- quantlib-economics
summary: Classic Game
description: Load a classic game and find Nash equilibria
operationId: classic_game_quantlib_economics_games_classic_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ClassicGameRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- APIKeyHeader: []
/quantlib/economics/games/nash-check:
post:
tags:
- quantlib-economics
summary: Nash Check
description: Check if a strategy profile is a Nash equilibrium
operationId: nash_check_quantlib_economics_games_nash_check_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/NashCheckRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- APIKeyHeader: []
/quantlib/economics/games/mixed-nash:
post:
tags:
- quantlib-economics
summary: Mixed Nash
description: Find all Nash equilibria (including mixed) via support enumeration
operationId: mixed_nash_quantlib_economics_games_mixed_nash_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/GameRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- APIKeyHeader: []
/quantlib/economics/games/fictitious-play:
post:
tags:
- quantlib-economics
summary: Fictitious Play
description: Find approximate Nash equilibrium via fictitious play
operationId: fictitious_play_quantlib_economics_games_fictitious_play_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/FictitiousPlayRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- APIKeyHeader: []
/quantlib/economics/games/best-response:
post:
tags:
- quantlib-economics
summary: Best Response
description: Find best response for each player given opponent's strategy
operationId: best_response_quantlib_economics_games_best_response_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/NashCheckRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- APIKeyHeader: []
/quantlib/economics/games/eliminate-dominated:
post:
tags:
- quantlib-economics
summary: Eliminate Dominated
description: Iteratively eliminate strictly dominated strategies
operationId: eliminate_dominated_quantlib_economics_games_eliminate_dominated_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/DominatedRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- APIKeyHeader: []
/quantlib/economics/auctions/run:
post:
tags:
- quantlib-economics
summary: Run Auction
description: Run an auction with given valuations
operationId: run_auction_quantlib_economics_auctions_run_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AuctionRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- APIKeyHeader: []
/quantlib/economics/auctions/equilibrium-bid:
post:
tags:
- quantlib-economics
summary: Equilibrium Bid
description: Calculate equilibrium bid for a given valuation
operationId: equilibrium_bid_quantlib_economics_auctions_equilibrium_bid_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AuctionRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- APIKeyHeader: []
/quantlib/economics/auctions/expected-revenue:
post:
tags:
- quantlib-economics
summary: Expected Revenue
description: Calculate expected revenue for an auction format (uniform valuations)
operationId: expected_revenue_quantlib_economics_auctions_expected_revenue_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AuctionRevenueRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- APIKeyHeader: []
/quantlib/economics/auctions/simulate:
post:
tags:
- quantlib-economics
summary: Simulate Auctions
description: Monte Carlo simulation of auctions
operationId: simulate_auctions_quantlib_economics_auctions_simulate_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SimulateAuctionsRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- APIKeyHeader: []
/quantlib/economics/utility/cara:
post:
tags:
- quantlib-economics
summary: Cara Utility
description: Evaluate CARA (Constant Absolute Risk Aversion) utility
operationId: cara_utility_quantlib_economics_utility_cara_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CARARequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- APIKeyHeader: []
/quantlib/economics/utility/crra:
post:
tags:
- quantlib-economics
summary: Crra Utility
description: Evaluate CRRA (Constant Relative Risk Aversion) utility
operationId: crra_utility_quantlib_economics_utility_crra_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CRRARequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- APIKeyHeader: []
/quantlib/economics/utility/log:
post:
tags:
- quantlib-economics
summary: Log Utility
description: Evaluate Log utility
operationId: log_utility_quantlib_economics_utility_log_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/LogUtilityRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- APIKeyHeader: []
/quantlib/economics/utility/prospect-theory:
post:
tags:
- quantlib-economics
summary: Prospect Theory
description: Evaluate Prospect Theory value function
operationId: prospect_theory_quantlib_economics_utility_prospect_theory_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ProspectTheoryRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- APIKeyHeader: []
/quantlib/economics/utility/quadratic:
post:
tags:
- quantlib-economics
summary: Quadratic Utility
description: Evaluate Quadratic utility u(w) = w - b*w^2/2 (satiation at w=1/b)
operationId: quadratic_utility_quantlib_economics_utility_quadratic_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/QuadraticUtilityRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- APIKeyHeader: []
/quantlib/economics/utility/expected-utility:
post:
tags:
- quantlib-economics
summary: Expected Utility
description: Calculate expected utility of a lottery
operationId: expected_utility_quantlib_economics_utility_expected_utility_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ExpectedUtilityRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- APIKeyHeader: []
/quantlib/economics/utility/certainty-equivalent:
post:
tags:
- quantlib-economics
summary: Certainty Equivalent
description: Calculate certainty equivalent of a lottery
operationId: certainty_equivalent_quantlib_economics_utility_certainty_equivalent_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CertaintyEquivRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- APIKeyHeader: []
/quantlib/economics/utility/certainty-equivalent-approximation:
post:
tags:
- quantlib-economics
summary: Ce Approx
description: Arrow-Pratt approximation of certainty equivalent
operationId: ce_approx_quantlib_economics_utility_certainty_equivalent_approximation_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CEApproxRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- APIKeyHeader: []
/quantlib/economics/utility/risk-premium:
post:
tags:
- quantlib-economics
summary: Risk Premium
description: Calculate risk premium of a lottery
operationId: risk_premium_quantlib_economics_utility_risk_premium_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/RiskPremiumRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- APIKeyHeader: []
/quantlib/economics/utility/stochastic-dominance:
post:
tags:
- quantlib-economics
summary: Stochastic Dominance
description: Check first or second order stochastic dominance of A over B
operationId: stochastic_dominance_quantlib_economics_utility_stochastic_dominance_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/StochasticDominanceRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- APIKeyHeader: []
components:
schemas:
AuctionRevenueRequest:
properties:
auction_type:
type: string
title: Auction Type
n_bidders:
type: integer
title: N Bidders
type: object
required:
- auction_type
- n_bidders
title: AuctionRevenueRequest
GameRequest:
properties:
payoff_matrix_1:
items:
items:
type: number
type: array
type: array
title: Payoff Matrix 1
payoff_matrix_2:
items:
items:
type: number
type: array
type: array
title: Payoff Matrix 2
type: object
required:
- payoff_matrix_1
- payoff_matrix_2
title: GameRequest
description: Normal-form game from payoff bimatrix
AuctionRequest:
properties:
auction_type:
type: string
title: Auction Type
n_bidders:
type: integer
title: N Bidders
valuations:
anyOf:
- items:
type: number
type: array
- type: 'null'
title: Valuations
type: object
required:
- auction_type
- n_bidders
title: AuctionRequest
ExchangeEconomyRequest:
properties:
endowments:
items:
items:
type: number
type: array
type: array
title: Endowments
alphas:
items:
type: number
type: array
title: Alphas
prices:
anyOf:
- items:
type: number
type: array
- type: 'null'
title: Prices
type: object
required:
- endowments
- alphas
title: ExchangeEconomyRequest
description: 2-consumer, 2-good exchange economy
SimulateAuctionsRequest:
properties:
auction_type:
type: string
title: Auction Type
n_bidders:
type: integer
title: N Bidders
n_simulations:
type: integer
title: N Simulations
default: 10000
value_dist:
type: string
title: Value Dist
default: uniform
seed:
anyOf:
- type: integer
- type: 'null'
title: Seed
default: 42
type: object
required:
- auction_type
- n_bidders
title: SimulateAuctionsRequest
StochasticDominanceRequest:
properties:
cdf_a:
items:
items:
type: number
type: array
type: array
title: Cdf A
cdf_b:
items:
items:
type: number
type: array
type: array
title: Cdf B
order:
type: integer
title: Order
default: 1
type: object
required:
- cdf_a
- cdf_b
title: StochasticDominanceRequest
NashCheckRequest:
properties:
payoff_matrix_1:
items:
items:
type: number
type: array
type: array
title: Payoff Matrix 1
payoff_matrix_2:
items:
items:
type: number
type: array
type: array
title: Payoff Matrix 2
strategy_1:
items:
type: number
type: array
title: Strategy 1
strategy_2:
items:
type: number
type: array
title: Strategy 2
type: object
required:
- payoff_matrix_1
- payoff_matrix_2
- strategy_1
- strategy_2
title: NashCheckRequest
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
type: object
required:
- loc
- msg
- type
title: ValidationError
CertaintyEquivRequest:
properties:
utility_type:
type: string
title: Utility Type
param:
anyOf:
- type: number
- type: 'null'
title: Param
outcomes:
items:
type: number
type: array
title: Outcomes
probabilities:
anyOf:
- items:
type: number
type: array
- type: 'null'
title: Probabilities
type: object
required:
- utility_type
- outcomes
title: CertaintyEquivRequest
CRRARequest:
properties:
gamma:
type: number
title: Gamma
wealth:
type: number
title: Wealth
type: object
required:
- gamma
- wealth
title: CRRARequest
WalrasianRequest:
properties:
endowments:
items:
items:
type: number
type: array
type: array
title: Endowments
alphas:
items:
type: number
type: array
title: Alphas
initial_prices:
anyOf:
- items:
type: number
type: array
- type: 'null'
title: Initial Prices
max_iter:
type: integer
title: Max Iter
default: 1000
tol:
type: number
title: Tol
default: 1.0e-06
type: object
required:
- endowments
- alphas
title: WalrasianRequest
RiskPremiumRequest:
properties:
utility_type:
type: string
title: Utility Type
param:
anyOf:
- type: number
- type: 'null'
title: Param
outcomes:
items:
type: number
type: array
title: Outcomes
probabilities:
anyOf:
- items:
type: number
type: array
- type: 'null'
title: Probabilities
type: object
required:
- utility_type
- outcomes
title: RiskPremiumRequest
FictitiousPlayRequest:
properties:
payoff_matrix_1:
items:
items:
type: number
type: array
type: array
title: Payoff Matrix 1
payoff_matrix_2:
items:
items:
type: number
type: array
type: array
title: Payoff Matrix 2
iterations:
type: integer
title: Iterations
default: 1000
seed:
anyOf:
- type: integer
- type: 'null'
title: Seed
type: object
required:
- payoff_matrix_1
- payoff_matrix_2
title: FictitiousPlayRequest
CEApproxRequest:
properties:
mean:
type: number
title: Mean
variance:
type: number
title: Variance
risk_aversion:
type: number
title: Risk Aversion
type: object
required:
- mean
- variance
- risk_aversion
title: CEApproxRequest
CARARequest:
properties:
risk_aversion:
type: number
title: Risk Aversion
wealth:
type: number
title: Wealth
type: object
required:
- risk_aversion
- wealth
title: CARARequest
DominatedRequest:
properties:
payoff_matrix_1:
items:
items:
type: number
type: array
type: array
title: Payoff Matrix 1
payoff_matrix_2:
items:
items:
type: number
type: array
type: array
title: Payoff Matrix 2
type: object
required:
- payoff_matrix_1
- payoff_matrix_2
title: DominatedRequest
ProspectTheoryRequest:
properties:
alpha:
type: number
title: Alpha
default: 0.88
beta:
type: number
title: Beta
default: 0.88
lambda_param:
type: number
title: Lambda Param
default: 2.25
wealth:
type: number
title: Wealth
default: 0.0
outcome:
type: number
title: Outcome
default: 0.0
type: object
title: ProspectTheoryRequest
CobbDouglasRequest:
properties:
alphas:
items:
type: number
type: array
title: Alphas
endowment:
items:
type: number
type: array
title: Endowment
default:
- 1.0
- 1.0
wealth:
type: number
title: Wealth
default: 100.0
prices:
items:
type: number
type: array
title: Prices
type: object
required:
- alphas
- prices
title: CobbDouglasRequest
CESRequest:
properties:
alphas:
items:
type: number
type: array
title: Alphas
rho:
type: number
title: Rho
endowment:
items:
type: number
type: array
title: Endowment
default:
- 1.0
- 1.0
wealth:
type: number
title: Wealth
default: 100.0
prices:
items:
type: number
type: array
title: Prices
type: object
required:
- alphas
- rho
- prices
title: CESRequest
QuadraticUtilityRequest:
properties:
b:
type: number
title: B
default: 0.01
wealth:
type: number
title: Wealth
type: object
required:
- wealth
title: QuadraticUtilityRequest
ClassicGameRequest:
properties:
game_name:
type: string
title: Game Name
type: object
required:
- game_name
title: ClassicGameRequest
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
LogUtilityRequest:
properties:
wealth:
type: number
title: Wealth
type: object
required:
- wealth
title: LogUtilityRequest
ExpectedUtilityRequest:
properties:
utility_type:
type: string
title: Utility Type
param:
anyOf:
- type: number
- type: 'null'
title: Param
outcomes:
items:
type: number
type: array
title: Outcomes
probabilities:
anyOf:
- items:
type: number
type: array
- type: 'null'
title: Probabilities
type: object
required:
- utility_type
- outcomes
title: ExpectedUtilityRequest
securitySchemes:
APIKeyHeader:
type: apiKey
in: header
name: X-API-Key
x-refined-from:
- fincept-in-openapi.json
- fincept-in-openapi.json