Exemplo n.º 1
0
 /// <summary>
 /// constructor
 /// </summary>
 /// <param name="requestId">request id</param>
 /// <param name="symbol">symbol name</param>
 /// <param name="periodicity">periodicity, see Periodicity property</param>
 /// <param name="interval">interval, see Interval property</param>
 /// <param name="bars">bar's count, see BarsCount property</param>
 public HistoryParameters(string requestId, SymbolItem symbol, Periodicity periodicity, int interval, int bars)
 {
     Id          = requestId;
     Symbol      = symbol;
     Periodicity = periodicity;
     Interval    = interval;
     BarsCount   = bars;
 }
Exemplo n.º 2
0
        /// <summary>
        /// equalizes objects
        /// </summary>
        /// <param name="obj">object to compare</param>
        /// <returns>true, if two objects are equal</returns>
        public override bool Equals(object obj)
        {
            if (ReferenceEquals(this, obj))
            {
                return(true);
            }

            SymbolItem o = obj as SymbolItem;

            if ((object)o == null)
            {
                return(false);
            }

            return(DataFeed == o.DataFeed && Symbol == o.Symbol && Type == o.Type);
        }
Exemplo n.º 3
0
 public UnsubscribeRequest(SymbolItem aSymbol)
 {
     Symbol = aSymbol;
 }