Пример #1
0
 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));
 }
Пример #2
0
        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));
        }
Пример #3
0
        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);
            }
        }
Пример #4
0
 public static Depth GetDepth(BtcePair pair)
 {
     return
         (Depth.ReadFromJObject(
              JObject.Parse(Query(string.Format("{1}api/2/{0}/depth", BtcePairHelper.ToString(pair), ExchangeHost)))));
 }