Example #1
0
        public async Task <ActionResult> GetTradePairUserData(int tradepairId)
        {
            var orderData = await ExchangeReader.GetUserOrders(User.Identity.GetUserId(), tradepairId);

            var historyData = await ExchangeReader.GetUserHistory(User.Identity.GetUserId(), tradepairId);

            return(Json(new
            {
                Success = true,
                Open = orderData,
                History = historyData
            }));
        }