Excerpt |
---|
The calculate optimize request performs an optimize calculation on an existing portfolio. Optimize in this context specifically refers to the CME Optimizer algorithm/tool, which identifies appropriate interest rate listed derivative products which can offset CME-clearing OTC IRS product, thereby producing portfolio margin efficiencies. For more information regarding the Optimizer deployable software see here. For more information about CME's portfolio margin program for interest rate products see here. |
Request
XPath | Name | Type | Required | Notes |
---|---|---|---|---|
| Requesting User ID | No | ||
| Portfolio ID | Yes |
Response
XPath | Name | Type | Required | Notes |
---|---|---|---|---|
| Status | Yes | ||
| ID | Yes | ||
| Portfolio ID | Yes | ||
| Update Time | Yes | ||
| Error Message | No | ||
| Error Message | No |
Errors
Code | Description | Message |
---|---|---|
| Bad XML syntax or missing content. More information will be provided in the error message. | |
| Returned if the user does not have permission to perform calculations on the portfolio | |
| Returned if the user's portfolio does not contain a valid combination of products (IRS or delta ladder + futures) | msg="Cant Optimize portfolio; must contain Future and Options trade and either Delta Ladder trade or IRS trade" |
| The server was not able to process the request. More information (if available) will be provided in the error message. |
Examples
Basic
This example requests that a portfolio with ID 12345678
be optimized. The unique ID of the margin request is returned along with the portfolio identifier.
Request
Code Block |
---|
POST {{API_URL}}/optimize |
Code Block | ||||
---|---|---|---|---|
| ||||
<core:marginReq xmlns:core="http://cmegroup.com/schema/core/1.6"> <margin portfolioId="12345678"/> </core:marginReq> |
Response
Code Block | ||||
---|---|---|---|---|
| ||||
<ns2:marginRpt xmlns:ns2="http://cmegroup.com/schema/core/1.6" status="PROCESSING"> <margin portfolioId="12345678" id="1234567"/> </ns2:marginRpt> |