public JsonResult Trades()
        {
            try
            {
                apiResponse = APICLientFactory.CreateApiClient("trades/?book=eth_mxn&limit=10");

                return(Json(apiResponse.Data, JsonRequestBehavior.AllowGet));
            }
            catch (Exception exception)
            {
                ExceptionHandler.Instance.WriteExceptionLog(exception);
            }
            return(Json(null, JsonRequestBehavior.AllowGet));
        }
Beispiel #2
0
 public ActionResult Mercado()
 {
     try
     {
         apiResponse = APICLientFactory.CreateApiClient("ticker/?book=btc_mxn");
         Ticker ticker = JObject.Parse(apiResponse.Data).SelectToken("payload").ToObject <Ticker>();
         return(View(ticker));
     }
     catch (Exception exception)
     {
         ExceptionHandler.Instance.WriteExceptionLog(exception);
         return(View());
     }
 }
        public JsonResult OrderBook()
        {
            try
            {
                ViewBag.SelectedOperation = "OrderBook";
                apiResponse = APICLientFactory.CreateApiClient("order_book/?book=btc_mxn");

                return(Json(apiResponse.Data, JsonRequestBehavior.AllowGet));
            }
            catch (Exception exception)
            {
                ExceptionHandler.Instance.WriteExceptionLog(exception);
            }
            return(Json(null, JsonRequestBehavior.AllowGet));
        }