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
≥ 0

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

Organization identifier, taken from the authenticated Moment-Organization request header. A value supplied in the request body is ignored.

string | null

Parent organization identifier, taken from the authenticated Moment-Parent-Organization request header. A value supplied in the request body is ignored.

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