public static Dictionary <BtcePair, Depth> GetDepth(BtcePair[] pairlist, int limit = 150) { return(MakeRequest("depth", pairlist, x => Depth.ReadFromJObject(x as JObject), new Dictionary <string, string> { { "limit", limit.ToString() } }, true)); }
public static Depth GetDepth(BtcePair pair) { string resStr; string queryStr = string.Format("https://btc-e.com/api/2/{0}/depth", BtcePairHelper.ToString(pair)); resStr = Query(queryStr); var res = JObject.Parse(resStr); return(Depth.ReadFromJObject(res)); }
public static Depth GetDepth(BtcePair pair) { string queryStr = string.Format("https://btc-e.com/api/2/{0}/depth", BtcePairHelper.ToString(pair)); try { return(Depth.ReadFromJObject(JObject.Parse(WebApi.Query(queryStr)))); } catch (Exception e) { return(null); } }
public static Depth GetDepth(BtcePair pair) { return (Depth.ReadFromJObject( JObject.Parse(Query(string.Format("{1}api/2/{0}/depth", BtcePairHelper.ToString(pair), ExchangeHost))))); }