← Developer Hub
Quant Compute
Model Optimization Cloud
Queue a bounded parameter sweep against an approved FinanceGPT quantitative model and objective.
Version: v2
Stability: stable
Sandbox: Available
Production: Entitlement required
Target latency: ≤ 250 ms
POST
/api/v2/quant/compute/optimizationsM21 bounds parameter grids to 200 candidates and executes only registered FinanceGPT quantitative models.
Required scope:
quant:compute:runTry it in the FinanceGPT sandbox
The 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 runExample response
{
"data": {
"job_uid": "00000000-0000-4000-8000-000000000023",
"job_type": "optimization",
"status": "queued"
}
}Code examples
curl
curl -X POST \
https://financegpt.dev/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"}}'python
import os, requests
url = "https://financegpt.dev/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())javascript
const response = await fetch('https://financegpt.dev/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
<?php
$ch = curl_init('https://financegpt.dev/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;Versions & changelog
v2 published
M21 publication of this governed FinanceGPT API operation.
Ready to build?
Explorer gives immediate isolated sandbox access. Production plans require a commercial entitlement.
Create account