Queue a bounded parameter sweep against an approved FinanceGPT quantitative model and objective.
/api/v2/quant/compute/optimizationsM21 bounds parameter grids to 200 candidates and executes only registered FinanceGPT quantitative models.
quant:compute:runThe playground uses deterministic isolated sandbox fixtures. It never queries production workspace data and does not require you to paste an API secret into the browser.
Sign in to run{
"data": {
"job_uid": "00000000-0000-4000-8000-000000000023",
"job_type": "optimization",
"status": "queued"
}
}curl -X POST \
https://equitygpt.app/api/v2/quant/compute/optimizations \
-H "Authorization: Bearer $FINANCEGPT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"model_key":"valuation.dcf_two_stage","base_input":{"cash_flows":[100,110,120,130,140],"terminal_growth":0.0299999999999999988897769753748434595763683319091796875},"parameter_grid":{"discount_rate":[0.08000000000000000166533453693773481063544750213623046875,0.0899999999999999966693309261245303787291049957275390625,0.1000000000000000055511151231257827021181583404541015625]},"objective_path":"enterprise_value","direction":"max"}}'import os, requests
url = "https://equitygpt.app/api/v2/quant/compute/optimizations"
headers = {"Authorization": f"Bearer {os.environ['FINANCEGPT_API_KEY']}"}
payload = {
"input": {
"model_key": "valuation.dcf_two_stage",
"base_input": {
"cash_flows": [
100,
110,
120,
130,
140
],
"terminal_growth": 0.0299999999999999988897769753748434595763683319091796875
},
"parameter_grid": {
"discount_rate": [
0.08000000000000000166533453693773481063544750213623046875,
0.0899999999999999966693309261245303787291049957275390625,
0.1000000000000000055511151231257827021181583404541015625
]
},
"objective_path": "enterprise_value",
"direction": "max"
}
}
response = requests.request("POST", url, headers=headers, json=payload)
response.raise_for_status()
print(response.json())const response = await fetch('https://equitygpt.app/api/v2/quant/compute/optimizations', {
method: 'POST',
headers: { Authorization: `Bearer ${process.env.FINANCEGPT_API_KEY}`, 'Content-Type': 'application/json' },
body: JSON.stringify({"input":{"model_key":"valuation.dcf_two_stage","base_input":{"cash_flows":[100,110,120,130,140],"terminal_growth":0.0299999999999999988897769753748434595763683319091796875},"parameter_grid":{"discount_rate":[0.08000000000000000166533453693773481063544750213623046875,0.0899999999999999966693309261245303787291049957275390625,0.1000000000000000055511151231257827021181583404541015625]},"objective_path":"enterprise_value","direction":"max"}})
});
if (!response.ok) throw new Error(`FinanceGPT ${response.status}`);
console.log(await response.json());<?php
$ch = curl_init('https://equitygpt.app/api/v2/quant/compute/optimizations');
curl_setopt_array($ch, [CURLOPT_RETURNTRANSFER => true, CURLOPT_CUSTOMREQUEST => 'POST', CURLOPT_HTTPHEADER => ['Authorization: Bearer '.getenv('FINANCEGPT_API_KEY'), 'Content-Type: application/json'], CURLOPT_POSTFIELDS => '{\"input\":{\"model_key\":\"valuation.dcf_two_stage\",\"base_input\":{\"cash_flows\":[100,110,120,130,140],\"terminal_growth\":0.0299999999999999988897769753748434595763683319091796875},\"parameter_grid\":{\"discount_rate\":[0.08000000000000000166533453693773481063544750213623046875,0.0899999999999999966693309261245303787291049957275390625,0.1000000000000000055511151231257827021181583404541015625]},\"objective_path\":\"enterprise_value\",\"direction\":\"max\"}}']);
$response = curl_exec($ch);
if (curl_getinfo($ch, CURLINFO_HTTP_CODE) >= 400) throw new RuntimeException($response);
echo $response;Explorer gives immediate isolated sandbox access. Production plans require a commercial entitlement.
Create account