public static Ticker GetTicker(BtcePair pair) { return (Ticker.ReadFromJObject( JObject.Parse( Query(string.Format("{1}api/2/{0}/ticker", BtcePairHelper.ToString(pair), ExchangeHost)))[ "ticker"] as JObject)); }
public static Ticker GetTicker(BtcePair pair) { string resStr; string queryStr = string.Format("https://btc-e.com/api/2/{0}/ticker", BtcePairHelper.ToString(pair)); resStr = Query(queryStr); var res = JObject.Parse(resStr); return(Ticker.ReadFromJObject(res["ticker"] as JObject)); }
public static Dictionary <BtcePair, Ticker> GetTicker(BtcePair[] pairlist) { return(MakeRequest("ticker", pairlist, x => Ticker.ReadFromJObject(x as JObject), null, true)); }