Fix get tickers

This commit is contained in:
2025-10-07 02:34:42 +07:00
parent 719ce96e11
commit f30cc7dc47

View File

@@ -84,8 +84,8 @@ public class DataController : ControllerBase
/// </summary> /// </summary>
/// <param name="timeframe">The timeframe for which to retrieve tickers.</param> /// <param name="timeframe">The timeframe for which to retrieve tickers.</param>
/// <returns>An array of tickers.</returns> /// <returns>An array of tickers.</returns>
[HttpPost("GetTickers")] [HttpGet("GetTickers")]
public async Task<ActionResult<List<TickerInfos>>> GetTickers(Timeframe timeframe) public async Task<ActionResult<List<TickerInfos>>> GetTickers([FromQuery] Timeframe timeframe)
{ {
var cacheKey = string.Concat(timeframe.ToString()); var cacheKey = string.Concat(timeframe.ToString());
var tickers = _cacheService.GetValue<List<TickerInfos>>(cacheKey); var tickers = _cacheService.GetValue<List<TickerInfos>>(cacheKey);