Beispiel #1
0
        public TickersReply GetTickers(IEnumerable <string> instruments)
        {
            var res = new TickersReply();

            var args = "ticker/{0}?ignore_invalid=1".Put(instruments.Join("-"));

            JsonConvert.PopulateObject(MakePublicRequest(args), res.Items);

            // заполним имена
            foreach (var e in res.Items)
            {
                e.Value.Instrument = e.Key;
            }

            return(res);
        }
Beispiel #2
0
		public TickersReply GetTickers(IEnumerable<string> instruments)
		{
			var res = new TickersReply();

			var args = "ticker/{0}?ignore_invalid=1".Put(instruments.Join("-"));
			JsonConvert.PopulateObject(MakePublicRequest(args), res.Items);

			// заполним имена
			foreach (var e in res.Items)
				e.Value.Instrument = e.Key;

			return res;
		}