forwardWorking With Handler   Table of ContentSubscriptionforward
Application Level

There are two ways to receive TradeCaptureReport messages:

  • The query for historical data.
  • Subscription for real-time data.

Both ways can be used with or without filters.

To specify filtering parameters TradeCaptureReportRequest message is used.

Note Note

Relationship between filters is "AND".

Example
C#
using OnixS.CmeStpHandler;

// This request filter for all NYMEX products with "NG" or "NA" IDs, and negates NYMEX products with "CL" ID.
TradeCaptureReportRequest request = new TradeCaptureReportRequest();

request.Instruments.Add(new RequestInstrument() { SecurityExchange = SecurityExchange.Nymex });
request.Instruments.Add(new RequestInstrument() { SecurityExchange = SecurityExchange.SecurityID = "-CL" });
request.Instruments.Add(new RequestInstrument() { SecurityExchange = SecurityExchange.SecurityID = "NG,NA" });
Content