CME AMS API Inline Credit Controls Specifications
These specifications are for Inline Credit Controls. CME Direct and CME ClearPort specifications are located here.
Contents
User Firms and Services
Returns results for all clearing firms, and Account management services that the customer has access to.
Method | GET |
---|---|
URL | _/v#/myFirms/ |
URL Parameters | None |
Pagination Enabled? | No |
HATOAS Links | Links to retrieve permissioned accounts by service:
|
Example Return Message for ICC
{ "entitlements": [ { "service": "CPC", "clearingFirms": [ { "firmName": "GREENTEA_API_CLEARING2", "firmLongName": "GREENTEA_API_CLEARING2", "clearingId": "780" } ] }, { "service": "CMED", "clearingFirms": [ { "firmName": "GREENTEA_API_CLEARING2", "firmLongName": "GREENTEA_API_CLEARING2", "clearingId": "780" } ] }, { "service": "ICC", "clearingFirms": [ { "firmName": "GREENTEA_API_CLEARING2", "firmLongName": "GREENTEA_API_CLEARING2", "clearingId": "780" } ] } ], "links": [ { "rel": "Retrieve CMED Accounts", "href": "Eligible Products and Permissioned Products for an Account/v#/accounts/clearing/CMED/GREENTEA_API_CLEARING2" }, { "rel": "Retrieve CPC Accounts", "href": "_/v#/accounts/clearing/CPC/GREENTEA_API_CLEARING2" }, { "rel": "Retrieve ICC Accounts", "href": "_/v#/accounts/clearing/ICC/GREENTEA_API_CLEARING2" } ] }
Output Parameters
Retrieve All Accounts
Retrieves all the accounts the user has access to for a specific service (venue), type (clearing) and clearing firm. Account owner and number are optional.
Method | GET |
---|---|
URL | _/v#/accounts/[Type]/[Service]/[Clearing Firm]/[Account Owner]/[Account Number] |
Pagination Enabled? | Yes |
HATEOAS Links | Links to retrieve all other account-related details:
|
Input Parameters
Example Return
{ "service": "ICC", "counts": 31, "clearingAccounts": [ { "clearingFirm": "GREENTEA_API_CLEARING1", "accountNumber": "CPCICCCOPY", "owner": "GREENTEA_API_TRADINGFIRM1", "segType": "C", "status": "Active", "ownerLongName": "GREENTEA_API_TRADINGFIRM1", "executionFirms": [ { "efId": "XX0", "suspended": "N" } ], "links": [ { "rel": "self", "href": "https://amsapinr.cmegroup.com/rest/v2/accounts/clearing/ICC/GREENTEA_API_CLEARING1?accountNumber=CPCICCCOPY" }, { "rel": "get accountLimitsUtilization", "href": "https://amsapinr.cmegroup.com/rest/v2/accountLimitsUtilization/clearing/ICC/GREENTEA_API_CLEARING1/CPCICCCOPY" }, { "rel": "get eligibleProducts", "href": "https://amsapinr.cmegroup.com/rest/v2/eligibleProducts/clearing/ICC/GREENTEA_API_CLEARING1/CPCICCCOPY" }, { "rel": "get efStatus", "href": "https://amsapinr.cmegroup.com/rest/v2/efStatus/clearing/ICC/GREENTEA_API_CLEARING1/CPCICCCOPY" } ] } ]
Output Parameters
Retrieve Eligible Products for an Account
Retrieve all eligible products for a specific account, by venue.
Method | GET |
---|---|
URL | _/v#/eligibleProducts/[Type]/[Service]/[Clearing Firm]/[Account Number] |
Pagination Enabled? | Yes |
HATEOAS Links | Links to available from Eligible Products call:
|
Calls to the ICC service return eligible products per execution firm.
Input Parameters
Example Return Message
Supports products listed by execution firm.
{ "service": "ICC", "clearingFirm": "GREENTEA_API_CLEARING2", "accountNumber": "DV10121801A", "products": [ { "executionFirm": "XX0", "productList": [ { "product": "GLB.FUT.CME", "productFullName": "ONE-MONTH SOFR FUTURES" }, { "product": "L0A.OOC.CME", "productFullName": "1st contract back Live Cattle CSO" }, { "product": "6Z.FUT.CME", "productFullName": "ZAR/USD FUTURES" }, { "product": "RO.OOF.CME", "productFullName": "ZAR/USD OPTIONS AMER-STYLE" } ] } ], "links": [ { "rel": "get/update accountLimitsUtilization", "href": "_/v#/accountLimitsUtilization/clearing/ICC/GREENTEA_API_CLEARING2/DV10121801A" }, { "rel": "delete accountLimitsUtilization", "href": "_/v#/accountLimitsUtilization/clearing/ICC/GREENTEA_API_CLEARING2/DV10121801A?delete=true" } ], "limit": 50, "offset": 1, "availableOffsets": 1 }
Output Parameters
Limits and Utilization for an Account
GET Call
Retrieves all limits and utilization for a specific account, by venue.
Method | GET |
---|---|
URL | _/v#/accountLimitsUtilization/[Type]/[Service]/[Clearing Firm]/[Account Number] |
Pagination Enabled? | Yes |
HATOAS Links | Links available from an Account Limits Utilization call:
|
Notes |
|
Input Parameters
Example Return Messages
{ "service": "ICC", "clearingFirm": "GREENTEA_API_CLEARING2", "accountNumber": "DV10121801A", "limits": [ { "product": "CJ.FUT.NYMEX", "productFullName": "NYMEX Cocoa Futures ", "efId": "3N1", "efLimits": { "short": 567, "long": 324 }, "cmfLimits": { "short": 2000, "long": 9000 } }, { "product": "CJ.FUT.NYMEX", "productFullName": "NYMEX Cocoa Futures ", "efId": "350", "efLimits": { "short": 456, "long": 123 }, "cmfLimits": { "short": 30989, "long": 1000 } }, { "product": "DRS.FUT.CBT", "productFullName": "Bloomberg Roll Select Commodity Index Futures", "efId": "350", "efLimits": { "short": 789, "long": 456 }, "cmfLimits": { "short": 120, "long": 120 } } ], "links": [ { "rel": "get/update accountLimitsUtilization", "href": "_/v#/accountLimitsUtilization/clearing/ICC/GREENTEA_API_CLEARING2/DV10121801A" }, { "rel": "delete accountLimitsUtilization", "href": "_/v#/accountLimitsUtilization/clearing/ICC/GREENTEA_API_CLEARING2/DV10121801A?delete=true" } ] }
Output Parameters
POST Call
Update, add or delete account limits using the accountsLimitsUtilization POST call.
To post a delete, append the call with ?delete=true
When Request body is submitted for Limits Update (Post) or Delete - usage field is ignored, it cannot be updated
Method | POST |
---|---|
Function | Update or Delete Limits for an Account |
URL | _/v#/accountLimitsUtilization/[Type]/[Service]/[Clearing Firm]/[Account Number] |
Pagination Enabled? | No |
HATOAS Links | Links available from an Account Limits Utilization query::
|
Input Parameters
Examples
POST calls require a body that contains the update information. A request call can be used to retrieve related information, and then the return can be modified and used as the body for the POST call.
Updating and deleting account limits are permitted for Inline Credit Controls.
Example call and return for an update
This example shows an update to the limits utilization for a product.
1) GET Call: /_/v#/accountLimitsUtilization/[Type]/[Service]/[Clearing Firm]/[Account Number]
Query used: /_/v#/accountLimitsUtilization/clearing/ICC/77777/TESTPOST
Return message from call:
{ "service": "ICC", "clearingFirm": "GREENTEA_API_CLEARING2", "accountNumber": "DV10121801A", "limits": [ { "product": "CJ.FUT.NYMEX", "productFullName": "NYMEX Cocoa Futures ", "efId": "3N1", "efLimits": { "short": 567, "long": 324 }, "cmfLimits": { "short": 2000, "long": 9000 } }, { "product": "CJ.FUT.NYMEX", "productFullName": "NYMEX Cocoa Futures ", "efId": "350", "efLimits": { "short": 456, "long": 123 }, "cmfLimits": { "short": 30989, "long": 1000 } }, { "product": "DRS.FUT.CBT", "productFullName": "Bloomberg Roll Select Commodity Index Futures", "efId": "350", "efLimits": { "short": 789, "long": 456 }, "cmfLimits": { "short": 120, "long": 120 } } ], "links": [ { "rel": "get/update accountLimitsUtilization", "href": "_/v#/accountLimitsUtilization/clearing/ICC/GREENTEA_API_CLEARING2/DV10121801A" }, { "rel": "delete accountLimitsUtilization", "href": "_/v#/accountLimitsUtilization/clearing/ICC/GREENTEA_API_CLEARING2/DV10121801A?delete=true" } ] }
2) Utilize the return as the body for the Post call. For example, for product "CJ.FUT.NYME", update EF short limit from 567
to
600.
Only the modified record is required:
Sample Post Body:
{ "service": "ICC", "clearingFirm": "GREENTEA_API_CLEARING2", "accountNumber": "DV10121801A", "limits": [ { "product": "CJ.FUT.NYMEX", "productFullName": "NYMEX Cocoa Futures ", "efId": "3N1", "efLimits": { "short": 567, "long": 324 }, "cmfLimits": { "short": 2000, "long": 9000 } } ] }
3) POST Call: Use the same URL as in (1), and use the modified request as the POST body, in JSON format.
Return message from post call should include all information:
{ "service": "ICC", "clearingFirm": "GREENTEA_API_CLEARING2", "accountNumber": "DV10121801A", "limits": [ { "product": "CJ.FUT.NYMEX", "productFullName": "NYMEX Cocoa Futures ", "efId": "3N1", "efLimits": { "short": 600, "long": 324 }, "cmfLimits": { "short": 2000, "long": 9000 } }, { "product": "CJ.FUT.NYMEX", "productFullName": "NYMEX Cocoa Futures ", "efId": "350", "efLimits": { "short": 456, "long": 123 }, "cmfLimits": { "short": 30989, "long": 1000 } }, { "product": "DRS.FUT.CBT", "productFullName": "Bloomberg Roll Select Commodity Index Futures", "efId": "350", "efLimits": { "short": 789, "long": 456 }, "cmfLimits": { "short": 120, "long": 120 } } ], "links": [ { "rel": "get/update accountLimitsUtilization", "href": "_/v#/accountLimitsUtilization/clearing/ICC/GREENTEA_API_CLEARING2/DV10121801A" }, { "rel": "delete accountLimitsUtilization", "href": "_/v#/accountLimitsUtilization/clearing/ICC/GREENTEA_API_CLEARING2/DV10121801A?delete=true" } ] }
Update an Account to Active or Inactive
Method | POST |
---|---|
URL | _/v#/status/[Type]/[Clearing Firm] |
Pagination Enabled? | No |
Input Parameters
Example: Update an Account to Active or Inactive
Account Information Before Update
Clearing Firm account information only, as shown in a "Retrieve all Accounts" call.
{ "clearingFirm": "GREENTEA_API_CLEARING2", "accountNumber": "DV101218B", "owner": "050", "segType": "C", "status": "Active" "executionFirms": [ "8T4" ] }
Input body for POST to update status to Active or Inactive
{ "service": "ICC", "clearingAccounts": [ { "clearingFirm": "GREENTEA_API_CLEARING2", "accountNumber": "DV101218B", "status": "I" } ] }
Successful Return Message
{ "clearingAccounts": [ { "accountNumber": "DV101218B", "status": "Successful" } ] }
Account information after update
Output parameters will be account parameters with updated status. Status is now "Inactive."
{ "clearingFirm": "GREENTEA_API_CLEARING2", "accountNumber": "DV101218B", "owner": "050", "segType": "C", "status": "Inactive" "executionFirms": [ "8T4" ] }
Execution Firm Status
GET Call
Retrieve status (suspended = "Y" or "N") for a Clearing Firm's execution firms.
Method | GET |
---|---|
URL | _/v#/efStatus/[Type]/[Service]/[Clearing Firm]/[Account Number] |
Pagination Enabled? | Yes |
HATEOAS Links | Links to available from Execution Firm Status call:
|
Input Parameters
Example Return Message
Supports execution firm status.
{ "service": "ICC", "clearingFirm": "GREENTEA_API_CLEARING2", "accountNumber": "DV10121801A", "owner": "Account Owner", "executionFirms": [ { "efId": "451", "suspended": "N" }, { "efId": "113", "suspended": "N" }, { "efId": "763", "suspended": "N" }, { "efId": "4V9", "suspended": "N" } ], "links": [ { "rel": "get Account Details", "_/v#/accounts/clearing/ICC/072?accountNumber=DV10121801A" } ] }
Output Parameters
POST Call
Update status (suspended = "Y" or "N") for one or more of a Clearing Firm's execution firms. If suspended, an account cannot trade.
Method | POST |
---|---|
URL | _/v#/efStatus/[Type]/[Service]/[Clearing Firm]/[Account Number] |
Pagination Enabled? | Yes |
HATEOAS Links | Links to available from Execution Firm Status call:
|
Input Parameters
Account Information Before Update
Return with Execution Firms and suspended status.
{ "service": "ICC", "clearingFirm": "GREENTEA_API_CLEARING2", "accountNumber": "DV10121801A", "owner": "Account Owner", "executionFirms": [ { "efId": "451", "suspended": "N" }, { "efId": "113", "suspended": "N" }, { "efId": "763", "suspended": "N" }, { "efId": "4V9", "suspended": "N" } ], "links": [ { "rel": "get Account Details", "_/v#/accounts/clearing/ICC/072?accountNumber=DV10121801A" } ] }
Input body for POST to update status to Active or Inactive
{ "service": "ICC", "clearingFirm": "GREENTEA_API_CLEARING2", "accountNumber": "DV10121801A", "executionFirms": [ { "efId": "451", "suspended": "Y" } ] }
Successful Return Message
{ "service": "ICC", "clearingFirm": "GREENTEA_API_CLEARING2", "accountNumber": "DV10121801A", "owner": "Account Owner", "executionFirms": [ { "efId": "451", "suspended": "Y" }, { "efId": "113", "suspended": "N" }, { "efId": "763", "suspended": "N" }, { "efId": "4V9", "suspended": "N" } ], "links": [ { "rel": "get Account Details", "_/v#/accounts/clearing/ICC/072?accountNumber=DV10121801A" } ] }
How was your Client Systems Wiki Experience? Submit Feedback
Copyright © 2024 CME Group Inc. All rights reserved.