Ejemplo n.º 1
0
        public DepthsReply GetDepths(int depth, IEnumerable <string> instruments)
        {
            if (depth <= 0)
            {
                throw new ArgumentOutOfRangeException("depth");
            }

            depth = Math.Min(depth, 2000);

            var res = new DepthsReply();

            var instrs = instruments.Join("-");
            var args   = "depth/{0}?limit={1}&ignore_invalid=1".Put(instrs, depth);

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

            return(res);
        }
Ejemplo n.º 2
0
		public DepthsReply GetDepths(int depth, IEnumerable<string> instruments)
		{
			if (depth <= 0)
				throw new ArgumentOutOfRangeException("depth");

			depth = Math.Min(depth, 2000);

			var res = new DepthsReply();

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

			return res;
		}