Generate Preview

The Generate Preview API submits an account and its strategy to create a preview of
an optimized portfolio. This endpoint synchronously returns the generated orders for
the account, utilizing cached market data and relaxing certain constraints to quickly
provide a preview of the expected orders. Note that the Trade constraint is not enforced, when generating a preview.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
account
object
required
optimizer_params
object

All-nullable variant of OptimizerParams used as request input — every field is omittable so callers can override only what they care about. The runtime merges the supplied values over the deployment defaults to produce the inner OptimizerParams.

number

An optional fixed cost per trade to apply to the optimization.

boolean
Defaults to false

When true, the optimizer is allowed to keep existing holdings that violate sell-universe constraints (no forced sells purely to clear universe violations).

string | null

Caller-provided organization identifier; null when not supplied.

string | null

Caller-provided parent organization identifier; null when not supplied.

Response

Language
Credentials
Bearer
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json