using System; namespace Krs.Ats.IBNet { /// /// Scanner Data Event Arguments /// [Serializable()] public class ScannerDataEventArgs : EventArgs { private string benchmark; private ContractDetails contractDetails; private string distance; private string legsStr; private string projection; private int rank; private int requestId; /// /// Full Constructor /// /// The ticker ID of the request to which this row is responding. /// The ranking within the response of this bar. /// This structure contains a full description of the contract that was executed. /// Meaning varies based on query. /// Meaning varies based on query. /// Meaning varies based on query. /// Describes combo legs when scan is returning EFP. public ScannerDataEventArgs(int requestId, int rank, ContractDetails contractDetails, string distance, string benchmark, string projection, string legsStr) { this.requestId = requestId; this.legsStr = legsStr; this.projection = projection; this.benchmark = benchmark; this.distance = distance; this.contractDetails = contractDetails; this.rank = rank; } /// /// Uninitialized Constructor for Serialization /// public ScannerDataEventArgs() { } /// /// The ticker ID of the request to which this row is responding. /// public int RequestId { get { return requestId; } set { requestId = value; } } /// /// The ranking within the response of this bar. /// public int Rank { get { return rank; } set { rank = value; } } /// /// This structure contains a full description of the contract that was executed. /// public ContractDetails ContractDetails { get { return contractDetails; } set { contractDetails = value; } } /// /// Meaning varies based on query. /// public string Distance { get { return distance; } set { distance = value; } } /// /// Meaning varies based on query. /// public string Benchmark { get { return benchmark; } set { benchmark = value; } } /// /// Meaning varies based on query. /// public string Projection { get { return projection; } set { projection = value; } } /// /// Describes combo legs when scan is returning EFP. /// public string LegsStr { get { return legsStr; } set { legsStr = value; } } } }