Example #1
0
		public OpenInterestData(DateTime date, ZBuffer buffer) {
			__cDate = date.Date;
			__cInterest = new Dictionary<string, int>(128);

			while (buffer.Position < buffer.Length) {
				__cInterest.Add(buffer.GetString(), buffer.GetInt32());
			}
		}
		public static ForeignInvestmentData Create(ZBuffer buffer) {
			ForeignInvestmentData cData = new ForeignInvestmentData();
			cData.自營商多方交易口數 = buffer.GetInt32();
			cData.自營商空方交易口數 = buffer.GetInt32();
			cData.自營商多方未平倉口數 = buffer.GetInt32();
			cData.自營商空方未平倉口數 = buffer.GetInt32();
			cData.投信多方交易口數 = buffer.GetInt32();
			cData.投信空方交易口數 = buffer.GetInt32();
			cData.投信多方未平倉口數 = buffer.GetInt32();
			cData.投信空方未平倉口數 = buffer.GetInt32();
			cData.外資多方交易口數 = buffer.GetInt32();
			cData.外資空方交易口數 = buffer.GetInt32();
			cData.外資多方未平倉口數 = buffer.GetInt32();
			cData.外資空方未平倉口數 = buffer.GetInt32();
			return cData;
		}