Create Model
Create an investment model from a prompt or from your own script.
A model backtests allocations to assets, other models, or both. Existing models referenced by ID, name, or symbol become members. The build (script generation plus a sandboxed backtest at the declared defaults) runs in the background and typically takes 10-60 seconds; this answers at once with the model ID and status building. The model's run becomes null when work ends; status and error describe its outcome. With script, generation is skipped: the script is validated against the contract and smoke-run. Metered per build (base plus compute; tokens only when generating). auto_update=false and notify_email=false disable recurring work and allocation emails. Omitting these preserves the existing enabled defaults.
Request
- Base URL: https://api.ensemble.markets (the document declares no server; this is the origin it was published from)
- URL: https://api.ensemble.markets/v1/models
- Auth: HTTP bearer
Request body
Example request
{
"prompt": "Buy and hold SPY",
"name": "My SPY Strategy",
"symbol": "SPY-BH",
"start_date": "2020-01-01"
}Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.