public static Dictionary <BTCECURRENCYPAIR, TICKER> GetTicker(BTCECURRENCYPAIR[] pairlist) { return(MakeRequest <TICKER>("ticker", pairlist, x => TICKER.ReadFromJObject(x as JObject), null, true)); }
public static TICKER GetTicker(BTCECURRENCYPAIR pair) { string queryStr = string.Format("https://btc-e.com/api/2/{0}/ticker", BTCECURRENCYPAIRHELPER.ToString(pair)); return(TICKER.ReadFromJObject(JObject.Parse(WEBAPI.Query(queryStr))["ticker"] as JObject)); }