Set Model Allocations

View as MarkdownOpen in Claude
Create or Modify a model's target positions.

Request

This endpoint expects an object.
cashTargetslist of objectsRequired
Array target cash objects
descstringRequired
Personal description of model to read in IBKR GUI elements.
isStaticbooleanRequired
Determine if investing and rebalancing should be handled statically or dynamically. * `true` - Static models will always use the original targets. * `false` - Dynamic models will adjust allocation in response to market movements.
modelstringRequired
Name of your model.
positionTargetslist of objectsRequired
List containing all contracts to hold in the model.
reqIDlongRequired
Request identifier to uniquely track a request.

Response

Successfully saved a model
reqIDlong
Request identifier to uniquely track a request.
successboolean
Signifies that the request was successfully submitted.

Errors

401
Unauthorized Error
500
Internal Server Error
503
Service Unavailable Error