K3 Documents

Connect to ICE EConfirm Trade Status API

Updated on

This document outlines how to connect to the ICE Econfirm Trade Status API. You will find a list of cURL examples that can be reused with minimal changes required.

ICE Econfirm requires a user to be set up with EConfirm privileges and you will need to configure the OATH Authentication workflow to use in each EConfirm request.

Connect to Data API

ICE Econfirm Trade Status API allows users to see the status of trades submitted through ICE Econfirm.  This section will outline how to retrieve data from the API.

Please note, ICE does require security privileges be set appropriately for credentials being used to log into Econfirm before the Trade Status  API is accessible.

cURL - Authentication

The following cURL command is needed to configure the OATH workflow required to retrieve an authorization token for use in the Trade Status call.

curl -X GET "https://ut.icetradevault.com/api/auth/v1/getToken" \
  --user "CME_USER:CME_Password"
Click to copy

cURL - Trade Status

curl -G -X GET "https://ut.icetradevault.com/api/reportingservice/query/trade/v1/listTradeStatusesByActivityDate" \
  --data-urlencode "batchId=122330" \
  --data-urlencode "startDate=\${display.truncate(\${payload.body.xpath('/tradeStatusSummaryCollection/tradeStatusSummary/submission/LastUpdateTimestamp/text()').max()},10,'')|'2022-09-15'}" \
  --data-urlencode "endDate=#set( \$context.toolbox.cal = \$date.toCalendar('yyyy-MM-dd', \${display.truncate(\${payload.body.xpath('/tradeStatusSummaryCollection/tradeStatusSummary/submission/LastUpdateTimestamp/text()').max()},10,'')|'2022-09-15'}) )  
\${context.toolbox.cal.add(\$field.in(\$context.toolbox.cal).DAY_OF_MONTH,30)}\${date.format('yyyy-MM-dd', \$context.toolbox.cal)}" \
  -H "Authorization: \${auth.headers['Authorization'].one()}"
Click to copy
Previous Article Connect to the Bubble API
Next Article Connect to Exchangeratesapi.io Exchange Rate API