Ejemplo n.º 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
            }));
        }
Ejemplo n.º 2
0
 public async Task <ActionResult> GetUserOpenTrades(DataTablesModel param)
 {
     return(DataTable(await ExchangeReader.GetUserOrders(param, User.Identity.GetUserId())));
 }