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); }
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; }