Margin Service API - Portfolio - List



Description

The request allows the Client to list all portfolios specified which have been added to CME CORE (Add Portfolio and Update Portfolio). The client can optionally submit the search criteria for only the portfolios and not transactions or other data. The server returns all the portfolios matching the search criteria synchronously. When a user specifies a single portfolio ID in the GET portfolios request, only a single portfolio will be returned, matching the CME CORE-assigned portfolio ID.

Request

Parameter

Name

Type

Required

Notes

Parameter

Name

Type

Required

Notes

clrMbrFirmId

Clearing Member Firm ID

String

No



custAcctId

Customer Account ID

String

No



reqUserId

Requesting User ID

String

No



Response

XPath

Name

Type

Required

Notes

XPath

Name

Type

Required

Notes

/portfolioRpt/error@code

Error Code

String 

No



/portfolioRpt/error@msg

Error Message

String 

No



/portfolioRpt/portfolio@createTime

Create Time

Date/Time

Yes



/portfolioRpt/portfolio@desc

Description

String 

No



/portfolioRpt/portfolio@id

Portfolio ID

String 

Yes



/portfolioRpt/portfolio@name

Name

String 

No



/portfolioRpt/portfolio@rptCcy

Reporting Currency

String 

Yes



/portfolioRpt/portfolio@updateTime

Update Time

Date/Time

Yes



/portfolioRpt/portfolio/entities@clrMbrFirmId

Clearing Member Firm ID

String 

Yes



/portfolioRpt/portfolio/entities@custAcctId

Customer Account ID

String 

Yes



Errors

Code

Description

Code

Description

400

Bad XML syntax or missing content. More information will be provided in the error message.

500

The server was not able to process the request. More information (if available) will be provided in the error message.

Examples

Valid

This request queries for all portfolios.  Two portfolios exist in the CME CORE database.

Request
GET /portfolios
Response
<portfolioRpt status="SUCCESS"> <portfolio id="12" name="My Name" desc="My Desc" rptCcy="USD" createTime="2012-12-20 13:12:01" updateTime="2012-12-20 13:14:22"> <entities clrMbrFirmId="123" custAcctId="ABC" /> </portfolio> <portfolio id="13" name="My Other Name" desc="My Other Desc" rptCcy="USD" createTime="2012-12-20 13:13:01" updateTime="2012-12-20 13:13:01"> <entities clrMbrFirmId="123" custAcctId="DEF" /> </portfolio> </portfolioRpt>
Valid
Request

This request queries for a single portfolio with Portfolio ID 12.  Only one matching portfolio exists in the CME CORE database.

GET /portfolios/12
Response






How was your Client Systems Wiki Experience? Submit Feedback

Copyright © 2024 CME Group Inc. All rights reserved.