public async Task <IActionResult> Get(string pairCode) { if (string.IsNullOrWhiteSpace(pairCode)) { return(BadRequest(new ErrorModel { Code = ErrorCode.InvalidInput, Message = "Pair code is required" })); } var pair = await _redisService.GetMarketProfileAsync(pairCode); if (pair == null) { return(NotFound(new ErrorModel { Code = ErrorCode.PairNotFound, Message = "Pair not found" })); } return(Ok(pair.ToApiModel())); }