internal ElementIntradayBarResponseError(string security)
        {
            int code = Types.RandomDataGenerator.RandomInt(99);
            string sourceGibberish = Types.RandomDataGenerator.RandomString(5).ToLower();

            this._source = new ElementIntradayBarString("source", string.Format("{0}::{1}{2}", code, sourceGibberish, Types.RandomDataGenerator.RandomInt(99)));
            this._code = new ElementIntradayBarInt("code", code);
            this._category = new ElementIntradayBarString("category", "BAD_SEC");
            this._message = new ElementIntradayBarString("message", string.Format("Unknown/Invalid security [nid:{0}]", code));
            this._subCategory = new ElementIntradayBarString("subcategory", "INVALID_SECURITY");
        }
 internal ElementBarTickData(BarTickDataType arg)
 {
     this._time = new ElementIntradayBarDateTime(arg.DtTime);
     this._open = new ElementIntradayBarDouble("open", arg.Open);
     this._high = new ElementIntradayBarDouble("high", arg.High);
     this._low = new ElementIntradayBarDouble("low", arg.Low);
     this._close = new ElementIntradayBarDouble("close", arg.Close);
     this._volume = new ElementIntradayBarLong("volume", arg.Volume);
     this._numEvents = new ElementIntradayBarInt("numEvents", arg.NumEvents);
     this._value = new ElementIntradayBarDouble("value", arg.Value);
 }