示例#1
0
 public static Dictionary <BTCECURRENCYPAIR, TICKER> GetTicker(BTCECURRENCYPAIR[] pairlist)
 {
     return(MakeRequest <TICKER>("ticker", pairlist, x => TICKER.ReadFromJObject(x as JObject), null, true));
 }
示例#2
0
        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));
        }