Margin Service API - Portfolio - Add
Description
This request allows the Client to add or create a new portfolio in CME CORE. The Client must here submit the required attributes (specified below) for a new portfolio following which the server validates the request. Every transaction must be submitted separately. If the request is invalid, the server returns a status and an error message/code and if the request is valid, an internal identifier for the request along with the status are returned.
Request
XPath | Name | Type | Required | Notes |
---|---|---|---|---|
| Requesting User ID | No | ||
| Description | No | ||
| Name | No | ||
| Reporting Currency | No | Defaults to USD | |
| Clearing Member Firm ID | No | ||
| Customer Account ID | No |
Note: If No Clearing Member Firm ID and Customer Account ID is supplied, these fields will be supplied with default values.
Clearing Member Firm ID will default to 'Test' and Customer Account ID will default to '1234'
Response
XPath | Name | Type | Required | Notes |
---|---|---|---|---|
| Error Code | No | ||
| Error Message | No | ||
| Create Time | Yes | ||
| Description | No | ||
| Portfolio ID | Yes | ||
| Name | No | ||
| Reporting Currency | Yes | ||
| Update Time | Yes | ||
| Clearing Member Firm ID | Yes | ||
| Customer Account ID | No |
Errors
Code | Description |
---|---|
| Bad XML syntax or missing content. More information will be provided in the error message. |
| Returned if the user does not have permission to add a portfolio. |
| The server was not able to process the request. More information (if available) will be provided in the error message. |
Examples
Valid
Request
POST {Margin Service API URL}/portfolios
<?xml version="1.1" encoding="UTF-8" standalone="yes"?>
<ns2:portfolioReq xmlns:ns2="http://cmegroup.com/schema/core/1.1">
<portfolio desc="My Desc" name="My Name" rptCcy="AUD" id="0"><entities clrMbrFirmId="My Firm" custAcctId="My Account"/></portfolio></ns2:portfolioReq>
Response
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:portfolioRpt xmlns:ns2="http://cmegroup.com/schema/core/1.2" status="SUCCESS">
<portfolio desc="My Desc" name="My Name" rptCcy="AUD" id="53224376" createTime="2017-03-17T15:08:38+00:00" updateTime="2017-03-17T15:08:38+00:00">
<entities clrMbrFirmId="My Firm" custAcctId="My Account"/>
</portfolio>
</ns2:portfolioRpt>
How was your Client Systems Wiki Experience? Submit Feedback
Copyright © 2024 CME Group Inc. All rights reserved.