예제 #1
0
 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));
 }
예제 #2
0
        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));
        }
예제 #3
0
파일: BtceApiV3.cs 프로젝트: xcrash/WexApi
 public static Dictionary <BtcePair, Ticker> GetTicker(BtcePair[] pairlist)
 {
     return(MakeRequest("ticker", pairlist, x => Ticker.ReadFromJObject(x as JObject), null, true));
 }