Create a model
POST/v1/models/models
Creates a model with the name, benchmark, primary securities, security groups, sleeves and security restrictions in the request body.
Make the weights of the primary securities, security groups and sleeves add up to 100. The API does not check the total. If your firm has no benchmark, security group or sleeve with an ID in the request body, the response is 404 and nothing is saved.
Request
Responses
- 201
- 400
- 401
- 403
- 404
- 429
The model you created.
The request body is invalid, for example name is missing or a treatment is not hold_only, sell_no_tax or exclude.
The access token is missing, invalid, or expired.
The access token does not have the write:model scope.
Your firm has no benchmark, security group or sleeve with an ID in the request body.
Too many requests. Wait the number of seconds in the Retry-After-per-person header (script-audience tokens) or the Retry-After header (other requests) before you retry. See Rate limit.