public static Dictionary <BTCECURRENCYPAIR, DEPTH> GetDepth(BTCECURRENCYPAIR[] pairlist, int limit = 150) { //return MakeRequest<DEPTH>("depth", pairlist, new Func<JContainer, DEPTH>(x => DEPTH.ReadFromJObject(x as JObject)), new Dictionary<string, string>() { { "limit", limit.ToString() } }, true); return(MakeRequest <DEPTH>("depth", pairlist, new Func <JContainer, DEPTH>(x => DEPTH.ReadFromJObject(x as JObject)), new Dictionary <string, string>() { { "limit", limit.ToString() } }, false)); }
public static DEPTH GetDepth(BTCECURRENCYPAIR pair) { string queryStr = string.Format("https://btc-e.com/api/2/{0}/depth", BTCECURRENCYPAIRHELPER.ToString(pair)); return(DEPTH.ReadFromJObject(JObject.Parse(WEBAPI.Query(queryStr)))); }