Working With Handler | Table of Content | Subscription |
Application Level |
There are two ways to receive TradeCaptureReport messages:
Both ways can be used with or without filters.
To specify filtering parameters TradeCaptureReportRequest message is used.
Note |
---|
Relationship between filters is "AND". |
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" });